org.semanticweb.owlapi.model
Interface OWLAnnotation

All Superinterfaces:
java.lang.Comparable<OWLObject>, OWLAnnotationObject, OWLAnnotationSubject, OWLObject
All Known Implementing Classes:
OWLAnnotationImpl

public interface OWLAnnotation
extends OWLObject, OWLAnnotationSubject

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 18-Dec-2006

Annotations are used in the various types of annotation axioms, which bind annotations to their subjects (i.e. axioms or declarations).

An annotation is equal to another annotation if both objects have equal annotation URIs and have equal annotation values


Method Summary
 void accept(OWLAnnotationObjectVisitor visitor)
           
<O> O
accept(OWLAnnotationObjectVisitorEx<O> visitor)
           
 java.util.Set<OWLAnnotation> getAnnotations()
          Gets the annotations on this annotation
 OWLAnnotationProperty getProperty()
          Gets the property that this annotation acts along
 OWLAnnotationValue getValue()
          Gets the annotation value.
 

Method Detail

getProperty

OWLAnnotationProperty getProperty()
Gets the property that this annotation acts along

Returns:
The annotation property

getValue

OWLAnnotationValue getValue()
Gets the annotation value. The type of value will depend upon the type of the annotation e.g. whether the annotation is a constant annotation, individual annotation etc.

Returns:
the annotation value. Annotations can either have a value of an IRI (URI), literal or anonymous individual

getAnnotations

java.util.Set<OWLAnnotation> getAnnotations()
Gets the annotations on this annotation

Returns:
A (possibly empty) set of annotations that annotate this annotation

accept

void accept(OWLAnnotationObjectVisitor visitor)

accept

<O> O accept(OWLAnnotationObjectVisitorEx<O> visitor)