query-96f8e73b2d86edd33a5fa9406b4b39fb
Theklan
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#>
SELECT ?item ?itemLabel ?distance
WHERE
{
VALUES ?my_location { "Point(2.294479 48.858296)"^^geo:wktLiteral }
SERVICE wikibase:around
{
?item wdt:P625 ?location .
bd:serviceParam wikibase:center ?my_location .
bd:serviceParam wikibase:radius "1" .
bd:serviceParam wikibase:distance ?distance .
}
FILTER (?distance = 1.0)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?distance"):::projected
v3("?item"):::projected
v4("?location")
v2("?my_location")
c7(["1"]):::literal
c4(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?distance = '1.0^^xsd:decimal'"]]
f0 --> v1
bind1[/VALUES ?my_location/]
bind1-->v2
bind10([sPoint(2.294479 48.858296)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"])
bind10 --> bind1
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v3 --"wdt:P625"--> v4
c4 --"wikibase:center"--> v2
c4 --"wikibase:radius"--> c7
c4 --"wikibase:distance"--> v1
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"wikibase:language"--> c11
end