graflo.architecture.evolution.aspects.provenance¶
The provenance aspect: where a fact came from, and who produced it (PROV-O).
Modules:
| Name | Description |
|---|---|
plan |
Planning the provenance aspect: |
vocabulary |
The provenance aspect's types: where a fact came from, and who produced it. |
Attributes¶
AGENT = 'Agent'
module-attribute
¶
SOURCE_RECORD = 'SourceRecord'
module-attribute
¶
__all__ = ['AGENT', 'SOURCE_RECORD', 'agent_vertex', 'attributed_to_edge', 'derived_from_edge', 'plan_provenance', 'source_record_vertex']
module-attribute
¶
Functions:¶
agent_vertex()
¶
Who or what acted or measured: a person, a team, a sensor, a system.
Source code in graflo/architecture/evolution/aspects/provenance/vocabulary.py
attributed_to_edge()
¶
SourceRecord -wasAttributedTo-> Agent, with the agent's role on the edge.
Source code in graflo/architecture/evolution/aspects/provenance/vocabulary.py
derived_from_edge(source)
¶
<source> -wasDerivedFrom-> SourceRecord.
Source code in graflo/architecture/evolution/aspects/provenance/vocabulary.py
plan_provenance(manifest, *, attach=(), mentions=())
¶
The ops that make lineage expressible in manifest.
SourceRecord -wasAttributedTo-> Agent is emitted even when there is
nothing else to attach: it is what makes the schema able to say where a
fact came from, which is the question the world-model profile asks.
The vocabulary is joined with what the manifest has
(:func:~graflo.architecture.evolution.aspects.join.join): a
SourceRecord or Agent it already declares keeps its own properties
and gains the aspect's missing ones, so manifests that carry the
vocabulary, such as source kits, compose and lift in any order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
manifest
|
GraphManifest
|
the manifest to lift, already |
required |
attach
|
Iterable[str]
|
vertex type names that gain a |
()
|
mentions
|
Iterable[str]
|
vertex type names |
()
|
Raises:
| Type | Description |
|---|---|
LiftError
|
the manifest has no schema, or declares part of the vocabulary in a way that contradicts it. |
Source code in graflo/architecture/evolution/aspects/provenance/plan.py
source_record_vertex()
¶
The record a fact was read from: its address and hash, never its content.