Database Schema
- 2 minutes read - 255 wordsLast time, I said that a music schema couldn’t easily be crammed into the relational database model’s rectangles. A certain @sharkastic correctly pointed out that of course you could fit music data into a relational database. As such, I’m happy to show you MusicBrainz’ database schema. I know what that lot means, and as such, I’d just emphasise that I meant “easily”.
Of course, this isn’t the only way to look at this stuff. If you’re a big fan of the ‘My brain hurts’ look, you could check out another way of representing this kind of data — Functional Requirements for Bibliographic Records, or FRBR to its friends. The guys at musicontology have extended this approach to music, and here’s what they came up with. I must say, this is so underpants-dampeningly horrible that I gave up here.
However, I was here saved by Rob Styles, who’d blogged about “Bringing FRBR down to Earth”. A timely intervention? No, he wrote that in November 2009.
So, no FRBR (“FRBR? I hardly knew her!”) for me. I’m still wondering, but for now I’m going to use the MusicBrainz API to fetch useful data about artists, tracks, and so on. I’ll model the data I have, and link out to MusicBrainz. Luckily, there’s a relationship between MB and the BBC’s music pages, so I can link to both for the price of one. Woo!
At the moment, it’s a lovely day out, so there won’t be much more data linkyness happening right now. Maybe tomorrow, if it rains.