ro-crate-py
ro-crate-py copied to clipboard
Document how to create a Workflow Run Crate file
Hi!
I am creating the Autosubmit RO-Crate using ro-crate-py
, using COMPSs as reference. It calls add_workflow
, add(Person)
, and other functions that appear in the ro-crate-py
README
. However, inspecting the JSON file I see no mention of CreateAction
.
I noticed this after I tried to validate the rocrate.zip
file created with Autosubmit using runcrate
.
$ python consume_crate.py /home/kinow/autosubmit/a000/rocrate.zip
Traceback (most recent call last):
File "/home/kinow/Development/python/workspace/runcrate/tools/consume_crate/consume_crate.py", line 83, in <module>
main(parser.parse_args())
File "/home/kinow/Development/python/workspace/runcrate/tools/consume_crate/consume_crate.py", line 65, in main
assert len(actions[wf.id]) == 1
KeyError: 'tmp/tmpkqjm8m6e/a000/workflow.yml'
Is there an easy way to use ro-crate-py
to produce an RO-Crate that conforms to Workflow Run Crate profile, and that can be validated with the consume_crate
script? cc @simleo
Thanks! Bruno