Augmenting Last.fm Data with BBC data on the Talis Platform
A short while back, I created a Linked Data wrapper on the Last.FM API for Events and Artists. The artist data links to the BBC’s data about each artist using owl:sameAs.
Now that the BBC RDF is available in a Talis Platform store, I can put some of my Last.FM data into a store (it’s currently generated on the fly from the Last.FM API), search on it, and then augment it with data from the BBC.
So I put some Last.FM data into the Sandbox1 store.
Now I can search on it with the items query endpoint like:
http://api.talis.com/stores/sandbox1/items?query=Black
This gives us the results as RSS 1.0, which is also RDF/XML, and contains a graph with 12 resources in it.
We can now pass the URI of this (or any RSS 1.0) document to the BBC-Backstage store’s Augment Service like this:
http://api.talis.com/stores/bbc-backstage/services/augment?data-uri=http%3A%2F%2Fapi.talis.com%2Fstores%2Fsandbox1%2Fitems%3Fquery%3DBlack
The Augment service will look at the URIs in the RSS results, and add DESCRIBEs for any of those URIs that it finds in its own store, giving you back the RSS augmented with BBC data.
So the graph we get back now contains 15 resources, where the BBC-Backstage store has found descriptions for 3 of the URIs in the original RSS.
For further information, see Leigh Dodd’s slides on Getting Started with the Talis Platform.

