public interface ModifiableOntologyIndex extends OntologyIndex
OntologyIndex. They allow addition
and removal of IndexedObjects, as well as assigning and removing
rules for such expressions.OntologyIndex| Modifier and Type | Method and Description |
|---|---|
void |
add(IndexedClassExpression target,
ChainableRule<Context> newRule)
Adds a new context rule for the given
IndexedClassExpression |
void |
add(IndexedObject newObject)
Adds the given
IndexedObject to this OntologyIndex |
void |
addClass(ElkClass newClass)
Add the given
ElkClass to the signature of this
OntologyIndex |
void |
addContextInitRule(ChainableRule<Context> newRule)
Adds a new context initialization for this
OntologyIndex. |
void |
addNamedIndividual(ElkNamedIndividual newIndividual)
Add the given
ElkNamedIndividual to the signature of this
OntologyIndex |
void |
addReflexiveProperty(IndexedObjectProperty property)
Assert reflexivity of the given
IndexedObjectProperty |
IndexedObjectCache |
getIndexedObjectCache() |
void |
remove(IndexedClassExpression target,
ChainableRule<Context> oldRule)
Removes an existing context rule for the given
IndexedClassExpression |
void |
remove(IndexedObject oldObject)
Removes the given
IndexedObject from this OntologyIndex |
void |
removeClass(ElkClass oldClass)
Removes the given
ElkClass from the signature of this
OntologyIndex |
void |
removeContextInitRule(ChainableRule<Context> oldRule)
Removes an existing context initialization for this
OntologyIndex |
void |
removeNamedIndividual(ElkNamedIndividual oldIndividual)
Removes the given
ElkNamedIndividual from the signature of this
OntologyIndex |
void |
removeReflexiveProperty(IndexedObjectProperty property)
Retracts reflexivity of the given
IndexedObjectProperty |
getContextInitRuleHead, getIndexedClasses, getIndexedClassExpressions, getIndexedIndividuals, getIndexedObjectProperties, getIndexedOwlNothing, getIndexedOwlThing, getIndexedPropertyChains, getReflexiveObjectPropertiesIndexedObjectCache getIndexedObjectCache()
IndexedObjectCache associated with this index; this
is where all IndexedObjects of this OntologyIndex
are storedvoid add(IndexedObject newObject)
IndexedObject to this OntologyIndexnewObject - the object to be addedvoid remove(IndexedObject oldObject) throws ElkUnexpectedIndexingException
IndexedObject from this OntologyIndexoldObject - the object to be removedElkUnexpectedIndexingException - if the given object does not occur in this
OntologyIndexvoid addClass(ElkClass newClass)
ElkClass to the signature of this
OntologyIndexnewClass - the ElkClass to be addedvoid removeClass(ElkClass oldClass) throws ElkUnexpectedIndexingException
ElkClass from the signature of this
OntologyIndexoldClass - the ElkClass to be removedElkUnexpectedIndexingExceptionvoid addNamedIndividual(ElkNamedIndividual newIndividual)
ElkNamedIndividual to the signature of this
OntologyIndexnewIndividual - the ElkNamedIndividual to be addedvoid removeNamedIndividual(ElkNamedIndividual oldIndividual) throws ElkUnexpectedIndexingException
ElkNamedIndividual from the signature of this
OntologyIndexoldIndividual - the ElkNamedIndividual to be removedElkUnexpectedIndexingExceptionvoid addReflexiveProperty(IndexedObjectProperty property)
IndexedObjectPropertyproperty - the IndexedObjectProperty which should be asserted
reflexivevoid removeReflexiveProperty(IndexedObjectProperty property) throws ElkUnexpectedIndexingException
IndexedObjectPropertyproperty - the IndexedObjectProperty which should not be
reflexive anymoreElkUnexpectedIndexingExceptionvoid addContextInitRule(ChainableRule<Context> newRule)
OntologyIndex.newRule - the context initialization rule to be addedOntologyIndex.getContextInitRuleHead()void removeContextInitRule(ChainableRule<Context> oldRule) throws ElkUnexpectedIndexingException
OntologyIndexoldRule - the context initialization rule to be removedElkUnexpectedIndexingException - if the given rule was not registered with this
OntologyIndexOntologyIndex.getContextInitRuleHead()void add(IndexedClassExpression target, ChainableRule<Context> newRule)
IndexedClassExpressiontarget - the IndexedClassExpression for which to add the rulenewRule - the context rule to be addedvoid remove(IndexedClassExpression target, ChainableRule<Context> oldRule) throws ElkUnexpectedIndexingException
IndexedClassExpressiontarget - the IndexedClassExpression for which to remove the
ruleoldRule - the context rule to be removedElkUnexpectedIndexingException - if the given rule was not registered with this
IndexedClassExpressionCopyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.