Skip to content

gbif/dwc-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Darwin Core API

The DwC-API library provides:

  • Enumerations representing Darwin Core terms
  • Enumerations representing terms or a subset of terms from other standards (e.g. Dublin Core, Audubon Core)
  • Handling of unknown terms through UnknownTerm
  • Factory for getting Term instances
  • Utilities like JSON serialization and Term comparator

To build the project

mvn clean install

Usage

//get Term by the defined enumaration
Term scientificNameFromEnum = DwcTerm.scientificName;

//get Term by the TermFactory
TermFactory factory = TermFactory.instance();
Term scientificNameFromPrefixAndSimpleName = factory.findTerm("dwc:scientificName");
Term scientificNameFromQualifiedName = factory.findTerm("http://rs.tdwg.org/dwc/terms/scientificName");

Documentation

JavaDocs