query-31e77da878dfd26444166008e03bbf82
]reply[14:57, 23 February 2018 (UTC) Jura--- . (Q329225)Christian Günther I, Count of Schwarzburg-Sondershausen and (Q18206637)Elisabeth of Mansfeld-Hinterort has the wrong mother. Also (Q952175)Christina Hvide Maybe like the above
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 ?depth ?item ?itemLabel ?dob2 ?dod2
WHERE
{
BIND( wd:Q57224 as ?s )
?s wdt:P569 ?dob ; wdt:P570 ?dod .
SERVICE gas:service {
gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" ;
gas:in wd:Q57224 ;
gas:traversalDirection "Forward" ;
gas:out ?item ;
gas:out1 ?depth ;
gas:maxIterations 100 ;
gas:linkType wdt:P40 .
}
OPTIONAL { ?item wdt:P569 ?dob2 }
OPTIONAL { ?item wdt:P570 ?dod2 }
FILTER ( !BOUND(?dod2) || ?dod2 < ?dob )
FILTER ( !BOUND(?dob2) || ?dob2 < ?dod )
FILTER ( !BOUND(?dod2) || ?dod2 < ?dob )
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?depth"):::projected
v2("?dob")
v3("?dob2"):::projected
v4("?dod")
v1("?dod2"):::projected
v6("?item"):::projected
v5("?s")
c4(["gas:program"]):::iri
c6(["com.bigdata.rdf.graph.analytics.SSSP"]):::literal
c16(["wdt:P40"]):::iri
c14(["100^^xsd:integer"]):::literal
c18(["bd:serviceParam"]):::iri
c8(["wd:Q57224"]):::iri
c10(["Forward"]):::literal
c20(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["(not bound(?dod2) || ?dod2 < ?dob)"]]
f0 --> v1
f0 --> v2
f1[["(not bound(?dob2) || ?dob2 < ?dod)"]]
f1 --> v3
f1 --> v4
f2[["(not bound(?dod2) || ?dod2 < ?dob)"]]
f2 --> v1
f2 --> v2
bind3[/"'wd:Q57224'"/]
bind3 --as--o v5
v5 --"wdt:P569"--> v2
v5 --"wdt:P570"--> v4
subgraph s1["http://www.bigdata.com/rdf/gas#service"]
style s1 stroke-width:4px;
c4 --"gas:gasClass"--> c6
c4 --"gas:in"--> c8
c4 --"gas:traversalDirection"--> c10
c4 --"gas:out"--> v6
c4 --"gas:out1"--> v7
c4 --"gas:maxIterations"--> c14
c4 --"gas:linkType"--> c16
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."wdt:P569".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v6 -."wdt:P570".-> v1
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c18 --"wikibase:language"--> c20
end