|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dllearner.core.owl.Description
public abstract class Description
A class description is sometimes also called "complex class" or "concept".
| Constructor Summary | |
|---|---|
Description()
|
|
| Method Summary | |
|---|---|
abstract void |
accept(DescriptionVisitor visitor)
|
void |
addChild(Description child)
Adds a description as child of this one. |
void |
addChild(int index,
Description child)
Adds a child description at the specified index. |
Description |
clone()
Returns a clone of this description. |
abstract int |
getArity()
|
Description |
getChild(int i)
|
List<Description> |
getChildren()
|
int |
getDepth()
Calculates the description tree depth. |
int |
getNumberOfNodes()
Calculate the number of nodes for this description tree (each description can be seen as a tree). |
Description |
getParent()
|
Description |
getSubtree(int i)
Selects a sub tree. |
boolean |
isRoot()
Tests whether this description is at the root, i.e. |
void |
removeChild(Description child)
Remove the specified child description (its parent link is set to null). |
void |
replaceChild(int index,
Description newChild)
|
void |
setParent(Description parent)
|
String |
toKBSyntaxString()
|
abstract String |
toManchesterSyntaxString(String baseURI,
Map<String,String> prefixes)
Returns a manchester syntax string of this description. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.dllearner.core.owl.KBElement |
|---|
accept, getLength, toKBSyntaxString, toString |
| Constructor Detail |
|---|
public Description()
| Method Detail |
|---|
public abstract int getArity()
public int getNumberOfNodes()
public Description getSubtree(int i)
i - A position in the tree. Positions are iteratively given to nodes
by leftmost depth-first search. This allows efficient selection of subtrees.
(TODO: Implementation does not work if any node has more than two children
like conjunction and disjunction.)
public int getDepth()
public Description clone()
clone in class Objectpublic void addChild(Description child)
child - The child description.
public void addChild(int index,
Description child)
index - child - addChild(Description)public void removeChild(Description child)
child - The child to remove.
public void replaceChild(int index,
Description newChild)
public boolean isRoot()
public Description getParent()
public void setParent(Description parent)
public List<Description> getChildren()
public Description getChild(int i)
public String toString()
toString in class Objectpublic String toKBSyntaxString()
public abstract String toManchesterSyntaxString(String baseURI,
Map<String,String> prefixes)
toManchesterSyntaxString in interface KBElementpublic abstract void accept(DescriptionVisitor visitor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||