query-13fb42b2f67870d433d13c6baa574573

rq turtle/ttl

Call out to Mediawiki API GeoData from SPARQLI am trying to call out to Mediawiki API GeoData from SPARQL to retrieve Wikimedia items in the 10km radius around some location in the middle of Manhattan. It doesn't bring any result. Any ideas?

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item WHERE {
    SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
      bd:serviceParam wikibase:api "Generator" .
      bd:serviceParam mwapi:generator "geosearch" .
      bd:serviceParam mwapi:ggscoord "40.751322|-73.978262" .
      bd:serviceParam mwapi:ggsradius "10000" .
      ?item wikibase:apiOutputItem mwapi:item .      
    }
     SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  } LIMIT 2

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected c14(["mwapi:item"]):::iri c17(["en"]):::literal c4(["en.wikipedia.org"]):::literal c2(["bd:serviceParam"]):::iri c8(["geosearch"]):::literal c10(["40.751322|-73.978262"]):::literal c12(["10000"]):::literal c6(["Generator"]):::literal subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:generator"--> c8 c2 --"mwapi:ggscoord"--> c10 c2 --"mwapi:ggsradius"--> c12 v1 --"mwapi:apiOutputItem"--> c14 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c2 --"mwapi:language"--> c17 end