|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.owl.util.ToldClassHierarchyReasoner
public class ToldClassHierarchyReasoner
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 22-Nov-2006
| Constructor Summary | |
|---|---|
ToldClassHierarchyReasoner(OWLOntologyManager owlOntologyManager)
|
|
| Method Summary | |
|---|---|
void |
classify()
Asks the reasoner to classify the ontology. |
void |
clearOntologies()
Clears the reasoner. |
void |
dispose()
Disposes of and cleans up any resources used by this reasoner. |
java.util.Set<java.util.Set<OWLClass>> |
getAncestorClasses(OWLDescription clsC)
Returns the collection of all superclasses of the given description. |
java.util.Set<java.util.Set<OWLClass>> |
getDescendantClasses(OWLDescription clsC)
Returns the collection of all subclasses of the given description. |
java.util.Set<OWLClass> |
getEquivalentClasses(OWLDescription clsC)
Returns the collection of (named) classes which are equivalent to the given description. |
java.util.Set<OWLClass> |
getInconsistentClasses()
A convenience methods for obtaining all classes which are inconsistent. |
java.util.Set<OWLOntology> |
getLoadedOntologies()
Gets the ontologies that have been loaded into this reasoner. |
java.util.Set<java.util.Set<OWLClass>> |
getSubClasses(OWLDescription clsC)
Returns the collection of (named) most general subclasses of the given description. |
java.util.Set<java.util.Set<OWLClass>> |
getSuperClasses(OWLDescription clsC)
Returns the collection of (named) most specific superclasses of the given description. |
boolean |
isClassified()
Determines if the reasoner has classified the ontology. |
boolean |
isDefined(OWLClass cls)
Determines if the specified class is defined in the reasoner. |
boolean |
isDefined(OWLDataProperty prop)
Determines if the specified property is defined in the reasoner. |
boolean |
isDefined(OWLIndividual ind)
Determines if the specified individual is defined in the reasoner. |
boolean |
isDefined(OWLObjectProperty prop)
Determines if the specified property is defined in the reasoner. |
boolean |
isEquivalentClass(OWLDescription clsC,
OWLDescription clsD)
Checks whether the first class is equivalent to the second class |
boolean |
isRealised()
Determines if the types of individuals have been computed by this reasoner (if supported). |
boolean |
isSatisfiable(OWLDescription clsC)
Checks whether the specified class is consistent |
boolean |
isSubClassOf(OWLDescription clsC,
OWLDescription clsD)
Checks whether the first class is a subclass of the second class |
void |
loadOntologies(java.util.Set<OWLOntology> ontologies)
Loads the specified ontologies. |
void |
realise()
Asks the reasoner to compute the types of individuals (if supported). |
void |
unloadOntologies(java.util.Set<OWLOntology> ontologies)
Unloads the specified ontologies from this reasoner. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToldClassHierarchyReasoner(OWLOntologyManager owlOntologyManager)
| Method Detail |
|---|
public void dispose()
OWLReasonerBase
dispose in interface OWLReasonerBasepublic boolean isClassified()
OWLReasonerBase
isClassified in interface OWLReasonerBasetrue if the ontology has been classified,
or false if the ontology has not been classified.public void classify()
OWLReasonerBase
classify in interface OWLReasonerBase
public boolean isRealised()
throws OWLReasonerException
OWLReasonerBase
isRealised in interface OWLReasonerBasetrue is the types of individuals have been computed,
otherwise false.
OWLReasonerException
public void realise()
throws OWLReasonerException
OWLReasonerBase
realise in interface OWLReasonerBaseOWLReasonerException
public boolean isDefined(OWLClass cls)
throws OWLReasonerException
OWLReasonerBase
isDefined in interface OWLReasonerBasecls - The class to check for.
true if the class is defined in the
reasoner, or false if the class is not defined
in the reasoner.
OWLReasonerException
public boolean isDefined(OWLObjectProperty prop)
throws OWLReasonerException
OWLReasonerBase
isDefined in interface OWLReasonerBaseprop - The property to check for.
true if the property is defined in the
reasoner, or false if the property is not defined
in the reasoner.
OWLReasonerException
public boolean isDefined(OWLDataProperty prop)
throws OWLReasonerException
OWLReasonerBase
isDefined in interface OWLReasonerBaseprop - The property to check for.
true if the property is defined in the
reasoner, or false if the property is not defined
in the reasoner.
OWLReasonerException
public boolean isDefined(OWLIndividual ind)
throws OWLReasonerException
OWLReasonerBase
isDefined in interface OWLReasonerBaseind - The individual to check for.
true if the individual is defined in the
reasoner, or false if the individual is not defined
in the reasoner.
OWLReasonerExceptionpublic void loadOntologies(java.util.Set<OWLOntology> ontologies)
OWLReasonerBase
loadOntologies in interface OWLReasonerBaseontologies - The ontolgies to be loaded.public java.util.Set<OWLOntology> getLoadedOntologies()
OWLReasonerBase
getLoadedOntologies in interface OWLReasonerBasepublic void unloadOntologies(java.util.Set<OWLOntology> ontologies)
OWLReasonerBase
unloadOntologies in interface OWLReasonerBaseontologies - The ontologies to be unloaded.public void clearOntologies()
OWLReasonerBase
clearOntologies in interface OWLReasonerBase
public boolean isSubClassOf(OWLDescription clsC,
OWLDescription clsD)
isSubClassOf in interface OWLClassReasonertrue if the first class is a subclass of the second class
public boolean isEquivalentClass(OWLDescription clsC,
OWLDescription clsD)
isEquivalentClass in interface OWLClassReasonertrue if the first class is equivalent to the second class, or
false if the first class is not equivalent to the second classpublic boolean isSatisfiable(OWLDescription clsC)
isSatisfiable in interface OWLSatisfiabilityCheckerclsC - the class to check
true if the class is consistent, or false
if the class is not consistentpublic java.util.Set<OWLClass> getInconsistentClasses()
getInconsistentClasses in interface OWLClassReasonerpublic java.util.Set<java.util.Set<OWLClass>> getSuperClasses(OWLDescription clsC)
getSuperClasses in interface OWLClassReasonerpublic java.util.Set<java.util.Set<OWLClass>> getAncestorClasses(OWLDescription clsC)
getAncestorClasses in interface OWLClassReasonerpublic java.util.Set<java.util.Set<OWLClass>> getSubClasses(OWLDescription clsC)
getSubClasses in interface OWLClassReasonerpublic java.util.Set<java.util.Set<OWLClass>> getDescendantClasses(OWLDescription clsC)
getDescendantClasses in interface OWLClassReasonerpublic java.util.Set<OWLClass> getEquivalentClasses(OWLDescription clsC)
getEquivalentClasses in interface OWLClassReasoner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||