Skip to main content
Version: 0.4.1

Data

Say what data the organization holds and how it moves.

Data, in two dimensions​

A domain object is the concept, Order. A data entity is a concrete holding of it, the Order table in the Order Service. Neither sits above the other; they answer different questions.

Domain objectData entity
Declared inA platform or a monolithA storage, inside the component or monolith that owns it
Belongs toExactly one domainThe component or monolith it sits in
CarriesHow confidential it is, whether it is personal data, and whether it is canonicalIts role, structure, properties and policies

One domain object is usually held in several places. Tell the holdings apart with markers:

MarkerSaysRule
authoritativeThis is the system of recordExactly one per domain object
originData of this kind is first created hereAt least one per domain object
from … over …This is a replica, kept in step from another holding, by the messages or the mechanism it carries. An entity may have several, all but one marked reconcileIts source can't be transient
transientNothing outside this component depends on itNever syncs in or out

A holding can be several at once: a service that creates and keeps its own orders is both origin and authoritative.

Authority covers the whole domain object. One holding is the system of record for all of it, never for some of its properties: a property listed on a replica is a copy. When two systems each own part of one concept, such as a CRM owning the customer and billing owning the customer's payment terms, model each part as its own domain object, Customer and Customer Payment Terms, each with its own authoritative holding.

One owner, always. Each data entity sits in one storage in one component, or in a monolith that holds its storages itself. A component that needs data it doesn't own goes through the owner, or keeps a replica; two components sharing one database can't be written.

Structure is local. Within a component, every entity is a root or part of another, so each component's data is a set of complete trees. references links entities in the same component, in one storage or across two of its storages (references risk-store/exposure). Between systems, there is no foreign key: what links them is that both hold the same domain object.

Canonical data is reference data end users don't manage: countries, currencies.

Classification belongs to the concept. A domain object states two separate things: its confidentiality, how bad a leak would be, and whether it is personal data, whether it identifies a person. A pricing model is confidential and identifies nobody; an employee directory is personal data and may be only internal. Both sit on the domain object, so its copies can't disagree. A holding marks which of its properties are personal, which tells a privacy review where the name and address are kept and where only an id is.

Significant properties. List the identifier and the few properties that matter, not the full column list. A system that stores only a customer's id holds one property, and that is exactly what a privacy review needs to see.

Domain object​

object order "Order" : sales/selling object @customer "Customer" : sales/selling confidentiality confidential personal-data personal object diagnosis "Diagnosis" : care confidentiality restricted personal-data special-category object @country "Country" : reference confidentiality public personal-data none canonical component records "Records" : backend { sql records-db "Records DB" { root order authoritative origin root @customer authoritative origin root diagnosis authoritative origin root @country authoritative origin } }

Declared in a platform or a monolith. After : comes the domain that owns it. Then, each optional and in this order:

PartMeans
confidentiality <level>How sensitive it is: one of your repository's levels, least sensitive first in confidentiality-levels in kanoniq.repository.json. By default they are public, internal, confidential and restricted, and a level not listed is KQ275
personal-data <value>Whether it identifies a person: none, personal, or special-category for health, biometric, genetic, ethnic, political, religious, union, sex life or orientation data and criminal records. none says you checked; leaving it out says nothing
canonicalReference data that end users don't manage, such as countries or currencies

Storage and data entity​

