Skip to content

Commit

Permalink
Adding new CLB_DATASET_KEY IdentifierType and ACEF & TEXT_TREE Endpoi…
Browse files Browse the repository at this point in the history
…ntType values. See CatalogueOfLife/backend#1356
  • Loading branch information
mdoering committed Oct 8, 2024
1 parent 8212381 commit 5f11784
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/gbif/api/vocabulary/EndpointType.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ public enum EndpointType {
* <a href="https://tdwg.github.io/camtrap-dp/">CamTrap DP</a>.
*/
CAMTRAP_DP,
/**
* <a href="https://www.checklistbank.org/about/formats#annual-checklist-exchange-format-acef">Annual Checklist Exchange Format (ACEF)</a>
* from the Catalogue of Life.
*/
ACEF,
/**
* <a href="https://github.com/gbif/text-tree">TextTree</a>.
* is a simple format to represent taxonomic trees using indented, plain text.
*/
TEXT_TREE,
/**
* Any other service not covered by this enum so far.
*/
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/org/gbif/api/vocabulary/IdentifierType.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,13 @@ public enum IdentifierType {
/**
* https://www.ncbi.nlm.nih.gov/
*/
NCBI_BIOCOLLECTION;
NCBI_BIOCOLLECTION,

/**
* ChecklistBank dataset keys (integer)
* https://www.checklistbank.org/dataset
*/
CLB_DATASET_KEY;

// TODO: Check if this is used, it didn't exist in the new Registry2 API, but I preserved it from the old vocabulary
public static final List<IdentifierType> TYPES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void testGuessing() {
@Test
public void testTypes() {
List<IdentifierType> identifierTypes = IdentifierType.TYPES;
assertEquals(20, identifierTypes.size());
assertEquals(21, identifierTypes.size());
}

}

0 comments on commit 5f11784

Please sign in to comment.