query-91a7180e3be0b5addad7094db6d19924

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX gas: <http://www.bigdata.com/rdf/gas#>

SELECT ?super (?aLength + ?bLength as ?length) WHERE {
  SERVICE gas:service {
    gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" ;
                gas:in wd:Q5 ;
                gas:traversalDirection "Forward" ;
                gas:out ?super ;
                gas:out1 ?aLength ;
                gas:maxIterations 10 ;
                gas:linkType wdt:P279 .
  }
  SERVICE gas:service {
    gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" ;
                gas:in wd:Q349 ;
                gas:traversalDirection "Forward" ;
                gas:out ?super ;
                gas:out1 ?bLength ;
                gas:maxIterations 10 ;
                gas:linkType wdt:P279 .
  }  
} ORDER BY ?length
LIMIT 1

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?aLength"):::projected v4("?bLength"):::projected v5("?length") v2("?super"):::projected c2(["gas:program"]):::iri c4(["com.bigdata.rdf.graph.analytics.SSSP"]):::literal c14(["wdt:P279"]):::iri c15(["wd:Q349"]):::iri c6(["wd:Q5"]):::iri c8(["Forward"]):::literal c12(["10^^xsd:integer"]):::literal subgraph s1["http://www.bigdata.com/rdf/gas#service"] style s1 stroke-width:4px; c2 --"gas:gasClass"--> c4 c2 --"gas:in"--> c6 c2 --"gas:traversalDirection"--> c8 c2 --"gas:out"--> v2 c2 --"gas:out1"--> v3 c2 --"gas:maxIterations"--> c12 c2 --"gas:linkType"--> c14 end subgraph s1["http://www.bigdata.com/rdf/gas#service"] style s1 stroke-width:4px; c2 --"gas:gasClass"--> c4 c2 --"gas:in"--> c15 c2 --"gas:traversalDirection"--> c8 c2 --"gas:out"--> v2 c2 --"gas:out1"--> v4 c2 --"gas:maxIterations"--> c12 c2 --"gas:linkType"--> c14 end bind0[/"?aLength + ?bLength"/] v3 --o bind0 v4 --o bind0 bind0 --as--o v5