R6 class that represents metadata in DwC
Details
The DwCMetadata
class exists as a handling class for the encapsulation and
handling of metadata being presented
Methods
Method importFromLivingNorwayHTML()
Retrieve metadata information from a HTML file that has been created with a Living Norway HTML tag schema
Arguments
fileLocation
A
character
scalar containing the location of the HTML filefileEncoding
A
character
scalar. If non-empty, declares the encoding to be used on a file so the character data can be re-encoded as they are written...
A set of arguments to be passed to the
xml_new_root
function to define namespace information. The values returned by the helper functiongetDefaultEMLDefinitionInfo
will be used unless overwritten by user input here. In addition, arguments required by the EML standard but not provided here (such as the packageID attribute) will be otherwise auto-generated
Method importFromLivingNorwayRMD()
Retrieve metadata information from a RMD file that has been created with a Living Norway HTML tag schema
Arguments
fileLocation
A
character
scalar containing the location of the RMD filefileEncoding
A character string. If non-empty, declares the encoding to be used on a file so the character data can be re-encoded as they are written
...
A set of arguments to be passed to the
xml_new_root
function to define namespace information. The values returned by the helper functiongetDefaultEMLDefinitionInfo
will be used unless overwritten by user input here. In addition, arguments required by the EML standard but not provided here (such as the packageID attribute) will be otherwise auto-generated
Method importFromEML()
Retrieve metadata information from an Ecological Metadata Language (EML) file
Method new()
Initialise a metadata object from an import file
Usage
DwCMetadata$new(fileLocation, fileEncoding = "", fileType = NA, ...)
Arguments
fileLocation
A
character
scalar containing the location of the import filefileEncoding
A
character
string. If non-empty, declares the encoding to be used on a file so the character data can be re-encoded as they are writtenfileType
A
character
scalar stating the type of the file. File type can be either"rmarkdown"
,"html"
,"eml"
, or"darwincore"
. IfNA
then the file type will be determined from the file extension...
A set of arguments to be passed to the
xml_new_root
function to define namespace information. The values returned by the helper functiongetDefaultEMLDefinitionInfo
will be used unless overwritten by user input here. In addition, arguments required by the EML standard but not provided here (such as the packageID attribute) will be otherwise auto-generated