Package | Description |
---|---|
kb.hierarchy |
Classes for managing and manipulating type and relation hierarchies.
|
Modifier and Type | Field and Description |
---|---|
protected TypeHierarchyNode |
TypeHierarchy.infinum |
protected TypeHierarchyNode |
TypeHierarchy.relationRoot |
protected TypeHierarchyNode |
TypeHierarchy.root |
protected TypeHierarchyNode |
TypeHierarchy.typeRoot |
Modifier and Type | Method and Description |
---|---|
TypeHierarchyNode |
TypeHierarchy.addTypeLabel(String name)
Adds a label in a node to the hierarchy.
|
TypeHierarchyNode |
TypeHierarchy.getBottom()
Get the node at the bottom of the hierarchy.
|
TypeHierarchyNode |
TypeHierarchy.getNodeByValue(String value)
Finds a node whose key (previously transformed from its value) matches
the value once it is also transformed.
|
TypeHierarchyNode |
TypeHierarchy.getTop()
Return the node at the top of this hierarchy.
|
Modifier and Type | Method and Description |
---|---|
void |
TypeHierarchy.addToTopAndBottom(TypeHierarchyNode node)
Makes sure that the already added-node is linked to the top and bottom.
|
boolean |
TypeHierarchy.matchByRules(TypeMatchingRuleSet rules,
TypeHierarchyNode node,
String value)
Determine whether a node's value matches a given value after applying the
rules.
|
boolean |
TypeHierarchy.matchByRules(TypeMatchingRuleSet rules,
TypeHierarchyNode node1,
TypeHierarchyNode node2)
Determine whether two nodes match values after applying the rules.
|
boolean |
TypeHierarchy.removeSuperTypeFromType(TypeHierarchyNode sup,
TypeHierarchyNode sub) |