ro-crate-py icon indicating copy to clipboard operation
ro-crate-py copied to clipboard

Document how to create a Workflow Run Crate file

Open kinow opened this issue 1 year ago • 11 comments

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

kinow avatar Feb 23 '23 22:02 kinow