|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.core.owl.ClassHierarchy
public class ClassHierarchy
Represents a subsumption hierarchy (ignoring equivalent concepts).
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
ClassHierarchy(TreeMap<Description,SortedSet<Description>> subsumptionHierarchyUp,
TreeMap<Description,SortedSet<Description>> subsumptionHierarchyDown)
The arguments specify the superclasses and subclasses of each class. |
|
| Method Summary | |
|---|---|
ClassHierarchy |
clone()
|
ClassHierarchy |
cloneAndRestrict(Set<NamedClass> allowedClasses)
The method computes a new class hierarchy, which is a copy of this one, but only the specified classes are allowed to occur. |
SortedSet<Description> |
getSiblingClasses(Description description)
Computes the siblings of the specified descriptions. |
SortedSet<Description> |
getSubClasses(Description concept)
|
SortedSet<Description> |
getSuperClasses(Description concept)
|
boolean |
isSubclassOf(NamedClass subClass,
NamedClass superClass)
Implements a subsumption check using the hierarchy (no further reasoning checks are used). |
void |
thinOutSubsumptionHierarchy()
This method modifies the subsumption hierarchy such that for each class, there is only a single path to reach it via upward and downward refinement respectively. |
String |
toString()
|
String |
toString(boolean showUpwardHierarchy)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public ClassHierarchy(TreeMap<Description,SortedSet<Description>> subsumptionHierarchyUp,
TreeMap<Description,SortedSet<Description>> subsumptionHierarchyDown)
subsumptionHierarchyUp - Contains super classes for each class.subsumptionHierarchyDown - Contains sub classes for each class.| Method Detail |
|---|
public SortedSet<Description> getSuperClasses(Description concept)
public SortedSet<Description> getSubClasses(Description concept)
public SortedSet<Description> getSiblingClasses(Description description)
description - A named class.
public void thinOutSubsumptionHierarchy()
public boolean isSubclassOf(NamedClass subClass,
NamedClass superClass)
subClass - The (supposedly) more special class.superClass - The (supposedly) more general class.
subClass is a subclass of
superclass.public String toString()
toString in class Objectpublic String toString(boolean showUpwardHierarchy)
public ClassHierarchy clone()
clone in class Objectpublic ClassHierarchy cloneAndRestrict(Set<NamedClass> allowedClasses)
allowedClasses - The classes, which are allowed to occur in the new
class hierarchy.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||