Skip to content

How to Build a Manufacturing Ontology From ERP Data

How to Build a Manufacturing Ontology From ERP Data

A manufacturing ontology is a connected model of your plant's parts, BOMs, work orders, machines, suppliers, purchase orders and shipments, built from the ERP database, MES exports and spreadsheets you already have, so one question can be answered across all of them. You can build one in four steps: pick the questions, model the entities, match the same part and supplier across systems, and add rules that flag what does not add up. Helix Foundry, HelixDB's open-source ontology builder, can draft that model straight from a PostgreSQL or MySQL ERP database.

Most mid-size manufacturers do not want a Palantir-sized project. They want a dashboard that shows which orders will ship late and which machine is holding up the line, without a year of consulting. This guide gives the engineering steps first, which work with any tool, and then shows the same build in Foundry.

What a manufacturing ontology answers that ERP reports do not

An ERP report answers questions inside the ERP. A manufacturing ontology answers questions that span the ERP, the MES and the spreadsheet your planner keeps on the side.

The ERP knows a work order is released for 500 units. The manufacturing execution system knows the machine running it stopped twice this morning. The supplier spreadsheet knows the steel for the next order is a week late. Each system is right about its own slice, and nobody sees the three facts together until the order is already behind.

That gap is what ISA-95 addresses at the standards level: it defines a shared vocabulary of material, equipment, personnel and production schedules for the exchange between business systems and the plant floor. You do not need to implement the full standard. Borrow its habit of giving each thing one clear name and one clear relationship to the others.

In software engineering, an ontology is an explicit model of the things in a domain, the types they belong to and the relationships between them, written down so that people and programs share one meaning. A related term, an organization ontology, does the same for a company's structure: units, roles, sites and who owns what. A manufacturing ontology sits between the two. It models the work and the material, and it links to the organization that runs them.

The practical payoff is joined-up dashboards and AI answers. A model that knows work order WO-1042 consumes part P-77, which comes from supplier S-12, whose purchase order is two days past due, can say why WO-1042 will miss its date. A pile of tables cannot.

Step 1: list the questions plant and ops leads ask

Start from the questions, not the schema. A manufacturing ontology without a question list becomes a data-modelling hobby.

Sit with the plant manager, the planner, purchasing and the person who builds the weekly ops deck. Write down the questions they ask and currently answer by hand. For most plants the list looks like this:

  • Which customer orders are at risk of shipping late, and why?

  • Which machine or work center is the bottleneck this week?

  • Which suppliers are late most often, and which open orders depend on them?

  • Which parts are short for the next ten work orders?

  • Where do ERP quantities and shop-floor quantities disagree?

Keep it to five to ten. Each one tells you which entities you need and which systems must be joined to answer it. "Which machine is the bottleneck" needs work orders, routings and machine records from the MES. "Which supplier is a risk" needs purchase orders, receipts and supplier master data. If a question needs data nobody records, drop it for now.

This step also settles scope. You are not modelling the whole factory. You are modelling enough to answer these questions correctly.

Step 2: model parts, BOMs, work orders, machines, suppliers, purchase orders and shipments

Model the nouns your questions mention and the links between them. Seven entity types cover most of what a mid-size manufacturer asks about.

  • Part: a purchased component, subassembly or finished good, with a part number and description.

  • BOM line: a link from a parent part to a child part with a quantity. A bill of materials lists the raw materials, subassemblies and parts needed to make a product, and multi-level BOMs nest, so keep the parent-to-child link and let the depth fall out of the graph.

  • Work order: a planned run of a part, with quantity, due date and status.

  • Machine or work center: where operations run, with capacity.

  • Supplier: who you buy from.

  • Purchase order: a supplier commitment for parts, with promised and received dates.

  • Shipment: what left for a customer, tied to the customer order it fulfils.

The links carry the value: a work order produces a part, consumes parts through the BOM, runs on machines, and is waiting on purchase orders placed with suppliers. A shipment fulfils a customer order that a work order feeds.

Put dates and quantities on the entities, not in a separate report. Lateness and shortage are computed from them later. Resist modelling every ERP column. If no question uses it, leave it out.

The same split answers the question of how many kinds of manufacturing organisation you are modelling for. Discrete manufacturers build countable items from BOMs, process manufacturers blend or react materials by recipe, and make-to-order, make-to-stock and engineer-to-order describe how production is triggered. The entities above fit discrete and make-to-order shops directly. A process plant swaps BOMs for recipes and batches but keeps the same shape: material, equipment, orders, suppliers.

Step 3: connect the ERP database, MES exports and spreadsheets, and match the same part and supplier across them

Connecting the sources is the easy part. Matching the same part and the same supplier across them is where manufacturing ontologies succeed or fail.

Your ERP calls it 10-4471-B. The MES export drops the dashes and calls it 1044471B. The planner's spreadsheet says "Bracket, rev B". Supplier "Hartwell Steel Ltd" is "HARTWELL STEEL" in purchasing and "Hartwell" in the quality log. If you do not resolve these, every cross-system question returns half an answer.

