query-31e233481371672d0ef50481b75b756e
Coordinates may be specified directly:
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#>
#defaultView:Map
SELECT ?place ?placeLabel ?location WHERE {
SERVICE wikibase:box {
?place wdt:P625 ?location .
bd:serviceParam wikibase:cornerWest "Point(2.295 48.8738)"^^geo:wktLiteral .
bd:serviceParam wikibase:cornerEast "Point(2.33575 48.861088888)"^^geo:wktLiteral .
}
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;
v2("?location"):::projected
v1("?place"):::projected
c3(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c7([sPoint(2.33575 48.861088888)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
c5([sPoint(2.295 48.8738)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
subgraph s1["http://wikiba.se/ontology#box"]
style s1 stroke-width:4px;
v1 --"wdt:P625"--> v2
c3 --"wikibase:cornerWest"--> c5
c3 --"wikibase:cornerEast"--> c7
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c3 --"wikibase:language"--> c10
end