Closed
Description
Hi,
For Autosubmit, since the workflow configuration doesn't contain the information needed for RO-Crate, I used the exact same approach from COMPSs and asked users to provide a YAML file with authors & license.
Then I create the objects and attach/add to the RO-Crate-py object.
The implementation in Autosubmit is similar, but not identical to COMPSs. Other workflow managers with similar need may craft yet another way of doing the same.
It would be nice if there was a way to load RO-Crate-py entities directly from a dictionary/YAML data. Something like
from rocrate.entities.person import Person
crate = ROCrate()
with open('') as f:
yaml_content = parser.safe_load(f)
for author in yaml_content['authors']:
crate.add(Person.load_from_dict(author)
Not sure how to validate the format of the entities... maybe instead of YAML receive JSON-LD directly, or provide a tool/script to read SPARQL+SHACL, etc.?
Cheers
Bruno
Metadata
Metadata
Assignees
Labels
No labels