org.semanticweb.HermiT.hierarchy
Class ObjectRoleByConceptSubsumptionCache<T extends Role>

java.lang.Object
  extended by org.semanticweb.HermiT.hierarchy.AtomicConceptSubsumptionCache
      extended by org.semanticweb.HermiT.hierarchy.ObjectRoleByConceptSubsumptionCache<T>
All Implemented Interfaces:
java.io.Serializable, SubsumptionCache<AtomicConcept>

public class ObjectRoleByConceptSubsumptionCache<T extends Role>
extends AtomicConceptSubsumptionCache

A cache for role subsumption and role satisfiability tests. This class also maintains the set of known and possible subsumers for a role. This information can be used to optimize classification.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.semanticweb.HermiT.hierarchy.AtomicConceptSubsumptionCache
AtomicConceptSubsumptionCache.AtomicConceptInfo
 
Field Summary
protected  AtomicRole m_bottomRole
           
protected  java.util.Map<T,AtomicConcept> m_conceptsForRoles
           
protected  boolean m_hasInverses
           
protected  boolean m_isForObjectProperties
           
protected  java.util.Map<AtomicConcept,T> m_rolesForConcepts
           
protected  AtomicRole m_topRole
           
 
Fields inherited from class org.semanticweb.HermiT.hierarchy.AtomicConceptSubsumptionCache
m_atomicConceptInfos, m_tableau
 
Constructor Summary
ObjectRoleByConceptSubsumptionCache(Tableau tableau, boolean isForObjectProperties, boolean hasInverse, AtomicRole bottomRole, AtomicRole topRole, java.util.Map<T,AtomicConcept> conceptsForRoles, java.util.Map<AtomicConcept,T> rolesForConcepts)
           
 
Method Summary
protected  void addKnownSubsumption(Graph<AtomicConcept> knownSubsumptions, AtomicConcept subConcept, AtomicConcept superConcept)
           
protected  ReasoningTaskDescription getSatTestDescription(AtomicConcept atomicConcept)
           
protected  ReasoningTaskDescription getSubsumptionTestDescription(AtomicConcept subConcept, AtomicConcept superConcept)
           
protected  boolean isRelevantConcept(AtomicConcept atomicConcept)
           
protected  void updateKnownSubsumptionsUsingToldSubsumers(Graph<AtomicConcept> roleGraph, java.util.Set<DLClause> dlClauses)
           
 
Methods inherited from class org.semanticweb.HermiT.hierarchy.AtomicConceptSubsumptionCache
getAllKnownSubsumers, getAtomicConceptInfo, initialize, initializeKnownSubsumptions, isSatisfiable, isSatisfiable, isSubsumedBy, updateKnownSubsumers, updatePossibleSubsumers, updatePossibleSubsumers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_isForObjectProperties

protected final boolean m_isForObjectProperties

m_conceptsForRoles

protected final java.util.Map<T extends Role,AtomicConcept> m_conceptsForRoles

m_rolesForConcepts

protected final java.util.Map<AtomicConcept,T extends Role> m_rolesForConcepts

m_hasInverses

protected final boolean m_hasInverses

m_bottomRole

protected final AtomicRole m_bottomRole

m_topRole

protected final AtomicRole m_topRole
Constructor Detail

ObjectRoleByConceptSubsumptionCache

public ObjectRoleByConceptSubsumptionCache(Tableau tableau,
                                           boolean isForObjectProperties,
                                           boolean hasInverse,
                                           AtomicRole bottomRole,
                                           AtomicRole topRole,
                                           java.util.Map<T,AtomicConcept> conceptsForRoles,
                                           java.util.Map<AtomicConcept,T> rolesForConcepts)
Method Detail

updateKnownSubsumptionsUsingToldSubsumers

protected void updateKnownSubsumptionsUsingToldSubsumers(Graph<AtomicConcept> roleGraph,
                                                         java.util.Set<DLClause> dlClauses)
Overrides:
updateKnownSubsumptionsUsingToldSubsumers in class AtomicConceptSubsumptionCache

addKnownSubsumption

protected void addKnownSubsumption(Graph<AtomicConcept> knownSubsumptions,
                                   AtomicConcept subConcept,
                                   AtomicConcept superConcept)
Overrides:
addKnownSubsumption in class AtomicConceptSubsumptionCache

getSatTestDescription

protected ReasoningTaskDescription getSatTestDescription(AtomicConcept atomicConcept)
Overrides:
getSatTestDescription in class AtomicConceptSubsumptionCache

getSubsumptionTestDescription

protected ReasoningTaskDescription getSubsumptionTestDescription(AtomicConcept subConcept,
                                                                 AtomicConcept superConcept)
Overrides:
getSubsumptionTestDescription in class AtomicConceptSubsumptionCache

isRelevantConcept

protected boolean isRelevantConcept(AtomicConcept atomicConcept)
Overrides:
isRelevantConcept in class AtomicConceptSubsumptionCache