Code Run Ro Crate
The RO Crate for a CodeRun.
An RO Crate is research object (RO) that has been packaged up, in this case as a zip
file. This research object is centred around a CodeRun. All output DataProduct files
are packaged up along with any other local files that were used to produce them.
Also included in the RO Crate is the metadata file ro-crate-metadata.json. The
ro-crate-metadata.json file is made available under the
CC0 Public Domain Dedication.
Please note individual files may have their own licenses.
All of the packaged files are represented as File data entities in the metadata file.
External files may point directly to data, in which case they will be used directly as
inputs to a CodeRun. External files will have a link to them in the metadata file, but
will not be packaged in the zip file. However, it maybe that data has had to be
extracted from an external file before it can be used by a CodeRun, i.e. from a
journal article, In which case there will be an associated DataProduct that would have
been made to contain the data so that it can be used in a CodeRun. If this is the case
the relationship between the external file and DataProduct is modelled as a RO Crate
ContextEntity of type CreateAction.
The CodeRun has been modelled as a RO Crate ContextEntity of type CreateAction,
see
software-used-to-create-files.
A CreateAction has instrument property, which represents the software used to
generate the product. For our purposes instrument is the link to the repo.
CreateAction (CodeRun) properties:
instrument: the software used to generate the outputobject: the input filesresult: the output fileagent: theAuthor
The RO Crate is available as a zip file.
The contents of the ro-crate-metadata file can be viewed as JSON or JSON-LD.
Query parameters:
depth (optional): An integer used to determine how many code runs to include,
the default is 1.
GET /api/ro-crate/code-run/1/?format=api
{ "@context": [ "https://w3id.org/ro/crate/1.2/context", { "sha1": "https://w3id.org/ro/terms/workflow-run#sha1" } ], "@graph": [ { "@id": "./", "@type": "Dataset", "datePublished": "2026-10-04T17:09:12.059972", "publisher": "FAIR Data Pipeline", "name": "RO Crate for code run 1", "license": { "@id": "https://creativecommons.org/licenses/by/4.0/" }, "hasPart": [ { "@id": "inputs/model_config/ba027bcce09026ed17399d62455f454f77897f44.yaml" }, { "@id": "inputs/submission_script/f35c1cd83fbe1a458d71da1aae90ed2e8db2b031.sh" }, { "@id": "https://doi.org/10.1038/s41592-020-0856-2" }, { "@id": "outputs/fa2b738ff8363e84eb3ce5382545d79fd2528cc7.csv" }, { "@id": "outputs/eea65411916d24f0e34e578a172a7e66efcac145.png" } ] }, { "@id": "ro-crate-metadata.json", "@type": "CreativeWork", "conformsTo": { "@id": "https://w3id.org/ro/crate/1.2" }, "about": { "@id": "./" }, "license": { "@id": "https://creativecommons.org/publicdomain/zero/1.0/" } }, { "@id": "https://creativecommons.org/licenses/by/4.0/", "@type": "CreativeWork", "description": "Attribution 4.0 International", "identifier": "https://creativecommons.org/licenses/by/4.0/", "name": "CC BY 4.0" }, { "@id": "https://creativecommons.org/publicdomain/zero/1.0/", "@type": "CreativeWork", "description": "CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", "identifier": "https://creativecommons.org/publicdomain/zero/1.0/", "name": "CC0 Public Domain Dedication" }, { "@id": "https://data.fairdatapipeline.org/api/code_run/1", "@type": "CreateAction", "name": "code run 1", "startTime": "2026-10-02T12:03:18.127378+00:00", "description": "SEIRS Model python", "agent": { "@id": "https://github.com/RyanJField" }, "result": [ { "@id": "outputs/fa2b738ff8363e84eb3ce5382545d79fd2528cc7.csv" }, { "@id": "outputs/eea65411916d24f0e34e578a172a7e66efcac145.png" } ], "instrument": { "@id": "https://github.com/https://github.com/FAIRDataPipeline/pySimpleModel" }, "object": [ { "@id": "inputs/model_config/ba027bcce09026ed17399d62455f454f77897f44.yaml" }, { "@id": "inputs/submission_script/f35c1cd83fbe1a458d71da1aae90ed2e8db2b031.sh" }, { "@id": "https://doi.org/10.1038/s41592-020-0856-2" } ] }, { "@id": "https://github.com/RyanJField", "@type": "Person", "name": "Ryan J Field" }, { "@id": "https://github.com/https://github.com/FAIRDataPipeline/pySimpleModel", "@type": "SoftwareApplication", "url": "https://github.com/https://github.com/FAIRDataPipeline/pySimpleModel", "author": [ { "@id": "https://github.com/RyanJField" } ] }, { "@id": "inputs/model_config/ba027bcce09026ed17399d62455f454f77897f44.yaml", "@type": [ "File", "SoftwareSourceCode" ], "name": "ba027bcce09026ed17399d62455f454f77897f44", "description": "Working config.yaml location in datastore", "encodingFormat": "yaml", "sha1": "ba027bcce09026ed17399d62455f454f77897f44", "author": [ { "@id": "https://github.com/RyanJField" } ] }, { "@id": "inputs/submission_script/f35c1cd83fbe1a458d71da1aae90ed2e8db2b031.sh", "@type": [ "File", "SoftwareSourceCode" ], "name": "f35c1cd83fbe1a458d71da1aae90ed2e8db2b031", "description": "Working script location in datastore", "encodingFormat": "text/x-sh", "sha1": "f35c1cd83fbe1a458d71da1aae90ed2e8db2b031", "author": [ { "@id": "https://github.com/RyanJField" } ] }, { "@id": "https://doi.org/10.1038/s41592-020-0856-2", "@type": "File", "name": "Static parameters of the model", "datePublished": "2021-09-20 12:00:00+00:00", "author": [ { "@id": "https://github.com/RyanJField" } ] }, { "@id": "outputs/fa2b738ff8363e84eb3ce5382545d79fd2528cc7.csv", "@type": "File", "name": "SEIRS_model/results/model_output/python", "encodingFormat": "text/csv", "sha1": "fa2b738ff8363e84eb3ce5382545d79fd2528cc7", "description": "SEIRS model results", "author": [ { "@id": "https://github.com/RyanJField" } ] }, { "@id": "outputs/eea65411916d24f0e34e578a172a7e66efcac145.png", "@type": "File", "name": "SEIRS_model/results/figure/python", "encodingFormat": "image/png", "sha1": "eea65411916d24f0e34e578a172a7e66efcac145", "description": "SEIRS output plot", "author": [ { "@id": "https://github.com/RyanJField" } ] } ] }