More sweet, sweet programme data

One for the Linked Data community this one – you can now get your BBC programme data as RDF and the current and next three programmes, per service, as plain text, XML, JSON or YAML.

The web" by danbri. Used under license.
"How it works: The web" by danbri. Used under license.

Last May, at XTech, Nick and I gave a paper outlining our work to make data available for other development teams, outside the BBC, to use. At the time we didn’t have the RDF views launched – since then we’ve launched RDF for the new artist pages and today for programmes.

As usual all you need to do is add .rdf to the end of a URL for a brand, series, episode or version. For example:

http://www.bbc.co.uk/programmes/b00d8xyx.rdf

http://www.bbc.co.uk/programmes/b00d8ywd.rdf

http://www.bbc.co.uk/programmes/b0063cbg.rdf

There are also XML, JSON, YAML, and text views for schedule “upcoming” URLs:

http://www.bbc.co.uk/bbcthree/programmes/schedules/upcoming.txt

http://www.bbc.co.uk/bbcone/programmes/schedules/london/upcoming.xml

http://www.bbc.co.uk/radio1/programmes/schedules/upcoming.json

http://www.bbc.co.uk/bbc7/programmes/schedules/upcoming.yaml

Of course that’s still not as many triples as Yves published (congratulations!) but I hope you enjoy it none the less.

When’s the sailing on? Introducing genre schedules…

You might find this helpful – you’ve been able to browse schedules by radio station or TV channel for a while now which is great, but what if you don’t care where the BBC broadcasts your favourite Olympic sport, music genre or SciFi programme?

To help you find programmes, no matter which station or channel they are broadcast on, we’ve started publishing schedules for all our genres (sport, music etc.). These views are being used as part of the BBC’s Olympics coverage – specifically to drive the TV schedule and individual sport pages. But as you might be able to guess a little bit of URL hacking gives you more. All you need to do is add /schedules to the end of any genre aggregation, so for example:

A schedule for your favourite music genre :
www.bbc.co.uk/programmes/genres/music/classicpopandrock/schedules

What’s happening on the Olympics:
www.bbc.co.uk/programmes/genres/sport/olympics/schedules

Drama on radio:
www.bbc.co.uk/radio/programmes/genres/drama/schedules

Or science and the environment on Radio 4:
www.bbc.co.uk/radio4/programmes/genres/factual/sciencenatureandenvironment/schedules

And obviously you can get this data both as HTML and as XML, JSON, YAML just by adding .xml .json or .xml to the end of the URL. So the TV coverage for sailing as XML is:

www.bbc.co.uk/programmes/genres/sport/sailing/schedules.xml

Hope that helps you find your favorite programme.

UPDATE

As Duncan has previously discussed on the BBC’s Radio Lab blog you can also get this data in your Calendar via iCal – just add .../upcoming.ics to the above URL. For example:

www.bbc.co.uk/programmes/genres/sport/sailing/schedules/upcoming.ics

www.bbc.co.uk/radio4/programmes/genres/factual/sciencenatureandenvironment/schedules/upcoming.ics