query-474d600e1d619ee52fa2bc9608b32585
Verkehrsobjekte in Dresden ohne physische Verbindung
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#>
PREFIX schema: <http://schema.org/>
#-------------------------------------------------------------------------------
# Verkehrsobjekte in Dresden ohne physische Verbindung
#-------------------------------------------------------------------------------
#defaultView:Map
SELECT ?item ?itemLabel ?coord (count (?connect) as ?anzahl) ?rgb
WHERE {
?item wdt:P131 wd:Q1731.
VALUES ?instance_of {
wd:Q34442 # Straße
wd:Q79007 # Innerortstraße
wd:Q21000333 # Einkaufsstraße
wd:Q174782 # Platz
wd:Q537127 # Straßenbrücke
wd:Q3397519 # Spannbetonbrücke
wd:Q1055465 # Balkenbrücke
}
?item wdt:P31 ?instance_of.
OPTIONAL {?item wdt:P2789 ?connect. }
Optional{ ?item wdt:P625 ?coord. }
BIND( IF( BOUND(?connect) , "6db26c", "ff2d00") AS ?rgb).
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
}
group by ?item ?itemLabel ?coord ?rgb
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?anzahl")
v3("?connect"):::projected
v4("?coord"):::projected
v2("?instance_of")
v1("?item"):::projected
v5("?rgb"):::projected
c7(["bd:serviceParam"]):::iri
c9(["de,en"]):::literal
c2(["wd:Q1731"]):::iri
v1 --"wdt:P131"--> c2
bind0[/VALUES ?instance_of/]
bind0-->v2
bind00(["wd:Q34442"])
bind00 --> bind0
bind01(["wd:Q79007"])
bind01 --> bind0
bind02(["wd:Q21000333"])
bind02 --> bind0
bind03(["wd:Q174782"])
bind03 --> bind0
bind04(["wd:Q537127"])
bind04 --> bind0
bind05(["wd:Q3397519"])
bind05 --> bind0
bind06(["wd:Q1055465"])
bind06 --> bind0
v1 --"wdt:P31"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2789".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v4
end
bind1[/"if(bound(?connect),'6db26c','ff2d00')"/]
v3 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind3[/"count(?connect)"/]
v3 --o bind3
bind3 --as--o v6