<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.4">Jekyll</generator><link href="https://chem-bla-ics.linkedchemistry.info/feed/by_tag/osr24nl.xml" rel="self" type="application/atom+xml" /><link href="https://chem-bla-ics.linkedchemistry.info/" rel="alternate" type="text/html" /><updated>2026-11-18T10:37:59+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/feed/by_tag/osr24nl.xml</id><title type="html">chem-bla-ics</title><subtitle>Chemblaics (pronounced chem-bla-ics) is the science that uses open science and computers to solve problems in chemistry, biochemistry and related fields.</subtitle><author><name>Egon Willighagen</name></author><entry><title type="html">Open Science Retreat #2: CiTO Nanopublications</title><link href="https://chem-bla-ics.linkedchemistry.info/2024/04/02/open-science-retreat-2.html" rel="alternate" type="text/html" title="Open Science Retreat #2: CiTO Nanopublications" /><published>2024-04-02T00:00:00+00:00</published><updated>2024-04-02T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2024/04/02/open-science-retreat-2</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2024/04/02/open-science-retreat-2.html"><![CDATA[<p>During the <a href="http://chem-bla-ics.linkedchemistry.info/2024/03/31/open-science-retreat-1.html">Open Science Retreat</a> I organized
a short session where we looking into typing citation intentions using a new nanopublication template. First, let’s describe
nanopublications (originally used in doi:<a href="https://doi.org/10.3233/ISU-2010-0613">10.3233/ISU-2010-0613</a>) a bit.
Scholia gives <a href="https://qlever.scholia.wiki/topic/Q57814310">a nice overview of (macro?)publications on the topic <i class="fa-solid fa-recycle fa-xs"></i></a>.
The <a href="https://nanopub.net/">nanopub.net</a>
website describes that <em>[a nanopublication is a small knowledge graph snippet with metadata that is treated as an
independent (scientific) publication.]</em>. The knowledge graph, it continues, can be anything from an opinion to the link
between a disease and a gene (doi:<a href="https://doi.org/10.1109/ESCIENCE.2018.00024">10.1109/ESCIENCE.2018.00024</a>).</p>

<p>Now, in this post I will document an update of how we can use nanopublications for citation intention annotation, and
compare this to existing solutions. I have been collecting and indexing the CiTO intention annotations in Wikidata and
visualizing the corpus with Scholia at <a href="https://qlever.scholia.wiki/cito/">qlever.scholia.wiki/cito/ <i class="fa-solid fa-recycle fa-xs"></i></a>. There are
currently 22 journal articles with explicit CiTO annoation, largely thanks to a <a href="https://www.biomedcentral.com/collections/cito">Journal of Cheminformatics pilot</a>
(e.g. see doi:<a href="https://doi.org/10.1186/s13321-023-00683-2">10.1186/s13321-023-00683-2</a>). Recently,
the preprint/report server <a href="https://biohackrxiv.org/discover">BioHackrXiv</a> started
<a href="https://github.com/biohackrxiv/publication-template">CiTO support</a> too, also visible in the statistics
on Scholia with another 17 papers. A third source is data sets from bibliometric-like studies, as explained
in <a href="https://chem-bla-ics.linkedchemistry.info/2023/04/02/cito-updates-4-annotations-in-datasets.html">this post <i class="fa-solid fa-recycle fa-xs"></i></a>. Nanopublications
would be a fourth solution.</p>

<p>So, why another solutions? Like the datasets, assuming DataCite approaches, have clear provenance, but the overhead
of and needed time for creating a dataset with citation intent annotations can be limiting. And because nanopublications
can be linked to ORCID identifiers, we can even discover which citation intent annotations are created by the original
authors of articles. Another advantage is that nanopubs are basically RDF and we can query them easily, allowing
the citation intentions to migrate to Wikidata. Scholia already saw an update to recognize nanopublications as
a unique kind reference (see the new Wikidata property <a href="https://www.wikidata.org/wiki/Property:P12545">Nanopublication identifier (P12545)</a>).</p>

<h1 id="nanodash-template">NanoDash template</h1>

<p>So, if we can make it easy for people to define nanopublications with CiTO citation intent annotations, than we can
start formalizing intent annotations from a much wider range of use cases. For example, we can annotate historically
important discussions. Anyone can retrospectively annotate all their own articles, making them more FAIR. And if we
use DOI links, then it no longer is limited to journal articles, but we can use of for software and data citations too.
This is where <a href="https://w3id.org/np/RAX_4tWTyjFpO6nz63s14ucuejd64t2mK3IBlkwZ7jjLo">a recent template</a> comes in created by
<a href="https://orcid.org/0000-0002-1267-0234">Tobias Kuhn</a>, one of the main nanopub developers:</p>

<p><img src="/assets/images/citoPub.png" alt="" /></p>

<p>This nanopublication template defines the minimal needs of the assumptions, along with useful provenance and nanopub
info. Basically, the assertion defines that one DOI is a ScholarlyWork and using the CiTO, defines that it cites
one or more article works (with DOI). For each citations, one can select any of the known CiTO intent types,
e.g. ‘extends’ or ‘uses method’ in, as in <a href="https://w3id.org/np/RA6Rxk1sSOSWxM7A6gW4SjJZRVt4fbY6nShPTAbQ8kce8">this nanopublication</a>
created with this template:</p>

<p><img src="/assets/images/citoPub2.png" alt="" /></p>

<h2 id="sparql-ing-cito-annotations">SPARQL-ing CiTO annotations</h2>

<p>Besides the template, Tobias also started a SPARQL query to which I added restrictions that the citing and cited
resources needs to have a DOI, giving us <a href="https://query.knowledgepixels.com/tools/type/2c1cce3f3152738c1009d59251409392aaaa3b0324bcb5fdfb4b7b944b8f0c18/yasgui.html#query=prefix+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0Aprefix+np%3A+%3Chttp%3A%2F%2Fwww.nanopub.org%2Fnschema%23%3E%0Aprefix+npa%3A+%3Chttp%3A%2F%2Fpurl.org%2Fnanopub%2Fadmin%2F%3E%0Aprefix+npx%3A+%3Chttp%3A%2F%2Fpurl.org%2Fnanopub%2Fx%2F%3E%0Aprefix+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0Aprefix+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0A%0Aselect+%3Fnp+%3Flabel+%3Fsubj+%3Fcitationrel+%3Fobj+%3Fdate+where+%7B%0A++graph+npa%3Agraph+%7B%0A++++%3Fnp+npa%3AhasValidSignatureForPublicKey+%3Fpubkey+.%0A++++%3Fnp+dct%3Acreated+%3Fdate+.%0A++++%3Fnp+np%3AhasAssertion+%3Fassertion+.%0A++++optional+%7B+%3Fnp+rdfs%3Alabel+%3Flabel+.+%7D%0A++++filter+not+exists+%7B+%3Fnpx+npx%3Ainvalidates+%3Fnp+%3B+npa%3AhasValidSignatureForPublicKey+%3Fpubkey+.+%7D%0A++++filter+not+exists+%7B+%3Fnp+npx%3AhasNanopubType+npx%3AExampleNanopub+.+%7D%0A++%7D%0A++graph+%3Fassertion+%7B%0A++++%3Fsubj+%3Fcitationrel+%3Fobj+.%0A++++filter(regex(str(%3Fcitationrel)%2C+%22%5Ehttp%3A%2F%2Fpurl.org%2Fspar%2Fcito%2F.*%24%22))%0A++++filter(regex(str(%3Fsubj)%2C+%22doi.org%2F10%22))%0A++++filter(regex(str(%3Fobj)%2C+%22doi.org%2F10%22))%0A++%7D%0A%7D%0A++&amp;contentTypeConstruct=text%2Fturtle&amp;contentTypeSelect=application%2Fsparql-results%2Bjson&amp;endpoint=%2Frepo%2Ftype%2F2c1cce3f3152738c1009d59251409392aaaa3b0324bcb5fdfb4b7b944b8f0c18&amp;requestMethod=POST&amp;tabTitle=Query&amp;headers=%7B%7D&amp;outputFormat=table">this query</a>:</p>

<div class="language-sparql highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">prefix</span><span class="w"> </span><span class="nn">rdfs</span><span class="o">:</span><span class="w"> </span><span class="nn">&lt;http://www.w3.org/2000/01/rdf-schema#&gt;</span><span class="w">
</span><span class="k">prefix</span><span class="w"> </span><span class="nn">np</span><span class="o">:</span><span class="w"> </span><span class="nn">&lt;http://www.nanopub.org/nschema#&gt;</span><span class="w">
</span><span class="k">prefix</span><span class="w"> </span><span class="nn">npa</span><span class="o">:</span><span class="w"> </span><span class="nn">&lt;http://purl.org/nanopub/admin/&gt;</span><span class="w">
</span><span class="k">prefix</span><span class="w"> </span><span class="nn">npx</span><span class="o">:</span><span class="w"> </span><span class="nn">&lt;http://purl.org/nanopub/x/&gt;</span><span class="w">
</span><span class="k">prefix</span><span class="w"> </span><span class="nn">xsd</span><span class="o">:</span><span class="w"> </span><span class="nn">&lt;http://www.w3.org/2001/XMLSchema#&gt;</span><span class="w">
</span><span class="k">prefix</span><span class="w"> </span><span class="nn">dct</span><span class="o">:</span><span class="w"> </span><span class="nn">&lt;http://purl.org/dc/terms/&gt;</span><span class="w">

</span><span class="k">select</span><span class="w"> </span><span class="nv">?np</span><span class="w"> </span><span class="nv">?label</span><span class="w"> </span><span class="nv">?subj</span><span class="w"> </span><span class="nv">?citationrel</span><span class="w"> </span><span class="nv">?obj</span><span class="w"> </span><span class="nv">?date</span><span class="w"> </span><span class="k">where</span><span class="w"> </span><span class="p">{</span><span class="w">
  </span><span class="k">graph</span><span class="w"> </span><span class="nn">npa</span><span class="o">:</span><span class="ss">graph</span><span class="w"> </span><span class="p">{</span><span class="w">
    </span><span class="nv">?np</span><span class="w"> </span><span class="nn">npa</span><span class="o">:</span><span class="ss">hasValidSignatureForPublicKey</span><span class="w"> </span><span class="nv">?pubkey</span><span class="w"> </span><span class="p">.</span><span class="w">
    </span><span class="nv">?np</span><span class="w"> </span><span class="nn">dct</span><span class="o">:</span><span class="ss">created</span><span class="w"> </span><span class="nv">?date</span><span class="w"> </span><span class="p">.</span><span class="w">
    </span><span class="nv">?np</span><span class="w"> </span><span class="nn">np</span><span class="o">:</span><span class="ss">hasAssertion</span><span class="w"> </span><span class="nv">?assertion</span><span class="w"> </span><span class="p">.</span><span class="w">
    </span><span class="k">optional</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nv">?np</span><span class="w"> </span><span class="nn">rdfs</span><span class="o">:</span><span class="ss">label</span><span class="w"> </span><span class="nv">?label</span><span class="w"> </span><span class="p">.</span><span class="w"> </span><span class="p">}</span><span class="w">
    </span><span class="k">filter</span><span class="w"> </span><span class="k">not</span><span class="w"> </span><span class="k">exists</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nv">?npx</span><span class="w"> </span><span class="nn">npx</span><span class="o">:</span><span class="ss">invalidates</span><span class="w"> </span><span class="nv">?np</span><span class="w"> </span><span class="p">;</span><span class="w"> </span><span class="nn">npa</span><span class="o">:</span><span class="ss">hasValidSignatureForPublicKey</span><span class="w"> </span><span class="nv">?pubkey</span><span class="w"> </span><span class="p">.</span><span class="w"> </span><span class="p">}</span><span class="w">
    </span><span class="k">filter</span><span class="w"> </span><span class="k">not</span><span class="w"> </span><span class="k">exists</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nv">?np</span><span class="w"> </span><span class="nn">npx</span><span class="o">:</span><span class="ss">hasNanopubType</span><span class="w"> </span><span class="nn">npx</span><span class="o">:</span><span class="ss">ExampleNanopub</span><span class="w"> </span><span class="p">.</span><span class="w"> </span><span class="p">}</span><span class="w">
  </span><span class="p">}</span><span class="w">
  </span><span class="k">graph</span><span class="w"> </span><span class="nv">?assertion</span><span class="w"> </span><span class="p">{</span><span class="w">
    </span><span class="nv">?subj</span><span class="w"> </span><span class="nv">?citationrel</span><span class="w"> </span><span class="nv">?obj</span><span class="w"> </span><span class="p">.</span><span class="w">
    </span><span class="k">filter</span><span class="p">(</span><span class="nb">regex</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="nv">?citationrel</span><span class="p">),</span><span class="w"> </span><span class="s2">"^http://purl.org/spar/cito/.*$"</span><span class="p">))</span><span class="w">
    </span><span class="k">filter</span><span class="p">(</span><span class="nb">regex</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="nv">?subj</span><span class="p">),</span><span class="w"> </span><span class="s2">"doi.org/10"</span><span class="p">))</span><span class="w">
    </span><span class="k">filter</span><span class="p">(</span><span class="nb">regex</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="nv">?obj</span><span class="p">),</span><span class="w"> </span><span class="s2">"doi.org/10"</span><span class="p">))</span><span class="w">
  </span><span class="p">}</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<p>This includes 6 citation intentions defined by 4 nanopublications added during the Open Science Retreat:</p>

