hydromodpy.results.export.prov#
W3C PROV-O JSON-LD lineage for HydroModPy simulations.
The exporter walks the catalog graph simulation -> tracked_files -> provenance
and emits a PROV-O document (https://www.w3.org/TR/prov-o/) that maps:
the simulation itself onto a
prov:Activity(aCreateActionfor schema.org compatibility),every input file onto a
prov:Entityusedby the activity,every fetch / loader as an upstream
prov:Activity(wasGeneratedBy) that produced the input,every output asset onto a
prov:EntitywasGeneratedBythe simulation activity.
The same payload is embedded by the RO-Crate exporter under @graph
without modification, so consumers can run a single json.load and
walk either tree.
Functions
|
Return both the create-action node and the supporting activities. |
|
Return a standalone JSON-LD PROV-O document for context. |
|
Materialise a JSON-LD PROV-O document for sim_id. |