WDscholia / scholia

Wikidata-based scholarly profiles
https://scholia.toolforge.org
Other
219 stars 78 forks source link

Added support for nanopublications as source #2432

Closed egonw closed 6 months ago

egonw commented 7 months ago

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

egonw commented 7 months ago

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 commented 6 months ago

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

fnielsen commented 6 months ago

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