query-b9e9574c2d845eaeec66a122c7eedd5d

rq turtle/ttl

Straßen und Plätze in Torgau

Use at

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 und Plätze in Torgau
#---------------------------------------------------------------------------------------
#defaultView:Map{"layer":"?instance_ofLabel"}
SELECT  ?item ?itemLabel ?itemDescription ?coordinate ?commons ?instance_ofLabel
WHERE {    
  ?item (wdt:P131/wdt:P279*) wd:Q12062.                   # liegt in Verwaltungseinheit Torgau
    VALUES ?instance_of { 
      wd:Q79007      # Innerortstraße
      wd:Q21000333   # Einkaufsstraße 
      wd:Q174782     # Platz
    } 
  ?item wdt:P31 ?instance_of.                            # ist Straße oder Platz  
  OPTIONAL{?item wdt:P625 ?coordinate.}                  # Koordinate für Kartendarstellung auslesen
  OPTIONAL{?item wdt:P373 ?commons.}                     
  #BIND(IF(BOUND(?street),"FFA500","7FFF00") AS ?rgb)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en,[AUTO_LANGUAGE]". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?commons"):::projected v3("?coordinate"):::projected v2("?instance_of") v1("?item"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c3(["wd:Q12062"]):::iri c10(["de,en,#91;AUTO_LANGUAGE#93;"]):::literal v1 --"wdt:P131"--> a1 a1 --"wdt:P279"--> c3 bind0[/VALUES ?instance_of/] bind0-->v2 bind00(["wd:Q79007"]) bind00 --> bind0 bind01(["wd:Q21000333"]) bind01 --> bind0 bind02(["wd:Q174782"]) bind02 --> bind0 v1 --"wdt:P31"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P625".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P373".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end