Dan Brickley | 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)

Nicholas J Humfrey | 11 Dec 2008 22:17
Favicon
Gravatar

Re: [foaf-dev] RDF specgen revisited - help needed!

Possible alternative;

Patrick Sinclair wrote ldontospec:
http://github.com/metade/ldontospec
"An ontology documentation generator based on the principles of Linked  
Data."

Which is used to build the Programmes Ontology page:
http://www.bbc.co.uk/ontologies/programmes/

nick.

On 11 Dec 2008, at 14:49, Dan Brickley wrote:

>
> 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
(Continue reading)

Danny Ayers | 12 Dec 2008 22:22
Picon
Gravatar

Re: [foaf-dev] RDF specgen revisited - help needed!

2008/12/11 Nicholas J Humfrey <njh@...>:
> Possible alternative;
>
> Patrick Sinclair wrote ldontospec:
> http://github.com/metade/ldontospec
> "An ontology documentation generator based on the principles of Linked
> Data."
>
> Which is used to build the Programmes Ontology page:
> http://www.bbc.co.uk/ontologies/programmes/

Interesting, but I got a bit stuck on one of its dependencies, after
installing another 4 or 5 other libs, I hit :

 ./ldontospec

/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- activerdf_reddy
(LoadError)
	from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
...

I could only find  activerdf_redland - somewhat similar name.
Happen to know if that is the one (i.e. I should maybe tweak the naming)?

(not got time to chase any further right now)

Cheers,
Danny.

(Continue reading)

Story Henry | 11 Dec 2008 16:06

Re: [foaf-dev] RDF specgen revisited - help needed!


On 11 Dec 2008, at 15:49, Dan Brickley wrote:

> . 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.

Yes, I also had this trouble. It may be worth considering jython and  
running this
on Sesame, Jena, Pellet or EulerSharp . Euler is very small, and reads  
N3 rules, so this could
be done lightly.

(Mind you I think one may also be able to read cwm in Jython)

One could then create a very simple distribution for this in java.

Henry
Dan Brickley | 11 Dec 2008 16:09

Re: [foaf-dev] RDF specgen revisited - help needed!

On 11/12/08 16:06, Story Henry wrote:
>
> On 11 Dec 2008, at 15:49, Dan Brickley wrote:
>
>> . 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.
>
> Yes, I also had this trouble. It may be worth considering jython and
> running this
> on Sesame, Jena, Pellet or EulerSharp . Euler is very small, and reads
> N3 rules, so this could
> be done lightly.
>
> (Mind you I think one may also be able to read cwm in Jython)
>
> One could then create a very simple distribution for this in java.

Cute idea but I'm trying to get away from exotic dependencies :) The 
rdflib library seems to offer more than enough for poking around the 
schema data. I just got a reply from Uldis on the SIOC list, he is 
working on a rewrite, so hope we can fuse those efforts. Mine is pretty 
basic so far but I think heading in right direction...

Dan
(Continue reading)


Gmane