org.dllearner.core.owl
Class DatatypeValueRestriction
java.lang.Object
org.dllearner.core.owl.Description
org.dllearner.core.owl.Restriction
org.dllearner.core.owl.ValueRestriction
org.dllearner.core.owl.DatatypeValueRestriction
- All Implemented Interfaces:
- Serializable, Cloneable, KBElement, PropertyRange
- Direct Known Subclasses:
- BooleanValueRestriction, StringValueRestriction
public abstract class DatatypeValueRestriction
- extends ValueRestriction
Examples for datatype value restrictions:
Male AND hasAge HASVALUE 18
Male AND hasDriverLicense HASVALUE true
- 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 |
DatatypeValueRestriction
public DatatypeValueRestriction(DatatypeProperty restrictedPropertyExpression,
Constant 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- Specified by:
toManchesterSyntaxString in class Description
- Returns:
- The manchester syntax string for this description.
getArity
public int getArity()
- Specified by:
getArity in class Description
toString
public String toString(String baseURI,
Map<String,String> prefixes)
toKBSyntaxString
public String toKBSyntaxString(String baseURI,
Map<String,String> prefixes)
getRestrictedPropertyExpression
public DatatypeProperty getRestrictedPropertyExpression()
- Overrides:
getRestrictedPropertyExpression in class Restriction
getValue
public Constant getValue()
- Overrides:
getValue in class ValueRestriction
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