org.dllearner.core.owl
Class Annotation

java.lang.Object
  extended by org.dllearner.core.owl.Annotation
All Implemented Interfaces:
KBElement
Direct Known Subclasses:
ConstantAnnotation

public class Annotation
extends Object
implements KBElement

An annotation, e.g. rdfs:label "foo".

Author:
Jens Lehmann

Constructor Summary
Annotation(URI annotationURI, KBElement annotationValue)
           
 
Method Summary
 void accept(KBElementVisitor visitor)
           
 URI getAnnotationURI()
           
 KBElement getAnnotationValue()
           
 int getLength()
          Gets the length of this knowledge base element.
 String toKBSyntaxString(String baseURI, Map<String,String> prefixes)
           
 String toManchesterSyntaxString(String baseURI, Map<String,String> prefixes)
           
 String toString(String baseURI, Map<String,String> prefixes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annotation

public Annotation(URI annotationURI,
                  KBElement annotationValue)
Method Detail

accept

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

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.

toKBSyntaxString

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

toString

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

getAnnotationURI

public URI getAnnotationURI()
Returns:
the annotationURI

getAnnotationValue

public KBElement getAnnotationValue()
Returns:
the annotationValue

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-2008 Jens Lehmann