TracOWLDoc plugin
The TracOWLDoc plugin allows for easy and seamless integration of OWL documents into the Trac wiki by rendering a concise documentation of a given OWL ontology in a tabular form. Please note that TracOWLDoc needs to update the database schema of Your Trac installation in order to create a table for caching the generated ontology descriptions. Since creating the documentations of a single ontology can be quite time consuming, the new version is updated only when the ontology source has been modified (it is checked by means of MD5 checksum).
Installation
First of all, the plugin has some requirements:
- JPype - http://jpype.sourceforge.net/
- Jena and Pellet libraries - the path to the Jena 2.6.0 ( http://jena.sourceforge.net) and Pellet 2.0.0 ( http://clarkparsia.com/pellet/) and their dependencies must be provided in the environment variable OWLTRACDOC_CLASSPATH. This directory must contain the following jar's:
arq-extra.jar iri.jar junit-4.5.jar pellet-core.jar pellet-explanation.jar pellet-pellint.jar relaxngDatatype.jar wstx-asl-3.0.0.jar arq.jar jena.jar log4j-1.2.12.jar pellet-datatypes.jar pellet-jena.jar pellet-query.jar slf4j-api-1.5.6.jar xercesImpl.jar aterm-java-1.6.jar jenatest.jar lucene-core-2.3.1.jar pellet-dig.jar pellet-modularity.jar pellet-rules.jar slf4j-log4j12-1.5.6.jar xsdlib.jar icu4j_3_4.jar json.jar pellet-cli.jar pellet-el.jar pellet-owlapi.jar pellet-test.jar stax-api-1.0.jar
- The JAVA_HOME must be specified properly
In order to install the plugin follow the usual guidelines for installing Trac plugins, depending on whether You've downloaded an egg or source distribution.
The simplest way is to download the TracOWLDoc-xxx.egg and copy it into Your Trac plugins directory. Then in the Admin tab enable all plugins features. If this is the first time You install this plugin in that Trac environment You will be asked by Trac to update Your environment:
trac-admin TRAC_ENV upgrade
Usage
The plugin provides a owldoc macro for Trac wiki which has the following parameters:
print_description: Print ontology description
[[owldoc(@print_description=>ONTOLOGY_URL)]]
list_imports: Lists the direct imports of the ontology (dependencies)
[[owldoc(@list_imports=>ONTOLOGY_URL)]]
list_classes: Lists the classes defined in the ontology
[[owldoc(@list_classes=>ONTOLOGY_URL)]]
list_individuals: Lists the classes defined in the ontology
[[owldoc(@list_individuals=>ONTOLOGY_URL)]]
Examples
Authors
In case of problems or feature requests please contact the author:
Bartosz Kryza <bkryza .a.t. agh.edu.pl>
Download
Downloads are in the attachments:
Release 0.40 - the first downloadable release of the plugin
Attachments
-
TracOWLDoc-0.40-py2.5.egg
(14.6 KB) - added by bkryza
4 years ago.
-
TracOWLDoc-0.40.tar.gz
(6.3 KB) - added by bkryza
4 years ago.
Source distribution
