Provenance Graph Creation (GraphViz)
The standard method to generate the .dot file containing the provenance graph is to set the create_graph parameter to True.
If the user necessitates to turn a PROV-JSON created with yProv4ML into a .dot file, the following code command can be used:
python -m yprov4ml.prov2dot --prov_json prov.json --output prov_graph.dot
Provenance Graph Image (SVG)
The standard method to generate the .svg image of the provenance graph is to set the create_svg parameter to True.
In this case both create_graph and create_svghave to be set to True.
If the user necessitates to turn a .dot file into a .svg file, the following code command can be used:
python -m yprov4ml.dot2svg --dot prov_graph.dot --output prov_graph.svg
Or alternatively, using directly the Graphviz suite:
dot -Tsvg -O prov_graph.dot
Workflow Card (.md)
yProv4ML additionally has a built-in script to convert run directories (or PROV-JSONL files, such as the ones created using Flowcept) to Workflow Cards.
To convert a run directory, the user can run:
python -m yprov4ml.prov2card --path <path to jsonl or run_dir>
specifying either the desired run directory (i.e. example_0) or a JSONL file (i.e. flowcept_buffer.jsonl). The optional --output_dir argument sets where the card is written. Cards can also be created directly with end_run(create_card=True).