Provenance¶
Extract provenance information from the repository.
Activities¶
-
class
renku.core.models.provenance.activities.Activity(*, commit=None, client=None, path=None, label=NOTHING, project: renku.core.models.projects.Project = None, id=None, message=NOTHING, was_informed_by=NOTHING, part_of=None, generated=None, invalidated=None, influenced=NOTHING, started_at_time=NOTHING, ended_at_time=NOTHING, agents=NOTHING)[source]¶ Represent an activity in the repository.
-
default_label()¶ Generate a default label.
-
default_reference()¶ Create a default reference path.
-
classmethod
from_jsonld(data, client=None, commit=None)[source]¶ Create an instance from JSON-LD data.
-
property
nodes¶ Return topologically sorted nodes.
-
property
parents¶ Return parent commits.
-
property
paths¶ Return all paths in the commit.
-
property
removed_paths¶ Return all paths removed in the commit.
-
property
submodules¶ Proxy to client submodules.
-
-
class
renku.core.models.provenance.activities.ProcessRun(*, commit=None, client=None, path=None, label=NOTHING, project: renku.core.models.projects.Project = None, id=None, message=NOTHING, was_informed_by=NOTHING, part_of=None, invalidated=None, influenced=NOTHING, started_at_time=NOTHING, ended_at_time=NOTHING, agents=NOTHING, generated=None, association=None, annotations=None, qualified_usage=None)[source]¶ A process run is a particular execution of a Process description.
-
default_agents()¶ Set person agent to be the author of the commit.
-
default_ended_at_time()¶ Configure calculated properties.
-
default_id()¶ Configure calculated ID.
-
default_influenced()¶ Calculate default values.
-
default_invalidated()¶ Entities invalidated by this Action.
-
default_label()¶ Generate a default label.
-
default_message()¶ Generate a default message.
-
default_reference()¶ Create a default reference path.
-
default_started_at_time()¶ Configure calculated properties.
-
default_was_informed_by()¶ List parent actions.
-
classmethod
from_jsonld(data, client=None, commit=None)[source]¶ Create an instance from JSON-LD data.
-
classmethod
from_run(run, client, path, commit=None, is_subprocess=False, update_commits=False)[source]¶ Convert a
Runto aProcessRun.
-
classmethod
from_yaml(path, client=None, commit=None)¶ Return an instance from a YAML file.
-
classmethod
generate_id(commitsha)¶ Calculate action ID.
-
get_output_paths()¶ Gets all output paths generated by this run.
-
property
nodes¶ Return topologically sorted nodes.
-
property
parents¶ Return parent commits.
-
property
paths¶ Return all paths in the commit.
-
property
removed_paths¶ Return all paths removed in the commit.
-
property
submodules¶ Proxy to client submodules.
-
-
class
renku.core.models.provenance.activities.WorkflowRun(*, commit=None, client=None, path=None, label=NOTHING, project: renku.core.models.projects.Project = None, id=None, message=NOTHING, was_informed_by=NOTHING, part_of=None, invalidated=None, influenced=NOTHING, started_at_time=NOTHING, ended_at_time=NOTHING, agents=NOTHING, generated=None, association=None, annotations=None, qualified_usage=None, processes=NOTHING)[source]¶ A workflow run typically contains several subprocesses.
-
add_annotations(annotations)¶ Adds annotations from an external tool.
-
default_agents()¶ Set person agent to be the author of the commit.
-
default_ended_at_time()¶ Configure calculated properties.
-
default_generated()¶ Create default
generated.
-
default_id()¶ Configure calculated ID.
-
default_influenced()¶ Calculate default values.
-
default_invalidated()¶ Entities invalidated by this Action.
-
default_label()¶ Generate a default label.
-
default_message()¶ Generate a default message.
-
default_reference()¶ Create a default reference path.
-
default_started_at_time()¶ Configure calculated properties.
-
default_was_informed_by()¶ List parent actions.
-
classmethod
from_jsonld(data, client=None, commit=None)[source]¶ Create an instance from JSON-LD data.
-
classmethod
from_run(run, client, path, commit=None, update_commits=False)[source]¶ Convert a
Runto aWorkflowRun.
-
classmethod
from_yaml(path, client=None, commit=None)¶ Return an instance from a YAML file.
-
classmethod
generate_id(commitsha)¶ Calculate action ID.
-
get_output_paths()¶ Gets all output paths generated by this run.
-
property
nodes¶ Yield all graph nodes.
-
property
parents¶ Return parent commits.
-
property
paths¶ Return all paths in the commit.
-
plugin_annotations()¶ Adds
Annotation``s from plugins to a ``ProcessRun.
-
property
removed_paths¶ Return all paths removed in the commit.
-
property
submodules¶ Proxy to client submodules.
-
property
subprocesses¶ Subprocesses of this
WorkflowRun.
-
Entities¶
-
class
renku.core.models.entities.Entity(*, commit=None, client=None, path=None, id=None, label=NOTHING, project: renku.core.models.projects.Project = None, parent=None)[source]¶ Represent a data value or item.
-
default_id()¶ Configure calculated ID.
-
default_label()¶ Generate a default label.
-
property
entities¶ Yield itself.
-
classmethod
from_revision(client, path, revision='HEAD', parent=None, find_previous=True, **kwargs)[source]¶ Return dependency from given path and revision.
-
property
parent¶ Return the parent object.
-
property
submodules¶ Proxy to client submodules.
-
-
class
renku.core.models.entities.Collection(*, commit=None, client=None, path=None, id=None, label=NOTHING, project: renku.core.models.projects.Project = None, parent=None, members=None)[source]¶ Represent a directory with files.
-
default_id()¶ Configure calculated ID.
-
default_label()¶ Generate a default label.
-
property
entities¶ Recursively return all files.
-
classmethod
from_revision(client, path, revision='HEAD', parent=None, find_previous=True, **kwargs)¶ Return dependency from given path and revision.
-
property
parent¶ Return the parent object.
-
property
submodules¶ Proxy to client submodules.
-
Plans¶
-
class
renku.core.models.provenance.processes.Process(*, commit=None, client=None, path=None, id=None, label=NOTHING, project: renku.core.models.projects.Project = None, activity=None)[source]¶ Represent a process.
-
property
activity¶ Return the activity object.
-
default_id()¶ Configure calculated ID.
-
default_label()¶ Generate a default label.
-
property
submodules¶ Proxy to client submodules.
-
property
-
class
renku.core.models.provenance.processes.Workflow(*, commit=None, client=None, path=None, id=None, label=NOTHING, project: renku.core.models.projects.Project = None, activity=None, subprocesses=NOTHING)[source]¶ Represent workflow with subprocesses.
-
property
activity¶ Return the activity object.
-
default_id()¶ Configure calculated ID.
-
default_label()¶ Generate a default label.
-
property
submodules¶ Proxy to client submodules.
-
property
Agents¶
-
class
renku.core.models.provenance.agents.Person(*, client=None, name, email=None, label=NOTHING, affiliation=None, alternate_name=None, id=None)[source]¶ Represent a person.
-
property
full_identity¶ Return name, email, and affiliation.
-
property
short_name¶ Gives full name in short form.
-
property
Relations¶
-
class
renku.core.models.provenance.qualified.Usage(*, entity, role=None, id=None)[source]¶ Represent a dependent path.