mark nottingham

Sparta.py 0.6: RDF (and RSS!) Made Easy

Monday, 6 December 2004

Semantic Web

Version 0.6 of sparta.py is now available. Changes include:

A nice example is RSS 1.0 parsing; see rss_test.py, which makes RSS pretty darned easy:

blog = Thing(URI(blog_uri))
for item in blog.rss_items:
    print "*", item.rss_title
    print indent(item.rss_description)

I like this so much that I’m considering moving away from other RSS parsing approaches and just normalising everything to RSS1.0 (maybe with XSLT) and shoving it into this.

Plans

I’ve got good feedback on this so far. I think the main things that need to be done before 1.0 are:


One Comment

Danny said:

Great stuff!

Morten’s done a pretty wide-ranging normaliser:

http://purl.org/net/syndication/subscribe/feed-rss1.0.xsl

Monday, December 6 2004 at 10:37 AM