|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.clarkparsia.owlapi.explanation.util.DefinitionTracker
public class DefinitionTracker
Title:
Description: This class tracks the usage of named entities in the imports closure of a designated ontology. 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.
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
Constructor Summary | |
---|---|
DefinitionTracker(OWLOntology ontology)
|
Method Summary | |
---|---|
boolean |
isDefined(OWLClassExpression classExpression)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefinitionTracker(OWLOntology ontology)
Method Detail |
---|
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(OWLClassExpression classExpression)
classExpression
- 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 |