<ul>
  <li><a href="https://w3id.org/np/RAUjZE1JMu1GAvUQ_fZ4yc9-7sOSCT9xbeS0wYznkKtYk">RAUjZE1JMu</a> by <a href="https://nanodash.knowledgepixels.com/explore?id=https%3A%2F%2Forcid.org%2F0000-0002-7192-1486">me</a> for a paper by Marija Purgar</li>
  <li><a href="https://nanodash.knowledgepixels.com/explore?id=RAXgI--5gcKskgrnOI1XZoA4b3hu9RbNj3bcc2Zxeos7c">RAXgI–5gc</a> by <a href="https://nanodash.knowledgepixels.com/explore?id=https%3A%2F%2Forcid.org%2F0000-0003-2408-7588">Christian Meesters</a></li>
  <li><a href="https://nanodash.knowledgepixels.com/explore?id=RATZNhd3l_jN0y8GEi8mLIqy-uVV8tiUZIq2RJtkq6G8A">RATZNhd3l_j</a> by <a href="https://nanodash.knowledgepixels.com/explore?id=https%3A%2F%2Forcid.org%2F0000-0003-4285-690X">Taichi Oichi</a></li>
  <li><a href="https://nanodash.knowledgepixels.com/explore?id=RA6Q6wxSYyWfA3XwpOBqSNFKgQpM7ZgdVBoU2kSD-CFjw">RA6Q6wxSYy</a> by <a href="https://nanodash.knowledgepixels.com/explore?id=https%3A%2F%2Forcid.org%2F0000-0003-1559-1838">Niklas Hohmann</a></li>
</ul>

<h1 id="from-nanopublications-to-wikidata">From nanopublications to Wikidata</h1>

<p>Now, this query also provides me with enough information to propagate the citation intent (a fact?) to Wikidata
and cite the original nanopublication as reference. With a variation of the above SPARQL query, I can get the
five most recent new nanopublications, convert them to QuickStatements, and then enjoy them in Wikidata. This
is written up in <a href="https://github.com/egonw/ons-wikidata/blob/main/Nanopubs/createQS.groovy">this Bacting script</a>.</p>

<p>The script needs to handle some situations. For example, it will not add items for DOIs not already in Wikidata.
So, if neither of the two DOIs are known in Wikidata, then nothing gets added. If they both are, then it will
add the citation intent. There are alternative solutions, but in practice that doesn’t matter and the QuickStatements
is in all situations the same, and QuickStatements will only add the new information.</p>

