graflo.architecture.schema.semantics¶
Optional grounding of schema elements in external vocabularies.
Purely additive and never consulted at execution time: identity, storage naming and ingestion behave identically whether or not these blocks are present. Their audience is the reader — human or agent — deciding what a type means before deciding what to ask about it.
Serialized through the gf: meta-ontology, reusing skos:exactMatch and
skos:altLabel rather than minting GraFlo-specific equivalents.
FieldSemantics
¶
Bases: Semantics
Anchors for a property, which additionally may carry a unit.
Separate from :class:Semantics on purpose: a unit on a vertex or an edge is
meaningless, and because these models forbid extra keys, the split makes
unit: on a vertex a validation error without any custom validator.
Source code in graflo/architecture/schema/semantics.py
Semantics
¶
Bases: ConfigBaseModel
External-vocabulary anchors for a vertex, edge, or whole schema.