facile_rs.utils.metadata.datacite¶
Module Contents¶
Classes¶
DataCite metadata generator. |
Data¶
API¶
- logger = 'getLogger(...)'¶
- class DataciteMetadata(data)¶
DataCite metadata generator.
Initialization
Initialize the metadata generator with CodeMeta metadata dictionary.
- Parameters:
data – CodeMeta metadata dictionary, typically the data attribute of a CodemetaMetadata object.
- doi_prefix = 'https://doi.org/'¶
- orcid_prefix = 'https://orcid.org/'¶
- ror_prefix = 'https://ror.org/'¶
- name_types = None¶
- to_xml()¶
Generate the DataCite XML metadata.
- Returns:
DataCite metadata in XML format.
- render_node(tag, args={}, text=None)¶
Render a single XML node in self.xml .
- Parameters:
tag (str) – XML tag name.
args (dict) – XML tag attributes.
text (str) – XML tag text content.
- render_document()¶
Render the whole DataCite XML document in self.xml .
- render_funding_references()¶
DataCite XML rendering of funding references. See https://datacite-metadata-schema.readthedocs.io/en/4.5/properties/fundingreference/.
According to the CodeMeta standard: - ‘funder’ is a (list of) Organization or Person (identical as schema.org). - ‘funding’ is a (list of) Text describing the funding grants. According to the schema.org standard: - ‘funding’ is a (list of) Grant (see https://schema.org/Grant)