query-2f8acec563adc1974c67aec9336e9595

rq turtle/ttl

Todesart und Todesursache der Menschen in Dresden (Tree)

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#>
#---------------------------------------------------------------------------------------
# Todesart und Todesursache der Menschen in Dresden
#---------------------------------------------------------------------------------------
#defaultView:Tree
select ?todesart ?todesartLabel ?todesursache ?todesursacheLabel ?person ?personLabel ?personDescription ?image
where {
  ?item wdt:P20 wd:Q1731.
  ?item wdt:P1196 ?todesart.
  optional {
     ?item wdt:P20 wd:Q1731.
     ?item wdt:P1196 ?todesart.  
     ?item wdt:P509 ?todesursache.
      optional {
       ?person wdt:P20 wd:Q1731.
       ?person wdt:P509 ?todesursache.
        OPTIONAL { ?person wdt:P18 ?image. }
      }
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?image"):::projected v1("?item") v4("?person"):::projected v2("?todesart"):::projected v3("?todesursache"):::projected c7(["bd:serviceParam"]):::iri c9(["de,en"]):::literal c2(["wd:Q1731"]):::iri v1 --"wdt:P20"--> c2 v1 --"wdt:P1196"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P20".-> c2 v1 --"wdt:P1196"--> v2 v1 --"wdt:P509"--> v3 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P20".-> c2 v4 --"wdt:P509"--> v3 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P18".-> v5 end end end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end