Knowledge graphs with axioms

Does your AI's knowledge graph know anything, or does it only store things?

Let me show you what I mean with an example taken from real news.

A graph that keeps a fact the world dropped

Say you build a graph from market news. An AI reads each article and writes what it is about as nodes and links. Years of oil news have taught it, among thousands of other facts:

On 21 December 2023, Angola announces it is leaving OPEC, from 1 January 2024, after a dispute over its production quota. The AI reads the article and writes a new link: Angola leaves OPEC.

On 3 March 2024, OPEC+ members extend their production cuts into the second quarter. The graph follows its links: the cuts apply to OPEC's members, Angola is a member, so Angola's output is capped.

Except that Angola left two months earlier, after a dispute over those very quotas. The graph holds both links, "member of" and "leaves", side by side, and nothing in it finds that odd.

member of

leaves, Dec 2023

about

Angola

OPEC

News, Mar 2024: OPEC+ extends production cuts

member of

leaves, Dec 2023

about

Angola

OPEC

News, Mar 2024: OPEC+ extends production cuts

The graph can't tell which of its two links is the one that still holds, because it has no way to say that a country that left an organisation is no longer a member. Every link is as true as every other, forever.

So here is my claim: a knowledge graph is not, by itself, an ontology. It is a pile of statements. What turns it into knowledge is a structure that says what must hold, what follows from what, and what to do when two statements don't fit together. That structure has a name: axioms.

What a graph is missing to know something

A knowledge graph is made of things (companies, countries, sectors, news) and the links between them ("member of", "supplies", "is about"). That's data: very useful, very searchable, and silent about its own meaning.

An ontology adds the part that is about knowledge itself, what philosophers call epistemology: what counts as true, how a new fact is justified, how a wrong one gets caught. Tom Gruber, an AI researcher at Stanford's Knowledge Systems Laboratory in the early 1990s, who later co-founded Siri, gave the classic definition: an ontology is a specification of a conceptualization. In other words, not the facts, but the explicit rules of the world the facts live in.

In practice, those rules are axioms. "A country that left an organisation is no longer its member" is an axiom. "A company in a sector is affected by whatever affects that sector" is another. With axioms, the graph can do two things it couldn't do before:

The classic axioms, and why they are rigid

None of this is new. The semantic web standards from the W3C, RDF and OWL, have had axioms for more than twenty years. In RDF, every fact is a triple: a subject, a link, an object ("Angola — member of — OPEC"). On top of the triples, the standards offer a handful of axiom kinds. Here they are with market examples:

Programs called reasoners apply these axioms on their own: they fill in what follows, and report what contradicts. That's exactly the "knowing" the OPEC graph lacked.

There's a catch. In these standards, an axiom is simply true. It is written once, by experts, and the reasoner treats it as law. Nothing records whether it still holds, or since when. If the data breaks an axiom, the data is wrong, or worse, the reasoner quietly draws a conclusion from it: in RDF Schema, a "domain and range" axiom doesn't flag a link that ends on the wrong kind of thing, it concludes that the thing must be of the right kind.

That works for worlds that hold still, like anatomy or chemistry. Markets don't. Take the disjoint axiom above, "nothing is both a currency and a commodity":

Or take sectors. Until September 2018, Alphabet and Facebook sat in the Information Technology sector of GICS, the sector classification run by S&P Dow Jones Indices and MSCI. On 28 September 2018, they moved to Communication Services, the old Telecommunication Services sector, broadened and renamed, which Netflix joined too. Every rule built on "internet platforms are tech companies" broke overnight, by decision of an index provider.

An axiom about a moving world is not a law. It's a hypothesis.

Axioms that evolve

So in my approach, axioms are treated like hypotheses: proposed, tested, kept while they hold, changed when they don't.

Anyone can propose one, people and AI agents alike, in plain words: "a country that left an organisation is no longer its member". An AI agent that keeps noticing the same pattern in the news can propose it as easily as I can.

Every new or changed axiom starts as a trial. It applies right away, and the links it fills in are marked as coming from an axiom on trial. It is checked once against the whole graph. If it contradicts no confirmed axiom, it is confirmed. If it does, it is paused: the links it filled in are removed, it writes nothing more, and its owner is told why, to fix it or drop it.

no

yes

fixed

dropped

changed

Proposed in plain words, by a person or an AI agent

On trial: applies right away

Contradicts a confirmed axiom?

Confirmed

Paused: its links removed, its owner told

Dropped

no

yes

fixed

dropped

changed

Proposed in plain words, by a person or an AI agent

