ONT-DOT is a tool for visualizing OWL and RDF ontologies, using Graphviz.
$ git clone [email protected]:sszuev/ont-dot.git
$ cd ont-dot
$ mvn clean package
$ java -jar target/ont2dot.jar
usage: -i <path-to-input-rdf-file> [-if <format>] [-o <output-file-dot>]|[-b][-v][-u] [-e filterEntities][-Boption-key=option-value]
-h,--help Display usage
-i,--input <arg> The source OWL RDF-ontology file path (e.g. ttl)
-if,--input-format <arg> The input format. Optional: if not specified the program will choose the most suitable one to load ontology from a file. Must be one of the following:
TURTLE, RDF_XML, RDF_JSON, JSON_LD, NTRIPLES, NQUADS, TRIG, TRIX, RDF_THRIFT
-v,--verbose To print progress messages and logs to console.
-o,--output <arg> The output file to write dot-content. Optional: if not specified the program will print result to stdout.
-b,--browse Tells the program to open the result graph in the default browser.
-u,--url Print as url (suitable for small documents).
-e,--entities <arg> A list of entities to filter, full or short (prefixed) IRIs, dot as separator, example for pizza-ontology: '-e :Veneziana,:Germany'
-B <arg> Options to control rendering, format is -Bkey=value,e.g. '-BclassPropertiesMap=true' will turn on displaying class-properties map.
Available options:
-BclassPropertiesMap (boolean) -- display class-properties table
-BentityAnnotations (boolean) -- display entity annotations table
-BclassColor (string) -- class color
-BdatatypeColor (string) -- datatype color
-BindividualColor (string) -- individual color
-BobjectPropertyColor (string) -- object property color
-BdataPropertyColor (string) -- data property color
-BannotationPropertyColor (string) -- annotation property color
-BliteralColor (string) -- literal color
-BclassExpressionColor (string) -- class expression color
-BcomponentRestrictionColor (string) -- component restriction color
-BcomponentsClassExpressionColor (string) -- components ce color
-BcomplementOfClassExpressionColor (string) -- complement ce color
-BliteralRowLength (integer) -- literal row length
-BliteralRowsNumber (integer) -- literal rows num
- Git
- Java 11+
- Maven 3+
- Apache License Version 2.0