query-44a8ba5e5946510b92f7fa6d575adf26
TODO
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?place ?latitude ?longitude
where
{
{
SELECT ?place
WHERE {
?place_sub wdt:P279* wd:Q811979 .
?place wdt:P31 ?place_sub.
SERVICE wikibase:around {
?place wdt:P625 ?location.
bd:serviceParam wikibase:center "Point(13.5812565 52.5153623)"^^geo:wktLiteral .
bd:serviceParam wikibase:radius "5" .
}
} GROUP BY ?place }.
?place p:P625 ?statement .
?statement psv:P625 ?coordinate_node .
?coordinate_node wikibase:geoLatitude ?latitude .
?coordinate_node wikibase:geoLongitude ?longitude .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coordinate_node")
v6("?latitude"):::projected
v3("?location")
v7("?longitude"):::projected
v2("?place"):::projected
v1("?place_sub")
v4("?statement")
c8([sPoint(13.5812565 52.5153623)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
c2(["wd:Q811979"]):::iri
c6(["bd:serviceParam"]):::iri
c10(["5"]):::literal
v1 --"p:direct/P279"--> c2
v2 --"p:direct/P31"--> v1
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v2 --"p:direct/P625"--> v3
c6 --"wikibase:center"--> c8
c6 --"wikibase:radius"--> c10
end
v2 --"p:P625"--> v4
v4 --"p:statement/value/P625"--> v5
v5 --"wikibase:geoLatitude"--> v6
v5 --"wikibase:geoLongitude"--> v7