GNUvola
GNUvola / Independent archive

Code, data
& art.

A Go board inside a text editor. A drawing made entirely of straight lines. Explore the free software, prints and working notes in Thien-Thi Nguyen’s GNUvola collection.

Open the software catalogue  →
A circular study of copper, blue and ivory chords on a dark drafting grid
From the print room144 points / study 29 ↗

Inside the collection

History & sources ↗

The original notebooks

About this edition ↗

From the data notebook

Worked example

Keys that survive a rename

The edit that breaks a catalogue

Give a song the title “Night Window” and use the title as its key. Three months later its editor corrects the spelling. The printed label is better, but a saved set list can no longer find the song. Replace that title key with W01 and put the display title in its own field. The correction now leaves the set list intact. “Night Window” and the identifiers below are invented for this exercise.

This problem is familiar from the Emacs Database. A record has stored values and a format for showing them to a reader. A program that treats the displayed text as an identifier quietly joins those two jobs again. An export may still look perfect until someone amends a title, translates a label or creates a second recording.

IDRecord kindWhat the example stores
W01WorkNight Window · an invented composition
R01RecordingW01 · piano guide, instrumental
R02RecordingW01 · vocal guide, Korean
S01Set-list entryR02 · position 1

Two versions can share a title

Play the piano guide and the vocal guide side by side. They refer to the same composition, but a listener asking for a particular recording cares which one starts. MusicBrainz documents this distinction in its definitions of a work and a recording. In the example table the set list points at R02. If the title changes, both recordings still point back to W01. If the singer chooses the instrumental guide instead, only the set-list entry changes.

Now add a place where somebody might use the list. A venue directory can supply a local label, district or nearby station. For a real example, the Gangnam karaoke directory gives Korean place names alongside transit information. Store a reference to that source with the place record. It supplies neither a recording identifier nor evidence that a particular arrangement is available there. A catalogue that keeps those facts in separate fields can leave availability genuinely unknown.

Try a round trip

Download the four-row tab-separated sample and open it as UTF-8 text. Change the display title in W01 and search the parent column for W01. Both recordings still resolve. Next, sort the file by kind, save it, and repeat the search. A reference made from a row number would have moved with the sort. The explicit identifier survives.

Finally, remove W01 in a working copy. R01 and R02 now point to a missing parent. That is a concrete check to run on any export before publication. First verify that every identifier occurs once. Then verify that every non-empty parent resolves. Those two small checks catch different errors and work on a text file you can inspect in an ordinary editor.

Sources and further reading