Vocabulary used for LAPPS annotations, features, and metadata
<dependency>
<groupId>org.lappsgrid</groupId>
<artifactId>vocabulary</artifactId>
<version>${see.above}</version>
</dependency>
Like the Discriminators package the Vocabulary package defines static final constants for URI in the LAPPS Grid Vocabulary.
The main classes are:
Annotations
: URI for the annotations defined in the vocabulary.Features
: Allowable features for the each annotation type.Metadata
: Metadata attributes used by the LAPPS Grid.
For example:
Annotation a = new Annotation();
a.setLabel(Annotations.TOKEN);
a.getFeatures().add(Features.Token.PART_OF_SPEECH, "NNP");
The use of the Vocabulary classes ensures URI are used consistently and allows IDEs to provice code completion and tool-tip help.