ontometer_corpus.store.zenodo¶
Zenodo drafts for the archived bundles of a corpus version.
Creates a new deposition, or a new version of an existing record (which keeps the earlier version's files, so a later release only adds its delta bundle), uploads the files and sets the metadata. It never publishes: a published Zenodo record cannot be withdrawn, so that step stays manual, in the web interface, after review.
Attributes¶
ZENODO_URL = 'https://zenodo.org'
module-attribute
¶
SANDBOX_URL = 'https://sandbox.zenodo.org'
module-attribute
¶
Classes¶
ZenodoError
¶
ZenodoDraft
dataclass
¶
Functions:¶
load_metadata(path, rev)
¶
Deposition metadata from corpus/zenodo.yaml, versioned as rev.
create_draft(files, metadata, *, token, base_url=ZENODO_URL, session=None, record=None)
¶
Create a draft (a new version of record when given) holding files; never publish.