Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DataCite 4.5 Support #94

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Add DataCite 4.5 Support #94

merged 2 commits into from
Oct 17, 2024

Conversation

tmorrell
Copy link
Contributor

@tmorrell tmorrell commented Jul 4, 2024

This PR adds DataCite 4.5 support. I'll leave this PR open for comments until at least 2024-07-11.

This is a major set of improvements, primarily contributed by @edager. @mfenner helped with some initial jsonschema work and reviews. This will close #81 #86 #80 and #76

Changes in version 4.5 include

  • Switches to jsonschema 2019-09 and adds more complete validation to catch mistyped elements
  • Switches publisher from a string to an object. This means you will need to change publisher to be structured like "publisher": {"name": "Invenio Software"} when you use version 4.5. This change is needed to support the addition of publisher identifiers.
  • Removes the identifiers field and added doi, prefix, and suffix fields. These fields are clearer, and DataCite appears to be moving away from the combined identifiers field. doi and prefix are not a required fields since you may or may not have them depending on your workflow.
  • Adds new relatedItem elements for publication metadata
  • Switches geolocation point values to numbers. This is to enable validation and is consistent with GeoJson and InvenioRDM. It is different from the DataCite REST API which uses strings, and submitted numbers will be turned into strings by DataCite.
  • Reorganizes geolocationPolygon to how DataCite is currently rendering this metadata
  • Adds support for the new resourceTypeGeneral and relationType values
  • General jsonschema organization improvements

@tmorrell tmorrell force-pushed the 4.5 branch 2 times, most recently from 9813936 to d7378c2 Compare July 4, 2024 13:34
@edager
Copy link
Contributor

edager commented Jul 4, 2024

@tmorrell Thanks for the changes, thought I would have had the time, but I have been quite busy the last couple of days

@tmorrell tmorrell mentioned this pull request Jul 5, 2024
7 tasks
@slint slint self-assigned this Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for 4.5 Schema
3 participants