Skip to content

jindrichmynarz/vocab-to-graphviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published