makeprov.reprozip

Convert reprounzip graph --json output to makeprov’s PROV model.

This module reads an existing ReproZip graph; it does not run a tracer or require ReproZip to be installed. The graph contains observed file accesses, not semantic dependencies, file contents, or network I/O.

Functions

apply_context(node, context)

Bind a document-level context to a node and rebuild its term aliases.

build_prov_from_reprozip(graph, *[, config, ...])

Translate the documented reprounzip graph --json structure.

convert_reprozip_graph(path, *[, config, name])

Read a ReproZip JSON graph from disk and construct a Prov.

deepcopy(x[, memo, _nil])

Deep copy operation on arbitrary Python objects.

main([argv])

quote()

Each part of a URL, e.g. the path info, the query, etc., has a different set of reserved characters that must be quoted.

resolve_iris(base_iri, context, *[, ...])

Decide how a document's identifiers are minted.

Classes

ActivityNode(id, type[, startedAtTime, ...])

AgentNode(id, type[, label, hasVersion, ...])

Any(*args, **kwargs)

Special type indicating an unconstrained type.

AssociationNode(id, type[, agent, hadPlan])

Counter([iterable])

Dict subclass for counting hashable items.

FileEntity(id, type[, format, extent, ...])

Path(*args, **kwargs)

PurePath subclass that can make system calls.

PlanNode(id, type[, label, hasVersion, ...])

The recipe an activity carried out, distinct from whoever ran it.

Prov(base_iri, name, provenance, results[, ...])

ProvenanceConfig([base_iri, prov_dir, ...])

Runtime configuration for provenance generation.

datetime(year, month, day[, hour[, minute[, ...)

The year, month and day arguments are required.

makeprov.reprozip.build_prov_from_reprozip(graph, *, config=None, name='reprozip')

Translate the documented reprounzip graph --json structure.

Process references in parent are run-local indices, not PIDs. A pathname may have multiple writers, so separate per-writer output entities are used when a single pathname cannot identify one generated file state.

Return type:

Prov

makeprov.reprozip.convert_reprozip_graph(path, *, config=None, name='reprozip')

Read a ReproZip JSON graph from disk and construct a Prov.

Return type:

Prov

makeprov.reprozip.main(argv=None)
Return type:

int