org.dllearner.core.owl
Class DatatypeValueRestriction

java.lang.Object
  extended by org.dllearner.core.owl.Description
      extended by org.dllearner.core.owl.Restriction
          extended by org.dllearner.core.owl.ValueRestriction
              extended by 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

Constructor Summary
DatatypeValueRestriction(DatatypeProperty restrictedPropertyExpression, Constant value)
           
 
Method Summary
 void accept(DescriptionVisitor visitor)
           
 void accept(KBElementVisitor visitor)
           
 int getArity()
           
 DatatypeProperty getRestrictedPropertyExpression()
           
 Constant getValue()
           
 String toKBSyntaxString(String baseURI, Map<String,String> prefixes)
           
 String toManchesterSyntaxString(String baseURI, Map<String,String> prefixes)
          Returns a manchester syntax string of this description.
 String toString(String baseURI, Map<String,String> prefixes)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.dllearner.core.owl.KBElement
getLength
 

Constructor Detail

DatatypeValueRestriction

public DatatypeValueRestriction(DatatypeProperty restrictedPropertyExpression,
                                Constant value)
Method Detail

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)


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann