Creating Graphviz output

Raza Ahmad edited this page Oct 17, 2018 · 5 revisions

SPADE includes support for sending all the provenance metadata from the SPADE kernel to a single file in Graphviz DOT format.

To do this, add the Graphviz storage before sending provenance metadata (by adding a SPADE reporter):

-> add storage Graphviz outputFilePath=/tmp/provenance.dot
Adding storage Graphviz... done

At this point, any provenance metadata sent will result in corresponding elements in the /tmp/provenance.dot file. (Note that the file will be overwritten if it already existed.)


To stop further provenance metadata from being sent to the file, the Graphviz storage can be removed:

-> remove storage Graphviz
Shutting down storage Graphviz... done

Assuming Graphviz is installed, the /tmp/provenance.dot file can be rendered with:

dot -Tsvg -o /tmp/provenance.svg /tmp/provenance.dot

The resulting file /tmp/provenance.svg can be opened with a Web browser:

firefox /tmp/provenance.svg
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.