|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.man.cs.img.owl.inference.NonInferencingTaxonomyReasoner
A simple taxonomy reasoner. This implementation doesn't actually make use of a reasoner, but instead tries to determine the hierarchy through a structural examination of the class definitions. As a result it will be incomplete.
| Constructor Summary | |
NonInferencingTaxonomyReasoner()
|
|
| Method Summary | |
Set |
ancestorClassesOf(OWLClass d)
Returns the collection of all superclasses of the given class. |
Set |
descendantClassesOf(OWLClass d)
Returns the collection of all subclasses of the given class. |
void |
dumpHierarchy(PrintWriter pw)
|
void |
dumpHierarchy(PrintWriter pw,
OWLClass clazz,
int level)
|
Set |
equivalentClassesOf(OWLClass d)
Returns the collection of (named) classes which are equivalent to the given class. |
OWLOntology |
getOntology()
Get the ontology that this reasoner reasons over |
static void |
main(String[] args)
|
void |
ontologyChanged(OntologyChange event)
|
void |
setOntology(OWLOntology onto)
Set the ontology that the reasoner knows about. |
Set |
subClassesOf(OWLClass clazz)
Returns the collection of (named) most general subclasses of the given class. |
Set |
superClassesOf(OWLClass clazz)
Returns the collection of (named) most specific superclasses of the given class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NonInferencingTaxonomyReasoner()
| Method Detail |
public void setOntology(OWLOntology onto)
throws OWLException
setOntology in interface OWLReasonerOWLExceptionpublic OWLOntology getOntology()
OWLReasoner
getOntology in interface OWLReasoner
public Set superClassesOf(OWLClass clazz)
throws OWLException
OWLTaxonomyReasoner
superClassesOf in interface OWLTaxonomyReasonerOWLException
public Set subClassesOf(OWLClass clazz)
throws OWLException
OWLTaxonomyReasoner
subClassesOf in interface OWLTaxonomyReasonerOWLException
public Set ancestorClassesOf(OWLClass d)
throws OWLException
OWLTaxonomyReasoner
ancestorClassesOf in interface OWLTaxonomyReasonerOWLException
public Set descendantClassesOf(OWLClass d)
throws OWLException
OWLTaxonomyReasoner
descendantClassesOf in interface OWLTaxonomyReasonerOWLException
public Set equivalentClassesOf(OWLClass d)
throws OWLException
OWLTaxonomyReasoner
equivalentClassesOf in interface OWLTaxonomyReasonerOWLException
public void ontologyChanged(OntologyChange event)
throws OWLException
ontologyChanged in interface OntologyChangeListenerOWLException
public void dumpHierarchy(PrintWriter pw,
OWLClass clazz,
int level)
throws OWLException
OWLException
public void dumpHierarchy(PrintWriter pw)
throws OWLException
OWLExceptionpublic static void main(String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||