binary-array-ld / bald

Python library for validating and managing binary array linked data files, e.g. HDF, netCDF.
BSD 3-Clause "New" or "Revised" License
11 stars 12 forks source link

Method to encode the type of values in an Array (the actual data) #22

Open jyucsiro opened 7 years ago

jyucsiro commented 7 years ago

How would we encode the type of values in an Array?

Could we look at ISO19115 to see how they encode it? @dr-shorthair

How would http://binary-array-ld.net/latest handle this? @marqh

marqh commented 7 years ago

i think we should consider explicitly handling/specifying data type, it's a useful metadata facet.

we'd need controlled terms for the predicate, we can use http://binary-array-ld.net/latest for that

where could we get a controlled list of terms for known data types? what should be on this list?

jyucsiro commented 7 years ago

@JimBiardCics and I were discussing and the topic of how would we specify the data type came up. Would we need a register of datatypes? Could we reuse XSD datatypes?

dr-shorthair commented 7 years ago

Also http://www.opengis.net/def/dataType/ and https://www.iso.org/obp/ui/#iso:std:iso-iec:11404:ed-2:v1:en

jyucsiro commented 7 years ago

At Sept 29 telecon, we raised that current bald output doesn’t capture datatypes in the RDF encoding which might be important for CF applications. Some libraries - auto-apply _FillValue, add_offset, scale_factor. Need the xsd datatypes to aid tools like nclddump. Bumping this ticket to address the mapping to xsd datatypes on bald

Raise a ticket to add an attribute to an bald:Array for capturing the datatype - bound directly for the file Optional second statement, e.g. accessedAs

See #67 also.