AtlasOfLivingAustralia / la-pipelines

Living Atlas Pipelines extensions
3 stars 4 forks source link

organismQuantity integer value is incorrectly converted to float #508

Open peggynewman opened 3 years ago

peggynewman commented 3 years ago

sample : https://biocache.ala.org.au/occurrences/743f6bc0-e5ed-4371-b12e-48e794141567

brucehyslop commented 3 years ago

organismQuantity is stored in solr with datatype string, formatting of the value is performed by pipelines.

According to the DwC term definition this value can contains non numeric values depending on the organismQuantityType term

https://dwc.tdwg.org/terms/#dwc:organismQuantity organismQuantity
Identifier http://rs.tdwg.org/dwc/terms/organismQuantity
Definition A number or enumeration value for the quantity of organisms.
Comments An organismQuantity must have a corresponding organismQuantityType.
Examples 27 (organismQuantity) with individuals (organismQuantityType). 12.5 (organismQuantity) with % biomass (organismQuantityType). r (organismQuantity) with Braun Blanquet Scale (organismQuantityType). many (organismQuantity) with individuals (organismQuantityType).
djtfmartin commented 3 years ago

@peggynewman - given the above definition, can this be closed ? If not I suggest we move the issue to gbif/pipelines for discussion with gbif team.