CINXE.COM

Scholia

<!doctype html> <html lang="auto"> <head> <base href="https://scholia.toolforge.org/topic/Q336/curation"> <title>Scholia</title> <meta charset="UTF-8"> <meta name="robots" content="index, nofollow"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="og:url" content="https://scholia.toolforge.org/topic/Q336/curation"> <meta name="og:site_name" content="Scholia"> <meta name="og:image" content="/static/images/scholia_social_media.png"> <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="@WDScholia"><!-- Bootstrap --> <link href="/static/css/bootstrap.min.css" rel="stylesheet"> <link rel="canonical" href="https://scholia.toolforge.org/topic/Q336/curation"> <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="/static/jquery.dataTables.min.css"> <link rel="stylesheet" type="text/css" href="/static/css/scholia.css"> <link rel="stylesheet" type="text/css" href="/static/css/nightmode.css"><!-- Generated with RealFaviconGenerator --> <link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon/favicon-16x16.png"> <link rel="manifest" href="/static/favicon/site.webmanifest"> <link rel="mask-icon" href="/static/favicon/safari-pinned-tab.svg" color="#09af8a"> <link rel="shortcut icon" href="/static/favicon/favicon.ico"> <meta name="apple-mobile-web-app-title" content="Scholia"> <meta name="application-name" content="Scholia"> <meta name="msapplication-TileColor" content="#09af8a"> <meta name="theme-color" content="#09af8a"> <meta http-equiv="X-Translated-By" content="Google"> <meta http-equiv="X-Translated-To" content="en"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.omlEigW4xY8.O/am=DgY/d=1/rs=AN8SPfpjsL9kUWY0h-sp7Ilu7hZWGwEmeg/m=corsproxy" data-sourceurl="https://scholia.toolforge.org/topic/Q336/curation"></script> <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.omlEigW4xY8.O/am=DgY/d=1/exm=corsproxy/ed=1/rs=AN8SPfpjsL9kUWY0h-sp7Ilu7hZWGwEmeg/m=phishing_protection" data-phishing-protection-enabled="false" data-forms-warning-enabled="true" data-source-url="https://scholia.toolforge.org/topic/Q336/curation"></script> <meta name="robots" content="none"> </head> <body> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.omlEigW4xY8.O/am=DgY/d=1/exm=corsproxy,phishing_protection/ed=1/rs=AN8SPfpjsL9kUWY0h-sp7Ilu7hZWGwEmeg/m=navigationui" data-environment="prod" data-proxy-url="https://scholia-toolforge-org.translate.goog" data-proxy-full-url="https://scholia-toolforge-org.translate.goog/topic/Q336/curation?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-source-url="https://scholia.toolforge.org/topic/Q336/curation" data-source-language="auto" data-target-language="en" data-display-language="en-GB" data-detected-source-language="en" data-is-source-untranslated="false" data-source-untranslated-url="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://scholia.toolforge.org/topic/Q336/curation&amp;anno=2" data-client="tr"></script> <nav class="navbar navbar-expand-lg" style="max-width: 1200px;"><a class="navbar-brand" href="https://scholia-toolforge-org.translate.goog/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB"><img src="/static/images/scholia_wordmark.svg" width="112px" height="24px" alt="Scholia"></a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav mr-auto"> <li class="nav-item"><a class="nav-link" href="https://scholia-toolforge-org.translate.goog/author/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Author</a></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" href="https://scholia-toolforge-org.translate.goog/topic/Q336/curation?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#" id="workDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Work </a> <div class="dropdown-menu" aria-labelledby="workDropdown"><a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/work/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Work</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/venue/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Venue</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/series/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Series</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/catalogue/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Catalogue</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/publisher/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Publisher</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/printer/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Printer</a> </div></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" href="https://scholia-toolforge-org.translate.goog/topic/Q336/curation?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#" id="organisationDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Organization </a> <div class="dropdown-menu" aria-labelledby="organisationDropdown"><a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/organization/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Organization</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/publisher/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Publisher</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/printer/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Printer</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/sponsor/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Sponsor</a> </div></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" href="https://scholia-toolforge-org.translate.goog/topic/Q336/curation?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#" id="locationDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Location </a> <div class="dropdown-menu" aria-labelledby="locationDropdown"><a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/location/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Location</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/country/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Country</a> </div></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" href="https://scholia-toolforge-org.translate.goog/topic/Q336/curation?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#" id="eventDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Event </a> <div class="dropdown-menu" aria-labelledby="eventDropdown"><a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/event/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Event</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/event-series/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Event series</a> </div></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" href="https://scholia-toolforge-org.translate.goog/topic/Q336/curation?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#" id="projectDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Project </a> <div class="dropdown-menu" aria-labelledby="projectDropdown"><a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/clinical-trial/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Clinical trial</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/project/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Project</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/wikiproject/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">WikiProject</a> </div></li> <li class="nav-item"><a class="nav-link" href="https://scholia-toolforge-org.translate.goog/award/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Award</a></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" href="https://scholia-toolforge-org.translate.goog/topic/Q336/curation?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#" id="topicDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Topic </a> <div class="dropdown-menu" aria-labelledby="projectDropdown"><a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/topic/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">General</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/disease/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Disease</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/taxon/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Taxon</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/gene/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Gene</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/protein/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Protein</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/pathway/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Pathway</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/chemical/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Chemical</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/chemical-element/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Chemical element</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/chemical-class/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Chemical class</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/lexeme/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Lexeme</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/ontology/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Ontology</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/software/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Software</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/use/?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Use</a> </div></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" href="https://scholia-toolforge-org.translate.goog/topic/Q336/curation?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#" id="toolsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Tools </a> <div class="dropdown-menu" aria-labelledby="toolsDropdown"><a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/id-to-quickstatements?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Identifier to Quickstatements</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/q-to-bibliography-templates?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Q to Bibliography templates</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/text-to-topics?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Text to topics</a> </div></li> <li class="nav-item dropdown"><a class="nav-link dropdown-toggle" href="https://scholia-toolforge-org.translate.goog/topic/Q336/curation?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#" id="helpDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Help </a> <div class="dropdown-menu" aria-labelledby="helpDropdown"><a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/about?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">About</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/statistics?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">Statistics</a> <a class="dropdown-item" href="https://scholia-toolforge-org.translate.goog/faq?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">FAQ</a> </div></li> </ul> <div class="nav nav-search"><input class="form-control" type="text" id="searchterm" placeholder="Search..."> </div> </div> </nav> <div class="content"> <div class="container d-flex justify-content-between"> <div class="dropdown" id="aspect-chooser"> </div> <div><a id="curation-link" role="button" class="btn btn-outline-secondary d-none">Improve data</a> </div> </div> <div class="container"> <h1 id="h1">Improve...</h1> <p>Our data source is <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://www.wikidata.org/wiki/Wikidata:Main_Page">Wikidata</a>, a structured data project similar to the encyclopedia project Wikipedia. Each item is identified by a Q number, and information can be added directly to an item's page (in this case, <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://www.wikidata.org/entity/Q336">https://www.wikidata.org/entity/Q336</a>). Some information however, like an author's papers, are stored on the item for the paper itself. The "<a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://www.wikidata.org/w/index.php?title%3DSpecial%253AWhatLinksHere%26target%3DQ336%26namespace%3D0">What links here</a>" link in the sidebar of an item can show these items.</p> <p>There are also various <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://www.wikidata.org/wiki/Wikidata:Tools/Edit_items">tools</a> available which can make editing Wikidata quicker and more rigorous.</p> <p>Most important for Scholia is the <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://author-disambiguator.toolforge.org">Author Disambiguator</a>, which can be used to quickly create new dedicated items for authors and find existing papers which do not link to the author.</p> <h2 id="missing-author-items">Missing author items</h2> The authors listed below may only be represented as strings in Wikidata with no link to Wikidata items. Follow the link to use the Author disambiguator tool to try to resolve the authors. <table class="table table-hover" id="missing-author-items-table"></table> <hr> <h2 id="missing-pub-date">Missing publication date</h2> These works are missing a <b>publication date</b>. <table class="table table-hover" id="missing-pub-date-table"></table> <hr> <h2 id="missing-co-topic">Works on the topic with missing additional topics</h2> The following works have only been tagged with this one topic. <table class="table table-hover" id="missing-co-topic-table"></table> <hr> <h2 id="missing-pub-venue">Missing publication venue</h2> <p>For example, here are works with this topic that do not have a <b>publication venue</b>. You can improve the data by clicking the link on the right and adding a <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://www.wikidata.org/wiki/Property:P1433">"published in" (P1433)</a> statement if you know it:</p> <table class="table table-hover" id="missing-pub-venue-table"></table> <script> function get_dois_from_crossref(query_string) { const button = document.getElementById("check-crossref-button"); button.innerHTML = "Loading..."; button.classList.remove("d-block"); button.classList.add("d-none"); button.insertAdjacentHTML('beforebegin', "<div id='check-crossref-loader' class='loader'><div></div><div></div><div></div></div>" ) const currentDate = new Date().toISOString().split('T')[0]; const params = { 'query': query_string, 'select': 'DOI', 'filter': 'type:journal-article,until-issued-date:' + currentDate, 'rows': 20, 'sort': 'issued', 'order': 'desc', }; // Create a URLSearchParams object to construct the query parameters const searchParams = new URLSearchParams(); // Loop through the dictionary and add each key-value pair to the searchParams for (const [key, value] of Object.entries(params)) { searchParams.append(key, value); } // Construct the final URL by appending the search parameters const url = `https://api.crossref.org/works/?${searchParams.toString()}`; const error_message = "The API failed which could be due to a problem with your connection or with the upstream server. If the issue persists <a href='https://github.com/WDscholia/scholia/issues/new?assignees=&labels=bug&projects=&template=bug_report.md&title=''>submit a bug report on GitHub</a>" fetch(url) .then(response => response.json()) .then(data => { if (data['status'] == 'ok') { if (data["message"]["total-results"] > 0){ items = data.message?.items if (items) { dois = items.map(x => x.DOI).join(" "); window.location.href = "/id-to-quickstatements?query=" + dois; } } else { $('#check-crossref-loader').remove(); button.insertAdjacentHTML('afterend', `<div class="alert alert-secondary" role="alert">No results returned for ${data.message.query['status-terms']}</div>`); button.innerHTML = "Check Crossref"; button.classList.remove("d-none"); button.classList.add("d-block"); } } else { console.error(`API status was ${data.status}`) console.error(data) $('#check-crossref-loader').remove(); button.insertAdjacentHTML('afterend', `<div class="alert alert-warning" role="alert">${error_message}</div>`); button.innerHTML = "Check Crossref"; button.classList.remove("d-none"); button.classList.add("d-block"); } }) .catch(error => { console.error(error); $('#check-crossref-loader').remove(); button.insertAdjacentHTML('afterend', `<div class="alert alert-warning" role="alert">${error_message}</div>`); button.innerHTML = "Check Crossref"; button.classList.remove("d-none"); button.classList.add("d-block"); }); } </script> </div> </div> <div class="container footer"> <hr> Data from <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://www.wikidata.org">Wikidata</a> and <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://en.wikipedia.org">English Wikipedia</a> | Code from <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://github.com/WDscholia/scholia">GitHub repository</a> | Hosted on <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://toolforge.org/">Wikimedia Toolforge</a>, a <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://wikimediafoundation.org">Wikimedia Foundation</a> service | License for content: CC0 for data, CC-BY-SA for text and media | Report technical problems at Scholia's <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://github.com/WDscholia/scholia/issues">Issues</a> GitHub page. | Follow us on <a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://wikis.world/@wdscholia">Mastodon</a>. <hr> </div> <script src="/static/jquery.min.js"></script> <script src="/static/js/popper.min.js"></script> <script src="/static/js/bootstrap.min.js"></script> <script type="text/javascript" src="/static/d3.v5.min.js"></script> <script type="text/javascript" src="/static/d3-scale-chromatic.v1.min.js"></script> <script type="text/javascript" src="/static/jquery.dataTables.min.js"></script> <script type="text/javascript" src="/static/scholia.js"></script> <script type="text/javascript" src="/static/bootstrap-autocomplete.min.js"></script> <script type="text/javascript"> var url = 'https://www.wikidata.org/w/api.php?action=wbgetentities&ids=' + 'Q336' + '&format=json&callback=?'; const currentAspect = window.location.pathname.split("/")[1]; $.getJSON(url, function (data) { var item = data.entities["Q336"]; if ('en' in item.labels) { var title = item.labels.en.value; var wdtitle = item.labels.en.value; $("#h1").text(title); $(".self").text(title); $("title").text(title + " - Scholia"); var crossref_button = document.getElementById("check-crossref-button"); if (title && crossref_button) { crossref_button.onclick = () => {get_dois_from_crossref(wdtitle)} crossref_button.innerHTML = "Check Crossref" } $("#h1").text("Improve " + currentAspect + ": " + title); var linkedToFrom = "<p>A good starting point for improving content related to " + $('<div>').text(title).html() + " is to review recent changes to <ul><li><a href='https://www.wikidata.org/w/index.php?hidecategorization=1&target=Q336&showlinkedto=1&limit=500&days=7&enhanced=1&title=Special:RecentChangesLinked&urlversion=2' >"; linkedToFrom += "pages that <b>link to</b> " + $('<div>').text(title).html() + "</a></li>"; linkedToFrom += "<li><a href='https://www.wikidata.org/w/index.php?hidecategorization=1&target=Q336&showlinkedto=0&limit=500&days=7&enhanced=1&title=Special:RecentChangesLinked&urlversion=2' >"; linkedToFrom += "pages that <em>are linked from</em> " + $('<div>').text(title).html() + "</a></li>"; linkedToFrom += "<li><a href='https://wikidata-todo.toolforge.org/sparql_rc.php?sparql=%23+Up+to+100+entities+linked+to+a+random+set+of+101+entities+linked+to+the+target+item%0D%0APREFIX+target%3A+%3Chttp%3A%2F%2Fwww.wikidata.org%2Fentity%2FQ336%3E%0D%0ASELECT+DISTINCT+%3Fq+WHERE+%7B%0D%0ASERVICE+bd%3Asample+%7B+++%3Fs+%3Fp1+target%3A+.+bd%3AserviceParam+bd%3Asample.limit+101+%7D+++%0D%0A++%3Fq+%3Fp2+%3Fs+.+%0D%0A++FILTER+%28REGEX%28LCASE%28STR%28IRI%28%3Fq%29%29%29%2C+%22http%3A%2F%2Fwww.wikidata.org%22%29%29%0D%0A++FILTER+%28%21REGEX%28LCASE%28STR%28IRI%28%3Fq%29%29%29%2C+%22%28qualifier%7Cstatement%7Creference%29%22%29%29%0D%0A%7D%0D%0ALIMIT+100&start=90+days+ago&end=&user_lang=&sort_mode=last_edit&no_bots=0&skip_unchanged=0'>"; linkedToFrom += "entities <b>linked to</b> entities that <b>link to</b> " + $('<div>').text(title).html() + "</a></li>"; linkedToFrom += "<li><a href='https://wikidata-todo.toolforge.org/sparql_rc.php?sparql=%23+Up+to+100+entities+linked+from+a+random+set+of+101+entities+linked+to+the+target+item%0D%0APREFIX+target%3A+%3Chttp%3A%2F%2Fwww.wikidata.org%2Fentity%2FQ336%3E%0D%0ASELECT+DISTINCT+%3Fq+WHERE+%7B%0D%0ASERVICE+bd%3Asample+%7B+++%3Fs+%3Fp1+target%3A+.+bd%3AserviceParam+bd%3Asample.limit+101+%7D+++%0D%0A++%3Fs+%3Fp2+%3Fq+.+%0D%0A++FILTER+%28REGEX%28LCASE%28STR%28IRI%28%3Fq%29%29%29%2C+%22http%3A%2F%2Fwww.wikidata.org%22%29%29%0D%0A++FILTER+%28%21REGEX%28LCASE%28STR%28IRI%28%3Fq%29%29%29%2C+%22%28qualifier%7Cstatement%7Creference%29%22%29%29%0D%0A%7D%0D%0ALIMIT+100&start=90+days+ago&end=&user_lang=&sort_mode=last_edit&no_bots=0&skip_unchanged=0'>"; linkedToFrom += "entities <em>linked from</em> entities that <b>link to</b> " + $('<div>').text(title).html() + "</a></li>"; linkedToFrom += "<li><a href='https://wikidata-todo.toolforge.org/sparql_rc.php?sparql=%23+Up+to+100+entities+linked+to+a+random+set+of+101+entities+linked+from+the+target+item%0D%0APREFIX+target%3A+%3Chttp%3A%2F%2Fwww.wikidata.org%2Fentity%2FQ336%3E%0D%0ASELECT+DISTINCT+%0D%0A%3Fq+%0D%0AWHERE+%7B%0D%0ASERVICE+bd%3Asample+%7B+++target%3A+%3Fp1+%3Fs+.+bd%3AserviceParam+bd%3Asample.limit+101+%7D+++%0D%0A++FILTER+%28REGEX%28STR%28IRI%28%3Fs%29%29%2C+%22http%3A%2F%2Fwww.wikidata.org%2F%22%29%29%0D%0A++%3Fq+%3Fp2+%3Fs+.+%0D%0A++FILTER+%28REGEX%28STR%28IRI%28%3Fq%29%29%2C+%22http%3A%2F%2Fwww.wikidata.org%2F%22%29%29%0D%0A++FILTER+%28%21REGEX%28STR%28IRI%28%3Fp2%29%29%2C+%22%28qualifier%7Cstatement%7Creference%29%22%29%29+%0D%0A++FILTER+%28%21REGEX%28STR%28IRI%28%3Fq%29%29%2C+%22%28qualifier%7Cstatement%7Creference%29%22%29%29%0D%0A%7D%0D%0ALIMIT+100&start=90+days+ago&end=&user_lang=&sort_mode=last_edit&no_bots=0&skip_unchanged=0'>"; linkedToFrom += "entities <b>linked to</b> entities that <em>are linked from</em> " + $('<div>').text(title).html() + "</a></li>"; linkedToFrom += "<li><a href='https://wikidata-todo.toolforge.org/sparql_rc.php?sparql=%23+Up+to+100+entities+linked+from+a+random+set+of+101+entities+linked+from+the+target+item%0D%0APREFIX+target%3A+%3Chttp%3A%2F%2Fwww.wikidata.org%2Fentity%2FQ336%3E%0D%0ASELECT+DISTINCT+%0D%0A%3Fq+%0D%0AWHERE+%7B%0D%0ASERVICE+bd%3Asample+%7B+++target%3A+%3Fp1+%3Fs+.+bd%3AserviceParam+bd%3Asample.limit+101+%7D+++%0D%0A++FILTER+%28REGEX%28STR%28IRI%28%3Fs%29%29%2C+%22http%3A%2F%2Fwww.wikidata.org%2F%22%29%29%0D%0A++%3Fs+%3Fp2+%3Fq+.+%0D%0A++FILTER+%28REGEX%28STR%28IRI%28%3Fq%29%29%2C+%22http%3A%2F%2Fwww.wikidata.org%2F%22%29%29%0D%0A++FILTER+%28%21REGEX%28STR%28IRI%28%3Fp2%29%29%2C+%22%28qualifier%7Cstatement%7Creference%29%22%29%29+%0D%0A++FILTER+%28%21REGEX%28STR%28IRI%28%3Fq%29%29%2C+%22%28qualifier%7Cstatement%7Creference%29%22%29%29%0D%0A%7D%0D%0ALIMIT+100&start=90+days+ago&end=&user_lang=&sort_mode=last_edit&no_bots=0&skip_unchanged=0'>"; linkedToFrom += "entities <em>linked from</em> entities that <em>are linked from</em> " + $('<div>').text(title).html() + "</a>.</li></ul></p>"; $(linkedToFrom).insertAfter('h1:first'); } $("#h1").append(' (<a href="https://www.wikidata.org/wiki/Q336">Q336</a>)'); if ("P18" in item.claims) { // Find P18 claim which is not deprecated const p18Claim = item.claims.P18.find(function (claim) { return claim.rank !== "deprecated"; }); if (undefined !== p18Claim) { var imageName = p18Claim.mainsnak.datavalue.value; // spaces must be replaced by underscores in the file name imageName = imageName.replaceAll(" ", "_") var imageNameMd5 = md5(imageName); var imageURL = "https://upload.wikimedia.org/wikipedia/commons/thumb/" imageURL += imageNameMd5[0] + "/" + imageNameMd5.slice(0,2) + "/" var filetype = imageName.match(/\.(\w+)$/); var extension = filetype[1].toLowerCase() if (extension === "tif" || extension === "tiff") { imageURL += encodeURIComponent(imageName) + "/lossy-page1-500px-" + encodeURIComponent(imageName) + ".jpg"; } else if (extension === "svg") { imageURL += encodeURIComponent(imageName) + "/500px-" + encodeURIComponent(imageName) + ".png"; } else { imageURL += encodeURIComponent(imageName) + "/500px-" + encodeURIComponent(imageName); } var itemImage = document.getElementById("item-image"); if (itemImage) { itemImage.src = imageURL; itemImage.title = imageName.slice(0, imageName.lastIndexOf('.')); itemImage.setAttribute('alt', imageName); var link = document.createElement('a'); link.href = "https://commons.wikimedia.org/wiki/File:" + encodeURIComponent(imageName); link.style = "max-width: 50%" var parent = itemImage.parentNode; parent.replaceChild(link, itemImage); link.appendChild(itemImage); } } } if ("P10286" in item.claims) { var imageURL = item.claims.P10286[0].mainsnak.datavalue.value; var itemImage = document.getElementById("item-image"); if (itemImage) { itemImage.src = imageURL; } } function socialMediaLink(detailsList, user, site, logo = '') { var html = ''; if (logo) { html += '<a href="' + site.url + '"><img alt="' + site.name + ' logo" src="'; html += logo.src + '" width="16" height="16" hspace="4" /></a> '; } html += '<a href="' + site.url + encodeURI(user.name) + '">'; html += user.prefix + escapeHTML(user.name) + '</a>'; detailsList.push(html); } function sortRank(a, b) { const aRank = a["rank"]; const bRank = b["rank"]; if (aRank == bRank) { return 0; } if (aRank == "preferred" || bRank == "deprecated") { return -1; } if (bRank == "preferred" || aRank == "deprecated") { return 1; } return 0; } var detailsList = Array(); if ("P496" in item.claims) { var user = {name: item.claims.P496[0].mainsnak.datavalue.value, prefix: 'https://orcid.org/'}; var site = {name: "ORCID", url: "https://orcid.org/"}; var logo = {src: "/static/images/orcid.svg"}; socialMediaLink(detailsList, user, site, logo); } if ("P4033" in item.claims) { var mastodonAccount = item.claims.P4033[0].mainsnak.datavalue.value; var mastodonComponents = mastodonAccount.split("@"); if (mastodonComponents.length == 2) { // Mastodon user URLs start with @ var user = { name: '@' + mastodonComponents[0], prefix: '' }; var site = { name: "Mastodon", url: 'https://' + mastodonComponents[1] + '/' }; var logo = { src: "/static/images/mastodon.svg" }; socialMediaLink(detailsList, user, site, logo); } } if ("P2037" in item.claims) { var user = {name: item.claims.P2037[0].mainsnak.datavalue.value, prefix: "@"}; var site = { name: "GitHub", url: "https://github.com/" }; var logo = { src: "/static/images/github.svg" }; socialMediaLink(detailsList, user, site, logo); } if ("P6782" in item.claims) { var user = { name: item.claims.P6782[0].mainsnak.datavalue.value, prefix: 'https://ror.org/' }; var site = { name: "Research Organization Registry", url: 'https://ror.org/' }; var logo = { src: "/static/images/ror.svg" }; socialMediaLink(detailsList, user, site, logo); } if ("P2572" in item.claims) { var user = { name: item.claims.P2572[0].mainsnak.datavalue.value, prefix: '#' }; var site = { name: "Hashtag hub", url: 'https://hashtags-hub.toolforge.org/' }; socialMediaLink(detailsList, user, site); } /* Official homepage */ if ("P856" in item.claims) { var homepage = item.claims.P856.sort(sortRank)[0] var homepageURL = homepage.mainsnak.datavalue.value detailsList.push('&nbsp;<a href="' + homepageURL + '">' + homepageURL + '</a>'); } if (detailsList.length > 0) { $('#details').append(detailsList.join(" | ")); } try { var doi = item.claims.P356[0].mainsnak.datavalue.value; $("head").append( '<meta name="citation_doi" content="' + doi + '"/>' ); } catch(e) {} /* BioSchemas annotation */ if (item.claims.P31 && ((item.claims.P31[0].mainsnak.datavalue.value.id == 'Q5'))) { try { /* Person */ bioschemasAnnotation = { "@context" : "https://schema.org", "@type" : "Person" , "http://purl.org/dc/terms/conformsTo": { "@type": "CreativeWork", "@id": "https://bioschemas.org/profiles/Person/0.2-DRAFT-2019_07_19/" }, "description" : "A person" , "identifier" : "Q336" , "mainEntityOfPage" : "http://www.wikidata.org/entity/Q336" } if ('en' in item.labels) { bioschemasAnnotation.name = item.labels.en.value; } $( '#bioschemas' ).append( JSON.stringify(bioschemasAnnotation) ); } catch(e) {} } else if (item.claims.P31 && ((item.claims.P31[0].mainsnak.datavalue.value.id == 'Q47461491') || (item.claims.P31[0].mainsnak.datavalue.value.id == 'Q967847'))) { try { /* ChemicalSubstance */ bioschemasAnnotation = { "@context" : "https://schema.org", "@type" : "ChemicalSubstance" , "http://purl.org/dc/terms/conformsTo": { "@type": "CreativeWork", "@id": "https://bioschemas.org/profiles/ChemicalSubstance/0.4-RELEASE/" }, "identifier" : "Q336" , "url" : "http://www.wikidata.org/entity/Q336" } if ('en' in item.labels) { bioschemasAnnotation.name = item.labels.en.value; } $( '#bioschemas' ).append( JSON.stringify(bioschemasAnnotation) ); } catch(e) {} } else if (item.claims.P225) { try { /* Taxon */ var taxonName = item.claims.P225[0].mainsnak.datavalue.value; bioschemasAnnotation = { "@context" : "https://schema.org", "@type" : "Taxon" , "http://purl.org/dc/terms/conformsTo": { "@type": "CreativeWork", "@id": "https://bioschemas.org/profiles/Taxon/0.6-RELEASE/" }, "name" : taxonName , "url" : "http://www.wikidata.org/entity/Q336" } if (item.claims.P105) { var taxonRank = item.claims.P105[0].mainsnak.datavalue.value.id; bioschemasAnnotation.taxonRank = "http://www.wikidata.org/entity/" + taxonRank ; } if (item.claims.P171) { var parent = item.claims.P171[0].mainsnak.datavalue.value.id; bioschemasAnnotation.parentTaxon = "http://www.wikidata.org/entity/" + parent ; } $( '#bioschemas' ).append( JSON.stringify(bioschemasAnnotation) ); // console.log(JSON.stringify(bioschemasAnnotation, "", 2)) } catch(e) {} } else if (item.claims.P235) { try { /* Chemical Compound */ var inchiKey = item.claims.P235[0].mainsnak.datavalue.value; bioschemasAnnotation = { "@context" : "https://schema.org", "@type" : "MolecularEntity" , "http://purl.org/dc/terms/conformsTo": { "@type": "CreativeWork", "@id": "https://bioschemas.org/profiles/MolecularEntity/0.5-RELEASE/" }, "identifier" : "Q336" , "inChIKey" : inchiKey , "url" : "http://www.wikidata.org/entity/Q336" } if ('en' in item.labels) { bioschemasAnnotation.name = item.labels.en.value; } if (item.claims.P234 && item.claims.P234[0].mainsnak.datavalue) { var inchi = item.claims.P234[0].mainsnak.datavalue.value; bioschemasAnnotation.inChI = inchi ; } if (item.claims.P274 && item.claims.P274[0].mainsnak.datavalue) { var chemformula = item.claims.P274[0].mainsnak.datavalue.value; bioschemasAnnotation.molecularFormula = chemformula ; } if (item.claims.P2017 && item.claims.P2017[0].mainsnak.datavalue) { var smiles = item.claims.P2017[0].mainsnak.datavalue.value; bioschemasAnnotation.molecularFormula = smiles.replace("\"", "\'\'") ; } else if (item.claims.P233 && item.claims.P233[0].mainsnak.datavalue) { var smiles = item.claims.P233[0].mainsnak.datavalue.value; bioschemasAnnotation.smiles = smiles.replace("\"", "\'\'") ; } $( '#bioschemas' ).append( JSON.stringify(bioschemasAnnotation) ); } catch(e) { console.error("Exception: " + e) } } else if (item.claims.P352) { // UniProt ID try { /* Protein */ var uniprot = item.claims.P352[0].mainsnak.datavalue.value; bioschemasAnnotation = { "@context" : "https://schema.org", "@type" : "Protein" , "http://purl.org/dc/terms/conformsTo": { "@type": "CreativeWork", "@id": "https://bioschemas.org/profiles/Protein/0.11-RELEASE/" }, "identifier" : "Q336" , "url" : "http://www.wikidata.org/entity/Q336" , "sameAs": "https://www.uniprot.org/uniprot/" + uniprot } if ('en' in item.labels) { bioschemasAnnotation.name = item.labels.en.value; } $( '#bioschemas' ).append( JSON.stringify(bioschemasAnnotation) ); } catch(e) { console.error("Exception: " + e) } } else if (item.claims.P351 || item.claims.P594) { // NCBI Gene or Ensembl try { /* Gene */ bioschemasAnnotation = { "@context" : "https://schema.org", "@type" : "Gene" , "http://purl.org/dc/terms/conformsTo": { "@type": "CreativeWork", "@id": "https://bioschemas.org/profiles/Gene/0.7-RELEASE/" }, "identifier" : "Q336" , "url" : "http://www.wikidata.org/entity/Q336" } if ('en' in item.labels) { bioschemasAnnotation.name = item.labels.en.value; } counter = 0 bioschemasAnnotation.sameAs = [] if (item.claims.P351 && item.claims.P351[0].mainsnak.datavalue) { var ncbi = item.claims.P351[0].mainsnak.datavalue.value; bioschemasAnnotation.sameAs[counter] = "https://www.ncbi.nlm.nih.gov/gene/" + ncbi; counter++ } if (item.claims.P594 && item.claims.P594[0].mainsnak.datavalue) { var ensembl = item.claims.P594[0].mainsnak.datavalue.value; bioschemasAnnotation.sameAs[counter] = "http://identifiers.org/ensembl/" + ensembl; } $( '#bioschemas' ).append( JSON.stringify(bioschemasAnnotation) ); } catch(e) { console.error("Exception: " + e) } } /* English Wikipedia */ if ('enwiki' in item.sitelinks) { var title = item.sitelinks.enwiki.title; var wikipediaApiUrl = 'https://en.wikipedia.org/api/rest_v1/page/summary/' + encodeURIComponent(title); var wikipediaUrl = 'https://en.wikipedia.org/wiki/' + encodeURIComponent(title) var headers = new Headers({"Api-User-Agent": "https://github.com/WDscholia/scholia"}); fetch(wikipediaApiUrl, {method: 'GET', headers: headers}) .then(response => response.json()) .then(data => { var html = " (<a href=\"" + wikipediaUrl + "\">Read more on English Wikipedia</a>)"; $("#intro").text(data.extract).append(html); }).catch(error => { var html = "<a href=\"" + wikipediaUrl + "\">View on English Wikipedia</a>"; $("#intro").append(html); console.error('Could not get summary from enwiki: ', error); }); } /* English Wikiversity */ if ('enwikiversity' in item.sitelinks) { var enwikiversityTitle = item.sitelinks.enwikiversity.title; var wikiversityApiUrl = 'https://en.wikiversity.org/w/api.php?' + 'action=query&prop=extracts&exsentences=3&exlimit=1&exintro=1&' + 'explaintext=1&callback=?&format=json&titles=' + encodeURIComponent(enwikiversityTitle); var wikiversityUrl = 'https://en.wikiversity.org/wiki/' + encodeURIComponent(enwikiversityTitle) $.getJSON(wikiversityApiUrl, function(data) { var pages = data.query.pages; var text = pages[Object.keys(pages)[0]].extract; if (text) { var html = "... (from the <a href=\"" + wikiversityUrl + "\">English Wikiversity</a>)"; } else { var html = "Read on the <a href=\"" + wikiversityUrl + "\">English Wikiversity</a>"; } $("#wikiversity-extract").text(text).append(html); }).fail(function(d, textStatus, error) { var html = "Read on the <a href=\"" + wikiversityUrl + "\">English Wikiversity</a>"; $("#wikiversity-extract").append(html); console.error("getJSON failed, status: " + textStatus + ", error: "+error) }); } }); var curationElement = document.getElementById("curation-link"); curationElement.innerText = "Back" curationElement.href = "/" + currentAspect + "/Q336"; curationElement.classList.remove("d-none"); // this query opens the Wikidata item as a different aspect var endpointUrl = 'https://query.wikidata.org/sparql'; if ("".length) { var query = ` SELECT DISTINCT ?aspect WHERE { { [] wdt:P17 wd:Q336 . BIND("country" AS ?aspect) } UNION { wd:Q336 wdt:P159? / wdt:P625 [] . BIND("location" AS ?aspect) } UNION { [] wdt:P1416 | wdt:P108 wd:Q336 . BIND("organization" AS ?aspect) } } `; } else { var query = ` SELECT DISTINCT ?aspect WHERE { { [] wdt:P50 wd:Q336 . BIND("author" AS ?aspect) } UNION { [] wdt:P166 wd:Q336 . BIND("award" AS ?aspect) } UNION { wd:Q336 wdt:P31 / wdt:P279? wd:Q22325163 . BIND("complex" AS ?aspect) } UNION { [] wdt:P17 wd:Q336 . BIND("country" AS ?aspect) } UNION { [] wdt:P972 wd:Q336 . BIND("catalogue" AS ?aspect) } UNION { wd:Q336 wdt:P235 [] . BIND("chemical" AS ?aspect) } UNION { wd:Q336 ^wdt:P31/wdt:P235 [] . BIND("chemical-class" AS ?aspect) } UNION { wd:Q336 wdt:P644 [] . BIND("gene" AS ?aspect) } UNION { wd:Q336 wdt:P159? / wdt:P625 [] . BIND("location" AS ?aspect) } UNION { [] wdt:P1416 | wdt:P108 wd:Q336 . BIND("organization" AS ?aspect) } UNION { wd:Q336 wdt:P31 wd:Q2996394 . BIND("pathway" AS ?aspect) } UNION { wd:Q336 wdt:P31 wd:Q4915012 . BIND("pathway" AS ?aspect) } UNION { [] wdt:P872 wd:Q336 . BIND("printer" AS ?aspect) } UNION { wd:Q336 wdt:P31 wd:Q8054 . BIND("protein" AS ?aspect) } UNION { [] wdt:P123 wd:Q336 . BIND("publisher" AS ?aspect) } UNION { [] wdt:P179 wd:Q336 . BIND("series" AS ?aspect) } UNION { wd:Q336 wdt:P31 / wdt:P279* wd:Q7397 . BIND("software" AS ?aspect) } UNION { [] wdt:P859 wd:Q336 . BIND("sponsor" AS ?aspect) } UNION { wd:Q336 wdt:P225 [] . BIND("taxon" AS ?aspect) } UNION { [] wdt:P921 wd:Q336 . BIND("topic" AS ?aspect) } UNION { [] wdt:P4510 wd:Q336 . BIND("use" AS ?aspect) } UNION { [] wdt:P1433 wd:Q336 . BIND("venue" AS ?aspect) } UNION { wd:Q336 wdt:P50 | wdt:P2093 [] . BIND("work" AS ?aspect) } } `; } settings = { headers: { Accept: 'application/sparql-results+json' }, data: { query: query } }; $.ajax(endpointUrl, settings).then(function (data) { createDropdownButton("aspect-chooser", 'aspectMenuButton', currentAspect, data, "Q336") if (data.results.bindings.length > 1) { addDropdownList("aspect-chooser", 'aspectMenuList', currentAspect, data) } }).then(function () { if ("".length) { var endpointUrl = 'https://query.wikidata.org/sparql'; var query = "SELECT DISTINCT ?aspect WHERE {" query += '{ [] wdt:P921 wd:Q336 . BIND("topic" AS ?aspect) } }'; settings = { headers: { Accept: 'application/sparql-results+json' }, data: { query: query } }; $.ajax(endpointUrl, settings).then(function (data) { var aspectLabel = " / <a href='/" + currentAspect + "/Q336'>Q336</a> / " document.getElementById("aspect-chooser-label").innerHTML = aspectLabel; var currentSubAspect = window.location.pathname.split("/")[3]; document.querySelectorAll("#aspectMenuList a").forEach((link) => link.href += "/" + currentSubAspect + "/") createDropdownButton("aspect-chooser", 'aspectMenuButton', currentSubAspect, data, "") if (data.results.bindings.length > 1) { addDropdownList("aspect-chooser", 'aspectMenuList', currentSubAspect, data) } }).fail(function (jqXHR, textStatus, errorThrown) { console.error("Subaspect chooser failed to generate. " + textStatus + " " + errorThrown) }); } }).fail(function (jqXHR, textStatus, errorThrown) { console.error("Aspect chooser failed to generate. " + textStatus + " " + errorThrown) }); function createDropdownButton(parent, id, currentAspect, data, q) { var aspectDropdown = document.createElement('button'); aspectDropdown.type = 'button'; aspectDropdown.id = id; aspectDropdown.classList = 'btn btn-outline-secondary'; // only show aspects which have a curation page with author-disambig or wikidata links var validCurationPages = ["author", "award", "organization", "topic", "venue"] data.results.bindings = data.results.bindings.filter(elem => { return validCurationPages.indexOf(elem.aspect.value) != -1 }) if (data.results.bindings.length > 1) { aspectDropdown.classList.add('dropdown-toggle'); aspectDropdown.setAttribute('data-toggle', 'dropdown'); aspectDropdown.setAttribute('aria-haspopup', 'true'); aspectDropdown.setAttribute('aria-expanded', 'false'); } aspectDropdown.innerText = currentAspect; document.getElementById(parent).append(aspectDropdown); aspectDropdown.insertAdjacentHTML("afterend", '<span id="aspect-chooser-label" style="color: #6C757D; vertical-align: middle;margin: 2px;"> / '+ q + '</span>') } function addDropdownList(parent, id, currentAspect, data) { var aspectDropdownMenu = document.createElement('div'); aspectDropdownMenu.classList = 'dropdown-menu'; aspectDropdownMenu.setAttribute('aria-labelledby', 'aspectMenuButton'); aspectDropdownMenu.id = id data.results.bindings.forEach(function (entry) { var aspect = entry.aspect.value; if (aspect != currentAspect) { var dropdownItem = document.createElement('a'); dropdownItem.classList = 'dropdown-item'; dropdownItem.href = "/" + aspect + '/Q336'; dropdownItem.href += "/curation" dropdownItem.innerText = aspect; aspectDropdownMenu.append(dropdownItem); } }); document.getElementById(parent).append(aspectDropdownMenu); } /* Wembedder */ var wembedderUrl = "https://wembedder.toolforge.org/api/most-similar/Q336"; $.ajax({ url: wembedderUrl, success: function (data) { var html = `<hr>` + `<span data-toogle="tooltip" ` + `title="Related items from Wembedder knowledge graph embedding.">` + `<a alt="Wembedder about page" ` + `href="https://wembedder.toolforge.org/about">Related</a>:</span> `; $( '#wembedder' ).append(html); // Make list with results data.most_similar.forEach(function(entry, idx, array) { var listed_q = entry.item; var language = 'en'; if (idx !== 0) { $( '#wembedder' ).append( ' &middot; '); } var html = '<a href="../' + listed_q + '"><span id="wembedder-result-' + listed_q + '">' + listed_q + '</span></a> ' $( '#wembedder' ).append( html ); // Convert Q identifier to labels $.getJSON("https://www.wikidata.org/w/api.php?callback=?", { action: "wbgetentities", ids: listed_q, language: language, uselang: language, format: "json", strictlanguage: true, }, function (data) { if (listed_q in data.entities) { label = entityToLabel(data.entities[listed_q], language=language); $('#wembedder-result-' + listed_q).empty(); $('#wembedder-result-' + listed_q).text(label); } }); }); $( '#wembedder' ).append( '<hr>' ); }, error: function (jqXHR, textStatus, errorThrown) { console.error("Wembedder failed. " + textStatus + " " + errorThrown) }, }); $(document).ready(function () { $('#searchterm').autoComplete({ minLength: 2, resolver: 'custom', events: { search: debounce((searchTerm, callback) => { var url = "https://www.wikidata.org/w/api.php?callback=?"; var settings = { dataType: 'jsonp', data: { search: searchTerm, action: "wbsearchentities", language: "en", uselang: "en", format: "json", strictlanguage: true } }; $.ajax(url, settings).then(function (data) { if (data.search.length) { let results = ['Show all results for "' + searchTerm + '"'] for (let item of data.search) { results.push(item.label + " - " + item.description + " (" + item.title + ")"); } callback(results) } else { callback([]) } }).fail(function (jqXHR, textStatus, errorThrown) { callback(["Search failed"]) console.error("Search failed. " + textStatus + " " + errorThrown) }); }, 200) } }); $("#searchterm").on("autocomplete.select", (event, item) => { handleSearch(item) }); $("#searchterm").on("keydown", function (event) { switch (event.key) { case "Enter": handleSearch(this.value); break; default: } }); $("#searchbutton").on("click", () => { handleSearch(document.getElementById("searchterm").value) }) function handleSearch(item) { // headerSearch and authorIndexAutocomplete reference where the two formats come from let headerSearch = item.match(/ \((Q\d+)\)$/); if (headerSearch) { window.location.href = "/" + headerSearch[1]; } else { let authorIndexAutocomplete = item.match(/\/\w+\/Q\d+$/); if (authorIndexAutocomplete) { window.location.href = item; } else { let search_text = item.match(/Show all results for "(.+)"$/) if (search_text) { window.location.href = "/search?q=" + search_text[1]; } else { window.location.href = "/search?q=" + item; } } } } function debounce(callback, wait) { let timeout; return (...args) => { clearTimeout(timeout); timeout = setTimeout(function () { callback.apply(this, args); }, wait); }; } // Add table of content var headings = document.querySelectorAll("h2,h3"); if (headings.length >= 3) { var tocParent = document.createElement("div"); tocParent.className = "table-of-contents" var toc = document.createElement("div"); tocTitle = document.createElement("b"); tocTitle.innerText = "Table of Contents" toc.appendChild(tocTitle) var tocList = document.createElement("ul"); var sublist = ""; for (let i = 0; i < headings.length; i++) { const element = headings[i]; if (!element.id) { element.id = element.innerText.replaceAll(" ", "-"); } if (element.tagName === "H3" && !sublist) { var sublist = document.createElement("ul"); } tocListItem = document.createElement("li"); tocEntry = document.createElement("a"); tocEntry.setAttribute("href", "#" + element.id); tocEntry.innerText = headings[i].innerText; tocListItem.appendChild(tocEntry); if (element.tagName === "H3") { sublist.appendChild(tocListItem); if (i == headings.length - 1) { tocList.appendChild(sublist); } } else { if (sublist) { tocList.appendChild(sublist); sublist = ""; } tocList.appendChild(tocListItem); } } toc.appendChild(tocList) var itemImage = document.createElement("img"); itemImage.id = "item-image"; itemImage.alt = ""; itemImage.href = ""; itemImage.onclick = function () { window.location.href = itemImage.href; }; tocParent.appendChild(toc); tocParent.appendChild(itemImage); document.querySelector("h2").insertAdjacentElement("beforebegin", tocParent) itemImage.height = toc.clientHeight } // Add anchor links to all headings var headers = document.querySelectorAll('h2[id], h3[id]') if (headers) { headers.forEach(element => { var title = element.innerText; element.removeChild(element.childNodes[0]) element.insertAdjacentHTML('afterbegin', `<a href="#${element.id}" class="hlink" ariaLabel="Anchor">${title}</a>`) }) } // missing-author-items table sparqlToDataTable2("https://query.wikidata.org/sparql", "https://query.wikidata.org/#", `# tool: scholia PREFIX target: <http://www.wikidata.org/entity/Q336> SELECT # Number of works with the author ?count # Author score - 3 points for authoring a work, 1 for being cited ?score # Author as a string ?author # Build URL to the Author disambiguator tool (CONCAT( 'https://author-disambiguator.toolforge.org/names_oauth.php?doit=Look+for+author&name=', ENCODE_FOR_URI(?author)) AS ?resolver_url) WITH { SELECT DISTINCT ?work WHERE { ?work wdt:P921 / (wdt:P361+ | wdt:P1269+ | (wdt:P31* / wdt:P279*) ) target: . } LIMIT 10000 } AS %works WITH { SELECT (COUNT(?work) AS ?count) ?author WHERE { INCLUDE %works ?work wdt:P2093 ?author . } GROUP BY ?author } AS %result # Generate a score for each author WITH { SELECT (SUM(?score_) AS ?score) ?author WHERE { { # Assign them 3 points if they are an author of a work on the subject SELECT (3 AS ?score_) ?author ?work WHERE { ?work wdt:P2093 ?author . ?work wdt:P921/wdt:P279* target: . } } UNION { # Assign them 1 point if they are the author of a work that is cited by a work on the subject SELECT (1 AS ?score_) ?author ?work WHERE { ?work wdt:P2093 ?author . ?citing_work wdt:P2860 ?work . ?citing_work wdt:P921/wdt:P279* target: . } } } GROUP BY ?author } AS %scores WHERE { INCLUDE %result INCLUDE %scores # Label the result SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . } } ORDER BY DESC(?count) DESC(?score) LIMIT 200 `, "#missing-author-items-table", "topic-curation_missing-author-items.sparql", options={}); // missing-pub-date table sparqlToDataTable2("https://query.wikidata.org/sparql", "https://query.wikidata.org/#", `# tool: scholia PREFIX target: <http://www.wikidata.org/entity/Q336> SELECT ?citations ?work ?workLabel (CONCAT("/work/", SUBSTR(STR(?work), 32)) AS ?workUrl) (?work AS ?wikidata_url) WITH { SELECT (COUNT(?work) as ?count) ?work WHERE { # Works on the topic ?work wdt:P921 / (wdt:P361+ | wdt:P1269+ | (wdt:P31* / wdt:P279*) ) target: . # Works that do not have a publication date statement FILTER NOT EXISTS { ?work wdt:P577 ?date . } # Works that do not have an ISSN, i.e. that are not periodicals FILTER NOT EXISTS { ?work wdt:P236 ?issn . } } GROUP BY ?work ORDER BY DESC(?count) LIMIT 2000 } AS %works WITH { SELECT (COUNT(?work1) as ?citations) ?work WHERE { INCLUDE %works # Works cited OPTIONAL { ?work1 wdt:P2860 ?work }. } GROUP BY ?work ORDER BY DESC(?citations) LIMIT 200 } AS %result WHERE { INCLUDE %result # Label the results SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . } } ORDER BY DESC(?citations) `, "#missing-pub-date-table", "topic-curation_missing-pub-date.sparql", options={}); // missing-pub-venue table sparqlToDataTable2("https://query.wikidata.org/sparql", "https://query.wikidata.org/#", `# tool: scholia PREFIX target: <http://www.wikidata.org/entity/Q336> SELECT ?citations ?work ?workLabel (CONCAT("/work/", SUBSTR(STR(?work), 32)) AS ?workUrl) (?work AS ?wikidata_url) WITH { SELECT (COUNT(?work) as ?count) ?work WHERE { # Works on the topic ?work wdt:P921 / (wdt:P361+ | wdt:P1269+ | (wdt:P31* / wdt:P279*) ) target: . # Works that do not have a statement about where they were published FILTER NOT EXISTS { ?work wdt:P1433 ?date . } # Works that do not have an ISSN, i.e. that are not periodicals FILTER NOT EXISTS { ?work wdt:P236 ?issn . } } GROUP BY ?work ORDER BY DESC(?count) LIMIT 2000 } AS %works WITH { SELECT (COUNT(?work1) as ?citations) ?work WHERE { INCLUDE %works # Works cited OPTIONAL { ?work1 wdt:P2860 ?work }. } GROUP BY ?work ORDER BY DESC(?citations) LIMIT 200 } AS %result WHERE { INCLUDE %result # Label the results SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . } } ORDER BY DESC(?citations) `, "#missing-pub-venue-table", "topic-curation_missing-pub-venue.sparql", options={}); // missing-co-topic table sparqlToDataTable2("https://query.wikidata.org/sparql", "https://query.wikidata.org/#", `# tool: scholia PREFIX target: <http://www.wikidata.org/entity/Q336> SELECT ?count ?work ?workLabel (CONCAT("/work/", SUBSTR(STR(?work), 32)) AS ?workUrl) WITH { # Count citations SELECT (COUNT(?citing_work) AS ?count) ?work (SAMPLE(?citing_work) AS ?example_citing_work) (COUNT(DISTINCT ?topic) AS ?topics) WHERE { ?work wdt:P921 target: . OPTIONAL { ?work wdt:P921 ?topic . FILTER (?topic != target: )} OPTIONAL { ?citing_work wdt:P2860 ?work. } } GROUP BY ?work HAVING (?topics < 1) ORDER BY DESC(?count) LIMIT 100 } AS %result WHERE { # Label results INCLUDE %result SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . } } ORDER BY DESC(?count) ?topics `, "#missing-co-topic-table", "topic-curation_missing-co-topic.sparql", options={}); }); </script> <script>function gtElInit() {var lib = new google.translate.TranslateService();lib.translatePage('en', 'en', function () {});}</script> <script src="https://translate.google.com/translate_a/element.js?cb=gtElInit&amp;hl=en-GB&amp;client=wt" type="text/javascript"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10