<p>This is what it will <a href="https://www.wikidata.org/wiki/Q113312162#P2860">look like in Wikidata</a>:</p>

<p><img src="/assets/images/citoPub3.png" alt="" /></p>

<p>And this is <a href="https://qlever.scholia.wiki/cito/#articles">what it looks <i class="fa-solid fa-recycle fa-xs"></i></a> (yellow) when we compare the contributions
from nanopublications now with the other sources:</p>

<p><img src="/assets/images/citoPubs4.png" alt="" /></p>]]></content><author><name>Egon Willighagen</name></author><category term="osr24nl" /><category term="openscience" /><category term="cito" /><category term="nanopub" /><category term="justdoi:10.3233/ISU-2010-0613" /><category term="doi:10.1109/ESCIENCE.2018.00024" /><category term="doi:10.1186/S13321-023-00683-2" /><category term="wikidata" /><summary type="html"><![CDATA[During the Open Science Retreat I organized a short session where we looking into typing citation intentions using a new nanopublication template. First, let’s describe nanopublications (originally used in doi:10.3233/ISU-2010-0613) a bit. Scholia gives a nice overview of (macro?)publications on the topic . The nanopub.net website describes that [a nanopublication is a small knowledge graph snippet with metadata that is treated as an independent (scientific) publication.]. The knowledge graph, it continues, can be anything from an opinion to the link between a disease and a gene (doi:10.1109/ESCIENCE.2018.00024).]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://chem-bla-ics.linkedchemistry.info/assets/images/citoPub.png" /><media:content medium="image" url="https://chem-bla-ics.linkedchemistry.info/assets/images/citoPub.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Open Science Retreat #1: impressions</title><link href="https://chem-bla-ics.linkedchemistry.info/2024/03/31/open-science-retreat-1.html" rel="alternate" type="text/html" title="Open Science Retreat #1: impressions" /><published>2024-03-31T00:00:00+00:00</published><updated>2024-03-31T00:00:00+00:00</updated><id>https://chem-bla-ics.linkedchemistry.info/2024/03/31/open-science-retreat-1</id><content type="html" xml:base="https://chem-bla-ics.linkedchemistry.info/2024/03/31/open-science-retreat-1.html"><![CDATA[<p>Last week I attended the <a href="https://openscienceretreat.eu/">Open Science Retreat</a> (<a href="https://hashtags-hub.toolforge.org/osr24nl">#osr24nl</a>)
in a quite and relaxing region in North-Holland. The meeting was how I like all meetings to be (and I count myself lucky many of my meetings
are like this): open, welcoming, constructive, diverse, and intellectually challenging. Not all scientific meetings are like this
and it is easy to end up going to obligatory meetings where the discussions are of a different level. Therefore, great thanks to
the organizers, but also to all participants, that showed not just to have a hearth for open science (getting pretty common),
but also a drive to advocate for open science. Finally, I like to thank the people that joined me in creating nanopublications for
CiTO annotations (will blog about that later), and <a href="https://twitter.com/marija_purgar/status/1773745895508451573">to Sadik and Marija</a>
with whom we worked on exploring using Wikibase for capturing knowledge about research waste in ecology (more about that later too).</p>]]></content><author><name>Egon Willighagen</name></author><category term="osr24nl" /><category term="openscience" /><category term="wikibase" /><category term="cito" /><category term="nanopub" /><summary type="html"><![CDATA[Last week I attended the Open Science Retreat (#osr24nl) in a quite and relaxing region in North-Holland. The meeting was how I like all meetings to be (and I count myself lucky many of my meetings are like this): open, welcoming, constructive, diverse, and intellectually challenging. Not all scientific meetings are like this and it is easy to end up going to obligatory meetings where the discussions are of a different level. Therefore, great thanks to the organizers, but also to all participants, that showed not just to have a hearth for open science (getting pretty common), but also a drive to advocate for open science. Finally, I like to thank the people that joined me in creating nanopublications for CiTO annotations (will blog about that later), and to Sadik and Marija with whom we worked on exploring using Wikibase for capturing knowledge about research waste in ecology (more about that later too).]]></summary></entry></feed>