mnot’s blog

Design depends largely on constraints.” — Charles Eames

Saturday, 21 August 2004

Python Semantic Web 0.5: RDF made easy

Version 0.5 of is now available; with this release, I think it’s roughly feature-complete.

sparta is a Python wrapper API for RDF libraries that allows you to easily access and manipulate RDF data. In particular, it now:

See and its output, spartaTest.txt for more information. Note that I said “RDF libraries” above; the next step for sparta is to wrap Redland as well as rdflib.

A couple of non-compatible changes have been made in this round. By default, properties are exposed as generators. However, if the owl:maxCardinality of that property is “1”, it will be exposed as a simple, non-generator value. Also, typing is no longer inferred by the rdf:type of a property; it’s now inferred by its rdfs:range*.

Once again, this is experimental software, and isn’t yet ready for production use; use at your own risk.

One Comment

Kendall Clark said:

Hmm, I’m looking at this and thinking that, eventually, like when we’re done with DAWG, sparta could be the basis of a new kind of object-relational mapper for Python; i.e., object-graph mapper. That is, this kind of interface could shield most folks from learning much, if any DAWG query language. Well, perhaps.

Neat stuff, Mark. Should go into rdflib distribution eventually, IMO.

Friday, August 27 2004 at 8:03 AM