org.semanticweb.HermiT.hierarchy
Class DataRoleSubsumptionCache
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DataRoleSubsumptionCache
public DataRoleSubsumptionCache(Reasoner reasoner)
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)