org.dllearner.core.owl
Class StringValueRestriction
java.lang.Object
org.dllearner.core.owl.Description
org.dllearner.core.owl.Restriction
org.dllearner.core.owl.ValueRestriction
org.dllearner.core.owl.DatatypeValueRestriction
org.dllearner.core.owl.StringValueRestriction
- All Implemented Interfaces:
- Serializable, Cloneable, KBElement, PropertyRange
public class StringValueRestriction
- extends DatatypeValueRestriction
String value restriction, e.g. \exists description hasValue "interesting item".
- Author:
- Jens Lehmann
- See Also:
- Serialized Form
| 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 |
StringValueRestriction
public StringValueRestriction(DatatypeProperty restrictedPropertyExpression,
String value)
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- Overrides:
toManchesterSyntaxString in class DatatypeValueRestriction
- Returns:
- The manchester syntax string for this description.
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.
getStringValue
public String getStringValue()
toKBSyntaxString
public String toKBSyntaxString(String baseURI,
Map<String,String> prefixes)
- Specified by:
toKBSyntaxString in interface KBElement- Overrides:
toKBSyntaxString in class DatatypeValueRestriction
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann