{
  "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/03/27/migrating-pka-data-from-drugmet-to.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/n403c-fb376",
      "url": "https://chem-bla-ics.linkedchemistry.info/2016/03/27/migrating-pka-data-from-drugmet-to.html",
      "title": "Migrating pKa data from DrugMet to Wikidata",
      "content_html": "<p>In 2010 <a href=\"https://twitter.com/smllmp\">Samuel Lampa</a> and I started a pet project:\ncollecting pK<sub>a</sub> data: he was working on RDF extension of MediaWiki and I like consuming\nRDF data. We started <a href=\"http://drugmet.rilspace.org/wiki/Main_Page\">DrugMet</a>.\nWhen you read this post, this MediaWiki installation may already be down, which\nis why I am migrating the data to <a href=\"https://en.wikipedia.org/wiki/Wikidata\">Wikidata</a>.\nWhy? Because data curation takes effort, I like to play with Wikidata (see\n<a href=\"http://rio.pensoft.net/articles.php?id=7573\">this H2020 proposal</a> by \n<a href=\"https://twitter.com/EvoMRI\">Daniel Mietchen</a> <em>et al.</em>), I like Open Data, and it still\n<a href=\"http://proteinsandwavefunctions.blogspot.nl/2016/03/generating-protonation-states-and.html\">much needed</a>.</p>\n\n<p>We opted for a page with the minimal amount of information. To maximize the speed\nat which we could add information. However, when it came to semantics, we tried\nto be as explicit as possible, and, e.g. use <a href=\"https://doi.org/10.1371/journal.pone.0025513\">the CHEMINF ontology</a>.\nSo, it collected:</p>\n\n<ol>\n  <li>InChIKey (used to show images)</li>\n  <li>the paper it was collected from (identified by a DOI)</li>\n  <li>the value, and where possible, the experimental error</li>\n</ol>\n\n<p>A page typically looks something like this:</p>\n\n<p><img src=\"/assets/images/pKa.png\" alt=\"\" /></p>\n\n<p>While not used on all pages, at some point I even started using templates, and\nI used these two, for molecules and papers:</p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>{{Molecule\n  |Name=\n  |InChIKey=\n  |DOI=\n  |Wikidata=\n}}\n\n{{Paper\n  |DOI=\n  |Year=\n  |Wikidata=\n}}\n</code></pre></div></div>\n\n<p>These templates, as well as the above screenshot, already contain a spoiler, but\nmore about that later. Using MediaWiki functionality it was now easy to make lists,\ne.g. for all pK<sub>a</sub> data (more spoilers):</p>\n\n<p><img src=\"/assets/images/pKa1.png\" alt=\"\" /></p>\n\n<p>I find a database like this very important. It does not capture all the information\nit should be capturing, though, as is clear from <a href=\"https://www.overleaf.com/read/wqfsxrgrrbzx\">the proposal</a>\nsome of use worked on a while back. However, this project got on hold; I don’t\nhave time for it anymore, and it is not core to our department enough to spend\ntime on write grant proposals for it.</p>\n\n<p>But I still do not want to get this data get lost. Wikidata is something I have\nstarted using, as it is a machine readable CCZero database with an increasing\namount of scientific knowledge. More and more people are working on it, and you\nmust absolutely <a href=\"http://dx.doi.org/10.1093/database/baw015\">read this paper</a>\nabout this very topic (by <a href=\"https://bitbucket.org/sulab/wikidatabots\">a great team</a>\nyou should track, anyway). I am using it myself as source of identifier mappings\nand more. So, migrating the previously collected data to Wikidata makes perfect\nsense to me:</p>\n\n<ol>\n  <li>if a compound is missing, I can easily <a href=\"https://chem-bla-ics.linkedchemistry.info/2016/03/20/adding-disclosures-to-wikidata-with.html\">create a new one using Bioclipse <i class=\"fa-solid fa-recycle fa-xs\"></i></a></li>\n  <li>if a paper is missing, I can easily <a href=\"https://chem-bla-ics.linkedchemistry.info/2016/03/20/adding-disclosures-to-wikidata-with.html\">create a new one using Magnus Manske’s QuickStatements <i class=\"fa-solid fa-recycle fa-xs\"></i></a></li>\n  <li>Wikidata has a pretty decent provenance model</li>\n</ol>\n\n<p>I can annotate data with the data source (paper) it came from and also experimental conditions:</p>\n\n<p><img src=\"/assets/images/pKa2.png\" alt=\"\" /></p>\n\n<p>In fact, you’ll note that the the book is a separate Wikidata entry in itself.\nBetter even, it’s an ‘edition’ of the book. This is the whole point we make in\nthe above linked H2020 proposal: Wikidata is not a database specific for one\ndomain, it works for any (scholarly) domain, and seamlessly links all those\ndomains.</p>\n\n<p>Now, to keep track of what data I have migrated, I am annotating DrugMet entries\nwith links to Wikidata: everything with a Wikidata Q-code is already migrated.\nThe above pK<sub>a</sub> table already shows Q-identifiers, but I also created them for all\ndata sources I have used (three of them are two books and\n<a href=\"https://twitter.com/JBiolChem/status/713779938969698305\">one old paper without a DOI</a>):</p>\n\n<p><img src=\"/assets/images/pKa3.png\" alt=\"\" /></p>\n\n<p>I have still quite a number of entries to do, but all the protocols are set up now.</p>\n\n<p>On the downstream side, Wikidata is also great because of\n<a href=\"https://query.wikidata.org/\">their SPARQL end point</a>. Something that I did not\nget worked out some weeks ago, I did manage yesterday (after\n<a href=\"https://twitter.com/arthursmith/status/713730159422095360\">some encouragement from @arthursmith</a>):\nlist all pK<sub>a</sub> statements, including literature source if available:</p>\n\n<p>If you <a href=\"https://query.wikidata.org/#SELECT%20%3Fwikidata%20%3Fcompound%20%3FpKa%20%3Fsource%20%3Ftitle%20%3Fdoi%20WHERE%20%7B%0A%20%20%3Fwikidata%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2FP1117%3E%20%3Ffoo%20%3B%0A%20%20%20%20rdfs%3Alabel%20%3Fcompound%20.%0A%20%20%3Ffoo%20a%20wikibase%3ABestRank%20%3B%0A%20%20%20%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Fstatement%2FP1117%3E%20%3FpKa%20.%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Ffoo%20prov%3AwasDerivedFrom%2F%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Freference%2FP248%3E%20%3Fsource%20.%0A%20%20%20%20%3Fsource%20rdfs%3Alabel%20%3Ftitle%20.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fsource%20wdt%3AP356%20%3Fdoi%20.%20%7D%0A%20%20%20%20FILTER(lang(%3Ftitle)%20%3D%20%22en%22)%0A%20%20%7D%0A%20%20FILTER(lang(%3Fcompound)%20%3D%20%22en%22)%0A%7D\">run that query on the Wikidata endpoint</a>,\nyou get a table like this:</p>\n\n<p><img src=\"/assets/images/pKa4.png\" alt=\"\" /></p>\n\n<p>We here see experimental data from two papers: <a href=\"https://doi.org/10.1021/ja01489a008\">10.1021/ja01489a008</a>\nand <a href=\"https://doi.org/10.1021/ed050p510\">10.1021/ed050p510</a>. This can all be\ndisplayed a lot fancier, like make histograms, tables with 2D drawings of the\nchemical structures, etc, but I leave that to the reader.</p>\n\n<h4>References</h4>\n<div class=\"csl-bib-body\">\n    <div class=\"csl-entry\">Ballinger, P., &#38; Long, F. A. (1960). Acid Ionization Constants of Alcohols. II. Acidities of Some Substituted Methanols and Related Compounds<sup>1,2</sup>. <i>Journal of the American Chemical Society</i>, <i>82</i>(4), 795–798. https://doi.org/10.1021/ja01489a008 <a href=\"https://doi.org/10.1021/JA01489A008\">CrossRef</a> <a href=\"https://qlever.scholia.wiki/doi/10.1021/JA01489A008\">Scholia</a></div>\n    <div class=\"csl-entry\">Burgstaller-Muehlbacher, S., Waagmeester, A., Mitraka, E., Turner, J., Putman, T., Leong, J., Naik, C., Pavlidis, P., Schriml, L., Good, B. M., &#38; Su, A. I. (2016). Wikidata as a semantic framework for the Gene Wiki initiative. <i>Database</i>, <i>2016</i>, baw015. https://doi.org/10.1093/database/baw015 <a href=\"https://doi.org/10.1093/DATABASE/BAW015\">CrossRef</a> <a href=\"https://qlever.scholia.wiki/doi/10.1093/DATABASE/BAW015\">Scholia</a></div>\n    <div class=\"csl-entry\">Handloser, C. S., Chakrabarty, M. R., &#38; Mosher, M. W. (1973). Experimental determination of pKa values by use of NMR chemical shift. <i>Journal of Chemical Education</i>, <i>50</i>(7), 510. https://doi.org/10.1021/ed050p510 <a href=\"https://doi.org/10.1021/ED050P510\">CrossRef</a> <a href=\"https://qlever.scholia.wiki/doi/10.1021/ED050P510\">Scholia</a></div>\n    <div class=\"csl-entry\">Hastings, J., Chepelev, L., Willighagen, E., Adams, N., Steinbeck, C., &#38; Dumontier, M. (2011). The Chemical Information Ontology: Provenance and Disambiguation for Chemical Data on the Biological Semantic Web. <i>PLoS ONE</i>, <i>6</i>(10), e25513. https://doi.org/10.1371/journal.pone.0025513 <a href=\"https://doi.org/10.1371/JOURNAL.PONE.0025513\">CrossRef</a> <a href=\"https://qlever.scholia.wiki/doi/10.1371/JOURNAL.PONE.0025513\">Scholia</a></div>\n    <div class=\"csl-entry\">Mietchen, D., Hagedorn, G., Willighagen, E., Rico, M., Gómez-Pérez, A., Aibar, E., Rafes, K., Germain, C., Dunning, A., Pintscher, L., &#38; Kinzler, D. (2015). Enabling Open Science: Wikidata for Research (Wiki4R). <i>Research Ideas and Outcomes</i>, <i>1</i>, e7573. https://doi.org/10.3897/rio.1.e7573 <a href=\"https://doi.org/10.3897/RIO.1.E7573\">CrossRef</a> <a href=\"https://qlever.scholia.wiki/doi/10.3897/RIO.1.E7573\">Scholia</a></div>\n  </div>",
      "summary": "In 2010 Samuel Lampa and I started a pet project: collecting pKa data: he was working on RDF extension of MediaWiki and I like consuming RDF data. We started DrugMet. When you read this post, this MediaWiki installation may already be down, which is why I am migrating the data to Wikidata. Why? Because data curation takes effort, I like to play with Wikidata (see this H2020 proposal by Daniel Mietchen et al.), I like Open Data, and it still much needed.",
      "image": "https://chem-bla-ics.linkedchemistry.info/assets/images/pKa4.png",
      "date_published": "2016-03-27T00:00:00+00:00",
      "date_modified": "2025-02-16T00:00:00+00:00",
      "tags": ["wikidata","chemistry"],
      "_references": [
        
          
          
            { "url": "https://doi.org/10.3897/RIO.1.E7573", "doi": "10.3897/RIO.1.E7573"
             }
            ,
          
        
          
          
            { "url": "https://doi.org/10.1371/JOURNAL.PONE.0025513", "doi": "10.1371/JOURNAL.PONE.0025513"
             }
            ,
          
        
          
          
            { "url": "https://doi.org/10.1093/DATABASE/BAW015", "doi": "10.1093/DATABASE/BAW015"
             }
            ,
          
        
          
          
            { "url": "https://doi.org/10.1021/ED050P510", "doi": "10.1021/ED050P510"
             }
            ,
          
        
          
          
            { "url": "https://doi.org/10.1021/JA01489A008", "doi": "10.1021/JA01489A008"
             }
            
          
        ],
      
      
      
      
      
      
        "authors": [ { "name": "Egon Willighagen", "url": "https://orcid.org/0000-0001-7542-0286" } ]
      
    }

  ]
}
