query-4a0e80612dc5afe7c20bdd2399a9c90c
TODO
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#>
#defaultView:Graph
SELECT ?item ?itemLabel ?has_cause
WHERE
{
SERVICE gas:service
{
gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" .
gas:program gas:in wd:Q362 . # World War II
gas:program gas:out ?item .
gas:program gas:out1 ?depth .
gas:program gas:linkType wdt:P828 .
gas:program gas:traversalDirection "Undirected" .
gas:program gas:maxIterations 5 .
}
OPTIONAL { ?item wdt:P828 ?has_cause . }
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;
v2("?depth")
v3("?has_cause"):::projected
v1("?item"):::projected
c2(["gas:program"]):::iri
c10(["wdt:P828"]):::iri
c4(["com.bigdata.rdf.graph.analytics.SSSP"]):::literal
c16(["bd:serviceParam"]):::iri
c12(["Undirected"]):::literal
c14(["5^^xsd:integer"]):::literal
c18(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q362"]):::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"--> v1
c2 --"gas:out1"--> v2
c2 --"gas:linkType"--> c10
c2 --"gas:traversalDirection"--> c12
c2 --"gas:maxIterations"--> c14
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -->c10--> v3
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c16 -."wikibase:language".-> c18
end