Skip to content

(ShEx → SVG, PNG,...) Convert a simple ShEx schema to a UML like visualization in SVG, PNG, ...

Jose Emilio Labra Gayo edited this page Aug 12, 2024 · 3 revisions

(ShEx → SVG, PNG,...) Convert a simple ShEx schema to a UML like visualization in SVG, PNG,

$ rudof convert -s examples/simple.shex -m shex -x uml -r svg -o target/simple.svg
... generates an SVG file in target/simple.svg

To generate PNG, replace svg by png.

$ rudof convert -s examples/simple.shex -m shex -x uml -r png -o target/simple.png
... generates an PNG file in target/simple.png

Prerequisites

Generation of SVG or PNG images is based on PlantUML so you must download the command line JAR file. Once downloaded, set the environment variable PLANTML to point to that file.

PlantUML also requires java to be installed. You can check if you Java is already installed by running:

java -version

The minimum version needed by PlantUML is Java 8. If not installed, it can be downloaded from a Java website or through package managers.

Clone this wiki locally