return false;
}
public Set<OWLClass> getParents(OWLClass object) {
ParentClassExtractor parentClassExtractor = new ParentClassExtractor();
// If the object is thing then there are no
// parents
if (object.equals(root)) {
return Collections.emptySet();
}
Set<OWLClass> result = new HashSet<OWLClass>();
// Thing if the object is a root class
if (rootFinder.getTerminalElements().contains(object)) {
result.add(root);
}
// Not a root, so must have another parent
parentClassExtractor.reset();
parentClassExtractor.setCurrentClass(object);
for (OWLOntology ont : ontologies) {
for (OWLAxiom ax : ont.getAxioms(object)) {
ax.accept(parentClassExtractor);
}
}
result.addAll(parentClassExtractor.getResult());
return result;
}