org.semanticweb.HermiT.hierarchy
Class DataRoleSubsumptionCache

java.lang.Object
  extended by org.semanticweb.HermiT.hierarchy.DataRoleSubsumptionCache
All Implemented Interfaces:
SubsumptionCache<AtomicRole>

public class DataRoleSubsumptionCache
extends java.lang.Object
implements SubsumptionCache<AtomicRole>

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.


Nested Class Summary
protected static class DataRoleSubsumptionCache.RoleInfo
           
 
Field Summary
protected  AtomicRole m_bottomRole
           
protected  Reasoner m_reasoner
           
protected  java.util.Map<AtomicRole,DataRoleSubsumptionCache.RoleInfo> m_roleInfos
           
protected  AtomicRole m_topRole
           
 
Constructor Summary
DataRoleSubsumptionCache(Reasoner reasoner)
           
 
Method Summary
protected  boolean doSatisfiabilityTest(AtomicRole role)
           
protected  boolean doSubsumptionCheck(AtomicRole subrole, AtomicRole superrole)
           
 java.util.Set<AtomicRole> getAllKnownSubsumers(AtomicRole role)
           
protected  DataRoleSubsumptionCache.RoleInfo getRoleInfo(AtomicRole role)
           
 void initialize()
           
 boolean isSatisfiable(AtomicRole role)
           
protected  boolean isSatisfiable(AtomicRole role, boolean updatePossibleSubsumers)
           
 boolean isSubsumedBy(AtomicRole subrole, AtomicRole superrole)
           
protected  void loadRoleGraph(java.util.Set<AtomicRole> allRoles, Graph<AtomicRole> roleGraph)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_reasoner

protected final Reasoner m_reasoner

m_roleInfos

protected final java.util.Map<AtomicRole,DataRoleSubsumptionCache.RoleInfo> m_roleInfos

m_bottomRole

protected final AtomicRole m_bottomRole

m_topRole

protected final AtomicRole m_topRole
Constructor Detail

DataRoleSubsumptionCache

public DataRoleSubsumptionCache(Reasoner reasoner)
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface SubsumptionCache<AtomicRole>

loadRoleGraph

protected void loadRoleGraph(java.util.Set<AtomicRole> allRoles,
                             Graph<AtomicRole> roleGraph)

getAllKnownSubsumers

public java.util.Set<AtomicRole> getAllKnownSubsumers(AtomicRole role)
Specified by:
getAllKnownSubsumers in interface SubsumptionCache<AtomicRole>

isSatisfiable

public boolean isSatisfiable(AtomicRole role)
Specified by:
isSatisfiable in interface SubsumptionCache<AtomicRole>

isSatisfiable

protected boolean isSatisfiable(AtomicRole role,
                                boolean updatePossibleSubsumers)

doSatisfiabilityTest

protected boolean doSatisfiabilityTest(AtomicRole role)

isSubsumedBy

public boolean isSubsumedBy(AtomicRole subrole,
                            AtomicRole superrole)
Specified by:
isSubsumedBy in interface SubsumptionCache<AtomicRole>

doSubsumptionCheck

protected boolean doSubsumptionCheck(AtomicRole subrole,
                                     AtomicRole superrole)

getRoleInfo

protected DataRoleSubsumptionCache.RoleInfo getRoleInfo(AtomicRole role)