Skip to content

Commit

Permalink
geological terms
Browse files Browse the repository at this point in the history
  • Loading branch information
djtfmartin committed Sep 27, 2024
1 parent 9cd0550 commit e2615aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/main/java/org/gbif/dwc/terms/GbifTerm.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ public enum GbifTerm implements Term, AlternativeNames, Serializable {
gbifRegion(DwcTerm.GROUP_LOCATION),

/** GBIF region based on publishing country code */
publishedByGbifRegion(DwcTerm.GROUP_LOCATION);
publishedByGbifRegion(DwcTerm.GROUP_LOCATION),

geologicalTime(DwcTerm.GROUP_OCCURRENCE),
lithostratigraphy(DwcTerm.GROUP_OCCURRENCE),
biostratigraphy(DwcTerm.GROUP_OCCURRENCE);

private static final String PREFIX = "gbif";
private static final String NS = "http://rs.gbif.org/terms/1.0/";
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/gbif/dwc/terms/GbifTermTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public void testListByGroup() {
assertEquals(2, new HashSet<>(datasetTerms).size());

List<GbifTerm> occurrenceTerms = GbifTerm.listByGroup(DwcTerm.GROUP_OCCURRENCE);
assertEquals(13, occurrenceTerms.size());
assertEquals(13, new HashSet<>(occurrenceTerms).size());
assertEquals(16, occurrenceTerms.size());
assertEquals(16, new HashSet<>(occurrenceTerms).size());

List<GbifTerm> locationTerms = GbifTerm.listByGroup(DwcTerm.GROUP_LOCATION);
assertEquals(9, locationTerms.size());
Expand Down

0 comments on commit e2615aa

Please sign in to comment.