query-2f809d9a860eb4680bbd7d37270c98c4

rq turtle/ttl

Objekte ohne Eigenschaft "Straße"

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#>
#---------------------------------------------------------------------------------------
# Objekte ohne Eigenschaft "Straße" 
#---------------------------------------------------------------------------------------
#defaultView:Map{"layer":"?instance_ofLabel"}
SELECT  ?item ?itemLabel ?itemDescription ?coordinate ?instance_of ?instance_ofLabel
WHERE {    
  {
  ?item wdt:P131 wd:Q1731.                   # liegt in Verwaltungseinheit Dresden
  ?item wdt:P625 ?coordinate.                # kein Objekt, was eine Koordinate besitzt
  OPTIONAL{?item wdt:P669 ?street.}
  FILTER(!BOUND(?street)).   
  }
  union
  {
  ?item wdt:P131 wd:Q1731.                   # liegt in Verwaltungseinheit Dresden
    VALUES ?instance_of { 
      wd:Q79007      # Innerortstraße
      wd:Q21000333   # Einkaufsstraße 
      wd:Q174782     # Platz
    } 
  ?item wdt:P31 ?instance_of.                # ist Straße oder Platz  
  ?item wdt:P31 ?coordinate.
  }
  #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; v3("?coordinate"):::projected v4("?instance_of"):::projected v2("?item"):::projected v1("?street") c7(["bd:serviceParam"]):::iri c2(["wd:Q1731"]):::iri c9(["de,en,#91;AUTO_LANGUAGE#93;"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P131"--> c2 bind0[/VALUES ?instance_of/] bind0-->v4 bind00(["wd:Q79007"]) bind00 --> bind0 bind01(["wd:Q21000333"]) bind01 --> bind0 bind02(["wd:Q174782"]) bind02 --> bind0 v2 --"wdt:P31"--> v4 v2 --"wdt:P31"--> v3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; f1[["not bound(?street)"]] f1 --> v1 v2 --"wdt:P131"--> c2 v2 --"wdt:P625"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P669".-> v1 end end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end