query-b9c82b27d2cd71f4a24cc5bb234345e7
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 geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Al voltant d'un punt amb coordenades explĂcites
SELECT ?item ?itemLabel ?coord WHERE {
?item wdt:P17 wd:Q29.
?item wdt:P625 ?coord.
FILTER(geof:distance(?coord, "Point(1.5 41.5)"^^geo:wktLiteral) < 15).
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr,de" .
}
}
#defaultView:Map
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?coord"):::projected
v2("?item"):::projected
c4(["wd:Q29"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,ca,en,es,fr,de"]):::literal
f0[["http://www.opengis.net/def/function/geosparql/distance(?coord,sPoint(1.5 41.5)^^<http://www.opengis.net/ont/geosparql#wktLiteral>') < '15^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P17"--> c4
v2 --"wdt:P625"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end