{"id":338,"date":"2015-08-14T22:51:00","date_gmt":"2015-08-14T21:51:00","guid":{"rendered":"http:\/\/blog.magnusmanske.de\/?p=338"},"modified":"2015-08-14T22:51:00","modified_gmt":"2015-08-14T21:51:00","slug":"a-suggestive-tool","status":"publish","type":"post","link":"http:\/\/magnusmanske.de\/wordpress\/archives\/338","title":{"rendered":"A suggestive tool"},"content":{"rendered":"<p>Do you know what &#8220;Stomatitis&#8221; is? Neither did I. But there is an article about it on German Wikipedia, and when I found it, it had a blank Wikidata item. Now, I happen to speak German, but I have run into plenty of other blank items with, say, a Russian Wikipedia article, which is not exactly my forte. I could go to Google translate, but oh so inconvenient. And then I&#8217;ll have to figure out which properties and items I should link to are. Easy enough for &#8220;human&#8221; (P31:Q5) to remember, but what was the item for &#8220;sex:female&#8221; again?<\/p>\n<p>Then I thought: I might not know what the text of the article says, but I bet it is in one or more categories. And these categories have other articles in them, articles similar to the article I can&#8217;t read. And many of these articles should have Wikidata items. So I could look at these items, see what statements are common among those, and some of the top ones will probably apply to my blank item as well.<\/p>\n<p>You all know what we need now: More tools! So I wrote some code on Labs, which will give me the &#8220;statement ranking&#8221; for a single language. I also wrote a <a href=\"https:\/\/www.wikidata.org\/wiki\/User:Magnus_Manske\/suggestor.js\">JavaScript wrapper<\/a> around it. It will add a link called &#8220;Suggestor&#8221; to your toolbar on the left. This is what it looks like:<\/p>\n<p><a href=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2015\/08\/Screen-Shot-2015-08-14-at-22.32.45.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-339\" src=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2015\/08\/Screen-Shot-2015-08-14-at-22.32.45.png\" alt=\"Screen Shot 2015-08-14 at 22.32.45\" width=\"895\" height=\"712\" srcset=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2015\/08\/Screen-Shot-2015-08-14-at-22.32.45.png 895w, http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2015\/08\/Screen-Shot-2015-08-14-at-22.32.45-300x239.png 300w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/a><\/p>\n<p>It&#8217;s definitely a disease, and the &#8220;medical specialty&#8221; looks right too. If the source describes it, I do not know, but it might be worth finding out.<\/p>\n<p>To add this handy function to your Wikidata experience, simply add<\/p>\n<pre><span class=\"nx\">importScript<\/span><span class=\"p\">(<\/span> <span class=\"s1\">'User:Magnus_Manske\/suggestor.js'<\/span> <span class=\"p\">);<\/span><\/pre>\n<p>to your <a href=\"https:\/\/www.wikidata.org\/wiki\/Special:Mypage\/common.js\">common.js<\/a> user subpage. Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you know what &#8220;Stomatitis&#8221; is? Neither did I. But there is an article about it on German Wikipedia, and when I found it, it had a blank Wikidata item. Now, I happen to speak German, but I have run into plenty of other blank items with, say, a Russian Wikipedia article, which is not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-338","post","type-post","status-publish","format-standard","hentry","category-wikidata"],"_links":{"self":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/comments?post=338"}],"version-history":[{"count":2,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":341,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/338\/revisions\/341"}],"wp:attachment":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/categories?post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}