On trial: applies right away

Contradicts a confirmed axiom?

Confirmed

Paused: its links removed, its owner told

Dropped

The machine checks coherence, not truth. Passing the trial only means an axiom doesn't contradict the others. It doesn't mean the axiom is true of the real world. A graph can be perfectly consistent and perfectly wrong, and no amount of AI reasoning over the graph can tell, because the graph only knows what it was told. Whether "a country that left an organisation is no longer its member" holds, or whether bitcoin is a currency, is a question about the world, and the people who know that world best are human experts: an oil analyst, a lawyer, a regulator. That's why AI agents propose axioms and the system tests them, but people stay in charge of them. Anyone who owns an axiom can confirm, change or drop it at any time, whatever the machine concluded. The AI speeds up the work of finding and checking rules. It doesn't replace the judgement of people who know the field.

Every link an axiom fills in remembers which axiom wrote it. If the axiom changes or is dropped, its links go with it, and nothing it concluded lingers in the graph.

Every version of an axiom is kept, with the date it changed. That history is valuable on its own: how the rules of a market change over time says a lot about that market. The versions of "nothing is both a currency and a commodity" between 2015 and 2021 tell the story of bitcoin better than any single fact about it.

AI once, code after

Here is the part that makes it cheap.

Reading a sentence like "a company in a sector is affected by whatever affects that sector" takes a language model. But it only takes it once. When an axiom is created or changed, an AI translates it into a rule that plain code can run, using the names the graph already uses for its things and links. From then on, the rule is applied by code, with no AI at all.

translated once by an AI

applied by code, no AI

An axiom in plain words

A rule code can run

Each new fact in the graph

Links filled in, or flags raised

translated once by an AI

applied by code, no AI

An axiom in plain words

A rule code can run

Each new fact in the graph

Links filled in, or flags raised

That's what I mean by a cheap reasoner. Each time a new fact lands in the graph, the rules that concern it run on it, the way a spreadsheet formula recalculates when you type a number: instantly, for free, with the same result every time. The expensive understanding happened once, when the rule was written. The reasoning that follows is just following links.

Who settles a conflict

Rules don't settle everything. Two kinds of cases need a judgement:

These are decided case by case, by three judges, cheapest first:

  1. Code, when the other axioms already settle it. Here, "an ETF is a kind of fund, a fund is a kind of asset": the new holding is an ETF, so it's an asset, no thinking needed.
  2. A decision model, when they don't. It doesn't write anything: it gets a question with fixed answers ("is the news wrong, or the axiom?") and returns one with how sure it is, for a fraction of what an LLM costs.
  3. An LLM (a large language model, the kind behind chatbots), only when the decision model isn't sure enough.

yes

no

yes

no

A case to settle

Do the other axioms settle it?

Code decides: free

Is the decision model sure enough?

The decision model decides: cheap

An LLM decides

yes

no

yes

no

A case to settle

Do the other axioms settle it?

Code decides: free

Is the decision model sure enough?

The decision model decides: cheap

An LLM decides

Whoever decides, the decision is recorded, and the owner of the axiom is told. Most cases never reach the LLM.

Explaining and deciding

Once axioms fill in links, chains of them become useful in two directions. Here is one built on 2025 news.

On 4 April 2025, China put export controls on several rare earths and the magnets made from them: exporters now need a licence. Carmakers need those magnets for the electric motors in their cars.

Explaining. Every filled-in link can say where it came from. "A carmaker is exposed to China's rare earth export controls because the controls cover rare earth magnets (news of April), and its motors need those magnets, and a company is exposed to what restricts the parts it needs (axiom 12, version 3)." Each step points to a news item or to a versioned axiom. Nothing is a black box.

about

needs

holds

exposed to, filled in by axiom 12

News, Apr 2025: China controls rare earth exports

Rare earth magnets

A carmaker

A portfolio

about

needs

holds

exposed to, filled in by axiom 12

News, Apr 2025: China controls rare earth exports

Rare earth magnets

A carmaker

A portfolio

Deciding. The same chains lead somewhere: "China controls rare earth exports → they cover magnets → this carmaker needs magnets → this portfolio holds its shares". At the end of that path, the system acts, for example by warning the investor. The warning itself isn't an axiom: axioms only check and fill in links. The system notifies when it finds that relevant, and it can show the whole path when it does.

And back to the OPEC graph from the start: with the axiom "a country that left an organisation is no longer its member", the December 2023 article would have been flagged the day it arrived, the old link retired, and the March 2024 cuts would never have reached Angola.

Summary

References

The news behind the examples: