Hi all,
I’m not sure whether this is right place to ask. I’ve just come from the Python package “datacite” on GitHub and was redirected here. I need that package to create DOIs automatically, but I can’t manage to include descriptions in the DOI.
For example, look at this code:
from datacite import schema42
data = {
'identifiers': [
{ # plural! See Issue 70
'identifierType': 'DOI',
'identifier': '10.82035/ce-btpax',
}
],
'creators': [
{'name': 'Miller, Mike',},
],
# Title
'titles': [
{'title': 'Paper', }
],
'publisher': 'New Stuff',
'publicationYear': '2022',
'types': {
'resourceType': 'Dataset',
'resourceTypeGeneral': 'Dataset'
},
'descriptions': [
{
# 'lang': 'en', # key lang doesn't exist in version 4.2?
'descriptionType': 'Abstract',
'description:': 'Short abstract for test',
},
],
'schemaVersion': 'http://datacite.org/schema/kernel-4',
}
# Validate dictionary
assert schema42.validate(data)
Without the descriptions
element, the schema validates, but not with descriptions
.
According to the schema documentation I see no other way to include it. Could someone give me a hint?
How can I find out which keys to use when I read the documentation?
Thanks, Michael