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

allow multiple types in `add_file()` or add documentation about type manipulation

Open mashehu opened this issue 5 months ago • 1 comments

According to the "Main Workflow Diagram" section in https://about.workflowhub.eu/Workflow-RO-Crate/ the workflow diagram should have types ["File", "ImageObject"], however using add_file() automatically assigns only type File.

Is there a way how I can add this additional type either during add_file() or afterwards?

mashehu avatar Jan 24 '24 16:01 mashehu

diagram = crate.add_file("diagram.png", properties={"@type": ["File", "ImageObject"]})

simleo avatar Mar 05 '24 14:03 simleo