title: Retrieving all paths in an OWL class hierarchy with SPARQL and Jena
body: <p>I have an RDF graph of with a hierarchy three levels deep.  I want to retrieve all the paths starting from the root of the class hierarchy (i.e., <code>owl:Thing</code>) down to classes in the third level without using a reasoner.  For instance, I would like the path
  C<sub>1</sub> &rightarrow;
  C<sub>2</sub> &rightarrow;
  C<sub>3</sub> 
  is a path, where each 
  C<sub>i</sub>
  is a class at the i<sup>th</sup> level of the hierarchy.</p>
  
  <p>I need to retrieve all the paths in the RDF graph using the breadth first search algorithm with no considerations to the object properties in the graph.</p>