Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Visualize RDF vocabularies via Graphviz

Topics

Resources

License

Releases

No releases published

Packages

No packages published