gate
Interface AnnotationGraph


public interface AnnotationGraph

NOT IN USE AT PRESENT.

Annotation graphs are defined at the LDC's annotation site


Method Summary
 AnnotationGraph getAnnotations(String type)
          Get annotations by type
 AnnotationGraph getAnnotations(String type, FeatureMap features)
          Get annotations by type and features
 AnnotationGraph getAnnotations(String type, FeatureMap features, Long offset)
          Get annotations by type, features and offset
 AnnotationGraph getAnnotations(String type, Long offset)
          Get annotations by type and position.
 Long getId()
          Returns the Id of the annotation graph
 Node getNode(Long id)
          find a node by ID
 Annotation newAnnotation(Long id, long start, long end, String type)
           
 Annotation newAnnotation(Long id, Node start, Node end, String type)
           
 Node putNodeAt(Long id, long offset)
          Creates a new node with the offset offset
 

Method Detail

getNode

Node getNode(Long id)
find a node by ID


getAnnotations

AnnotationGraph getAnnotations(String type)
Get annotations by type


getAnnotations

AnnotationGraph getAnnotations(String type,
                               FeatureMap features)
Get annotations by type and features


getAnnotations

AnnotationGraph getAnnotations(String type,
                               Long offset)
Get annotations by type and position. This is the set of annotations of a particular type which share the smallest leastUpperBound that is >= offset


getAnnotations

AnnotationGraph getAnnotations(String type,
                               FeatureMap features,
                               Long offset)
Get annotations by type, features and offset


putNodeAt

Node putNodeAt(Long id,
               long offset)
               throws InvalidOffsetException
Creates a new node with the offset offset

Parameters:
offset - the offset in document where the node will point
Throws:
InvalidOffsetException

getId

Long getId()
Returns the Id of the annotation graph


newAnnotation

Annotation newAnnotation(Long id,
                         Node start,
                         Node end,
                         String type)

newAnnotation

Annotation newAnnotation(Long id,
                         long start,
                         long end,
                         String type)