Solution Architecture2 January 20277 min read

Ontology Before Autonomy — Part 4 of 10

An ontology is not a database diagram

A database describes how information is stored. An ontology describes what the information means across systems: lifecycles, valid transitions, roles, authority and the status of a translation. Part 4 of Ontology Before Autonomy compares the two views, introduces RDF, OWL and SHACL only after the plain-language case, and sets out a five-team test for whether a model is an ontology.

#Ontology#Data Architecture#Knowledge Graphs#AI Agents#Solution Architecture

A team building an agent for an illustrative civil-registration service is asked for its ontology. The data lead sends the entity-relationship diagram for the case database. It is a good diagram. It shows an application table with a status column, a foreign key to office, a user_id on every record and a free-text notes field where translated statements end up.

Everything on the diagram is correct, and the agent still cannot use it to decide anything. The diagram says the status column holds text up to twenty characters. It does not say which values are valid, which moves between them are allowed, or which of them the agent may change. It says every record has a user_id. It does not say whether that user is the applicant, the official or the interpreter, or what each may do. It holds a translated statement as text. It does not say whether that text is provisional, corrected or confirmed.

A database describes how information is stored; an ontology describes what it means across systems, and an agent needs the meaning, because the meaning decides what it may do next.

Part 3 divided the work between evidence, meaning and authority. This part looks at where the meaning should be written down, and why the schema the team already has is not enough.

Two views of the same service

A database model answers storage questions. Which tables exist? Which columns, of which types? Which keys join them? Which indexes make queries fast? It is designed for one system and optimised for that system's work. It is essential, and it is owned, rightly, by the people who run that system.

An ontology answers meaning questions. What kinds of thing does the service deal with? What does each one mean, in words the officials would agree with? How do they relate? Which states can each be in, and which transitions are valid? Which roles exist, and what authority does each hold? Those answers apply across every system that touches the service: the case database, the appointment system, the document store, the language route and the agent.

The same fact can look very different in each view.

Database viewOntology viewWhat the agent gains
application tableApplication is a service object with a lifecycle and types (new, renewal, replacement, correction)Knows that "renew" may refer to several types, and that each has a lifecycle
status columnStatus belongs to a controlled set with valid transitions; some transitions need an officialCan tell an impossible state from a real one, and knows it may not move it
Foreign key to officeAppointment occurs at an Office with operating hours and service rulesWill not offer a slot the office does not run
user_idApplicant, Official or Interpreter, each with a role and an authority boundaryKnows who may confirm, correct or decide
Text field holding a translationTranslation has a source, target, confidence, correction history and approval stateNever treats a provisional translation as the record

The left column is about storage. The right column is about what is true, allowed and owned. Both are needed. The mistake is to assume the left column already contains the right.

The five-team test

The decision tool for this part is a test of whether a model is an ontology or only a schema. Ask five teams to use it for their own work.

TeamQuestion they must be able to answer from the modelIf they cannot
ProductWhich journeys and steps does this concept appear in?The model is a storage view of one system
PolicyWhich rule governs this transition, and which version is in force?Rules live in prose or code only
DataWhich source system is authoritative for each attribute?Identity and ownership are undefined
IntegrationWhich identifiers and states mean the same thing across systems?Each system's meaning is private to it
AIWhich entities, relationships and actions may the agent read, propose or change?The agent will infer meaning from text

If only the database team can use the model, it is a database diagram, however detailed. If all five can, it is doing the job of an ontology, whatever tool it is written in. Most first versions pass for two or three teams. The gaps show where the work is.

The storage view and the meaning view of the same service. On the left, the database view; on the right, the ontology view. The application table becomes Application, a service object with types and a lifecycle. The status column becomes Status, a controlled set with valid transitions only. The foreign key to office becomes Appointment occurs at an Office with hours and service rules. The user identifier becomes Applicant, Official or Interpreter, each with an authority boundary. A text field becomes Translation, with source, target, confidence, corrections and approval state. A footer gives the five-team test: product, policy, data, integration and AI teams can each answer their own question from the model.DATABASE VIEW: HOW IT IS STOREDONTOLOGY VIEW: WHAT IT MEANSapplication tableApplication: a service objectwith types and a lifecyclestatus columnStatus: a controlled setwith valid transitions onlyForeign key to officeAppointment occurs at an Officewith hours and service rulesuser_idApplicant, Official or Interpreter,each with an authority boundaryText fieldTranslation: source, target, confidence,corrections and approval stateFive-team test: product, policy, data, integration and AI can each answer their question from the model
Both views are needed. The database stores the facts; the ontology says what they mean, which moves are valid and who may make them. CloudNala analysis.

