gbif / gbif-api

GBIF API
Apache License 2.0
27 stars 5 forks source link

Improve Interpretation remarks definition #5

Closed cgendreau closed 7 years ago

cgendreau commented 7 years ago

Interpretation remarks are also known as "issues" (e.g. OccurrenceIssue).

Currently for occurrences this information is defined in InterpretationRemarksDefinition.

In order to make the definition more explicit we should bring it to the gbif-api project. The same mechanism is also required to identify remarks in ChecklistBank.

The idea would be to have an interface like the following:

public interface InterpretationRemark {
  Set<Term> getRelatedTerms();
}

OccurrenceIssue and NameUsageIssue would then implement it.

cgendreau commented 7 years ago

NameUsageIssue fixed by https://github.com/gbif/gbif-api/commit/1784ade5a923c2db17d04a53698bb123dd9bc47b