org.dllearner.core.owl
Class ObjectProperty

java.lang.Object
  extended by org.dllearner.core.owl.ObjectPropertyExpression
      extended by org.dllearner.core.owl.ObjectProperty
All Implemented Interfaces:
Serializable, Comparable<ObjectProperty>, Entity, KBElement, NamedKBElement, Property, PropertyExpression

public class ObjectProperty
extends ObjectPropertyExpression
implements Property, Comparable<ObjectProperty>

Represents an object property in a knowledge base / ontology, e.g. "hasChild".

Author:
Jens Lehmann
See Also:
Serialized Form

Constructor Summary
ObjectProperty(String name)
           
 
Method Summary
 void accept(KBElementVisitor visitor)
           
 int compareTo(ObjectProperty o)
           
 boolean equals(Object nc)
           
 int getLength()
          Gets the length of this knowledge base element.
 URI getURI()
           
 int hashCode()
           
 String toKBSyntaxString(String baseURI, Map<String,String> prefixes)
           
 String toManchesterSyntaxString(String baseURI, Map<String,String> prefixes)
           
 String toString()
           
 String toString(String baseURI, Map<String,String> prefixes)
           
 
Methods inherited from class org.dllearner.core.owl.ObjectPropertyExpression
getName
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.dllearner.core.owl.NamedKBElement
getName
 

Constructor Detail

ObjectProperty

public ObjectProperty(String name)
Method Detail

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.

Specified by:
getLength in interface KBElement
Returns:
The syntactic length of the KB element, defined as the number of syntactic constructs not including brackets.

getURI

public URI getURI()
Specified by:
getURI in interface Entity

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(String baseURI,
                       Map<String,String> prefixes)
Specified by:
toString in interface KBElement

toKBSyntaxString

public String toKBSyntaxString(String baseURI,
                               Map<String,String> prefixes)
Specified by:
toKBSyntaxString in interface KBElement

accept

public void accept(KBElementVisitor visitor)
Specified by:
accept in interface KBElement

compareTo

public int compareTo(ObjectProperty o)
Specified by:
compareTo in interface Comparable<ObjectProperty>

equals

public boolean equals(Object nc)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toManchesterSyntaxString

public String toManchesterSyntaxString(String baseURI,
                                       Map<String,String> prefixes)
Specified by:
toManchesterSyntaxString in interface KBElement


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