query-0ce23155bd7dd544fb9edef70d583a4d
Nazi crimes and associated perpetratorsoptional filter by place of Gestapo terror@todo's (Q6983405)Nazi crime (P31)instance of
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?crime ?crimeLabel ?crimeDescription ?perpetrator ?perpetratorLabel WHERE {
?crime wdt:P31 wd:Q6983405.
OPTIONAL { ?crime wdt:P8031 ?perpetrator. }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "de".
?crime rdfs:label ?crimeLabel;
schema:description ?crimeDescription.
?perpetrator rdfs:label ?perpetratorLabel.
}
}
ORDER BY (?crime) (?perpetrator)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?crime"):::projected
v4("?crimeDescription"):::projected
v3("?crimeLabel"):::projected
v2("?perpetrator"):::projected
v5("?perpetratorLabel"):::projected
c7(["de"]):::literal
c5(["bd:serviceParam"]):::iri
c2(["wd:Q6983405"]):::iri
v1 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P8031".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v1 --"rdfs:label"--> v3
v1 --"schema:description"--> v4
v2 --"rdfs:label"--> v5
end