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

Use Case: I want to indicate where Web-based Data Entities should be downloaded to

Open fbacall opened this issue 1 year ago • 0 comments
trafficstars

As a Workflow RO-Crate generator, I want to indicate a local path to where a Web-based Data Entity (e.g. some large input data) should be fetched to, so that the workflow can be executed on this data.

Something like this:

  {
    "@id": "https://example.com/files/large_file.zip",
    "@type": "File",
    "name": "Input dataset",
    "contentSize": "999999999",
    "encodingFormat": "application/zip",
    "localPath": "workflow/inputs/large_file.zip"
  }

The inverse is already possible, referencing a URL for a local file:

  {
    "@id": "workflow/inputs/large_file.zip",
    "@type": "File",
    "name": "Input dataset",
    "contentSize": "999999999",
    "encodingFormat": "application/zip",
    "contentUrl": "https://example.com/files/large_file.zip"
  }

...but the spec says:

... Attached resources where @id is a URI (path) relative to the RO-Crate Root which MUST resolve to file.

so I would have to get around this by having an empty file in the payload, which seems hacky.

fbacall avatar Jul 19 '24 10:07 fbacall