Saturday, February 18, 2006

RDF Schema Generator

I've release my first Rails generator on Ruby Forge. RDF Schema Generator builds a Ruby Module from an RDFS file. The module contains constants for each of the properties and classes in the Schema. If you are using Rails to build RDF based applications you might find it useful.

Install it using gem install rdf_schema_generator.

Once it is installed you can run
ruby script/generate rdf_schema <prefix> <rdfs_url>
and a class called will be generated in the lib directory containing a module with all the classes and properties for the RDFS file retreived from <rdfs_url>.

Enjoy!


Tags: Ruby Rails RDF

No comments: