mnot’s Web log

Design depends largely on constraints.” — Charles Eames

Monday, 6 December 2004

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

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:


Filed under: Python, Semantic Web

discussion of this entry

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 +10:00

add to the discussion

your details

name
e-mail address

Your e-mail address will not be shared.

your comment

Separate paragraphs with blank lines; HTML markup will be removed.

By submitting a comment, you agree to grant a limited license to reproduce it, under the same terms as the page being commented upon. If you have questions or prefer other terms, please contact me.

Creative Commons License