Skip to content

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

Data flow without and with semantic flow Two rows, each with a source, a product and a consumer. In the top row only data moves; each hop loses meaning and the consumer guesses that delivered means in the customer's hands. In the bottom row meaning travels with the data: the source declares delivered to carrier, version 2, owned by logistics; the product carries that provenance, authority and version; the consumer relates it to its own concept, received by customer, as related but not equivalent. Data flow only Source status = delivered means: handed to carrier Product status = delivered means: ? Consumer status = delivered ✕ received? rows arrive intact · meaning is guessed again at each boundary Data flow with semantic flow SOURCE · DECLARED Delivered to carrier authority: logistics version 2 PRODUCT · CARRIED Delivered to carrier provenance · authority version, by reference CONSUMER · RELATED Received by customer own concept, own event related, not equivalent rows arrive intact · meaning arrives with its source, owner and version
The same three hops, twice. Above, only data moves and meaning is re-guessed at each boundary. Below, meaning travels with it and each hop adds to its provenance.

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.

Next in the argument Ontology An enterprise ontology programme sets out to define everything once, and becomes a second universe that drifts from the products it describes. Platforms treat data as a first-class citizen