graflo.architecture.evolution.state_core.vocabulary¶
IRIs are in :mod:graflo.architecture.evolution.aspects.iris, Agent and
the PROV-O edges in :mod:~graflo.architecture.evolution.aspects.provenance.vocabulary,
the state and observation scaffolds in
:mod:~graflo.architecture.evolution.aspects.state.vocabulary. EVIDENCE
and evidence_vertex resolve to SOURCE_RECORD and
source_record_vertex, the vertex a lift now mints in its place.
Attributes¶
AGENT = 'Agent'
module-attribute
¶
DCTERMS_IS_PART_OF = f'{DCTERMS}isPartOf'
module-attribute
¶
EVIDENCE = 'SourceRecord'
module-attribute
¶
PROV_WAS_INFLUENCED_BY = f'{PROV}wasInfluencedBy'
module-attribute
¶
RESULT_TIME = 'result_time'
module-attribute
¶
RESULT_UNIT = 'result_unit'
module-attribute
¶
VALID_FROM = 'valid_from'
module-attribute
¶
VALID_TO = 'valid_to'
module-attribute
¶
__all__ = ['AGENT', 'DCTERMS_IS_PART_OF', 'EVIDENCE', 'PROV_WAS_INFLUENCED_BY', 'RESULT_TIME', 'RESULT_UNIT', 'VALID_FROM', 'VALID_TO', 'agent_vertex', 'attributed_to_edge', 'derived_from_edge', 'evidence_vertex', 'feature_of_interest_edge', 'observation_type_name', 'observation_vertex', 'specialization_edge', 'state_type_name', 'state_vertex']
module-attribute
¶
__getattr__ = forwarder(__name__, {'DCTERMS_IS_PART_OF': (_IRIS, 'DCTERMS_IS_PART_OF'), 'PROV_WAS_INFLUENCED_BY': (_IRIS, 'PROV_WAS_INFLUENCED_BY'), 'AGENT': (_PROVENANCE, 'AGENT'), 'EVIDENCE': (_PROVENANCE, 'SOURCE_RECORD'), 'agent_vertex': (_PROVENANCE, 'agent_vertex'), 'attributed_to_edge': (_PROVENANCE, 'attributed_to_edge'), 'derived_from_edge': (_PROVENANCE, 'derived_from_edge'), 'evidence_vertex': (_PROVENANCE, 'source_record_vertex'), **{name: (_STATE, name) for name in ('RESULT_TIME', 'RESULT_UNIT', 'VALID_FROM', 'VALID_TO', 'feature_of_interest_edge', 'observation_type_name', 'observation_vertex', 'specialization_edge', 'state_type_name', 'state_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
evidence_vertex()
¶
The record a fact was read from: its address and hash, never its content.
Source code in graflo/architecture/evolution/aspects/provenance/vocabulary.py
feature_of_interest_edge(subject)
¶
<Subject>Observation -hasFeatureOfInterest-> <Subject>.
Source code in graflo/architecture/evolution/aspects/state/vocabulary.py
observation_type_name(vertex)
¶
observation_vertex(subject, key_fields)
¶
The Observation type for one subject: a measurement at a time.
result_unit is a property rather than a contract-level declaration
because this type is abstract: one measuring temperature and one measuring
pressure are the same type here, so the unit has to travel with the row.
Source code in graflo/architecture/evolution/aspects/state/vocabulary.py
specialization_edge(subject)
¶
<Subject>State -specializationOf-> <Subject>.
Source code in graflo/architecture/evolution/aspects/state/vocabulary.py
state_type_name(vertex)
¶
state_vertex(subject, key_fields, moved)
¶
The State type for one subject: its key, its mutable facts, a validity interval.
Keyed on the subject's own key plus valid_from: the same property of
the same entity holds many values over time, and those are different facts
rather than revisions of one. Closing valid_to instead of overwriting is
what makes the history queryable at all.