{"id":860,"date":"2026-10-06T11:24:34","date_gmt":"2026-10-06T10:24:34","guid":{"rendered":"http:\/\/magnusmanske.de\/wordpress\/?p=860"},"modified":"2026-10-06T11:24:34","modified_gmt":"2026-10-06T10:24:34","slug":"reaping-the-harvest","status":"publish","type":"post","link":"http:\/\/magnusmanske.de\/wordpress\/archives\/860","title":{"rendered":"Reaping the harvest"},"content":{"rendered":"<p><a href=\"https:\/\/pltools.toolforge.org\/harvesttemplates\/\">Harvest Templates<\/a> by <a href=\"https:\/\/www.wikidata.org\/wiki\/User:Pasleim\">User:Pasleim<\/a>\u00a0 has been a key tool for synchronizing data between Wikipedia templates and Wikidata. However, Pasleim stopped updating the tool in 2021, and issues have been piling up since.<\/p>\n<p>So I (and my not-so-trusted slop generator) set out to Do The Thing: <em>Rewrite it in Rust<\/em>. And while at it, fix the issues that had accumulated. And implement the feature requests.<\/p>\n<p>The rewrite it now live at <a href=\"https:\/\/harvesttemplates.toolforge.org\/\"><strong>harvesttemplates.toolforge.org<\/strong><\/a>, the source is <a href=\"https:\/\/github.com\/magnusmanske\/harvesttemplates\">on github<\/a> (since Codeberg frowns at code that wasn&#8217;t written in the One Proper Way). Some highlights:<\/p>\n<ul>\n<li>The &#8220;harvests&#8221; now run on the server, not in the browser, so they keep running in the background, can be paused, restarted, etc.<\/li>\n<li>Much of what used to be API queries that would timeout is now done via the database replicas, so no more hanging &#8220;Loading&#8230;&#8221;, and huge queries work fine (though they can take a minute)<\/li>\n<li>Editing will not add statements twice, which was a much-bemoaned issue. Also, HT now checks by default if that statement was ever removed before, and won&#8217;t add it again. Each row gets its own edit status, and won&#8217;t fail the batch. You can also preview edits as a dry run.<\/li>\n<li>Now supporting qualifiers, coordinates, numbers with units, combining several parameters, values from nested templates, multiple properties per run, as well as PetScan, SPARQL, and instance-of filters<\/li>\n<li>Your old permalinks, and the shares queries, have been ported to the new DB, so they will still work (when adjusted for the new URL path)<\/li>\n<\/ul>\n<p>So, if you liked the original Harvest Templates, or got curious and want to try it out (there is a help page, and some examples), I hope you&#8217;ll give the new version a whirl.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Harvest Templates by User:Pasleim\u00a0 has been a key tool for synchronizing data between Wikipedia templates and Wikidata. However, Pasleim stopped updating the tool in 2021, and issues have been piling up since. So I (and my not-so-trusted slop generator) set out to Do The Thing: Rewrite it in Rust. And while at it, fix the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,9],"tags":[],"class_list":["post-860","post","type-post","status-publish","format-standard","hentry","category-rust","category-wikidata"],"_links":{"self":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/860","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=860"}],"version-history":[{"count":1,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/860\/revisions"}],"predecessor-version":[{"id":861,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/860\/revisions\/861"}],"wp:attachment":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/media?parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/categories?post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/tags?post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}