{
  "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/2016/01/27/adding-chemical-compound-to-wikidata.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/q5a38-51n24",
      "url": "https://chem-bla-ics.linkedchemistry.info/2016/01/27/adding-chemical-compound-to-wikidata.html",
      "title": "Adding chemical compounds to Wikidata",
      "content_html": "<p>Adding chemical compounds to <a href=\"https://www.wikidata.org/\">Wikidata</a> is not difficult. You can store the chemical formula\n(<a href=\"https://www.wikidata.org/wiki/Property:P274\">P274</a>), (canonical) <a href=\"http://chem-bla-ics.blogspot.nl/2015/12/the-quality-of-smiles-strings-in.html\">SMILES</a>\n(<a href=\"https://www.wikidata.org/wiki/Property:P233\">P233</a>), InChIKey (<a href=\"https://www.wikidata.org/wiki/Property:P235\">P235</a>) (and InChI\n(<a href=\"https://www.wikidata.org/wiki/Property:P233\">P234</a>), of course), as well various database identifiers (see what I wrote about that\n<a href=\"https://chem-bla-ics.linkedchemistry.info/2015/12/22/new-edition-getting-cas-registry.html\">here <i class=\"fa-solid fa-recycle fa-xs\"></i></a>]). It also allows storing of the provenance, and has predicates\nfor that too.</p>\n\n<p>So, to enter a new structure for a compound, you should enter the compound information to Wikidata. Of course, make sure to create the needed accounts,\nparticularly one for Wikidata (<a href=\"https://www.wikidata.org/w/index.php?title=Special:UserLogin&amp;returnto=Wikidata%3AMain+Page&amp;type=signup\">create account</a>)\n(not sure if the next steps needs a more general Wikimedia account too).</p>\n\n<p><strong>Entering the research paper</strong>: <br />\n<a href=\"https://twitter.com/MagnusManske\">Magnus Manske</a> <a href=\"https://twitter.com/MagnusManske/status/691664308523130880\">pointed</a> me to\n<a href=\"http://tools.wmflabs.org/sourcemd/\">this helper tool</a>. If you have the DOI of the paper, it is easy to add a new paper. This is what the tool shows\nfor doi:<a href=\"http://dx.doi.org/10.1128/AAC.01148-08\">10.1128/AAC.01148-08</a> (but no longer when you try!):</p>\n\n<p><img src=\"/assets/images/smd.png\" alt=\"\" /></p>\n\n<p>You need permission to run this script and the tool will alert you about that, and give the instructions how to get permission. After\nI clicked the Open in QuickStatements I get this output, showing me an entry in Wikidata was created for this paper:</p>\n\n<p><img src=\"/assets/images/smd1.png\" alt=\"\" /></p>\n\n<p>Later, I can use the new Q-code (<a href=\"https://www.wikidata.org/wiki/Q22309806\">Q22309806</a>) to use as source for statements about the compound (formula, etc).</p>\n\n<p><strong>Draw your compound and get an InChIKey</strong>: <br />\nThe next step is to draw a compound and get an InChIKey. This can be done with many tools, including\n<a href=\"http://bioclipse.net/\">Bioclipse</a>. Rajarshi opted for alternatives:</p>\n\n<ul>\n<a href=\"https://twitter.com/collabchem\">@collabchem</a> <a href=\"https://twitter.com/egonwillighagen\">@egonwillighagen</a> OSRA or <a href=\"https://t.co/ZIQdgrYsmr\">https://t.co/ZIQdgrYsmr</a>? <br />\n— Rajarshi Guha (@rguha) <a href=\"https://twitter.com/rguha/status/692377715735949313\">January 27, 2016</a>\n</ul>\n\n<p>Then check if the compound is not already in Wikidata. You can use this SPARQL query for that using the InChIKey of the compound (it’s for acetic acid, so it will be found):</p>\n\n<p><img src=\"/assets/images/smd3.png\" alt=\"\" /></p>\n\n<p>For convenience, here the copy/pastable SPARQL:</p>\n\n<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\">wdt</span><span class=\"o\">:</span><span class=\"w\">\n</span><span class=\"k\">SELECT</span><span class=\"w\"> </span><span class=\"nv\">?compound</span><span class=\"w\"> </span><span class=\"k\">WHERE</span><span class=\"w\"> </span><span class=\"p\">{</span><span class=\"w\">\n  </span><span class=\"nv\">?compound</span><span class=\"w\"> </span><span class=\"nn\">wdt</span><span class=\"o\">:</span><span class=\"ss\">P235</span><span class=\"w\"> </span><span class=\"s2\">\"QTBSBXVTEAMEQO-UHFFFAOYSA-N\"</span><span class=\"w\"> </span><span class=\"p\">.</span><span class=\"w\">\n</span><span class=\"p\">}</span><span class=\"w\">\n</span></code></pre></div></div>\n\n<p><strong>Entering the compound</strong>: <br />\nSo, the compound is not already in Wikidata, so time to add it. The minimal information you should provide is the following:</p>\n\n<ul>\n  <li>mark the new entry as ‘instance of’ (P) ‘chemical compound (Q)</li>\n  <li>the chemical formula and SMILES (use as reference the paper)\n    <ul>\n      <li>add the reference to the paper you entered above</li>\n    </ul>\n  </li>\n  <li>add the InChIKey and/or InChI</li>\n</ul>\n\n<p>The first step is to create a new Wikidata entry. The Create new item menu in the left side panel can be used, showing a page like this:</p>\n\n<p><img src=\"/assets/images/smd2.png\" alt=\"\" /></p>\n\n<p>As a label you can use the name used in the paper for the compound, even if a code, and as description ‘chemical compound’ will do for now; it can be changed later.</p>\n\n<p>Feel free to add as much information about the compound as you can find. There are some chemically rich entries in Wikidata, such as that for acetic acid\n(<a href=\"https://www.wikidata.org/wiki/Q47512\">Q47512</a>).</p>\n\n<h4>References</h4>\n<div class=\"csl-bib-body\">\n    <div class=\"csl-entry\">Wang, Q.-Y., Patel, S. J., Vangrevelinghe, E., Xu, H. Y., Rao, R., Jaber, D., Schul, W., Gu, F., Heudi, O., Ma, N. L., Poh, M. K., Phong, W. Y., Keller, T. H., Jacoby, E., &#38; Vasudevan, S. G. (2009). A Small-Molecule Dengue Virus Entry Inhibitor. <i>Antimicrobial Agents and Chemotherapy</i>, <i>53</i>(5), 1823–1831. https://doi.org/10.1128/aac.01148-08 <a href=\"https://doi.org/10.1128/AAC.01148-08\">CrossRef</a> <a href=\"https://qlever.scholia.wiki/doi/10.1128/AAC.01148-08\">Scholia</a></div>\n  </div>",
      "summary": "Adding chemical compounds to Wikidata is not difficult. You can store the chemical formula (P274), (canonical) SMILES (P233), InChIKey (P235) (and InChI (P234), of course), as well various database identifiers (see what I wrote about that here ]). It also allows storing of the provenance, and has predicates for that too.",
      
      "date_published": "2016-01-27T00:00:00+00:00",
      "date_modified": "2025-05-25T00:00:00+00:00",
      "tags": ["wikidata","chemistry","bioclipse"],
      "_references": [
        
          
          
            { "url": "https://doi.org/10.1128/AAC.01148-08", "doi": "10.1128/AAC.01148-08"
             }
            
          
        ],
      
      
      
      
      
      
        "authors": [ { "name": "Egon Willighagen", "url": "https://orcid.org/0000-0001-7542-0286" } ]
      
    }

  ]
}
