public class DirectIndex extends Object implements ModifiableOntologyIndex
| Modifier and Type | Class and Description |
|---|---|
static class |
DirectIndex.ContextRootInitializationRule
Adds root to the context
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
LOGGER_ |
| Constructor and Description |
|---|
DirectIndex() |
DirectIndex(IndexedObjectCache objectCache) |
public DirectIndex(IndexedObjectCache objectCache)
public DirectIndex()
public LinkRule<Context> getContextInitRuleHead()
getContextInitRuleHead in interface OntologyIndexOntologyIndex, or null if there no such rules;
all other rules can be obtained by traversing over
Link.next()public Collection<IndexedClassExpression> getIndexedClassExpressions()
getIndexedClassExpressions in interface OntologyIndexIndexedClassExpressions for all
ElkClassExpressions occurring in the ontology (including
owl:Thing and owl:Nothing) or added/removed from
the ontology since the last commit of the differential indexpublic Collection<IndexedClass> getIndexedClasses()
getIndexedClasses in interface OntologyIndexIndexedClasses for all ElkClasses occurring
in the ontology (including owl:Thing and
owl:Nothing)public Collection<IndexedIndividual> getIndexedIndividuals()
getIndexedIndividuals in interface OntologyIndexIndexedIndividuals for all ElkIndividuals
occurring in the ontology.public Collection<IndexedPropertyChain> getIndexedPropertyChains()
getIndexedPropertyChains in interface OntologyIndexIndexedPropertyChains for all
ElkSubObjectPropertyExpressions occurring in the
ontology.public Collection<IndexedObjectProperty> getIndexedObjectProperties()
getIndexedObjectProperties in interface OntologyIndexIndexedObjectPropertys for all
ElkObjectPropertys occurring in the ontology.public Collection<IndexedObjectProperty> getReflexiveObjectProperties()
getReflexiveObjectProperties in interface OntologyIndexIndexedObjectPropertys for all
ElkObjectPropertys occurring in the reflexivity axioms of
the ontology.public IndexedClass getIndexedOwlThing()
OntologyIndexowl:ThinggetIndexedOwlThing in interface OntologyIndexIndexedClass corresponding to owl:Thing. It
is assumed that owl:Thing occurs (i.e., is declared) in
every ontology.public IndexedClass getIndexedOwlNothing()
OntologyIndexowl:NothinggetIndexedOwlNothing in interface OntologyIndexIndexedClass corresponding to owl:Nothing. It
is assumed that owl:Nothing contains (i.e., is declared)
in every ontology.public IndexedObjectCache getIndexedObjectCache()
getIndexedObjectCache in interface ModifiableOntologyIndexIndexedObjectCache associated with this index; this
is where all IndexedObjects of this OntologyIndex
are storedpublic void addClass(ElkClass newClass)
ModifiableOntologyIndexElkClass to the signature of this
OntologyIndexaddClass in interface ModifiableOntologyIndexnewClass - the ElkClass to be addedpublic void removeClass(ElkClass oldClass)
ModifiableOntologyIndexElkClass from the signature of this
OntologyIndexremoveClass in interface ModifiableOntologyIndexoldClass - the ElkClass to be removedpublic void addNamedIndividual(ElkNamedIndividual newIndividual)
ModifiableOntologyIndexElkNamedIndividual to the signature of this
OntologyIndexaddNamedIndividual in interface ModifiableOntologyIndexnewIndividual - the ElkNamedIndividual to be addedpublic void removeNamedIndividual(ElkNamedIndividual oldIndividual)
ModifiableOntologyIndexElkNamedIndividual from the signature of this
OntologyIndexremoveNamedIndividual in interface ModifiableOntologyIndexoldIndividual - the ElkNamedIndividual to be removedpublic void addContextInitRule(ChainableRule<Context> newRule)
ModifiableOntologyIndexOntologyIndex.addContextInitRule in interface ModifiableOntologyIndexnewRule - the context initialization rule to be addedOntologyIndex.getContextInitRuleHead()public void removeContextInitRule(ChainableRule<Context> oldRule)
ModifiableOntologyIndexOntologyIndexremoveContextInitRule in interface ModifiableOntologyIndexoldRule - the context initialization rule to be removedOntologyIndex.getContextInitRuleHead()public void add(IndexedClassExpression target, ChainableRule<Context> rule)
ModifiableOntologyIndexIndexedClassExpressionadd in interface ModifiableOntologyIndextarget - the IndexedClassExpression for which to add the rulerule - the context rule to be addedpublic void remove(IndexedClassExpression target, ChainableRule<Context> rule)
ModifiableOntologyIndexIndexedClassExpressionremove in interface ModifiableOntologyIndextarget - the IndexedClassExpression for which to remove the
rulerule - the context rule to be removedpublic void add(IndexedObject newObject)
ModifiableOntologyIndexIndexedObject to this OntologyIndexadd in interface ModifiableOntologyIndexnewObject - the object to be addedpublic void remove(IndexedObject oldObject)
ModifiableOntologyIndexIndexedObject from this OntologyIndexremove in interface ModifiableOntologyIndexoldObject - the object to be removedpublic void addReflexiveProperty(IndexedObjectProperty property)
ModifiableOntologyIndexIndexedObjectPropertyaddReflexiveProperty in interface ModifiableOntologyIndexproperty - the IndexedObjectProperty which should be asserted
reflexivepublic void removeReflexiveProperty(IndexedObjectProperty property)
ModifiableOntologyIndexIndexedObjectPropertyremoveReflexiveProperty in interface ModifiableOntologyIndexproperty - the IndexedObjectProperty which should not be
reflexive anymorepublic Chain<ChainableRule<Context>> getContextInitRuleChain()
Chain view of context initialization rules assigned to
this OntologyIndex; it can be used for inserting new
rules or deleting existing onesCopyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.