Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Develop from/to wrappers for format adapters with ISO 19139 #101
A generic metadata mapper will be drafted to plug adapters between geometa ISOMetadata classes and
This mapper will be developed first in a separate branch. The mapping tests done with EML package will be handled with the most recent version of EML (from Github) where handling of EML metadata elements has been switched from S4 to list objects. In term of package lifecycle and release to CRAN, this work will be merged to the master branch only when EML package will be up-to-date in CRAN.
This was referenced
Apr 30, 2019
The generic metadata converter implemented consists in set of classes and functions available here.
The design includes the definition of the metadata formats subject to the conversion. A format is defined with the class
Formats for geometa, ncdf4 and EML/emld are then registered by default in geometa. Please note that are not Import packages, as such strong dependency with packages like EML/emld/ncdf4 is not expected in geometa since it is only used for this mapping/conversion feature). Registration of default formats can be done with
The rules required to convert from one object to another are listed (property by property) into a tabular data file. By default the mapping file used is the one embedded in geometa at: https://github.com/eblondel/geometa/blob/master/inst/extdata/mappings/geometa_mapping.csv An interactive file is available as read-only (and used for developments) at: https://docs.google.com/spreadsheets/d/1N-Xpp8-YjVzQ4CORfdas_9CaRV4hdrRKPbO4xXNs8-Q/edit#gid=0 Each column of this mapping file corresponds to a format. Each row of the mapping file will be modelled as mapping with class
The methodology behind writing a pivot format rule is out of scope of this ticket, but will be documented in exhaustive way in the future to foster collaborative work around the mappings made available in geometa (starting with EML/emld and ncdf4). To summarize, the string representation allows to perform the following tasks:
A set of unit functions are in charge of reading source object (