|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.clarkparsia.explanation.util.DefinitionTracker
public class DefinitionTracker
Description: This class tracks the usage of named entities in the imports closure of a designated ontology. It only tracks the logical axioms in the ontologies so an entity that is only used in annotations will be treated as if it does not exist. This class listens to the changes broadcasted by the ontology manager to update the usage statistics for entities automatically when a change occurs in one of the ontologies.
Constructor Summary | |
---|---|
DefinitionTracker(OWLOntologyManager manager)
|
Method Summary | |
---|---|
boolean |
isDefined(OWLDescription description)
Checks if all the entities referred in the given concept are also referred by a logical axiom in the imports closure of the designated ontology. |
boolean |
isDefined(OWLEntity entity)
Checks if this entity is referred by a logical axiom in the imports closure of the designated ontology. |
void |
ontologiesChanged(java.util.List<? extends OWLOntologyChange> changes)
Called when some changes have been applied to various ontologies. |
void |
setOntology(OWLOntology ontology)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefinitionTracker(OWLOntologyManager manager)
Method Detail |
---|
public void setOntology(OWLOntology ontology)
public boolean isDefined(OWLEntity entity)
entity
- entity we are searching for
true
if there is at least one logical axiom in the
imports closure of the given ontology that refers the given
entitypublic boolean isDefined(OWLDescription description)
description
- description that contains the entities we are searching for
true
if all the entities in the given description
are referred by at least one logical axiom in the imports closure
of the given ontologypublic 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |