|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticweb.owl.util.SimpleRootClassChecker
public class SimpleRootClassChecker
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 16-Dec-2006
A utility class that can be used to determine is a class is a syntactic direct subclass of owl:Thing. A class is considered NOT to be a syntactic direct subclass of owl:Thing if ANY of the following conditions apply:
EquivalentClasses(A, (B and prop some C))
This functionality is provided because it is useful for displaying class hierarchies in editors and browsers. In these situations it is needed because not all "orphan" classes are asserted to be subclasses of owl:Thing. For example, if the only referencing axiom of class A was ObjectDomain(propP A) then A is a syntactic subclass of owl:Thing
Constructor Summary | |
---|---|
SimpleRootClassChecker(java.util.Set<OWLOntology> ontologies)
Creates a root class checker, which examines axioms contained in ontologies from the specified set in order to determine if a class is a syntactic subclass of owl:Thing |
Method Summary | |
---|---|
boolean |
isRootClass(OWLClass cls)
Determines if the specified class is a direct syntactic subclass of owl:Thing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleRootClassChecker(java.util.Set<OWLOntology> ontologies)
ontologies
- The ontologies whose axioms are to be taken into consideration
when determining if a class is a syntactic direct subclass of owl:ThingMethod Detail |
---|
public boolean isRootClass(OWLClass cls)
isRootClass
in interface RootClassChecker
cls
- The class to be checked.
true
if the class is a direct syntactic root class of
owl:Thing, otherwise false
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |