title: Finding The Super Class of a class just before Top Class with Jena
body: <p>I am using jena framework to process my owl ontology. </p>
  
  <p>I want to write a method which can find the super class it belongs which is just under the Thing class. </p>
  
  <p>Four example, if there are 5 level hierarchy, lets say first level is Thing, second level is secondAncestor, third level is ThirdAncestor and so on. If I pass a class FifthAncestor, I want to return SecondAncestor because Thing does not make any sense.  If I pass ThirdAncestor, I want to return SecondAncestor. In other words, most general class it belongs to but not the top one (Thing). </p>