|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.semanticweb.owl.inference.OWLReasonerAdapter
public abstract class OWLReasonerAdapter
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 18-Mar-2007
Constructor Summary | |
---|---|
protected |
OWLReasonerAdapter(OWLOntologyManager manager)
|
Method Summary | ||
---|---|---|
void |
clearOntologies()
Clears the reasoner. |
|
static
|
createSetOfSets(java.util.Collection<O> objs,
java.util.Map<O,java.util.Collection<O>> equivalentsMap)
|
|
void |
dispose()
Disposes of and cleans up any resources used by this reasoner. |
|
protected abstract void |
disposeReasoner()
|
|
static
|
flattenSetOfSets(java.util.Set<java.util.Set<E>> setOfSets)
A utility method that will flatten a set of sets. |
|
protected java.util.Set<OWLAxiom> |
getAllAxioms()
A convenience method which gets the union of all logical axioms from ontologies which have been loaded into this reasoner. |
|
java.util.Set<OWLOntology> |
getLoadedOntologies()
Gets the ontologies that have been loaded into this reasoner. |
|
protected OWLDataFactory |
getOWLDataFactory()
|
|
protected OWLOntologyManager |
getOWLOntologyManager()
|
|
protected abstract void |
handleOntologyChanges(java.util.List<OWLOntologyChange> changes)
This method will be called when any of the loaded ontologies have had logical axioms added to or removed from them. |
|
void |
loadOntologies(java.util.Set<OWLOntology> ontologies)
Loads the specified ontologies. |
|
protected abstract void |
ontologiesChanged()
This method will be called when the set of ontologies from which axioms should be retrieved for reasoning has changed. |
|
void |
ontologiesChanged(java.util.List<? extends OWLOntologyChange> changes)
Called when some changes have been applied to various ontologies. |
|
protected abstract void |
ontologiesCleared()
This method will be called when the set of ontologies from which axioms should be retrieved for reasoning has been cleared. |
|
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 |
Methods inherited from interface org.semanticweb.owl.inference.OWLConsistencyChecker |
---|
isConsistent |
Methods inherited from interface org.semanticweb.owl.inference.OWLClassReasoner |
---|
getAncestorClasses, getDescendantClasses, getEquivalentClasses, getInconsistentClasses, getSubClasses, getSuperClasses, isEquivalentClass, isSubClassOf |
Methods inherited from interface org.semanticweb.owl.inference.OWLSatisfiabilityChecker |
---|
isSatisfiable |
Methods inherited from interface org.semanticweb.owl.inference.OWLIndividualReasoner |
---|
getDataPropertyRelationships, getIndividuals, getObjectPropertyRelationships, getRelatedIndividuals, getRelatedValues, getTypes, hasDataPropertyRelationship, hasObjectPropertyRelationship, hasType |
Methods inherited from interface org.semanticweb.owl.inference.OWLPropertyReasoner |
---|
getAncestorProperties, getAncestorProperties, getDescendantProperties, getDescendantProperties, getDomains, getDomains, getEquivalentProperties, getEquivalentProperties, getInverseProperties, getRanges, getRanges, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties, isAntiSymmetric, isFunctional, isFunctional, isInverseFunctional, isIrreflexive, isReflexive, isSymmetric, isTransitive |
Constructor Detail |
---|
protected OWLReasonerAdapter(OWLOntologyManager manager)
Method Detail |
---|
public final void dispose()
OWLReasonerBase
dispose
in interface OWLReasonerBase
protected abstract void disposeReasoner()
protected OWLOntologyManager getOWLOntologyManager()
protected OWLDataFactory getOWLDataFactory()
public void loadOntologies(java.util.Set<OWLOntology> ontologies) throws OWLReasonerException
OWLReasonerBase
loadOntologies
in interface OWLReasonerBase
ontologies
- The ontolgies to be loaded.
OWLReasonerException
public java.util.Set<OWLOntology> getLoadedOntologies()
OWLReasonerBase
getLoadedOntologies
in interface OWLReasonerBase
public void unloadOntologies(java.util.Set<OWLOntology> ontologies) throws OWLReasonerException
OWLReasonerBase
unloadOntologies
in interface OWLReasonerBase
ontologies
- The ontologies to be unloaded.
OWLReasonerException
public void clearOntologies() throws OWLReasonerException
OWLReasonerBase
clearOntologies
in interface OWLReasonerBase
OWLReasonerException
protected abstract void ontologiesCleared() throws OWLReasonerException
OWLReasonerException
protected abstract void ontologiesChanged() throws OWLReasonerException
OWLReasonerException
protected java.util.Set<OWLAxiom> getAllAxioms()
public void ontologiesChanged(java.util.List<? extends OWLOntologyChange> changes) throws OWLException
OWLOntologyChangeListener
ontologiesChanged
in interface OWLOntologyChangeListener
changes
- A list of changes that have occurred. Each change may be examined
to determine which ontology it was applied to.
OWLException
protected abstract void handleOntologyChanges(java.util.List<OWLOntologyChange> changes) throws OWLException
changes
- The set of changes that represent changes to loaded
ontologies.
OWLException
public static <E> java.util.Set<E> flattenSetOfSets(java.util.Set<java.util.Set<E>> setOfSets)
setOfSets
- The set of sets to be flattened.public static <O> java.util.Set<java.util.Set<O>> createSetOfSets(java.util.Collection<O> objs, java.util.Map<O,java.util.Collection<O>> equivalentsMap)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |