query-679e23aca6993840f52a7a293c469cba
Hillforts within 50 km of Kaunas in Lithuania
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 bd: <http://www.bigdata.com/rdf#>
#title:Hillforts within 50 km of Kaunas in Lithuania
#defaultView:Map
SELECT ?item ?itemLabel ?coordinate ?pic WHERE {
wd:Q4115712 wdt:P625 ?Center.
SERVICE wikibase:around {
?item wdt:P625 ?coordinate.
bd:serviceParam wikibase:center ?Center;
wikibase:radius "50".
}
FILTER(EXISTS { ?item (wdt:P31/(wdt:P279*)) wd:Q744099. })
OPTIONAL { ?item wdt:P18 ?pic. }
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;
v2("?Center")
v3("?coordinate"):::projected
v1("?item"):::projected
v4("?pic"):::projected
a1((" "))
c3(["wd:Q744099"]):::iri
c4(["wd:Q4115712"]):::iri
c7(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c10(["50"]):::literal
f0[[" "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0a1
e0a1 --"wdt:P279"--> e0c3
e0v1("?item"):::projected
e0a1((" ")):::projected
e0c3(["wd:Q744099"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> c3
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
c4 --"wdt:P625"--> v2
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v1 --"wdt:P625"--> v3
c7 --"wikibase:center"--> v2
c7 --"wikibase:radius"--> c10
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v4
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c7 --"wikibase:language"--> c14
end