|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToldClassHierarchyReasoner(OWLOntologyManager owlOntologyManager)
Method Detail |
---|
public void dispose()
OWLReasonerBase
dispose
in interface OWLReasonerBase
public boolean isClassified()
OWLReasonerBase
isClassified
in interface OWLReasonerBase
true
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 OWLReasonerBase
true
is the types of individuals have been computed,
otherwise false
.
OWLReasonerException
public void realise() throws OWLReasonerException
OWLReasonerBase
realise
in interface OWLReasonerBase
OWLReasonerException
public boolean isDefined(OWLClass cls) throws OWLReasonerException
OWLReasonerBase
isDefined
in interface OWLReasonerBase
cls
- 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 OWLReasonerBase
prop
- 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 OWLReasonerBase
prop
- 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 OWLReasonerBase
ind
- 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.
OWLReasonerException
public void loadOntologies(java.util.Set<OWLOntology> ontologies)
OWLReasonerBase
loadOntologies
in interface OWLReasonerBase
ontologies
- The ontolgies to be loaded.public java.util.Set<OWLOntology> getLoadedOntologies()
OWLReasonerBase
getLoadedOntologies
in interface OWLReasonerBase
public void unloadOntologies(java.util.Set<OWLOntology> ontologies)
OWLReasonerBase
unloadOntologies
in interface OWLReasonerBase
ontologies
- The ontologies to be unloaded.public void clearOntologies()
OWLReasonerBase
clearOntologies
in interface OWLReasonerBase
public boolean isSubClassOf(OWLDescription clsC, OWLDescription clsD)
isSubClassOf
in interface OWLClassReasoner
true
if the first class is a subclass of the second classpublic boolean isEquivalentClass(OWLDescription clsC, OWLDescription clsD)
isEquivalentClass
in interface OWLClassReasoner
true
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 OWLSatisfiabilityChecker
clsC
- 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 OWLClassReasoner
public java.util.Set<java.util.Set<OWLClass>> getSuperClasses(OWLDescription clsC)
getSuperClasses
in interface OWLClassReasoner
public java.util.Set<java.util.Set<OWLClass>> getAncestorClasses(OWLDescription clsC)
getAncestorClasses
in interface OWLClassReasoner
public java.util.Set<java.util.Set<OWLClass>> getSubClasses(OWLDescription clsC)
getSubClasses
in interface OWLClassReasoner
public java.util.Set<java.util.Set<OWLClass>> getDescendantClasses(OWLDescription clsC)
getDescendantClasses
in interface OWLClassReasoner
public 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 |