{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "chem-bla-ics",
  "description": "Chemblaics (pronounced chem-bla-ics) is the science that uses open science and computers to solve problems in chemistry, biochemistry and related fields.",
  "home_page_url": "https://chem-bla-ics.linkedchemistry.info/",
  "feed_url": "https://chem-bla-ics.linkedchemistry.info/2018/12/27/creating-nanopublications-with-groovy.json",
  "icon": "https://chem-bla-ics.linkedchemistry.info/assets/images/chem-bla-ics_logo.png",
  "language": "en",
  "authors": [
    {
      "name": "Egon Willighagen",
      "url": "https://orcid.org/0000-0001-7542-0286",
      "_orcid": "0000-0001-7542-0286"
    }
  ],
  "items": [

    {
      "id": "https://doi.org/10.59350/v3szx-3jk73",
      "url": "https://chem-bla-ics.linkedchemistry.info/2018/12/27/creating-nanopublications-with-groovy.html",
      "title": "Creating nanopublications with Groovy",
      "content_html": "<p><img style=\"float: right\" width=\"200\" src=\"/assets/images/Screenshot_20181227_075006.png\" />\nYesterday, I struggled some with creating <a href=\"http://nanopub.org/\">nanopublications</a> with <a href=\"https://en.wikipedia.org/wiki/Apache_Groovy\">Groovy</a>.\nMy first attempt was an utter failure, but then I discovered <a href=\"https://twitter.com/txkuhn\">Thomas Kuhn</a>’s\n<a href=\"https://github.com/Nanopublication/nanopub-java/blob/master/src/main/java/org/nanopub/NanopubCreator.java\">NanopubCreator</a>\nand it was downhill from there.</p>\n\n<p>On the right, a depiction is given of a compound found in Taphrorychus bicolor (doi:<a href=\"https://doi.org/10.1002/JLAC.199619961005\">10.1002/JLAC.199619961005</a>).\nPublished in <em>Liebigs Annalen</em>, see <a href=\"https://chem-bla-ics.blogspot.com/2018/12/from-annalen-der-pharmacie-to-european.html\">this post</a>\nabout the history of that journal.</p>\n\n<p>There are two good things about this. First, I now have a <a href=\"https://github.com/egonw/wikidataNanopublications\">code base</a>\nthat I can easily repurpose to make <em>trusty nanopublications</em> (doi:<a href=\"10.1007/978-3-319-07443-6_27\">10.1007/978-3-319-07443-6_27</a>)\nabout anything structured as a table (so can you).</p>\n\n<p>Second, I now about almost 1200 CCZero nanopublications that tell you in which species a certain metabolite\nhas been found. Sourced from <a href=\"https://wikidata.org/\">Wikidata</a>, using <a href=\"https://query.wikidata.org/\">their SPARQL end point</a>.\nThis collection is a bit boring that this moment, and most of them are human metabolites, where the source is either\n<a href=\"https://tools.wmflabs.org/scholia/work/Q28601559\">Recon 2.2</a> or <a href=\"https://wikipathways.org/\">WikiPathways</a>.\nBut I expect (hope) to see more DOIs to show up. Think\n<em><a href=\"https://blogs.biomedcentral.com/bmcblog/2018/11/01/challenge-reuse-additional-files-supplementary-information/\">We challenge you to reuse Additional Files</a></em>.</p>\n\n<p>Finally, you are probably interested in learning what one of the created nanopublications looks like, to I put\n<a href=\"https://gist.github.com/egonw/5fb0994cac6f9e851f3857cd306f0890\">a Gist online</a>:</p>\n\n<pre><code class=\"language-trig\">@prefix this: &lt;http://www.bigcat.unimaas.nl/nanopubs/wikidata/tmp/np742.RAwXcetTykN6UPVzBOyatKm30mbT6endXfDrxnarRysL0&gt; .\n@prefix sub: &lt;http://www.bigcat.unimaas.nl/nanopubs/wikidata/tmp/np742.RAwXcetTykN6UPVzBOyatKm30mbT6endXfDrxnarRysL0#&gt; .\n@prefix wd: &lt;http://www.wikidata.org/entity/&gt; .\n@prefix np: &lt;http://www.nanopub.org/nschema#&gt; .\n@prefix has-source: &lt;http://semanticscience.org/resource/SIO_000253&gt; .\n@prefix has-inchikey: &lt;http://semanticscience.org/resource/CHEMINF_000399&gt; .\n@prefix orcid: &lt;http://orcid.org/&gt; .\n@prefix wdt: &lt;http://www.wikidata.org/prop/direct/&gt; .\n@prefix owl: &lt;http://www.w3.org/2002/07/owl#&gt; .\n@prefix pav: &lt;http://purl.org/pav/&gt; .\n@prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .\n@prefix skos: &lt;http://www.w3.org/2004/02/skos/core#&gt; .\n\nsub:Head {\n        this: np:hasAssertion sub:assertion ;\n                np:hasProvenance sub:provenance ;\n                np:hasPublicationInfo sub:pubinfo ;\n                a np:Nanopublication .\n}\n\nsub:assertion {\n        wd:Q15978631 rdfs:label \"Homo sapiens\"@en ;\n                skos:exactMatch &lt;http://purl.obolibrary.org/obo/NCBITaxon_9606&gt; .\n\n        wd:Q27125029 has-inchikey: \"APJYDQYYACXCRM-UHFFFAOYSA-O\" ;\n                rdfs:label \"tryptaminium\"@en ;\n                wdt:P703 wd:Q15978631 .\n}\n\nsub:provenance {\n        sub:assertion has-source: wd:Q2013 , wd:Q28601559 .\n\n        wd:Q28601559 rdfs:label \"Recon 2.2: from reconstruction to model of human metabolism\"@en ;\n                owl:sameAs &lt;https://doi.org/10.1007/S11306-016-1051-4&gt; .\n}\n\nsub:pubinfo {\n        this: pav:createdBy orcid:0000-0001-7542-0286 .\n}\n</code></pre>\n\n<h4>References</h4>\n<div class=\"csl-bib-body\">\n    <div class=\"csl-entry\">Francke, W., Schröder, F., Kohnle, U., &#38; Simon, M. (1996). Synthesis of (1<i>S</i>,2<i>R</i>,5<i>R</i>)‐2‐Ethyl‐1,5‐dimethyl‐6,8‐dioxabicyclo[3.2.1]octane, the Aggregation Pheromone of Male Beech Bark Beetles, <i>Taphrorychus bicolor</i> (Col., Scol.). <i>Liebigs Annalen</i>, <i>1996</i>(10), 1523–1527. https://doi.org/10.1002/jlac.199619961005 <a href=\"https://doi.org/10.1002/JLAC.199619961005\">CrossRef</a> <a href=\"https://qlever.scholia.wiki/doi/10.1002/JLAC.199619961005\">Scholia</a></div>\n    <div class=\"csl-entry\">Kuhn, T., &#38; Dumontier, M. (2014). Trusty URIs: Verifiable, Immutable, and Permanent Digital Artifacts for Linked Data. In <i>Lecture Notes in Computer Science</i> (pp. 395–410). Springer International Publishing. https://doi.org/10.1007/978-3-319-07443-6_27 <a href=\"https://doi.org/10.1007/978-3-319-07443-6_27\">CrossRef</a> <a href=\"https://qlever.scholia.wiki/doi/10.1007/978-3-319-07443-6_27\">Scholia</a></div>\n  </div>",
      "summary": "Yesterday, I struggled some with creating nanopublications with Groovy. My first attempt was an utter failure, but then I discovered Thomas Kuhn’s NanopubCreator and it was downhill from there.",
      "image": "https://chem-bla-ics.linkedchemistry.info/assets/images/Screenshot_20181227_075006.png",
      "date_published": "2018-12-27T00:00:00+00:00",
      "date_modified": "2025-02-16T00:00:00+00:00",
      "tags": ["nanopub","wikidata","groovy"],
      "_references": [
        
          
          
            { "url": "https://doi.org/10.1007/978-3-319-07443-6_27", "doi": "10.1007/978-3-319-07443-6_27"
             }
            ,
          
        
          
          
            { "url": "https://doi.org/10.1002/JLAC.199619961005", "doi": "10.1002/JLAC.199619961005"
             }
            
          
        ],
      
      
      
      
      
      
        "authors": [ { "name": "Egon Willighagen", "url": "https://orcid.org/0000-0001-7542-0286" } ]
      
    }

  ]
}
