[protege-owl] Ancestor and Descendant classes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[protege-owl] Ancestor and Descendant classes


Hi List,


It seems that while getting the descendant and ancestor classes of the asserted ontology with the methods “VegetarianPizza.getNamedSubclasses(true)” and “VegetarianPizza.getNamedSuperclasses(true) “ respectively, then the class “VegetarianPizza” is also being included in it…


In this case we can interpret that it is because of the fact that every class is a subclass (superclass) of itself… but this behavior does not happen with the inferred ontology, why? Is it correct this way? or is it a bug?