query-b1494c3a4730aab54b84f2204318daff
Father genealogical
Use at
- https://query.wikidata.org/sparql
PREFIX gas: <http://www.bigdata.com/rdf/gas#>
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 ?father ?fatherLabel ?child ?childLabel ?depth ?dob WHERE
{
SERVICE gas:service {
gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q7747 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child .
gas:program gas:linkType wdt:P22 . }
OPTIONAL {?father wdt:P569 ?dob.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru". }
} order by ?depth
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?child"):::projected
v1("?depth"):::projected
v4("?dob"):::projected
v2("?father"):::projected
c2(["gas:program"]):::iri
c16(["ru"]):::literal
c11(["wdt:P22"]):::iri
c4(["com.bigdata.rdf.graph.analytics.BFS"]):::literal
c14(["bd:serviceParam"]):::iri
c6(["wd:Q7747"]):::iri
subgraph s1["http://www.bigdata.com/rdf/gas#service"]
style s1 stroke-width:4px;
c2 --"gas:gasClass"--> c4
c2 --"gas:in"--> c6
c2 --"gas:out"--> v2
c2 --"gas:out1"--> v1
c2 --"gas:out2"--> v3
c2 --"gas:linkType"--> c11
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v4
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c14 --"wikibase:language"--> c16
end