org.dllearner.core.owl
Class ObjectQuantorRestriction

java.lang.Object
  extended by org.dllearner.core.owl.Description
      extended by org.dllearner.core.owl.Restriction
          extended by org.dllearner.core.owl.QuantorRestriction
              extended by org.dllearner.core.owl.ObjectQuantorRestriction
All Implemented Interfaces:
Serializable, Cloneable, KBElement, PropertyRange
Direct Known Subclasses:
ObjectAllRestriction, ObjectSomeRestriction

public abstract class ObjectQuantorRestriction
extends QuantorRestriction

Author:
Jens Lehmann
See Also:
Serialized Form

Constructor Summary
ObjectQuantorRestriction(ObjectPropertyExpression role, Description c)
           
 
Method Summary
 int getArity()
           
 int getLength()
          Gets the length of this knowledge base element.
 ObjectPropertyExpression getRole()
           
 
Methods inherited from class org.dllearner.core.owl.Restriction
getRestrictedPropertyExpression
 
Methods inherited from class org.dllearner.core.owl.Description
accept, addChild, addChild, clone, getChild, getChildren, getDepth, getNumberOfNodes, getParent, getSubtree, isRoot, removeChild, removeChild, replaceChild, setParent, toKBSyntaxString, toManchesterSyntaxString, 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, toKBSyntaxString, toString
 

Constructor Detail

ObjectQuantorRestriction

public ObjectQuantorRestriction(ObjectPropertyExpression role,
                                Description c)
Method Detail

getRole

public ObjectPropertyExpression getRole()

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


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