query-da49cfe456111c0ce330a5ea6061314e
List of German Research Foundation Applicants (with GEPRIS Historisch-ID) (1920 - 1945) with living descendents). It would also be nice to have a genealogy graph of this cases. Nice to have would also be a network of all applicants with kinship ties to each other. My SPARQL knowledge is only basic, so I would be happy about some help! (P9044)GEPRIS Historisch person ID I'd like to have a list of living descentants of applicants in the GEPRIS Historisch Database (compare https://www.wikidata.org/wiki/Wikidata:GEPRIS_Historisch_(DFG)/deMore information and some related SPARQL can be found here: 09:05, 30 November 2021 (UTC)) talk (Richirikken
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?value ?descendant ?descendantLabel ?descendantDescription ?dob
{
?item wdt:P9044 ?value .
?item wdt:P40+ ?descendant .
?descendant wdt:P31 wd:Q5 .
FILTER NOT EXISTS { ?descendant p:P570 [] }
OPTIONAL { ?descendant wdt:P569 ?dob }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?descendant"):::projected
v4("?dob"):::projected
v2("?item"):::projected
v3("?value"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c5(["wd:Q5"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:P570"--> e0a1
e0v1("?descendant"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"p:P570"--> a1
v2 --"p:direct/P9044"--> v3
v2 --"p:direct/P40"--> v1
v1 --"p:direct/P31"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P569".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end