View source: R/geometa_mapping.R
convert_metadata | R Documentation |
convert_metadata
is a tentative generic metadata converter to
convert from one source object, represented in a source metadata object model in R
(eg eml) to a target metadata object, represented in another target metadata object
model (eg geometa ISOMetadata
). This function relies on a list of
mapping rules defined to operate from the source metadata object to the target metadata
object. This list of mapping rules is provided in a tabular format. A version is embedded
in geometa and can be returned with getMappings
.
convert_metadata(obj, from, to, mappings, verbose)
obj |
a metadata object given in one of the mapping formats known by geometa.
The object should be a valid |
from |
a valid mapping format id (see |
to |
a valid mapping format id (see |
mappings |
a |
verbose |
print debugging messages. Default is |
an metadata object in the model specified as to
argument
This function is mainly used internally in as
generic methods to convert from one
metadata format to another. It is exported for extension to user custom metadata formats or for
debugging purpose. This converter is still experimental.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.