query-beac5c8e1e56595cc9483cf524f2d5b6
That's the old WDQ (Wikidata Query) syntax, which has been discontinued. The equivalent SPARQL is this:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item WHERE {
SERVICE wikibase:around {
?item wdt:P625 ?item_location .
bd:serviceParam wikibase:center "Point(116.401703 39.907902)"^^geo:wktLiteral .
bd:serviceParam wikibase:radius "15" .
}}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?item_location")
c3(["bd:serviceParam"]):::iri
c7(["15"]):::literal
c5([sPoint(116.401703 39.907902)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v1 --"wdt:P625"--> v2
c3 --"wikibase:center"--> c5
c3 --"wikibase:radius"--> c7
end