You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a few ABCD elements are not indexed by GBIF. Some of them do map directly to DarwinCore terms, others are repeatable in ABCD and need to be concatenated for their DwC equivalents.
In the mapping file , these six lines should be added
# ABCD elements that have direct DwC equivalent occurrenceRemarks=Unit/Notes modified=Unit/DateLastEdited preparations=Unit/KindOfUnit
# ABCD elements that would need concatenation recordedByID=Unit/Gathering/Agents/GatheringAgent/ResourceURIs/ResourceURI identifiedByID=Unit/Identifications/Identification/Identifiers/Identifier/ResourceURIs/ResourceURI scientificNameID=Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/ResourceURIs/ResourceURI
@MattBlissett Should I create a PR for these additions - or do you prefer to add them on your own, together with the code to be added?
We'll have test data in our herbariumd dataset soon.
It looks like it puts a RawOccurrenceBuilder [1] onto the stack [2], which the rules [3] can then call methods on.
So for example, you can see that the with the collector names [4].
Off the top of my head (and using chatgpt) I think the code will need to be something along the lines of the snippet underneath:
// Create a List on the stack to collect the IDs
digester.addObjectCreate("unit/people", ArrayList.class);
// When we move off the people, call the populateRecordedByID on the Builder (a method you'll add which will do the List to | delimited String conversion)
digester.addSetNext("unit/people", "populateRecordedByID", List.class.getName());
// Add GUIDs to the list
digester.addCallMethod("unit/people/person/guid", "add", 1);
digester.addCallParam("unit/people/person/guid", 0);
Currently, a few ABCD elements are not indexed by GBIF. Some of them do map directly to DarwinCore terms, others are repeatable in ABCD and need to be concatenated for their DwC equivalents.
In the mapping file , these six lines should be added
# ABCD elements that have direct DwC equivalent
occurrenceRemarks=Unit/Notes
modified=Unit/DateLastEdited
preparations=Unit/KindOfUnit
# ABCD elements that would need concatenation
recordedByID=Unit/Gathering/Agents/GatheringAgent/ResourceURIs/ResourceURI
identifiedByID=Unit/Identifications/Identification/Identifiers/Identifier/ResourceURIs/ResourceURI
scientificNameID=Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/ResourceURIs/ResourceURI
@MattBlissett Should I create a PR for these additions - or do you prefer to add them on your own, together with the code to be added?
We'll have test data in our herbariumd dataset soon.
PS: Here's what @timrobertson100 already found out:
The text was updated successfully, but these errors were encountered: