org.dllearner.core.owl
Class Thing
java.lang.Object
org.dllearner.core.owl.Description
org.dllearner.core.owl.Thing
- All Implemented Interfaces:
- Serializable, Cloneable, KBElement, PropertyRange
public class Thing
- extends Description
Implementation of owl:thing/TOP.
TODO: According to the OWL 1.1 spec, owl:thing is special instance of
class, so it might be better to put a method there for retrieving
a/the instance of owl:thing. However, some algorithms require parent
links e.g. in EXISTS r.TOP we may need to know where TOP belongs
(especially for genetic operators). This is instance dependant, i.e.
two different instances of TOP can have different parent links.
- Author:
- Jens Lehmann
- See Also:
- Serialized Form
|
Constructor Summary |
Thing()
|
| Methods inherited from class org.dllearner.core.owl.Description |
addChild, addChild, clone, getChild, getChildren, getDepth, getNumberOfNodes, getParent, getSubtree, isRoot, removeChild, removeChild, replaceChild, setParent, toKBSyntaxString, toString |
instance
public static final Thing instance
Thing
public Thing()
toString
public String toString(String baseURI,
Map<String,String> prefixes)
toKBSyntaxString
public String toKBSyntaxString(String baseURI,
Map<String,String> prefixes)
toManchesterSyntaxString
public String toManchesterSyntaxString(String baseURI,
Map<String,String> prefixes)
- Description copied from class:
Description
- Returns a manchester syntax string of this description. For a
reference, see
here
and here (PDF).
- Specified by:
toManchesterSyntaxString in interface KBElement- Specified by:
toManchesterSyntaxString in class Description
- Returns:
- The manchester syntax string for this description.
getURI
public URI getURI()
getLength
public int getLength()
- Description copied from interface:
KBElement
- Gets the length of this knowledge base element. For instance,
A AND B should have length 3 (as three constructs are involved).
There are different ways to define the length of an axiom,
class description etc., but this method provides a straightforward
definition of it.
- Returns:
- The syntactic length of the KB element, defined as the
number of syntactic constructs not including brackets.
getArity
public int getArity()
- Specified by:
getArity in class Description
accept
public void accept(DescriptionVisitor visitor)
- Specified by:
accept in class Description
accept
public void accept(KBElementVisitor visitor)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann