I need to retrieve the SubClassOf axioms for an anonymous ancestor of the given class. For example:
Class Person is a subclass of 'hasName some Name'.
Class Man is a subclass of Person.
Then I need to be able to retrieve hasName some Name
on the class Man
by accessing the axioms provided to the class Man
by its anonymous ancestor.
Now I could obviously do so with recursion, however I wanted to know if there is another way through OWL API by which I could access this information. Thanks in advance for the help.