|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ModifiableOntologyIndex
Common methods for constructing an OntologyIndex. They allow addition
and removal of IndexedObjects, as well as assigning and removing
rules for such expressions.
OntologyIndex| Method Summary | |
|---|---|
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 |
| Methods inherited from interface org.semanticweb.elk.reasoner.indexing.OntologyIndex |
|---|
getContextInitRuleHead, getIndexedClasses, getIndexedClassExpressions, getIndexedIndividuals, getIndexedObjectProperties, getIndexedOwlNothing, getIndexedOwlThing, getIndexedPropertyChains, getReflexiveObjectProperties |
| Method Detail |
|---|
IndexedObjectCache getIndexedObjectCache()
IndexedObjectCache associated with this index; this
is where all IndexedObjects of this OntologyIndex
are storedvoid add(IndexedObject newObject)
IndexedObject to this OntologyIndex
newObject - the object to be added
void remove(IndexedObject oldObject)
throws ElkUnexpectedIndexingException
IndexedObject from this OntologyIndex
oldObject - the object to be removed
ElkUnexpectedIndexingException - if the given object does not occur in this
OntologyIndexvoid addClass(ElkClass newClass)
ElkClass to the signature of this
OntologyIndex
newClass - the ElkClass to be added
void removeClass(ElkClass oldClass)
throws ElkUnexpectedIndexingException
ElkClass from the signature of this
OntologyIndex
oldClass - the ElkClass to be removed
ElkUnexpectedIndexingExceptionvoid addNamedIndividual(ElkNamedIndividual newIndividual)
ElkNamedIndividual to the signature of this
OntologyIndex
newIndividual - the ElkNamedIndividual to be added
void removeNamedIndividual(ElkNamedIndividual oldIndividual)
throws ElkUnexpectedIndexingException
ElkNamedIndividual from the signature of this
OntologyIndex
oldIndividual - the ElkNamedIndividual to be removed
ElkUnexpectedIndexingExceptionvoid addReflexiveProperty(IndexedObjectProperty property)
IndexedObjectProperty
property - the IndexedObjectProperty which should be asserted
reflexive
void removeReflexiveProperty(IndexedObjectProperty property)
throws ElkUnexpectedIndexingException
IndexedObjectProperty
property - the IndexedObjectProperty which should not be
reflexive anymore
ElkUnexpectedIndexingExceptionvoid addContextInitRule(ChainableRule<Context> newRule)
OntologyIndex.
newRule - the context initialization rule to be addedOntologyIndex.getContextInitRuleHead()
void removeContextInitRule(ChainableRule<Context> oldRule)
throws ElkUnexpectedIndexingException
OntologyIndex
oldRule - the context initialization rule to be removed
ElkUnexpectedIndexingException - if the given rule was not registered with this
OntologyIndexOntologyIndex.getContextInitRuleHead()
void add(IndexedClassExpression target,
ChainableRule<Context> newRule)
IndexedClassExpression
target - the IndexedClassExpression for which to add the rulenewRule - the context rule to be added
void remove(IndexedClassExpression target,
ChainableRule<Context> oldRule)
throws ElkUnexpectedIndexingException
IndexedClassExpression
target - the IndexedClassExpression for which to remove the
ruleoldRule - the context rule to be removed
ElkUnexpectedIndexingException - if the given rule was not registered with this
IndexedClassExpression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||