query-1d7553ff9fa1400cc15fc90ce20b7643

rq turtle/ttl

Objekte zerstört vor 1946, ohne altesdresden

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#---------------------------------------------------------------------------------------
# Objekte zerstört vor 1946, ohne altesdresden
#---------------------------------------------------------------------------------------
#defaultView:Table;Map;
SELECT ?item ?itemLabel ?itemDescription ?aufloesung ?streetLabel ?housenumber ?image  ?coordinate
WHERE
{
  ?item wdt:P131 wd:Q1731.  # in Dresden
  MINUS { ?item wdt:P11855 [] } . # kein altesdresden
  ?item wdt:P576 ?aufloesung.         # Erbaut am
  FILTER (?aufloesung <= "1946-01-01T00:00:00Z"^^xsd:dateTime)  # vor 1945
  OPTIONAL { ?item wdt:P18  ?image . }
  OPTIONAL { ?item wdt:P625 ?coordinate. }
  OPTIONAL { ?item wdt:P669 ?street.  }                     # Straße
  OPTIONAL { ?item p:P669 [  pq:P670 ?housenumber ]  . }    # Hausnummer  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en"  }
}
order by ?aufloesung ?streetLabel ?housenumber

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?aufloesung"):::projected v6("?coordinate"):::projected v3("?housenumber"):::projected v5("?image"):::projected v4("?item"):::projected v7("?street") v2("?streetLabel"):::projected a1((" ")) a2((" ")) c12(["bd:serviceParam"]):::iri c14(["de,en"]):::literal c3(["wd:Q1731"]):::iri f0[["?aufloesung <= '1946-01-01T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 v4 --"p:direct/P131"--> c3 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v4 --"p:direct/P11855"--> a1 end v4 --"p:direct/P576"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P18".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P625".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P669".-> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; a2 -."p:qualifier/P670".-> v3 v4 --"p:P669"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end