Imagine getting a recall notice for the tumbler you bought last month. The photo looks like yours. The product name matches. To tell whether your order is affected, the shop needs to know which batch the lid came from.

That is a good place to start with an ontology. It gives people and software a shared way to name things and describe how they connect. In this case, an order contains a shipped product, and that product uses a lid from a specific batch. Follow those connections and you can explain why two orders belong on the recall list while another order for the same product stays off it.

We ran a small example with three fictional orders in SQLite. It shows why the answer depends on both the shipment date and when the recall notice was recorded. Then we look at how the open-source project Utopia documents those same two kinds of time.

Three orders, two affected lids

On November 6, the fictional shop shipped two Trail Tumblers and one City Tumbler. Orders #103 and #104 used lids from batch L42. Order #105 was another Trail Tumbler, like #103, but its lid came from L43. A list filtered by product name could group them incorrectly. Following the batch number explains which orders go together.

Order 103 and order 104 connect to recalled lid batch L42. Order 105 uses L43 and shares the Trail Tumbler model with order 103.
Fictional orders and lid batches. The batch assigned to each shipped item determines whether this recall covers it.

You may see two terms in ontology guides. The T-Box (the schema) defines the kinds of things and the relationships you can describe. Here those are orders, products, lid batches, and links such as “uses a lid from.” The A-Box (the specific records) holds the concrete facts, such as “the tumbler in order #103 used a lid from L42.” When you draw those named items and the links between them, you have a small knowledge graph. (See W3C’s introduction to ontology classes, properties, and individuals.)

The recall covers November 6. When did the shop know?

The notice in our example covers L42 shipments starting on November 5. The shop records it on November 8. If you are working out what the team could have confirmed on November 6, that delay matters.

The recall applies to L42 shipments from November 5. The three orders ship on November 6. The recall notice enters the shop’s records on November 8.
Both dates belong to the same notice. One tells you when it applies. The other tells you when it entered the record.

We fixed the shipment date at November 6 and ran the same lookup twice. The only change was the cutoff for which records the query could use.

Results from our SQLite example for the November 6 shipments
Record cutoff Confirmed affected orders
No confirmed affected orders. The recall notice had yet to be recorded.
#103 and #104 both used L42. #105 used L43, so it falls outside this recall.

The first result says something about the evidence available at the time. It leaves the status of those orders open. The second result lets the team act on the notice and trace each match back to the lid batch. You can also download the sample records and query (ZIP) to try it yourself. Unzip the files into one folder. With Python 3 installed, open a terminal in that folder and run python run-recall-demo.py. The first lookup lists no confirmed orders. The second lists #103 and #104.

How Utopia handles the two dates

Utopia is an Apache-2.0 project you can host yourself. Its web interface has an editor for the shared terms and a graph view for exploring the linked records. It offers a Model Context Protocol (MCP) interface so an AI app can look up recorded facts about an item. The date option at asks when a fact applies. as_of asks what the system had on record by a particular date or time. Hold at on November 6 and move as_of from November 6 to November 8 to express the same two questions. In our example, the SQL query implements that distinction. The Utopia interface described here comes from Utopia’s documented MCP query options.

The project is an early release candidate. Its setup uses Docker, and automatic extraction from documents requires chat and embedding model endpoints. Start with a few orders and known batch IDs, check the links against the source records, then add document extraction when you can review what it finds. (Reference: Utopia setup and model requirements · v0.1.0-rc9 release)

When is an ontology worth the work?

A spreadsheet or SQL query can answer the recall question if you keep the batch IDs, relationships and both dates. That is often enough for one report. An ontology starts to pay off when sales, inventory and quality teams need to ask different questions of the same records and agree on what counts as an order, a product or a batch.

Before adding AI, check whether the order history actually records the batch used in each shipment. A graph can make a missing link visible. An accurate recall list still depends on filling that gap from reliable records. If your data already lives in a database and the immediate need is to expose a few approved queries to AI, a direct connection may be enough—see our FastMCP walkthrough.

← Back to Tech Guides
Tech Guides
Turn a PDF Into Editable Markdown With Docling ↗