graflo.architecture.evolution.aspects.provenance.vocabulary¶
The provenance aspect's types: where a fact came from, and who produced it.
SourceRecord is the record a fact was read from -- a document, a message,
an API response, a table row. It carries the address of that record and a
hash of its content, never the content: the text or the row stays where it
was landed, and the graph points at it. Agent is who or what produced the
record. Both are prov: types; wasDerivedFrom and wasAttributedTo are
the PROV-O relations. mentions says a record names an entity, which holds
whether or not the entity's facts were read from that record.
Attributes¶
AGENT = 'Agent'
module-attribute
¶
CONTENT_HASH = 'content_hash'
module-attribute
¶
MEDIA_TYPE = 'media_type'
module-attribute
¶
MENTIONS = 'mentions'
module-attribute
¶
RETRIEVED_AT = 'retrieved_at'
module-attribute
¶
ROLE = 'role'
module-attribute
¶
SOURCE_RECORD = 'SourceRecord'
module-attribute
¶
SOURCE_RECORD_ID = 'source_record_id'
module-attribute
¶
SOURCE_URI = 'source_uri'
module-attribute
¶
__all__ = ['AGENT', 'CONTENT_HASH', 'MEDIA_TYPE', 'MENTIONS', 'RETRIEVED_AT', 'ROLE', 'SOURCE_RECORD', 'SOURCE_RECORD_ID', 'SOURCE_URI', 'agent_vertex', 'attributed_to_edge', 'derived_from_edge', 'grounded_edge', 'mentions_edge', 'source_record_vertex']
module-attribute
¶
Classes¶
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
grounded_edge(source, target, relation, iri, description, *, properties=None)
¶
A directed edge grounded in one IRI, as every aspect edge is.
Source code in graflo/architecture/evolution/aspects/provenance/vocabulary.py
mentions_edge(target)
¶
SourceRecord -mentions-> <target>.
Source code in graflo/architecture/evolution/aspects/provenance/vocabulary.py
source_record_vertex()
¶
The record a fact was read from: its address and hash, never its content.