query-84fa92ea8bb52803e49c3a169c9c61c0

rq turtle/ttl

Subclasses of C found by the Gather, Apply & Scatter service SELECT ?subclass ?subclassLabel ?class ?classLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS"; gas:in wd:Q11446; gas:linkType wdt:P279; gas:traversalDirection "Reverse"; gas:out ?subclass; gas:out1 ?depth; gas:out2 ?class. } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY ?depth

Use at

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#>
#Subclasses of C found by the Gather, Apply & Scatter service
SELECT ?subclass ?subclassLabel ?class ?classLabel ?depth
WHERE {
  SERVICE gas:service {
    gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS";
      gas:in wd:Q11446;
      gas:linkType wdt:P279;
      gas:traversalDirection "Reverse";
      gas:out ?subclass;
      gas:out1 ?depth;
      gas:out2 ?class.
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?depth

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?class"):::projected v1("?depth"):::projected v2("?subclass"):::projected c2(["gas:program"]):::iri c10(["Reverse"]):::literal c17(["en"]):::literal c8(["wdt:P279"]):::iri c4(["com.bigdata.rdf.graph.analytics.BFS"]):::literal c15(["bd:serviceParam"]):::iri c6(["wd:Q11446"]):::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:linkType"--> c8 c2 --"gas:traversalDirection"--> c10 c2 --"gas:out"--> v2 c2 --"gas:out1"--> v1 c2 --"gas:out2"--> v3 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c15 --"wikibase:language"--> c17 end