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

Preserve license #15

Merged
merged 11 commits into from
Jun 12, 2024
Merged

Preserve license #15

merged 11 commits into from
Jun 12, 2024

Conversation

elichad
Copy link
Collaborator

@elichad elichad commented Jun 11, 2024

Adds limited preservation of license to the Zenodo metadata.

Notes:

  • legacy Zenodo API accepts only an id for the license, which is the same as the license's SPDX identifier, but lowercase.
  • you can search the Zenodo license list using id, name, URLs, etc, but this is very unreliable if there are multiple licenses with similar names/ids. I tried to implement this, but I couldn't get the number of false matches down far enough for some of the common licenses.
  • due to these limitations, the code will only be able to set the license if the RO-Crate license @id is the SPDX URI for that license. Other URIs, names, etc. will not work.

@elichad elichad merged commit 0bc0bba into main Jun 12, 2024
6 checks passed
@elichad elichad deleted the preserve-license branch June 27, 2024 12:13
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.

1 participant