query-c45105a3e028e189547cbc99475965e8
Straßen in Deutschland ohne Stadt
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#>
#-----------------------------------------------------------------------
# Straßen in Deutschland ohne Stadt
#-----------------------------------------------------------------------
#defaultView:map;Table
SELECT ?item ?itemLabel ?image ?coordinates
WHERE {
?item (wdt:P31/wdt:P279*) wd:Q79007. # Innerortsstraßen
?item wdt:P17 wd:Q183. # in Deutschland
MINUS { ?item wdt:P131 _:b1. } # ohne "liegt in Verwaltungseinheit" P131
OPTIONAL { ?item wdt:P18 ?image. } # Bild
OPTIONAL { ?item wdt:P625 ?coordinates. } # Koordinate
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coordinates"):::projected
v3("?image"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
a2((" "))
a1((" "))
c12(["de"]):::literal
c10(["bd:serviceParam"]):::iri
c3(["wd:Q79007"]):::iri
c5(["wd:Q183"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P17"--> c5
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P131"--> a2
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end