query-1db261f9680c1520726d754f65019448
Mill 1
Use at
- https://query.wikidata.org/sparql
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?item ?itemLabel ?itemDescription ?sitelinks ?date_of_birth
?cause_of_deathLabel ?cod_ref_propLabel ?cod_ref_valueLabel
?manner_of_deathLabel ?mod_ref_propLabel ?mod_ref_valueLabel
WHERE
{
?item wdt:P31 wd:Q5 .
?item wdt:P570 "+2001-08-25T00:00:00Z"^^xsd:dateTime .
?item wikibase:sitelinks ?sitelinks .
OPTIONAL { ?item wdt:P569 ?date_of_birth . }
OPTIONAL
{
?item p:P509 ?cod_stm .
?cod_stm ps:P509 ?cause_of_death .
OPTIONAL
{
?cod_stm prov:wasDerivedFrom ?cod_ref .
?cod_ref ?cod_ref_pr ?cod_ref_value .
?cod_ref_prop wikibase:reference ?cod_ref_pr .
}
}
OPTIONAL
{
?item p:P1196 ?mod_stm .
?mod_stm ps:P1196 ?manner_of_death .
OPTIONAL
{
?mod_stm prov:wasDerivedFrom ?mod_ref .
?mod_ref ?mod_ref_pr ?mod_ref_value .
?mod_ref_prop wikibase:reference ?mod_ref_pr .
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
ORDER BY DESC(?sitelinks)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?cause_of_death")
v6("?cod_ref")
v7("?cod_ref_pr")
v9("?cod_ref_prop")
v8("?cod_ref_value")
v4("?cod_stm")
v3("?date_of_birth"):::projected
v2("?item"):::projected
v11("?manner_of_death")
v12("?mod_ref")
v13("?mod_ref_pr")
v15("?mod_ref_prop")
v14("?mod_ref_value")
v10("?mod_stm")
v1("?sitelinks"):::projected
c16(["en"]):::literal
c14(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c4(["+2001-08-25T00:00:00Z^^xsd:dateTime"]):::literal
v2 --"p:direct/P31"--> c2
v2 --"p:direct/P570"--> c4
v2 --"wikibase:sitelinks"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P569".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P509".-> v4
v4 --"p:statement/P509"--> v5
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."prov:wasDerivedFrom".-> v6
v6 -->v7--> v8
v9 --"wikibase:reference"--> v7
end
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P1196".-> v10
v10 --"p:statement/P1196"--> v11
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v10 -."prov:wasDerivedFrom".-> v12
v12 -->v13--> v14
v15 --"wikibase:reference"--> v13
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end