Files
semprini-data-product-templ…/canonical_data_product/example/odps.yaml
T
paulandClaude Opus 5 866bcfe238 Add the source-aligned CDC template, and key the canonical template's topics
The first template of the source-aligned family: one data product per source
system, capturing a database by CDC and turning what it emits into what a
canonical product accepts. It runs on the Integration Bus, not in a domain, and
is deployed with the `data-bus` CLI.

What it produces, and what its tests hold it to: raw topics in the source's own
shape; deterministic identity, so a re-snapshot upserts rather than duplicating;
validation against the canonical product's rules before publishing, with what
fails going to the product's own dead-letter topic with the reason; keying by the
canonical identifier; provenance in headers; and an archive in the bus object
store that can be replayed back onto the raw topic.

The worked example captures an ERP customer table and delivers into Canonical
Party in the digital-core domain: 12 smoke checks, 37 unit tests, including a
poison record that is quarantined while the next record still arrives.

The canonical template's topics now declare the key producers must set, which is
the other half of that contract.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 10:54:39 +12:00

96 lines
3.2 KiB
YAML

# Example Address: ODPS v4.0 manifest (worked example of canonical_data_product/odps.yaml).
schema: https://opendataproducts.org/v4.0/schema/odps.yaml
version: 4.0
product:
details:
en:
name: "Example Address"
productID: "digital-core.example-address"
description: "Worked example of the data product template: the canonical Address entity of the Digital Core domain, published through GraphQL, Kafka and Trino."
visibility: organisation
status: production
type: dataset
productVersion: "1.0.0"
categories:
- "Digital Core"
tags:
- "Address"
outputFileFormats:
- GraphQL
- JSON
- SQL
SLA:
declarative:
default:
name:
en: Default SLA
description:
en: "Service levels for Example Address"
dimensions:
- dimension: uptime
displaytitle:
en: Availability
objective: 99.95
unit: percent
- dimension: updateFrequency
displaytitle:
en: Data Freshness
objective: 1
unit: minutes
support:
email: "data.architecture@bank.com"
dataAccess:
default:
name:
en: CRUD API
description:
en: "GraphQL reflected from the operational store by pg_graphql."
outputPorttype: API
format: GraphQL
authenticationMethod: none
accessURL: "http://localhost:20000/rpc/example_address_graphql"
publish:
name:
en: Publish Input
description:
en: "Kafka topic accepting canonical Address records, keyed by address_id, which is what keeps changes to one address in order."
outputPorttype: API
format: JSON
authenticationMethod: none
accessURL: "kafka://localhost:20001/digital-core.example-address.address.inbound"
specsURL: "http://localhost:8081/apis/registry/v3/groups/digital-core.example-address/artifacts"
subscribe:
name:
en: Subscribe Output
description:
en: "Compacted Kafka topic carrying every change to Address, keyed by address_id."
outputPorttype: API
format: JSON
authenticationMethod: none
accessURL: "kafka://localhost:20001/digital-core.example-address.address.outbound"
specsURL: "http://localhost:8081/apis/registry/v3/groups/digital-core.example-address/artifacts"
sql:
name:
en: Analytic SQL
description:
en: "Trino over DuckLake, continuously replicated from the operational store."
outputPorttype: SQL
format: SQL
authenticationMethod: none
accessURL: "jdbc:trino://localhost:20003/lake/example_address"
license:
en:
scope:
definition: "TODO: purpose statement for the licence"
restrictions: "Internal. Address is reference data with no PII; parties are linked through Contact Address, which is not in this product."
permanent: false
exclusive: false
termination:
terminationConditions: "7 years post relationship end"
governance:
confidentiality: "Internal, per the Address entity governance in the Digital Core domain"
dataHolder:
en:
legalName: "TODO: organisation legal name"
email: "data.architecture@bank.com"