query-a94c211a979dd685e2b914be67992657
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 ?personLabel ?motherLabel ?mother ?fatherLabel ?father ?childLabel ?child
WHERE { VALUES ?person { wd:Q2433711 }
OPTIONAL { ?person wdt:P22 ?father . }
OPTIONAL { ?person wdt:P25 ?mother . }
OPTIONAL { ?person wdt:P40 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?child"):::projected
v2("?father"):::projected
v3("?mother"):::projected
v1("?person")
c7(["#91;AUTO_LANGUAGE#93;,de"]):::literal
c5(["bd:serviceParam"]):::iri
bind0[/VALUES ?person/]
bind0-->v1
bind00(["wd:Q2433711"])
bind00 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P22".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P25".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P40".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end