Hi Saumi,
You can do something like this:
OWLModel owlModel = ... // code for loading theh owl model
Collection<?> classes = owlModel.getUserDefinedOWLNamedClasses();
for (Iterator<?> it = classes.iterator(); it.hasNext();) {
OWLNamedClass cls = (OWLNamedClass) it.next();
// try getInferredSubclasses(), getDirectSubclasses() etc on OWLNamedClass to get the sub-classes
// call the method recursively
}
Hope that gives you a starting point ...
Cheers,
Thira.
_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owlInstructions for unsubscribing:
http://protege.stanford.edu/doc/faq.html#01a.03