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

Allow handling of DataCite (e.g.) DOIs in addition to Crossref #9

Open
kyleniemeyer opened this issue Aug 23, 2016 · 1 comment
Open

Comments

@kyleniemeyer
Copy link
Member

Currently the DOI validator (in branch doi-validator, to be merged via PR #4 ) only supports Crossref DOIs. While most journal papers will have these, we also need to support other DOI registration agencies, in particular DataCite, since paper & data repositories such as Figshare and Zenodo provide DataCite DOIs.

Fortunately, there is a Python package for accessing the DataCite API: http://datacite.readthedocs.io/en/latest/.

This should be added to _validate_isvalid_reference() in chemked/validation.py as a fallback option if the Crossref API returns an HTTPError.

@bryanwweber
Copy link
Member

Code from @kyleniemeyer to handle this:

dc = habanero.Crossref(base_url='https://api.datacite.org')
res = dc.works(ids = '10.7287/peerj.preprints.2169')

The API shown above is for members only, the API in this post is the public API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants