11 Dec 2008 15:49
[foaf-dev] RDF specgen revisited - help needed!
Hi folks I'm looking for some Python-hacking help, to get a new FOAF spec out. Some of you might know about specgen. I've long used a version of this script to re-generate the FOAF spec from sources. Originally in Ruby, Uldis Bojars and Chris Schmidt made a Python version and disentangled it from the specifics of the FOAF spec/site. Their specgen4.py, as well as the earlier specgen.py the last FOAF spec was built from, both require the compilation of Redland plus the Python bindings. Although Redland is a solid, powerful and mature library, it can be tough to get the Python bindings set up. Lately I've failed to manage this either on my Mac laptop or under Linux at Dreamhost. Redland is overkill for this task. I'd like to be able to rev the FOAF spec with far fewer dependencies. So I've begun exploring a rewrite of specgen. My first attempt (now abandoned as specgen4b.py) was to simply go through and replace calls to Redland with similar calls to the librdf library. I found this rather error prone, since the RDF logic is tangled up with page-generation code. Despite my ignorance of Python and rdflib, I'm attempting a fresh start. The idea is to have a few core utility classes, Vocab, Term (Class, Property) and populate these - as before - from on disk RDF and HTML descriptions of an RDF vocabulary. Everything I have so far is at http://svn.foaf-project.org/foaftown/specgen/ The RDFS/OWL-loader and utility code is in libvocab.py. This does nothing fancy; certainly no RDFS or OWL reasoning.(Continue reading)
RSS Feed