query-56626ddda5963c585b2e27a0101dfa0e

rq turtle/ttl

TODO

Use at

PREFIX gas: <http://www.bigdata.com/rdf/gas#>
SELECT ?category ?depth
{
  SERVICE <https://query.wikidata.org/bigdata/namespace/categories/sparql>
  {
    SELECT ?category ?depth
    WHERE
    {
      SERVICE gas:service
      {
        gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" .
        gas:program gas:linkType mediawiki:isInCategory .
        gas:program gas:traversalDirection "Reverse" .
        gas:program gas:in <https://en.wikipedia.org/wiki/Category:Ducks> .
        gas:program gas:out ?category .
        gas:program gas:out1 ?depth .
        gas:program gas:maxIterations 8 .
      }
    }
  }
}
ORDER BY ASC(?depth)

Query found at