SpecGen
From Morfeo Wiki
SpecGen v5, ontology specification generator tool. It's written in Python using Redland RDF library and licensed under the MIT license. It fulfills the need of SIOC, MyMobileWeb and others to generate specifications of ontologies developed.
Contents |
Previous versions of SpecGen
This version 5 is a hack made by CTIC Foundation over the previous versions of the script:
- v4 by Uldis Bojars <http://sioc-project.org/specgen>
- v1,2,3 by Christopher Schmidt <http://crschmidt.net/semweb/redland>
ChangeLog
There are some changes in this version:
- added many blanknodes verifications
- dynamically namespaces and base uri
- many accessibility improvements on the generated markup
- soft-coded all variables
- automatically save
- many refactorings
- implemented the capability to extract complex ranges/domains
- added a Makefile to install the script
- optional documentation of ontology instances
- ...
Development
SCM
We use MyMobileWeb's subversion, so you can make an anonymous checkout of it:
$ svn checkout https://svn.forge.morfeo-project.org/svn/mymobileweb/trunk/SpecGen/ SpecGen
Tickets
Roadmap
- Publish a stable release of v5, and start the development of v6 with major (and probably not back- compatible) changes .
- Switch to a more sophisticated template engine (such as http://www.cheetahtemplate.org/).
- Improve shell interface (switch to optparse).
- Better encoding management.
Download
Dependencies
- Python interpreter (python>=2.4)
- Python bindings for the Redland RDF library (python-librdf>=1.0)
Subversion
As you read before, you can make a checkout of our repository.
Individual files
Documentation
Template
It uses a very simple template engine. You can use it over any HTML template. The template only must have two sections with %s where SpecGen will write the information extracted from the ontology. A template example is available to download, you can copy it and add all the information that you want.
Usage
The first thing that you need to make is customize a template, adding of information relevant for the lecture of the specification.
Basic usage
You can run SpecGen without install it:
$ python specgen5.py ontology prefix template destination [flags]
available flags:
- -i: add instances on the specification (disabled by default)
Usage example:
$ python specgen5.py example.owl ex template.html example.html -i
Installation
But you can also install SpecGen in you computer using Makefile provided:
$ sudo make install
And then is easier to run it form any directory without using long path:
$ specgen example.owl ex template.html example.html
Obviously you can uninstall it when you want:
$ sudo make uninstall
Related links
Related projects
Ontologies using SpecGen
Comments
Please, send any comment to the author (sergio.fernandez(at)fundacionctic.org) or to the project's mailing list (mymobileweb-develop(at)lists.morfeo-project.org).
