query-a23c27fe0138c96de8d05a24f12dde16
SPARQL
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 ?human ?humanLabel ?fatherLabel ?motherLabel ?dateOfBirth ?placeOfBirthLabel ?dateOfDeath ?placeOfDeathLabel ?spouseLabel ?famLabel
?isni
?viaf
?geni
?todo
WHERE
{
?human wdt:P31 wd:Q5 .
?human wdt:P136 wd:Q14390274
OPTIONAL{?human wdt:P22 ?father .}
OPTIONAL{?human wdt:P25 ?mother .}
OPTIONAL{?human wdt:P569 ?dateOfBirth .}
OPTIONAL{?human wdt:P19 ?placeOfBirth .}
OPTIONAL{?human wdt:P570 ?dateOfDeath .}
OPTIONAL{?human wdt:P20 ?placeOfDeath .}
OPTIONAL{?human wdt:P26 ?spouse .}
OPTIONAL{?human wdt:P53 ?fam .}
OPTIONAL{?human wdt:P213 ?isni .}
OPTIONAL{?human wdt:P214 ?viaf .}
OPTIONAL{?human wdt:P2600 ?geni .}
OPTIONAL{?human wdt:P4931 ?todo .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} ORDER BY ?dateOfBirth
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dateOfBirth"):::projected
v6("?dateOfDeath"):::projected
v9("?fam")
v3("?father")
v12("?geni"):::projected
v2("?human"):::projected
v10("?isni"):::projected
v4("?mother")
v5("?placeOfBirth")
v7("?placeOfDeath")
v8("?spouse")
v13("?todo"):::projected
v11("?viaf"):::projected
c4(["wd:Q14390274"]):::iri
c18(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c20(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P136"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P22".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P25".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v1
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P19".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P20".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P26".-> v8
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P53".-> v9
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P213".-> v10
end
subgraph optional9["(optional)"]
style optional9 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P214".-> v11
end
subgraph optional10["(optional)"]
style optional10 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2600".-> v12
end
subgraph optional11["(optional)"]
style optional11 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P4931".-> v13
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c18 --"wikibase:language"--> c20
end