package
0.6.27
Repository: https://github.com/front-matter/commonmeta.git
Documentation: pkg.go.dev

# Functions

Convert converts Commonmeta metadata to DataCite metadata.
Fetch fetches DataCite metadata for a given DOI and returns Commonmeta metadata.
FetchAll gets the metadata for a list of works from the DataCite API and returns Commonmeta metadata.
Get gets DataCite metadata for a given DOI.
GetAll gets the metadata for a list of works from the DataCite API.
GetContributor converts DataCite contributor metadata into the Commonmeta format.
Load loads the metadata for a single work from a JSON file.
LoadAll loads a list of DataCite metadata from a JSON string and returns Commonmeta metadata.
No description provided by the author
QueryURL returns the URL for the DataCite API query.
Read reads DataCite JSON response and return work struct in Commonmeta format.
ReadAll reads a list of DataCite JSON responses and returns a list of works in Commonmeta format.
ReadJSON reads JSON from a file and unmarshals it.
ReadJSONLines reads JSON lines from a file and unmarshals them.
ReadJSONList reads JSON list from a file and unmarshals it.
Upsert updates or creates datacite metadata.
UpsertAll updates or creates a list of DataCite metadata.
Write writes commonmeta metadata.
WriteAll writes a list of commonmeta metadata.

# Variables

No description provided by the author
DCToCMMappings maps DataCite resource types to Commonmeta types source: https://github.com/datacite/schema/blob/master/source/meta/kernel-4/include/datacite-resourceType-v4.xsd.

# Structs

No description provided by the author
No description provided by the author
AlternateIdentifier represents an alternate identifier in the DataCite metadata.
Container represents the container of the DataCite JSONAPI response.
Content represents the DataCite metadata returned from DataCite.
ContentContributor represents a creator or contributor in the DataCite JSONAPI response.
Contributor represents the contributor of the DataCite JSONAPI response.
No description provided by the author
Datacite represents the DataCite metadata.
trigger creation of findable or registered DOI.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author