application/rdf+xml

RDF/RSS1.0 podcasting updates

I think I am going to build a podcast aggregator on my own, usage of RDF/RSS1.0 in the podcasting universe must be enhanced… The first step would be a Python console application getting the usual suspect’s podcasts. As it’s beeing Python the natural choice seems to be librdf, so get a grip on Rasqal. With a little help of dajobe I got a SPARQL query to get the list of Enclosures and the Length out of my RDF/RSS1.0 feed. Here is the code:

PREFIX dc: <http ://purl.org/dc/elements/1.1/>
PREFIX rss: <http ://purl.org/rss/1.0/>
PREFIX enc: <http ://purl.oclc.org/net/rss_2.0/enc#>
SELECT ?title ?enc ?len
WHERE ( ?item rdf:type rss:item )
( ?item rss:title ?title )
( ?enclosure rdf:type enc:Enclosure )
( ?item enc:enclosure ?enclosure )
( ?enclosure enc:url ?enc )
( ?enclosure enc:type ?type )
( ?enclosure enc:length ?len )
AND ?type =~ /audio/mpeg/

Have a try on it.