Issue 18441

Improve how we manage sets of Term for tables and downloads

18441
Reporter: cgendreau
Type: Improvement
Summary: Improve how we manage sets of Term for tables and downloads
Priority: Unassessed
Status: ToDo
Created: 2016-04-28 11:54:20.701
Updated: 2016-04-28 11:54:20.701
        
Description: We currently have 2 distincts sets of Terms that are used for different tasks:

org.gbif.occurrence.common.TermUtils
org.gbif.occurrence.download.hive.Terms

For the moment, TermUtils.interpretedTerms() and Terms.interpretedTerms() are exactly equals and they should be in order to generate proper DarwinCore Archive in download.

occurrence-download uses Terms AND TermUtils and the occurrence-persistence project use TermUtils.

In addition, depending on the context, we use different exclusion lists (e.g. gbifID, mediaType) which makes any modification those sets a risky business. We also need to consider a mechanism to support deprecated terms (e.g. GbifTerm.coordinateAccuracy).
]]>