query-d02528d9c309ec9a7a3c09c2f3136235

rq turtle/ttl

Victims (and unknown) in Holocaust train transports from Hanover

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#>
SELECT ?deportationtrain ?deportationtrainLabel ?person ?personLabel ?roleLabel WHERE {
#  VALUES ?deportationtrain {
#   wd:Q76358132   #10 nur P793
#   wd:Q76357951   #9 nur P793
#   wd:Q104055543  #3 nur P793
#   wd:Q104055544  #3 nur P793
#   wd:Q104055463  #5 nur P793
#   wd:Q76358669   #6 nur P793
#   wd:Q76356847   #714 nur P793
#   wd:Q76356403   #4 bei P793 und 104 bei P1344  
#  }   
  ?deportationtrain wdt:P31 wd:Q61927259;
    (wdt:P1427/(wdt:P131*)) wd:Q1715. # entweder ist Hannover schon in der Property Startpunkt, oder man geht in das Item rein das als Startpoint angegeben ist und schaut nach ob es in der Verwaltungseinheit Hannover liegt 
  ?person wdt:P31 wd:Q5;
    (wdt:P793|wdt:P1344) ?deportationtrain. # weil die victims nicht einheitlich mit den Transportationtrains verknüpft sind
  OPTIONAL { ?person wdt:P2868 ?role. } # es ist ja nicht für jede Person eine Rolle angegeben - ist quasi Überprüfungsquery, um zu sehen wo die Infos fehlen: Opfer oder Holocaust-Überlebender
  MINUS { ?person wdt:P2868 wd:Q111080573. } # es gibt ja auch die Täter die zugeodnet sind zum Zug, und die werden hier abgezogen. Auskommentieren wenn man alle "Mitreisenden" haben will
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
}
ORDER BY (?deportationtrain) (?person)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?deportationtrain"):::projected v2("?person"):::projected v3("?role") a1((" ")) c5(["wd:Q1715"]):::iri c2(["wd:Q61927259"]):::iri c12(["bd:serviceParam"]):::iri c10(["wd:Q111080573"]):::iri c6(["wd:Q5"]):::iri c14(["de,en"]):::literal v1 --"wdt:P31"--> c2 v1 --"wdt:P1427"--> a1 a1 --"wdt:P131"--> c5 v2 --"wdt:P31"--> c6 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P1344"--> v1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P793"--> v1 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P2868".-> v3 end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P2868"--> c10 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end