Static strings for term in the LAPPS Exchange Vocabulary. See http://vocab.lappsgrid.org
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
COPYRIGHT
LICENSE
Makefile
README.md
deploy.sh
pom.xml
secure.sh
settings.xml

README.md

org.lappsgrid.vocabulary

Vocabulary used for LAPPS annotations, features, and metadata

Build Status

Master Status Develop Status

Maven

Maven Central

<dependency>
    <groupId>org.lappsgrid</groupId>
    <artifactId>vocabulary</artifactId>
    <version>2.3.1</version>
</dependency>    

Usage

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.