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 ability to find new papers to add to Wikidata via topic curation pages #2479

Merged
merged 5 commits into from
May 6, 2024

Conversation

carlinmack
Copy link
Collaborator

Related to #1855

Rebased version of #2342

Note:

  • Will probably will need to fix flake and tox errors and will remove the draft status afterwards
  • The next PR will add the ability to batch the PRs

Description

Please include a summary of the change, relevant motivation and context. If possible and applicable, include before and after screenshots and a URL where the changes can be seen.

Adds support for searching Crossref for the 20 most recent papers on a disease, taxon, gene or protein and sends these results to the tool I've developed to find their presence in Wikidata and creating Quickstatements if they are found

image

image

Roadmap:

#2337 Adding support for multiple IDs
#2340 Adding support for DOIs to Quickstatements
This PR: Adding a button to curation pages to find if there are recent papers which can be created on Wikidata

Next PRs:

  • Upgrading citations.js (haven't been able to figure out) and potentially contributing some stuff upstream
  • Ability to select which entries to copy/send to quickstatements
  • Add checking whether Wikidata entries can be enriched

Caveats

Please list anything which has been left out of this PR or which should be considered before this PR is accepted
Check any of the following which apply:

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
    • I have made corresponding changes to the documentation
  • This change requires new dependencies (please list)

If you make changes to the Python code

  • My code passes the tox check, I can receive warnings about tests, documentation or both

Testing

Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce. Please also list any relevant details for your test configuration.

  • Test A
  • Test B

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have not used code from external sources without attribution
  • I have considered accessibility in my implementation
  • There are no remaining debug statements (print, console.log, ...)

@carlinmack carlinmack changed the title 1855 rebase Add ability to find new papers to add to Wikidata via topic curation pages Apr 18, 2024
@carlinmack
Copy link
Collaborator Author

Actually all the tests are passing

@carlinmack carlinmack marked this pull request as ready for review April 20, 2024 11:44
@fnielsen
Copy link
Collaborator

Actually all the tests are passing

Does this mean that it is not a draft?

@carlinmack
Copy link
Collaborator Author

Yep not a draft, ready for trying/review. By the way it is a bit slow, I can't remember why

@fnielsen fnielsen merged commit af0c18a into WDscholia:master May 6, 2024
4 checks passed
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.

2 participants