A workable approach, whatever tool you use:

  1. Pick a system of record for each entity. The ERP part master is usually the anchor for parts, the vendor master for suppliers. Both are normal choices in MES and ERP integration, where mapping a material record between the two systems is a standard step.

  2. Normalise keys. Strip punctuation and case, trim whitespace, drop legal suffixes like Ltd or GmbH.

  3. Match on strong keys first. Part number plus revision, supplier tax ID or supplier code.

  4. Match on fuzzy fields second. Description and name similarity, always producing a candidate for review, never a silent merge.

  5. Keep the evidence. Store which rows were linked and why, so a wrong match can be found and undone.

Spreadsheets deserve the same treatment as databases. Treat each as a source with a stated owner and a column map, not as a one-off import. The spreadsheet that holds supplier promised dates is often the most accurate lateness data you have.

Step 4: add rules that flag what does not add up

Rules turn a connected model into something that finds problems for you. Each rule is a plain statement over the model that, when violated, raises a flag a person can act on.

For the questions in Step 1, start with these:

  • Late order: a work order or customer order whose due date is earlier than the promised date of any purchase order feeding it.

  • Part shortage: a work order whose BOM requires more of a part than is on hand plus inbound on time.

  • Quantity mismatch: ERP says 500 completed, MES says 470.

  • Bottleneck: a machine whose queued work orders exceed its capacity for the period, or whose open operations sit on the critical path of the most at-risk orders. Overall equipment effectiveness, which combines availability, performance and quality, is a common way to rank machines, and OEE data collected from the MES slots straight in as a machine property.

  • Supplier risk: a supplier with repeated late receipts and open purchase orders feeding high-priority orders.

Two habits keep rules trustworthy. First, every flag should show the rows behind it, so the planner can check it in ten seconds. Second, a rule that fires on half your orders is a bad rule. Tune thresholds against a month of real history before anyone is paged.

This is also where the ontology stops being a diagram. The same rules drive a dashboard of at-risk orders, a morning email, or an answer to "why is order 8841 late?" from an AI assistant. For more on that pattern, see how to make AI agents follow your business rules.

Build it in Helix Foundry: connect, draft the ontology, review, ask the Analyst

Helix Foundry is an open-source (Apache 2.0) AI knowledge graph builder. It connects your databases, tools and documents, drafts an ontology over them, and loads it into HelixDB as one connected graph. It has PostgreSQL and MySQL connectors, so an ERP database can be connected directly. Its code is on GitHub and the concepts are in the Foundry docs.

Run it. You need Docker with Compose v2. Clone the repo, run docker compose up -d --wait, and open http://localhost:3000. Or use Helix Cloud at foundry.helix-db.com. The local install is for one person on their own computer, so keep it on localhost.

Connect. Add your ERP's PostgreSQL or MySQL database as a source, then add the MES export and the supplier spreadsheet as table files. Foundry reads from your sources and never writes to them.

Draft the ontology. Foundry's agent looks at your synced tables and drafts types, links and mappings: parts, work orders, suppliers, purchase orders and the links between them. This is the step that replaces weeks of whiteboarding. A generation sends your synced tables to Foundry's agent, so check the docs on how Foundry uses AI models before pointing it at sensitive data.

Review. Treat the draft as a proposal. Check that the BOM link runs parent to child, that the part and supplier types are matched across sources the way Step 3 describes, and that nothing you do not need came through. Edit what is wrong, then accept.

Ask the Analyst. Once loaded, ask in plain language: "Which open work orders are waiting on a late purchase order?" or "Which suppliers have the most overdue deliveries?" The Analyst answers with charts, shows the queries it ran, and gives a source for every claim, so the planner can trace each number back to the ERP row or spreadsheet line it came from. You can keep answers as dashboards your team opens, and agents can query the same ontology through the Helix MCP.

The flagging rules from Step 4 are where you spend your own judgement. Draft them as questions the Analyst answers, then keep the ones that prove useful as dashboards. If you want the broader picture of how this compares with other builders, see the roundup of enterprise ontology builders.

Keeping it right as the ERP schema and data change

An ontology that was correct in March and stale by June is worse than none, because people trust it. Plan for change from day one.

ERP schemas change when a module is upgraded, a custom field is added or a table is renamed. Data changes constantly: new parts, retired suppliers, merged vendor records. Three habits keep the model honest.

  • Sync incrementally. Reading only what changed keeps the model close to the ERP without full reloads.

  • Re-check the links, not just the rows. New rows are where matching breaks: a new supplier spelling, a part with a new revision. Review newly proposed matches the same way you reviewed the first batch.

  • Revisit the draft when the schema moves. When a column is added or a table restructured, regenerate and review the affected types rather than patching by hand. See self-healing ontologies for how links are kept right as data drifts.

Re-run your original question list every quarter. If plant leads have stopped asking one of them, drop its rules. If a new one has appeared, model what it needs.

Start with five questions and one ERP database

A manufacturing ontology does not need a platform purchase. It needs a short list of real questions, seven entity types, careful matching of parts and suppliers across systems, and a handful of rules you can check by eye. Do that for one plant and one ERP database before you widen anything. To try it on your own data, clone Helix Foundry, run it with Docker, connect your PostgreSQL or MySQL ERP, and ask the Analyst which open orders are going to ship late.

All agent content