query-1285c8eb1b550d534423179dc534d33e
bounding box
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 geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?item_label ?location
WHERE
{
SERVICE wikibase:box {
?item wdt:P625 ?location.
bd:serviceParam wikibase:cornerWest "Point(11.34 50.66)"^^geo:wktLiteral.
bd:serviceParam wikibase:cornerEast "Point(11.55 50.73)"^^geo:wktLiteral.
}
?item wdt:P131+ wd:Q1205.
wd:Q106589819 ^wdt:P279*/^wdt:P31 ?item .
MINUS {
{ ?item wdt:P4552 ?range . } UNION { ?item wdt:P706 ?feature . }
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?item rdfs:label ?item_label.
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?feature")
v1("?item"):::projected
v5("?item_label"):::projected
v2("?location"):::projected
v3("?range")
a1((" "))
c9(["wd:Q1205"]):::iri
c7([sPoint(11.55 50.73)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
c5([sPoint(11.34 50.66)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
c17(["en"]):::literal
c3(["bd:serviceParam"]):::iri
c11(["wd:Q106589819"]):::iri
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
v1 --"wdt:P131"--> c9
a1 --"wdt:P279"--> c11
v1 --"wdt:P31"--> a1
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P706"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P4552"--> v3
end
union0r <== or ==> union0l
end
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c3 --"wikibase:language"--> c17
v1 --"rdfs:label"--> v5
end