Linked Data 101
- 3 minutes read - 430 wordsFollowing the divestment of the Library division at Talis, the company feels much more focussed on the future. This is a good thing, as it frees up brain space for me to learn about linked open data and the related technologies. I figured that I’d blog about what I was learning along the way, for two reasons. One, of course, that sharing is almost always a good thing. The other reason is that I’d have something to review as I go. Of course, right now, I don’t know what I’m talking about, so some of what I say here may be wrong. If I find later that I made a mistake, I’ll correct it here, so it’s more of a record of what I know.
And so, I started the learning process in earnest, in my usual style — I offered to make coffee for some brainy chaps I know who know lots about this stuff. I got a lot of good advice, but, as always, the best advice was something I should have known for myself — “Just Do It”.
And so I applied myself to the task. I figured I’d start with something I know about, which is music. I should point out that I can’t play an instrument or carry a tune. On the other hand, I have a 44 GB iTunes database, which must count for something — I have spent literally hours organising music on my iPods (which are known as the big and little Gloom-A-Trons, apparently).
I have spent years working with relational databases, and I know from experience the strengths and weaknesses of the relational database model. One especial problem with the model shows up when you start looking at music. The obvious model for modelling this as a parent-child relationship ought to be simple:
Artist –one or more–> Album – one or more –> Track
Sadly not. The reason it doesn’t work is because you can have compilation CDs, which aren’t associated with a particular artist, and where each track has a different artist. So, straight away, this data model doesn’t work. My next thought was to base everything off the Album, but you can’t do that, because you end up with a bletcherous schema with many-to-many relationships everywhere (which is bad).
Ultimately, this isn’t how to do it. This data clearly can’t easily be crammed into rectangles, which the relational data model forces on you. So, I need a new approach. And so I decided to have at modelling it as linked data. How hard could it be? Let’s find out.