query-a0716750285685b7502b89a4698dc113
Map showing nearby venues
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT DISTINCT ?loc ?placeLabel ?place ?placeURI ?distance WHERE {
{ {?place wdt:P31 wd:Q207694 } UNION { ?place wdt:P31 wd:Q33506} UNION { ?place wdt:P31 wd:Q2190251} UNION { ?place wdt:P31 wd:Q7062022} UNION { ?place wdt:P31 wd:Q20897549} }
service wikibase:around {
?place wdt:P625 ?loc.
bd:serviceParam wikibase:center "[AUTO_COORDINATES]".
bd:serviceParam wikibase:radius "25" .
bd:serviceParam wikibase:distance ?distance .
}
?place rdfs:label ?placeLabel. FILTER(LANG(?placeLabel) = "en").
optional { ?place wdt:P18 ?placeURI } .
} LIMIT 300
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?distance"):::projected
v3("?loc"):::projected
v2("?place"):::projected
v1("?placeLabel"):::projected
v5("?placeURI"):::projected
c3(["wd:Q207694"]):::iri
c4(["wd:Q33506"]):::iri
c14(["25"]):::literal
c5(["wd:Q2190251"]):::iri
c10(["bd:serviceParam"]):::iri
c6(["wd:Q7062022"]):::iri
c12(["#91;AUTO_COORDINATES#93;"]):::literal
c7(["wd:Q20897549"]):::iri
f0[["?placeLabel = 'en'"]]
f0 --> v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c7
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c6
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c5
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c4
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c3
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v2 --"wdt:P625"--> v3
c10 --"wikibase:center"--> c12
c10 --"wikibase:radius"--> c14
c10 --"wikibase:distance"--> v4
end
v2 --"rdfs:label"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v5
end