Skip to content

Commit 9bf9fe1

Browse files
mdoeringahakanzn
authored andcommitted
Adding new CLB_DATASET_KEY IdentifierType and ACEF & TEXT_TREE EndpointType values. See CatalogueOfLife/backend#1356
1 parent ff93933 commit 9bf9fe1

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

src/main/java/org/gbif/api/vocabulary/EndpointType.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ public enum EndpointType {
9595
*/
9696
BIOM_2_1,
9797

98+
/**
99+
* <a href="https://www.checklistbank.org/about/formats#annual-checklist-exchange-format-acef">Annual Checklist Exchange Format (ACEF)</a>
100+
* from the Catalogue of Life.
101+
*/
102+
ACEF,
103+
/**
104+
* <a href="https://github.com/gbif/text-tree">TextTree</a>.
105+
* is a simple format to represent taxonomic trees using indented, plain text.
106+
*/
107+
TEXT_TREE,
98108
/**
99109
* Any other service not covered by this enum so far.
100110
*/

src/main/java/org/gbif/api/vocabulary/IdentifierType.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,13 @@ public enum IdentifierType {
104104
/**
105105
* https://www.ncbi.nlm.nih.gov/
106106
*/
107-
NCBI_BIOCOLLECTION;
107+
NCBI_BIOCOLLECTION,
108+
109+
/**
110+
* ChecklistBank dataset keys (integer)
111+
* https://www.checklistbank.org/dataset
112+
*/
113+
CLB_DATASET_KEY;
108114

109115
// TODO: Check if this is used, it didn't exist in the new Registry2 API, but I preserved it from the old vocabulary
110116
public static final List<IdentifierType> TYPES;

src/test/java/org/gbif/api/vocabulary/IdentifierTypeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void testGuessing() {
5050
@Test
5151
public void testTypes() {
5252
List<IdentifierType> identifierTypes = IdentifierType.TYPES;
53-
assertEquals(20, identifierTypes.size());
53+
assertEquals(21, identifierTypes.size());
5454
}
5555

5656
}

0 commit comments

Comments
 (0)