<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sam Wilson's Website :: tags</title><link>https://twyne.samwilson.id.au/T1886</link><atom:link href="https://twyne.samwilson.id.au/T1886/rss.xml" rel="self" type="application/rss+xml"/><lastBuildDate>Fri, 07 Aug 2026 21:13:58 +0000</lastBuildDate><item><title>Linking tags to Wikidata</title><description>&lt;p&gt;I’ve recently added support to my website for linking posts’ tags to Wikidata entities. This means that each tag (which has it’s own URL at &lt;code&gt;samwilson.id.au/Tnn&lt;/code&gt; where &lt;code&gt;nn&lt;/code&gt; is the tag ID) can be linked to a Wikidata ID, and have a little table of facts displayed. This means that tags are no longer just strings, but are firmly linked to a meaningful concept — a tag such as ‘York’ is definitely the town in Western Australia and not the one in Yorkshire. No two tags are allowed to be linked to the same Wikidata item.&lt;/p&gt;
&lt;p&gt;The other part of this work was adding a lookup widget to the tag entry form field. Before, it was just a text box and tags had to be entered with semicolons separating them. Now, you start typing and a dropdown appears with suggestions firstly from existing tags on the site and then below them with labels and descriptions of Wikidata items. It makes entering new tags much easier.&lt;/p&gt;
&lt;p&gt;It’s great fun going back through my archives and linking all the tags, although it’s also highlighting the fact that I often create duplicate tags (e.g. misspellings, or &lt;code&gt;Fremantle Railway Station&lt;/code&gt; vs &lt;code&gt;Fremantle Train Station&lt;/code&gt;). To add a tag-merging system I first need to add a system of tracking and redirecting old URLs (something I should’ve added ages ago when I added the ability to delete duplicate posts).&lt;/p&gt;</description><link>https://twyne.samwilson.id.au/P23961</link><guid isPermaLink="true">https://twyne.samwilson.id.au/P23961</guid><pubDate>Mon, 07 Jun 2021 05:46:48 +0000</pubDate></item></channel></rss>