Where the standards come in

Everything above can be written in a spreadsheet, a document or a few files under version control. That is often the right place to begin, because the hard part is agreement, not notation. Once the model must be shared between systems, checked automatically or queried as a graph, a formal representation starts to earn its cost. Three W3C standards are the common reference points.

  • RDF is a way of writing facts as simple statements of subject, predicate and object: Application 123 hasStatus Pending. The W3C's RDF 1.1 Concepts and Abstract Syntax (a Recommendation of 25 February 2014) describes RDF graphs as sets of such subject-predicate-object triples.
  • OWL is a language for defining the classes and relationships themselves, with precise meaning: that a Replacement is a kind of Application, or that every Appointment occurs at exactly one Office. The W3C's OWL 2 Document Overview (Second Edition, a Recommendation of 11 December 2012) describes OWL 2 as an ontology language "with formally defined meaning".
  • SHACL is a language for checking that data follows the rules: that every Application has exactly one Status from the allowed set, or that a confirmed Translation has an approver. The W3C's SHACL specification (a Recommendation of 20 July 2017) defines it as "a language for validating RDF graphs against a set of conditions".

All three pages were checked on 24 November 2026. W3C standards are revised from time to time, so confirm the current version before adopting one.

None of the three is required to get the benefit this series describes. The same meaning can live in a domain model, a set of validation rules in code and a well-governed glossary. Choose the representation by what the model must do: if it only needs to guide one agent in one service, keep it simple; if several organisations or systems must share it and reason over it, a formal standard pays for itself. When you need a knowledge graph sets out a ladder for that choice, and Ontologies without the academic fog shows how to move from glossary to formal ontology one level at a time.

Keep both, and connect them

An ontology does not replace the database, and the database team does not need to remodel its tables. The practical pattern is a mapping between the two: this table and column hold this concept; this code in this system means this state; this key identifies this kind of entity. The mapping is where the five teams meet. It is also where most of the cost lies, because the same applicant, application or office often has different identifiers and slightly different meanings in different systems.

Three habits keep the two views connected:

  1. Name the authoritative source for each concept. The ontology says what a Status means. The case system says what this application's status is. The agent reads the second through the first.
  2. Validate at the boundary. When the agent proposes a change, check it against the ontology's rules before it reaches the database, not after.
  3. Change them together. When a new status is added to the system, the ontology and its rules change in the same release. Part 9 covers how.

How NalaTolika applies the distinction

NalaTolika is a CloudNala concept and reference architecture for governed language interpretation. It has no customers, deployments, pilots, data or results. Its reference design treats a translation as an entity in the ontology, not a text field: each one carries its source and target language, the route that produced it, any confidence the route reports, its correction history and whether the applicant or an official confirmed it. The service's own systems remain the record for applications and appointments. The ontology says how the language session relates to them, and what the session may and may not change.

Next in the series: Rules stop plausible errors becoming actions. All parts are on the series page.

Sources and limits: this article is CloudNala analysis. The comparison table and the five-team test are CloudNala frameworks. RDF, OWL 2 and SHACL descriptions come from the W3C Recommendation pages cited, each checked on 24 November 2026; they are named as reference standards, not as requirements or recommendations, and no product is assessed. The service scenario and application types are illustrative and do not describe any department or organisation. NalaTolika is a concept with no deployments, customers or data.

How CloudNala can help

CloudNala runs the five-team test on your existing models. We map your database schemas to a shared domain model for one service journey, mark the authoritative source for each concept, write the valid states and transitions, and advise whether a simple model in code is enough or a formal representation is worth its cost.


Work with CloudNala

CloudNala helps organisations move from technology ambition to practical execution across cloud, AI, data, platform engineering and digital services.

Whether you are exploring AI, modernising your cloud environment, building a public-sector digital service, or turning an idea into a working MVP, we can help you shape the roadmap and deliver the next step.

Book an Ontology and Agent Governance Assessment or write to us at consult@cloudnala.co.za

Found this useful?

Share