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

Added support for nanopublications as source #2432

Merged
merged 2 commits into from
Mar 20, 2024
Merged

Added support for nanopublications as source #2432

merged 2 commits into from
Mar 20, 2024

Conversation

egonw
Copy link
Collaborator

@egonw egonw commented Mar 2, 2024

Description

This patch implements support for CiTO intention annotations from nanopublications. After a discussion on Mastodon, there now is a nanopublication template for such annotation and a SPARQL query can extract this and add this in an automated fashion to Wikidata.

I have proposed to write a FAIR CookBook recipe.

Caveats

None that I can think of. The runtime is still quite fast.

Testing

Patch one: The query now adds a "Nanopublication" source (venue), as shown below after "unselecting" the other sources:

image

Patch two: this adds a Number of nanopublications with explicit CiTO annotation line to the statistics panel, like:

image

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, ...)

After journal articles and datasets.
@egonw egonw added enhancement some suggestions to improve Scholia P2860-cites Wikidata property P3712 -objective-of-project-or-action-CiTO labels Mar 2, 2024
@egonw
Copy link
Collaborator Author

egonw commented Mar 2, 2024

BTW, the tox is because of an unrelated test fails, because the assumption was broken by an edits on the 29th, with a long batch of DOI prefix removal quickstatements: https://www.wikidata.org/w/index.php?title=Q463494&diff=2089683809&oldid=2077564810&diffmode=source

@fnielsen
Copy link
Collaborator

Interestingly I get 0 for Number of nanopublications with explicit CiTO annotation when looking at http://127.0.0.1:8100/cito/

@fnielsen fnielsen merged commit efbc664 into master Mar 20, 2024
4 of 7 checks passed
@fnielsen
Copy link
Collaborator

Running: https://scholia.toolforge.org/cito/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement some suggestions to improve Scholia P2860-cites Wikidata property P3712 -objective-of-project-or-action-CiTO
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants