query-f674b0abdd751859427432b66396c8c8
Search around point doesn't workIs anyone able to run this query?
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?place ?placeLabel ?location
WHERE {
# Berlin coordinates
wd:Q64 wdt:P625 ?berlinLoc .
?place (wdt:P31/(wdt:P279*)) wd:Q62447 .
SERVICE wikibase:around {
?place wdt:P625 ?location .
bd:serviceParam wikibase:center ?berlinLoc .
bd:serviceParam wikibase:radius "100" .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?berlinLoc")
v3("?location"):::projected
v2("?place"):::projected
a1((" "))
c1(["wd:Q64"]):::iri
c13(["en"]):::literal
c5(["wd:Q62447"]):::iri
c10(["100"]):::literal
c7(["bd:serviceParam"]):::iri
c1 --"wdt:P625"--> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v2 --"wdt:P625"--> v3
c7 --"wikibase:center"--> v1
c7 --"wikibase:radius"--> c10
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c7 --"wikibase:language"--> c13
end