{
  "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/2024/08/23/scholia.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/epanj-4t315",
      "url": "https://chem-bla-ics.linkedchemistry.info/2024/08/23/scholia.html",
      "title": "Scholia configurability",
      "content_html": "<p><a href=\"https://scholia.toolforge.org/\">Scholia</a> is a visual layer on top of <a href=\"https://wikidata.org/\">Wikidata</a> providing\na rich user experience for browing scholarly research related knowledge. I am using the combinatie\nfor various things, including exploring new research topics (a method, compound, or protein I do not know so much\nabout yet), indexing notable research output (including citations), <a href=\"https://chem-bla-ics.linkedchemistry.info/tag/cito\">progress of Citation Typing Ontology\nuptake</a>, etc. This weekend I hope to send around the\nfinal draft for the <em>Scholia Chemistry</em> paper.</p>\n\n<p>Scholia has received a fair share of scholarly and social attention. The Scholia paper has been cited\n<a href=\"https://scholar.google.com/scholar?hl=en&amp;as_sdt=0%2C5&amp;q=scholia+wikidata&amp;btnG=&amp;oq=scholia\">over 100 times</a> and\nthe websites received about 200 thousand page views each day (though we do not know how to get Toolforge\nto give us sufficient insight into the how and what of that count). There is a Wikipedia template to link\nto Scholia and some of projects I am involved in link Scholia for articles, such as\n<a href=\"https://wikipathways.org/\">WikiPathways</a>.</p>\n\n<p>With that, there is also interest in using it for other Wikibases and perhaps even random SPARQL endpoints.\nThese things are not trivial, as Scholia uses complementary APIs, various URL patterns for some of the\nfunctionality, and generally, all SPARQL queries are tweaked to the Wikidata Blazegraph SPARQL endpoint\nto ensure results are returned in reasonable time. But that last requires use of Blazegraph extensions\nto the SPARQL standard.</p>\n\n<p>All this requires Scholia to become more independent, in a better model-view-controller model. And that\nactually turns out very important at this moment. That is, Wikidata is not a RDF-first database, but\na Wikibase-based store. Whenever an edit is made, RDF is generated and the SPARQL endpoint is updated.\nNow, the number of edits in Wikidata is enormous and the notion that the SPARQL endpoint is often minutes\nat most behind is a huge accomplishment. But the Blazegraph platform cannot keep up with Wikidata.\nBlazegraph is open source, but has been bought up and development stopped from one day to another.</p>\n\n<p>Therefore, a split of the Wikidata SPARQL platform is <a href=\"https://phabricator.wikimedia.org/T337013\">planned</a>.\nThis split will put one part of\nthe knowledge in on endpoint and the other half in the other. Any query that needs information\nfrom both graphs, will have to do a federated SPARQL query. Basically, there are very few Scholia\nqueries that do not rewriting. My first rewrite actually failed, because the rewriting is not\nobvious and quickly times out. To some extend, this is because now lots of results of subqueries\nneed to be send over the network from one endpoint to the other. When the combined query basically\ncovers half of each endpoint, that’s a lot of network traffic.</p>\n\n<p>An immediate use case of the configuration is therefore running Scholia against the current three\nendpoints: the current official endpoint, and the two split endpoints under development. With\n<a href=\"https://github.com/WDscholia/scholia/pull/2515\">a recent patch</a> <a href=\"@fnielsen@expressional.social\">Finn</a>\nand I worked on, this configuration looks like this (and saved as <code class=\"language-plaintext highlighter-rouge\">scholia.ini</code>:</p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>[query-server]\n# Wikidata:\n#sparql_endpoint = https://query.wikidata.org/sparql\n#sparql_editurl = https://query.wikidata.org/#\n#sparql_embedurl = https://query.wikidata.org/embed.html#\n\n# Wikidata Split Main\nsparql_endpoint = https://query-main.wikidata.org/sparql\nsparql_editurl = https://query-main.wikidata.org/#\nsparql_embedurl = https://query-main.wikidata.org/embed.html#\n\n# Wikidata Split Scholar\n#sparql_endpoint = https://query-scholarly.wikidata.org/sparql\n#sparql_editurl = https://query-scholarly.wikidata.org/#\n#sparql_embedurl = https://query-scholarly.wikidata.org/embed.html#\n</code></pre></div></div>\n\n<p>So, right now, we can test the impact of the split with Scholia and this patch.\nWe would fire up a local instances of Scholia, running against one of the\nsplit endpoints, and use the Toolforge instance as baseline.</p>\n\n<p>Now, on my system I need to use <a href=\"https://python.land/virtual-environments/virtualenv\">Python virtualenv</a>\nso, I first start a Scholia <code class=\"language-plaintext highlighter-rouge\">venv</code>:</p>\n\n<div class=\"language-shell highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code><span class=\"nb\">source</span> ~/.venvs/scholia/bin/activate\n</code></pre></div></div>\n\n<p>After that, I can select an other endpoint, e.g. the <code class=\"language-plaintext highlighter-rouge\">main</code> Wikidata split endpoint (<code class=\"language-plaintext highlighter-rouge\">query-main-experimental.wikidata.org</code>)\nwere it not they are <a href=\"https://phabricator.wikimedia.org/T371833\">currently offline</a> as part of the transition\nand run Scholia on a unique port:</p>\n\n<div class=\"language-shell highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>scholia run\n</code></pre></div></div>\n\n<p>Then I can have two browser windows along side and compare Scholia pages againt the current\nScholia instance and when running against another SPARQL endpoint. For now, I can test how well\nScholia runs on the <a href=\"qlever.cs.uni-freiburg.de/wikidata\">QLever instance of Wikidata</a> (superfast and\nupdated data once a week). Here the configuration I have is not entirely complete, and many\nSPARQL queries do not work against QLever, including anything with graphical depiction. But\nthat said, I can use this configuration:</p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>[query-server]\n# QLever\n#sparql_endpoint = https://qlever.cs.uni-freiburg.de/api/wikidata\n#sparql_editurl = https://qlever.cs.uni-freiburg.de/wikidata/?query=\n#sparql_embedurl = \n</code></pre></div></div>\n\n<p>Then, I can compare, for example, the chemicals statistics the main Scholia with one running\nagainst QLever:</p>\n\n<p><img src=\"/assets/images/scholia_comparison.png\" alt=\"\" /></p>\n\n<p>This query ran without modification. For other queries rewriting is needed, but with this\nsetup we can at least quickly see the differences in the results.</p>\n\n<h4>References</h4>\n<div class=\"csl-bib-body\">\n    <div class=\"csl-entry\">Nielsen, F. Å., Mietchen, D., &#38; Willighagen, E. (2017). Scholia, Scientometrics and Wikidata. In <i>Lecture Notes in Computer Science</i> (pp. 237–259). Springer International Publishing. https://doi.org/10.1007/978-3-319-70407-4_36 <a href=\"https://doi.org/10.1007/978-3-319-70407-4_36\">CrossRef</a> <a href=\"https://qlever.scholia.wiki/doi/10.1007/978-3-319-70407-4_36\">Scholia</a></div>\n  </div>",
      "summary": "Scholia is a visual layer on top of Wikidata providing a rich user experience for browing scholarly research related knowledge. I am using the combinatie for various things, including exploring new research topics (a method, compound, or protein I do not know so much about yet), indexing notable research output (including citations), progress of Citation Typing Ontology uptake, etc. This weekend I hope to send around the final draft for the Scholia Chemistry paper.",
      
      "date_published": "2024-08-23T00:00:00+00:00",
      "date_modified": "2024-09-05T00:00:00+00:00",
      "tags": ["scholia","wikidata","sparql"],
      "_references": [
        
          
          
            { "url": "https://doi.org/10.1007/978-3-319-70407-4_36", "doi": "10.1007/978-3-319-70407-4_36"
             }
            
          
        ],
      
      
      
      
      
      
        "authors": [ { "name": "Egon Willighagen", "url": "https://orcid.org/0000-0001-7542-0286" } ]
      
    }

  ]
}
