query-90323c271b36fe6798889903c31d16b6
Около Перми:
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?coor WHERE {
wd:Q915 wdt:P625 ?Loc.
SERVICE wikibase:around {
?item wdt:P625 ?coor.
bd:serviceParam wikibase:center ?Loc.
bd:serviceParam wikibase:radius "50".
}
#FILTER { #?item (wdt:P31/wdt:P279*) wd:Q618123.
#?item wdt:P17 wd:Q159.
?item rdfs:label ?itemLabel.
MINUS {
?item rdfs:label ?label2.
FILTER((LANG(?label2)) = "ru")
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?Loc")
v3("?coor"):::projected
v2("?item"):::projected
v4("?itemLabel"):::projected
v5("?label2")
c4(["bd:serviceParam"]):::iri
c1(["wd:Q915"]):::iri
c7(["50"]):::literal
c1 --"wdt:P625"--> v1
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v2 --"wdt:P625"--> v3
c4 --"wikibase:center"--> v1
c4 --"wikibase:radius"--> c7
end
v2 --"rdfs:label"--> v4
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
f1[["?label2 = 'ru'"]]
f1 --> v5
v2 --"rdfs:label"--> v5
end