public class DifferentialIndex extends DirectIndex
IndexedClassExpression new rules to be added to the index;
likewise, the map of deletions assigns to every
IndexedClassExpression a new rules to be removed from the index.DirectIndex.ContextRootInitializationRule| Constructor and Description |
|---|
DifferentialIndex(IndexedObjectCache objectCache) |
addReflexiveProperty, getContextInitRuleChain, getContextInitRuleHead, getIndexedClasses, getIndexedClassExpressions, getIndexedIndividuals, getIndexedObjectCache, getIndexedObjectProperties, getIndexedOwlNothing, getIndexedOwlThing, getIndexedPropertyChains, getReflexiveObjectProperties, removeReflexivePropertypublic DifferentialIndex(IndexedObjectCache objectCache)
public void initClassSignatureChanges()
public void initIndividualSignatureChanges()
public void initAdditions()
public void initDeletions()
public void addClass(ElkClass newClass)
ModifiableOntologyIndexElkClass to the signature of this
OntologyIndexaddClass in interface ModifiableOntologyIndexaddClass in class DirectIndexnewClass - the ElkClass to be addedpublic void removeClass(ElkClass oldClass)
ModifiableOntologyIndexElkClass from the signature of this
OntologyIndexremoveClass in interface ModifiableOntologyIndexremoveClass in class DirectIndexoldClass - the ElkClass to be removedpublic void addNamedIndividual(ElkNamedIndividual newIndividual)
ModifiableOntologyIndexElkNamedIndividual to the signature of this
OntologyIndexaddNamedIndividual in interface ModifiableOntologyIndexaddNamedIndividual in class DirectIndexnewIndividual - the ElkNamedIndividual to be addedpublic void removeNamedIndividual(ElkNamedIndividual oldIndividual)
ModifiableOntologyIndexElkNamedIndividual from the signature of this
OntologyIndexremoveNamedIndividual in interface ModifiableOntologyIndexremoveNamedIndividual in class DirectIndexoldIndividual - the ElkNamedIndividual to be removedpublic void add(IndexedClassExpression target, ChainableRule<Context> newRule)
ModifiableOntologyIndexIndexedClassExpressionadd in interface ModifiableOntologyIndexadd in class DirectIndextarget - the IndexedClassExpression for which to add the rulenewRule - the context rule to be addedpublic void remove(IndexedClassExpression target, ChainableRule<Context> oldRule)
ModifiableOntologyIndexIndexedClassExpressionremove in interface ModifiableOntologyIndexremove in class DirectIndextarget - the IndexedClassExpression for which to remove the
ruleoldRule - the context rule to be removedpublic void addContextInitRule(ChainableRule<Context> newRule)
ModifiableOntologyIndexOntologyIndex.addContextInitRule in interface ModifiableOntologyIndexaddContextInitRule in class DirectIndexnewRule - the context initialization rule to be addedOntologyIndex.getContextInitRuleHead()public void removeContextInitRule(ChainableRule<Context> oldRule)
ModifiableOntologyIndexOntologyIndexremoveContextInitRule in interface ModifiableOntologyIndexremoveContextInitRule in class DirectIndexoldRule - the context initialization rule to be removedOntologyIndex.getContextInitRuleHead()public void add(IndexedObject newObject)
ModifiableOntologyIndexIndexedObject to this OntologyIndexadd in interface ModifiableOntologyIndexadd in class DirectIndexnewObject - the object to be addedpublic void remove(IndexedObject oldObject)
ModifiableOntologyIndexIndexedObject from this OntologyIndexremove in interface ModifiableOntologyIndexremove in class DirectIndexoldObject - the object to be removedpublic ChainableRule<Context> getAddedContextInitRules()
public ChainableRule<Context> getRemovedContextInitRules()
public Map<IndexedClassExpression,ChainableRule<Context>> getAddedContextRulesByClassExpressions()
public Map<IndexedClassExpression,ChainableRule<Context>> getRemovedContextRulesByClassExpressions()
public Collection<ElkClass> getAddedClasses()
ElkClass added during the last incremental sessionpublic Collection<ElkNamedIndividual> getAddedIndividuals()
public Collection<IndexedClassExpression> getRemovedClassExpressions()
IndexedClassExpressions removed during the last
incremental sessionpublic void clearDeletedRules()
DifferentialIndex; these
rules should be already applied in the main index during their
registrationpublic void commitAddedRules()
DifferentialIndex.public boolean isEmpty()
true if there are no uncommitted changes in this
DifferentialIndexpublic void setIncrementalMode(boolean mode)
DifferentialIndex.mode - if true, deletions and additions to this indexed are
stored separately; if false all changes are
immediately applied to the index.public boolean isIncrementalMode()
DifferentialIndexsetIncrementalMode(boolean)Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.