Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mashehu opened this issue Jan 24, 2024 · 1 comment

Comments

@mashehu
Copy link
Contributor

mashehu commented Jan 24, 2024

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?

@simleo
Copy link
Collaborator

simleo commented Mar 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants