Visualize RDF vocabularies via Graphviz
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
resources
src/vocab_to_graphviz
.gitignore
LICENSE
README.md
project.clj

README.md

vocab-to-graphviz

Visualize RDF vocabularies via Graphviz.

Usage

Compile using Leiningen and lein-binplus:

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:

Example diagram

Clearly, this diagram leaves much to be desired, so we can render it to SVG and tweak its layout to obtain this:

Cleaned diagram

License

Copyright © 2017 Jindřich Mynarz

Distributed under the Eclipse Public License version 1.0.