<h1 id="managing-tags-on-hpr-episodes---1">Managing tags on HPR episodes - 1</h1>
<h2 id="introduction">Introduction</h2>
<p>We have been collecting and storing tags for new HPR shows for a while now with the intention of eventually offering a search interface. In addition, a number of contributors, including myself have been adding tags (and summaries), to shows that do not have them, since August 2015. There is still a way to go, but we’re making progress. At the time of writing (2017-01-31) 56.29% (1248) of all HPR shows (2217) have tags.</p>
<p>In recent times the way in which we should use these tags has been discussed. In show <a href="https://hackerpublicradio.org/eps.php?id=2035" title="Building Community">2035</a> on 2016-05-20 <a href="https://hackerpublicradio.org/correspondents/0001.html" title="droops">droops</a> suggested:</p>
<blockquote>
<p><em>The website, which is a lot of work, needs to have related shows listed on each individual show’s page. This will take a tag system and someone to tag all of the almost uncountable previous episodes.</em></p>
</blockquote>
<p>This episode begins a discussion about some of the ways that tags can be stored, managed and accessed efficiently in the HPR database.</p>
<p>I started planning a show about this subject in the summer of 2016, and the amount of information I have accumulated has grown since then. There is now quite a lot, so I am going to split what was originally going to be one show into three.</p>
<p>The subject becomes quite technical in the later shows, discussing database design techniques, and all three of the shows contain examples of database queries and scripts. If you are not interested in this subject than feel free to skip past. However, you might find this first episode more palatable, and any thoughts you might have on the subject would be appreciated.</p>
<h2 id="long-notes">Long notes</h2>
<p>I have written out a set of longer notes for this episode and these are available <a href="https://hackerpublicradio.org/eps/hpr2245/full_shownotes.html">here</a>.</p>
<h2 id="links">Links</h2>
<ul>
<li>HPR show 2035: <a href="https://hackerpublicradio.org/eps.php?id=2035">“<em>Building Community</em>”</a></li>
<li>Wikipedia page on <a href="https://en.wikipedia.org/wiki/Comma-separated_values">Comma Separated Values</a></li>
<li>RFC 4180 <a href="https://www.ietf.org/rfc/rfc4180.txt">“<em>Common Format and MIME Type for Comma-Separated Values (CSV) Files</em>”</a></li>
<li>HPR web page listing <a href="https://hackerpublicradio.org/report_missing_tags.php">shows missing summaries and tags</a></li>
<li>Resources:
<ul>
<li>Perl script to clean the tags field in the database: <a href="https://hackerpublicradio.org/eps/hpr2245/clean_csv_tags">clean_csv_tags</a></li>
</ul></li>
</ul>