{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/rdf4j/issues/1232","repository_url":"https://api.github.com/repos/eclipse/rdf4j","labels_url":"https://api.github.com/repos/eclipse/rdf4j/issues/1232/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/rdf4j/issues/1232/comments","events_url":"https://api.github.com/repos/eclipse/rdf4j/issues/1232/events","html_url":"https://github.com/eclipse/rdf4j/issues/1232","id":395537928,"node_id":"MDU6SXNzdWUzOTU1Mzc5Mjg=","number":1232,"title":"GeoSparql Documentation Contains Wrong WKT Literals","user":{"login":"greenwoodma","id":3025272,"node_id":"MDQ6VXNlcjMwMjUyNzI=","avatar_url":"https://avatars1.githubusercontent.com/u/3025272?v=4","gravatar_id":"","url":"https://api.github.com/users/greenwoodma","html_url":"https://github.com/greenwoodma","followers_url":"https://api.github.com/users/greenwoodma/followers","following_url":"https://api.github.com/users/greenwoodma/following{/other_user}","gists_url":"https://api.github.com/users/greenwoodma/gists{/gist_id}","starred_url":"https://api.github.com/users/greenwoodma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenwoodma/subscriptions","organizations_url":"https://api.github.com/users/greenwoodma/orgs","repos_url":"https://api.github.com/users/greenwoodma/repos","events_url":"https://api.github.com/users/greenwoodma/events{/privacy}","received_events_url":"https://api.github.com/users/greenwoodma/received_events","type":"User","site_admin":false},"labels":[{"id":1084548304,"node_id":"MDU6TGFiZWwxMDg0NTQ4MzA0","url":"https://api.github.com/repos/eclipse/rdf4j/labels/rdf4j-doc","name":"rdf4j-doc","color":"2460a5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/eclipse/rdf4j/milestones/29","html_url":"https://github.com/eclipse/rdf4j/milestone/29","labels_url":"https://api.github.com/repos/eclipse/rdf4j/milestones/29/labels","id":3851161,"node_id":"MDk6TWlsZXN0b25lMzg1MTE2MQ==","number":29,"title":"2.4.3","description":"","creator":{"login":"jeenbroekstra","id":728776,"node_id":"MDQ6VXNlcjcyODc3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/728776?v=4","gravatar_id":"","url":"https://api.github.com/users/jeenbroekstra","html_url":"https://github.com/jeenbroekstra","followers_url":"https://api.github.com/users/jeenbroekstra/followers","following_url":"https://api.github.com/users/jeenbroekstra/following{/other_user}","gists_url":"https://api.github.com/users/jeenbroekstra/gists{/gist_id}","starred_url":"https://api.github.com/users/jeenbroekstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeenbroekstra/subscriptions","organizations_url":"https://api.github.com/users/jeenbroekstra/orgs","repos_url":"https://api.github.com/users/jeenbroekstra/repos","events_url":"https://api.github.com/users/jeenbroekstra/events{/privacy}","received_events_url":"https://api.github.com/users/jeenbroekstra/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2018-11-27T10:08:05Z","updated_at":"2019-01-03T11:33:12Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2019-01-03T11:21:55Z","updated_at":"2019-01-03T12:00:46Z","closed_at":null,"author_association":"NONE","body":"The documentation on using GeoSPARQL at http://docs.rdf4j.org/programming/#_geosparql contains both example triples and a SPARQL query. The triples encode the locations of Tower Bridge and the Eiffel Tower  as WKT literals each containing a single POINT object. The sample query then calculates the distance between them as being 384.02842030928696 kilometres. Unfortunately the answer is wrong as the real distance between them is only 334.355 kilometres (see [this WGS-84 distance calculator](http://www.cqsrg.org/tools/GCDistance/) if you want to be sure).\r\n\r\nThe problem isn't the distance calculation though, rather the locations in the sample data are wrong. A POINT object encoded as WKT should list the coordinates as X Y, which means when representing a geographical location we need Longitude Latitude, unfortunately the example triples list the locations as Latitude Longitude which results in the erroneous distance result.\r\n\r\nI can't find the documentation in this repo or I'd have done a pull request, but the sample data should read as follows\r\n```\r\n@prefix geo: <http://www.opengis.net/ont/geosparql#> .\r\n@prefix sf: <http://www.opengis.net/ont/sf> .\r\n@prefix ex: <http://example.org/> .\r\n\r\nex:eiffelTower a ex:Landmark ;\r\n          geo:hasGeometry ex:coordinates-et.\r\nex:coordinates-et a sf:Point;\r\n        geo:asWKT \"POINT(2.2945 48.8584)\"^^geo:wktLiteral .\r\nex:towerBridge a ex:Landmark ;\r\n          geo:hasGeometry ex:coordinates-tb.\r\nex:coordinates-tb a sf:Point;\r\n        geo:asWKT \"POINT(0.0754 51.5055)\"^^geo:wktLiteral .\r\n```"},"comment":{"url":"https://api.github.com/repos/eclipse/rdf4j/issues/comments/451124290","html_url":"https://github.com/eclipse/rdf4j/issues/1232#issuecomment-451124290","issue_url":"https://api.github.com/repos/eclipse/rdf4j/issues/1232","id":451124290,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTEyNDI5MA==","user":{"login":"greenwoodma","id":3025272,"node_id":"MDQ6VXNlcjMwMjUyNzI=","avatar_url":"https://avatars1.githubusercontent.com/u/3025272?v=4","gravatar_id":"","url":"https://api.github.com/users/greenwoodma","html_url":"https://github.com/greenwoodma","followers_url":"https://api.github.com/users/greenwoodma/followers","following_url":"https://api.github.com/users/greenwoodma/following{/other_user}","gists_url":"https://api.github.com/users/greenwoodma/gists{/gist_id}","starred_url":"https://api.github.com/users/greenwoodma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenwoodma/subscriptions","organizations_url":"https://api.github.com/users/greenwoodma/orgs","repos_url":"https://api.github.com/users/greenwoodma/repos","events_url":"https://api.github.com/users/greenwoodma/events{/privacy}","received_events_url":"https://api.github.com/users/greenwoodma/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T12:00:46Z","updated_at":"2019-01-03T12:00:46Z","author_association":"NONE","body":"Oh yes, I hadn't even spotted the East/West issue with Tower Bridge."}}
{"actor":{"display_login":"greenwoodma"}}