My favorites | Sign in
Project Home Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
MMI Ont2Dot Ontology-to-Graphviz converter
Carlos Rueda - MMI/MBARI

Ont2Dot generates a diagram for an OWL ontology. This diagram is actually
encoded in a format that Graphviz (http://graphviz.org/) tools can process to
generate the final output format.

Example usage (maven):

# Generate dot (device.dot in this example)
$ mvn exec:java -Dexec.args="http://mmisw.org/ont/mmi/device"

Note: you can generate a self-contained jar with:
$ mvn assembly:assembly
and then ejecute the jar directly:
$ java -jar target/ont2dot-xxxxxx.jar http://mmisw.org/ont/mmi/device

# Use Graphviz to generate the desired graphical representation, eg:
$ dot -Tpng device.dot > device.png

Call the program with no arguments to get a synopsis of usage.

Please note:

- The implementation is functional for both classes and individuals but
incomplete in many aspects. Command-line interface is not very flexible and not
all parameters in the code are processed. Handling of anonymous nodes is
minimal, so there may be missing elements in the output; "null" labels or
descriptions in the output may also occur.

- The code structure is very preliminary but intended to facilitate various
possible implementations of a generic IDotGenerator interface. Only a Jena-based
implementation is included at the moment. A next version will probably include
an implementation based on the OWL API - http://owlapi.sf.net/.

Enjoy.

Change log

r987 by carueda on May 23, 2010   Diff
updated doc
Go to: 
Project members, sign in to write a code review

Older revisions

r966 by carueda on Apr 28, 2010   Diff
included maven-assembly-plugin so a
self-contained jar can be generated
r965 by carueda on Apr 28, 2010   Diff
included maven-assembly-plugin so a
self-contained jar can be generated
r964 by carueda on Apr 28, 2010   Diff
updated doc
All revisions of this file

File info

Size: 1411 bytes, 36 lines
Powered by Google Project Hosting