query-d2531580aee15f7f7c7ff4fb8f02ff69
HLS humans without date information SELECT ?item ?itemLabel ?dob ?dod ?viaf ?gnd ?erst ?start ?fl WHERE { ?item wdt:P902 ?hls. ?item wdt:P31 wd:Q5 . OPTIONAL { ?item wdt:P569 ?dob . } OPTIONAL { ?item wdt:P570 ?dod . } OPTIONAL { ?item wdt:P214 ?viaf . } OPTIONAL { ?item wdt:P227 ?gnd . } OPTIONAL { ?item wdt:P1249 ?erst . } OPTIONAL { ?item wdt:P2031 ?start . } OPTIONAL { ?item wdt:P1317 ?fl . } FILTER NOT EXISTS { ?item wdt:P569 ?dob } . FILTER NOT EXISTS { ?item wdt:P570 ?dod } . FILTER NOT EXISTS { ?item wdt:P2031 ?start . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language }
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#>
# HLS humans without date information
SELECT ?item ?itemLabel ?dob ?dod ?viaf ?gnd ?erst ?start ?fl
WHERE
{
?item wdt:P902 ?hls.
?item wdt:P31 wd:Q5 .
OPTIONAL { ?item wdt:P569 ?dob . }
OPTIONAL { ?item wdt:P570 ?dod . }
OPTIONAL { ?item wdt:P214 ?viaf . }
OPTIONAL { ?item wdt:P227 ?gnd . }
OPTIONAL { ?item wdt:P1249 ?erst . }
OPTIONAL { ?item wdt:P2031 ?start . }
OPTIONAL { ?item wdt:P1317 ?fl . }
FILTER NOT EXISTS { ?item wdt:P569 ?dob } .
FILTER NOT EXISTS { ?item wdt:P570 ?dod } .
FILTER NOT EXISTS { ?item wdt:P2031 ?start . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?dob"):::projected
v3("?dod"):::projected
v8("?erst"):::projected
v9("?fl"):::projected
v7("?gnd"):::projected
v5("?hls")
v1("?item"):::projected
v2("?start"):::projected
v6("?viaf"):::projected
c12(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P2031"--> e0v2
e0v1("?item"):::projected
e0v2("?start"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P2031"--> v2
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P570"--> e1v2
e1v2("?dod"):::projected
e1v1("?item"):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c2
f1 --> v3
v1 --"wdt:P570"--> v3
f2[["not "]]
subgraph f2e2["Exists Clause"]
e2v1 --"wdt:P569"--> e2v2
e2v2("?dob"):::projected
e2v1("?item"):::projected
end
f2--EXISTS--> f2e2
f2 --> v1
f2 --> c3
f2 --> v4
v1 --"wdt:P569"--> v4
v1 --"wdt:P902"--> v5
v1 --"wdt:P31"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P569".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P570".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P214".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P227".-> v7
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1249".-> v8
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2031".-> v2
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1317".-> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end