Simone Leo

Results 70 comments of Simone Leo

Discussed with @stain last Thursday at the Workflow Run RO-Crate meeting. We decided to add `contentSize`: while it's not mentioned explicitly in the spec, the property shows up in many...

> Would you be open to me submitting a PR that adds type annotations to the library? OK, thank you! > could I bump the minimum Python version from 3.7...

> Also, part of the challenge with the Nextflow PR linked at the top of thread is: when you are describing a workflow execution that generates some intermediate files, you...

ro-crate-py has been recently changed to recursively follow only `hasPart` from `Dataset` entities, see https://github.com/ResearchObject/ro-crate-py/pull/216. This has been motivated by the same use case described by @floWetzels , i.e. avoid...

> RO-Crate consuming tools which want to find data entities should search for all Files and Datasets which have an absolute or relative URI as `@id` * The validator now...

Regarding fragments, see #200, and the example at https://github.com/ResearchObject/workflow-run-crate/blob/6bfba3f407d028557ed7b3b8603730d0a36a5ba8/docs/examples/draft/ml-predict-pipeline-cwltool-runcrate/ro-crate-metadata.json

> mashehu and I agreed on the WRROC call that this is a bug. > > As a workaround, you should be able to use the `dest_path` argument to manually...

I think this is not allowed because the metadata is not flattened, see also https://github.com/crs4/rocrate-validator/issues/106#issuecomment-3027099454

Try this: ```pycon >>> from rocrate.rocrate import ROCrate >>> crate = ROCrate("/path/to/crate", init=True) >>> crate.source '/path/to/crate' >>> f = crate.get("some_file.txt") >>> f["encodingFormat"] = "audio/mpeg" >>> crate.write(crate.source) ``` `ROCrate("/path/to/crate", init=True)` means...