Semantic flow¶
Delivered, according to whom¶
The logistics system marks a parcel delivered when it is handed to the local carrier. The field arrives in the customer service product with every value intact, every type correct and every row accounted for. There, delivered is read as in the customer's hands.
Customers phone to ask where their delivered parcel is, and the agents have no answer. The integration worked. Two systems exchanged data perfectly and misunderstood each other completely.
Interoperable and wrong¶
- Checks on schema, freshness and completeness all pass, so nothing signals the problem.
- Each hop strips a little more context. By the third product, nobody can say whose definition a column follows or which version of it.
- When the source changes what a status means, the change reaches consumers as different numbers, with no explanation attached.
- A semantic layer added at the end of the pipeline can improve consumption, but it cannot reliably recover knowledge that was lost upstream.
Meaning moves too¶
Semantic flow is the movement, refinement and reconciliation of meaning as data crosses bounded contexts and organisational boundaries. It starts close to the source and preserves provenance, authority and version as meaning is projected into products, contracts, schemas, APIs and analytical models.
Data flow answers whether the rows arrived. Semantic flow answers whether the receiver understands them the way the sender meant them, and can show why.
The picture¶
Two kinds of delivered¶
Illustrative example
The logistics domain publishes its shipment events with a declared meaning: delivered to carrier, defined by logistics, version 2. The customer service product consumes it and states its own concept, received by customer, which it derives from a different event, the signed proof of delivery.
The two are recorded as related, not equivalent. When logistics later adds a locker pick-up status, the change arrives as a new version of a named definition. The customer service team can see what changed and decide whether their concept is affected, before their figures move.
In detail¶
Four things that are easy to confuse¶
- Data flow moves data.
- Metadata inflow makes context and evidence available.
- Semantic flow makes meaning understandable and interoperable across boundaries.
- Ontology represents the governed shared meaning that emerges from that process.
What has to travel¶
At each projection, three things should survive: where the meaning came from, who has authority over it, and which version applies. A consumer that receives a number without those cannot tell an authoritative definition from a local habit.
Refinement is legitimate¶
Meaning changes as it moves, and it should. A derived product may narrow, combine or reinterpret what it receives. Semantic flow asks that the refinement is declared and traceable, not that it is forbidden.
Not this
- Not lineage alone. Lineage shows which column fed which; it does not say whether the meaning survived the journey.
- Not a requirement that every consumer adopts the producer's vocabulary.
Unresolved
- How much semantic context can travel with data before it becomes a burden on every producer?
- What should a consumer do when the meaning it receives is declared but no longer in force?
Join the argument
Agree, challenge or add evidence
Architecture improves when its assumptions are challenged. Say which kind of contribution you're making:
- Challenge I disagree because…
- Evidence We've seen this too…
- Question How would this work when…?
- Alternative Another way to approach this…
- Extension This also implies…
Please keep clients, employers and colleagues unidentifiable. Strong contributions may be quoted and credited on this site. Read the contribution guidelines and the privacy notice.
Comments are provided by giscus and stored on GitHub. Posting requires a GitHub account.