Issue 10662
Add Rank to TaxonomicCoverage class
10662
Reporter: kbraak
Assignee: kbraak
Type: Bug
Summary: Add Rank to TaxonomicCoverage class
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-01-23 14:22:15.623
Updated: 2013-12-16 17:50:37.722
Resolved: 2012-01-27 11:26:23.224
Description: The TaxnomicCoverage class is modeled after the taxomoicClassification block in the GBIF EML schema:
kingdom
Plantae
Plants
Currently common name and scientific name are implemented, but Rank is not.
Please implement Rank reusing an existing common enum if possible.
Once it has been added, the next step will be to parse out the information from the source eml metadata.
]]>
Author: kbraak@gbif.org
Comment: gbif-common-api has enum Rank. It also appears I could use Rank.inferRank(@Nullable String rankMarker) to match a potential rank to its interpreted enum equivalent.
Created: 2012-01-23 14:52:22.134
Updated: 2012-01-23 14:52:22.134
Author: mdoering@gbif.org
Comment: better use the rank parser - the inferRank is meant only for markers found in real names
Created: 2012-01-23 14:53:40.802
Updated: 2012-01-23 14:53:40.802
Author: kbraak@gbif.org
Comment: RankParser inside org.gbif.common.parsers.rank, got it thanks!
Created: 2012-01-23 15:02:52.113
Updated: 2012-01-23 15:02:52.113
Author: kbraak@gbif.org
Created: 2012-01-24 10:48:15.067
Updated: 2012-01-24 10:48:15.067
The field rank was implemented using the InterpretedEnum property, where Rank is the enum, and is now being populated from source metadata. In registry-metadata-service, the raw value is converted into an InterpretedEnum using the interpretedRankParser.
The only problem left, is a failing test in registry-api, serializing/deserializing the Dataset object following the addition of the InterpretedEnum to the TaxonomicCoverage class.