Visualize RDF vocabularies via Graphviz.
git clone https://github.com/jindrichmynarz/vocab-to-graphviz cd vocab-to-graphviz lein bin
The tool takes a file describing an RDF vocabulary specified by the
-i argument and outputs a class diagram of the vocabulary described in the DOT language. The input can be written in one of the RDF serializations recognized by the file extension. The output is saved to a file given by the
-o argument (or standard output by default):
target/vocab_to_graphviz -i vocabulary.ttl -o vocabulary.dot
For example, if we try it on the Public Contracts Ontology and render it via Graphviz, we can get this:
Clearly, this diagram leaves much to be desired, so we can render it to SVG and tweak its layout to obtain this:
Copyright © 2017 Jindřich Mynarz
Distributed under the Eclipse Public License version 1.0.