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

Create JSON-LD directly to avoid datacite rate limits #454

Merged
merged 7 commits into from Dec 14, 2021

Conversation

alisonrclarke
Copy link
Contributor

@alisonrclarke alisonrclarke commented Dec 7, 2021

Replaced function that amended the DataCite JSON-LD with custom JSON-LD generator.

Note that I haven't tested this extensively on different records (though the test coverage of the new module is 100%) so it's worth doing some further checks in case of missing keys in the context dictionary.

Replaced function that amended the DataCite JSON-LD with custom JSON-LD
generator.
@coveralls
Copy link

coveralls commented Dec 7, 2021

Coverage Status

Coverage increased (+0.1%) to 88.783% when pulling 9a1e5bf on hepdata-json-ld into 352c6fc on master.

Copy link
Member

@GraemeWatt GraemeWatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some minor feedback to support records with multiple versions.

hepdata/modules/records/utils/json_ld.py Outdated Show resolved Hide resolved
hepdata/modules/records/utils/json_ld.py Outdated Show resolved Hide resolved
hepdata/modules/records/utils/json_ld.py Outdated Show resolved Hide resolved
@GraemeWatt GraemeWatt merged commit 322664d into master Dec 14, 2021
@GraemeWatt GraemeWatt deleted the hepdata-json-ld branch December 14, 2021 20:38
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.

json-ld: create JSON-LD ourselves rather than using DataCite
3 participants