hydromodpy.results.export.rocrate#

RO-Crate v1.1 metadata generator (https://www.researchobject.org/ro-crate/1.1/).

Emits a JSON-LD ro-crate-metadata.json describing one simulation, including its inputs, outputs, lockfile, solver binary fingerprint and license. The embedded PROV-O CreateAction is produced by hydromodpy.results.export.prov, so the same payload can be re-used when serialised on its own.

The generated graph stays self-contained: every hasPart / object / result reference resolves to a sibling entity in the same @graph.

Functions

build_ro_crate(context)

Return the RO-Crate JSON-LD payload as a plain dict.

loads(payload)

Parse a serialised RO-Crate string back to a dict (test helper).

write_ro_crate(catalog,Ā sim_id,Ā output_path,Ā *)

Render the RO-Crate for sim_id and write it to output_path.

write_ro_crate_to_staging(context,Ā staging)

Write the RO-Crate alongside an .hmp staging directory.