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 ChemRxiv publications #170

Merged
merged 5 commits into from Jan 24, 2021
Merged

Conversation

cthoyt
Copy link
Contributor

@cthoyt cthoyt commented Jan 20, 2021

Similarly to #140 and #169, this PR enables the creation of new items based on ChemRxiv identifiers. Unlike bioRxiv and arXiv, ChemRxiv does not have a property in Wikidata, but does issue DOIs.

Demonstration: chemrxiv:13607438 (https://chemrxiv.org/articles/preprint/Enantioselective_Conjugate_Addition_of_Catalytically_Generated_Zinc_Homoenolate/13607438) can be seen at https://www.wikidata.org/wiki/Q104931192.

Example CLI usage: wikidataintegrator-publication --source chemrxiv --idtype chemrxiv 804294

Caveat: I'm not sure if the author ORCID identifier intake works well

Update: I've made a property proposal on Wikidata for a first class ChemRxiv ID. If this gets accepted, then I will send a follow-up pull request to change the primary key to using the ChemRxiv ID.

@@ -548,12 +551,44 @@ def biorxiv_api_to_publication(biorxiv_id: str, id_type='biorxiv') -> Publicatio
return publication


def chemrxiv_api_to_publication(chemrxiv_id: str, id_type='chemrxiv') -> Publication:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In theory, this could be used for other figshare *Rxiv servers as well, but the JSON response doesn't give any hints as to which database the result is actually part of

@andrawaag andrawaag merged commit 8f6d907 into SuLab:main Jan 24, 2021
@cthoyt cthoyt deleted the add-chemrxiv-publications branch January 24, 2021 16:53
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.

None yet

2 participants