query-809d35c68f18e16a7b0c5fa133f5c5b9
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?iteme ?itemeLabel ?condamnationLabel ?decesLabel WHERE {
?iteme wdt:P31 wd:Q5.
?iteme wdt:P21 wd:Q6581072.
#sorcellerie
OPTIONAL {
?iteme wdt:P1399 wd:Q259745.
?iteme wdt:P1399 ?condamnation.
}
#nécromancie
OPTIONAL {
?iteme wdt:P1399 wd:Q337935.
?iteme wdt:P1399 ?condamnation.
}
#bucher
OPTIONAL {
?iteme wdt:P509 wd:Q468455.
?iteme wdt:P509 ?deces.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], fr". }
FILTER((BOUND(?deces))|| (BOUND(?condamnation)))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?condamnation")
v1("?deces")
v3("?iteme"):::projected
c6(["wd:Q259745"]):::iri
c9(["wd:Q468455"]):::iri
c4(["wd:Q6581072"]):::iri
c7(["wd:Q337935"]):::iri
c13(["#91;AUTO_LANGUAGE#93;, fr"]):::literal
c11(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
f0[["(bound(?deces) || bound(?condamnation))"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P31"--> c2
v3 --"wdt:P21"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1399".-> c6
v3 --"wdt:P1399"--> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1399".-> c7
v3 --"wdt:P1399"--> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P509".-> c9
v3 --"wdt:P509"--> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end