Data is written inside the component that owns it, or in a monolith that holds its storages itself, in a named storage: sql (a SQL database), table (entities by partition and row key, with no schema, such as Azure Table Storage; not a SQL table), document (JSON documents in containers or collections, such as Cosmos DB's NoSQL API or MongoDB), log (an append-only store of time-ordered events, such as Application Insights), file (a directory), blob (a blob container), key-value (opaque values by key, such as a Redis cache), graph (nodes and edges, such as Cosmos DB for Gremlin or Neptune) or search-index (a search index, such as an Azure AI Search index).

A storage of any kind sits in the component that owns its data. The product that keeps it, such as Azure Table Storage, is not modeled as a component reached over http: at most it is a database server or a storage account the storage is hosted on (see Writing environments and database servers).

object order "Order" : sales/selling object order-line "Order line" : sales/selling component order-service "Order Service" : backend { sql orders-db "Orders DB" { root order authoritative origin identifier "Order Id" property "Total" references @customer [1] order-line part of order [1..*] authoritative origin identifier "Order Line Id" root platform-channels/@customer from platform-channels/customer-hub over http identifier "Customer Id" } }

An entity is named by the domain object it holds. order above is the Order domain object, held in orders-db. The domain object is looked up from the component's platform or monolith outward, so write a path when it is declared elsewhere: root platform-core/payment holds the Payment declared in platform-core. The path is from the ecosystem, and the entity is still referred to by its last segment, payment, in references and part of.

An entity line reads, in order:

PartMeans
rootLeads the line when the entity is the top of a tree. Every entity is either root or part of another
part of <entity> [n]This entity belongs to another in the same storage. [n] is how many parts the whole has
authoritativeThis holding is the system of record. Exactly one per domain object, in the whole model
originData of this kind is first created here. At least one per domain object
transientNothing outside this component depends on it, so it never syncs in or out
from <component> over <protocol or channel>This is a replica, kept in step from that component's copy. Name the component by its path from the ecosystem when it is in another platform: from platform-channels/customer-hub over http. A sync states its scheme as a connection does: auth over a protocol, sender-auth and receiver-auth over a channel, and may end with what it carries and reconcile

Then, on lines of their own below it:

LineMeans
from <component> over …Another sync into the same entity, written like the first, before the other lines
identifier "<name>"An identifying property. Several make a composite key
property "<name>"Another significant property. List the few that matter, not every column
… personalEnds an identifier or property line whose data is personal in this holding, property "Email" personal. It never sets a level: the domain object's classification holds for every copy. On a domain object stating personal-data none it's KQ276; on one stating no personal-data, KQ124
references <entity> [n]A reference to another entity in the same storage, with how many it points at. Write references <storage>/<entity> [n] for an entity in another storage of the same component

Multiplicities are [1], [0..1], [1..*] and [0..*].

Structure stays inside a component. part of and references name entities in the same component. Across systems, the link is that both hold the same domain object.

So a component that needs to refer to something another component owns holds its own entity for it, usually a replica, and refers to that:

object account "Account" : sales/selling component ledger "Ledger" : backend { sql ledger-db "Ledger DB" { root account authoritative origin identifier "Account Number" references @customer [1] root platform-channels/@customer from platform-channels/customer-hub over http identifier "Customer Id" } }

references customer is valid only because ledger-db holds a customer entity. Without it, the reference has nothing to point at.

Access​

Which component of a monolith reads or writes which of the monolith's own tables, written in the monolith's block:

storefront/web writes shop-db/order storefront/web reads shop-db/basket scheduler/import-shipments writes shop-db/shipment

writes is creating, changing or deleting, and reads is reading. Neither implies the other: a component that does both states both, and an import that only inserts states writes alone. The same line twice is a repeat (KQ026).

The source is a component of the monolith, directly or in a module, of any kind, a job or a robot included. The target is an entity in a storage the monolith holds itself, named by its storage and its object. Data a component holds is that component's, reached by calling it, and another monolith's or a platform's never shares this database (KQ246). Name an aggregate by its root, which covers its parts; an entity that is neither a root nor part of anything is named itself (KQ247). An access creates nothing: an entity that is not there is an unresolved name (KB003).

Accesses are optional. A monolith that states none says nothing about who uses its data, and stating one does not ask for the rest. No view draws an access as a line.

Data uses​

data-use payroll "Run payroll" via people/pay basis contract, legal-obligation subjects employee, freelancer data employee-record, salary data-use sick-leave "Record sick leave" via people/absence basis legal-obligation special employment subjects employee data absence-record

A data use says why you process personal data, and on what legal ground. Its name is the purpose. Write it in a domain or an ecosystem, which holds it. Its parts, in this order:

PartMeans
via <work>, …The domains, function groups or functions of its own ecosystem whose work the purpose covers, each with what is under it. Required
basis <basis>, …The lawful bases of GDPR Art. 6(1): consent, contract, legal-obligation, vital-interests, public-task or legitimate-interests
special <condition>, …For special-category data, the conditions of GDPR Art. 9(2) it is processed under, such as explicit-consent, employment or health-care, or Art. 10's authorized-by-law
subjects <persona>, …Whose data it is, as personas: employee, customer and the others
data <object>, …The domain objects it processes. A code alone names the domain object of that code in its ecosystem. Required
joint <ecosystem>, …Other ecosystems that decide the purpose with it, its joint controllers

The legal words are not reserved but contract, which basis still reads, so a code such as consent stays legal; a word GDPR doesn't list is KB084. The full lists are in the reference.

Everything else is read from the model. Select a data use and the information pane lists, under Computed, its systems, the ones realizing what via names; its holdings in their storages, with the properties marked personal; the copies syncs keep of them; where they run, each stage with the countries they're held in; its transfers, each place its personal data leaves a transfer regime for, with the element receiving it and its ground, or no ground stated, or not stated where that place isn't known; its controller, its own ecosystem, and its joint ones; its processors, the saas components and monoliths among its systems or holding its data; its recipients, the other ecosystems and pool sites its data reaches; and the security measures stated on what reaches them.

What is checked. A named domain object that is personal-data none (KQ277) or that its systems don't hold (KQ278), special-category data with no special (KQ279), a special with no special-category data (KQ280), a via into another ecosystem (KQ281), and joint naming its own ecosystem (KQ282) are errors. A named domain object stating no personal-data (KQ126) and a data use with no basis (KQ128) are lints. Once an ecosystem states one data use, each data entity of personal data in it that no data use holds or copies is a lint too (KQ127).

Reference​

The element types, relationships and kinds of this area, each with what it means.

Element types

Element typeWhat it is
StorageA Storage is where data sits, such as a SQL database or a blob container, owned by the Component or Monolith it sits in. A Storage holds Data Entities.
Domain ObjectA Domain Object is a conceptual thing the organization keeps data about, such as Order. A Domain Object sits in a Platform or a Monolith, belongs to exactly one Domain, and is held in Storages as Data Entities.
Data EntityA Data Entity is a tangible holding of a Domain Object, such as the Order table in the Order System. A Data Entity sits in a Storage and represents exactly one Domain Object.
Data UseA Data Use is a purpose for which the organization processes personal data, such as running payroll, with the lawful basis it rests on. A Data Use sits in an Ecosystem or a Domain, names the function-side work it covers and the Domain Objects it processes, and its systems, holdings and recipients are read from the model.

Relationships

RelationshipWhat it says
RepresentationA Representation says which Domain Object a Data Entity is a holding of. Each Data Entity represents exactly one Domain Object.
Domain OwnershipA Domain Ownership binds a Domain Object to the one Domain it belongs to, apart from the Platform or Monolith that contains it.
Part OfA Part Of puts a Data Entity in the local tree of a whole, within one Storage of one Component. Every Data Entity is a root or part of another.
ReferenceA Reference is a foreign key from one Data Entity to another of the same Component, possibly in another of its Storages. A Reference never crosses Components.
AccessAn Access says a Component of a monolith reads or writes a Data Entity in a Storage the monolith holds itself. It names an aggregate by its root, or an entity in no aggregate, and is legal only inside one monolith.
ReplicationA Replication says a DbServer replicates another, in a role. Replication runs between database servers, never between Data Entities.

Replica role: The role a replica database server plays for its primary.

ValueMeans
failoverA standby that takes over when the primary fails.

Storage kind: A Storage's kind: what sort of store the Storage is.

ValueMeans
sqlA SQL database.
fileA directory of files.
blobA blob container.
tableEntities by partition and row key, with named properties a query filters on and no schema, such as Azure Table Storage, DynamoDB or Bigtable. A table Storage is not a SQL table.
documentJSON documents in containers or collections, such as Cosmos DB's NoSQL API or MongoDB.
logAn append-only store of time-ordered events, such as Application Insights.
key-valueOpaque values by key, such as a Redis or Valkey cache.
graphA graph of nodes and edges, such as Cosmos DB for Gremlin, Neptune or Neo4j.
search-indexA search index, such as an Azure AI Search, OpenSearch or Elasticsearch index.

Cardinality: How many Data Entities a part-of or reference relationship expects at its far end.

ValueMeans
1Exactly one.
0..1Zero or one.
1..*One or more.
0..*Zero or more.

Access mode: What an Access's Component does with the entity: reads it, or writes it. A Component that does both has one Access of each.

ValueMeans
readThe Component reads the entity.
writeThe Component creates, changes or deletes the entity.

Personal data: Whether a Domain Object identifies a person. Absent, nothing is stated, which is not none.

ValueMeans
noneIdentifies no person.
personalIdentifies a person, directly or with other data (GDPR Art. 4(1)).
special-categoryHealth, biometric, genetic, ethnic, political, religious, union membership, sex life or orientation (GDPR Art. 9), or criminal records (GDPR Art. 10).

Legal basis: A lawful basis for processing personal data, one of GDPR Art. 6(1)'s six.

ValueMeans
consentThe data subject has given consent (GDPR Art. 6(1)(a)).
contractProcessing is necessary for a contract with the data subject, or for steps before entering one (GDPR Art. 6(1)(b)).
legal-obligationProcessing is necessary to comply with a legal obligation (GDPR Art. 6(1)(c)).
vital-interestsProcessing is necessary to protect someone's vital interests (GDPR Art. 6(1)(d)).
public-taskProcessing is necessary for a task in the public interest or in official authority (GDPR Art. 6(1)(e)).
legitimate-interestsProcessing is necessary for legitimate interests not overridden by the data subject's (GDPR Art. 6(1)(f)).

Special condition: A condition for processing special-category data, one of GDPR Art. 9(2)'s ten or Art. 10's authorization by law, on top of an Art. 6(1) basis.

ValueMeans
explicit-consentThe data subject has given explicit consent (GDPR Art. 9(2)(a)).
employmentProcessing is necessary under employment, social security or social protection law (GDPR Art. 9(2)(b)).
vital-interestsProcessing is necessary to protect the vital interests of a person unable to consent (GDPR Art. 9(2)(c)).
not-for-profitProcessing by a not-for-profit body about its members (GDPR Art. 9(2)(d)).
made-publicThe data subject has manifestly made the data public (GDPR Art. 9(2)(e)).
legal-claimsProcessing is necessary for legal claims or courts acting judicially (GDPR Art. 9(2)(f)).
substantial-public-interestProcessing is necessary for reasons of substantial public interest under law (GDPR Art. 9(2)(g)).
health-careProcessing is necessary for medicine, health or social care (GDPR Art. 9(2)(h)).
public-healthProcessing is necessary for reasons of public interest in public health (GDPR Art. 9(2)(i)).
archiving-researchProcessing is necessary for archiving, research or statistics in the public interest (GDPR Art. 9(2)(j)).
authorized-by-lawProcessing of criminal convictions and offences is authorized by law (GDPR Art. 10).

© 2026 Extenza Works. All rights reserved.