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:
- Angola is a member of OPEC.
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.
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:
- Check: flag what breaks a rule, like Angola being both a member of OPEC and gone from it.
- Fill in: add a link nobody wrote, because the rules say it must be there.
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:
- Subclass: an ETF is a kind of fund, and a fund is a kind of asset. Ask for assets, get the ETFs too.
- Domain and range: what can sit at each end of a link. A "holds" link goes from a portfolio to an asset.
- Transitive: Antwerp is in Belgium, and Belgium is in the euro area, so Antwerp is in the euro area.
- Inverse: "TSMC supplies Apple" also means "Apple is supplied by TSMC".
- Disjoint: nothing is both a currency and a commodity.
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":
- In September 2015, the US Commodity Futures Trading Commission ruled that bitcoin is a commodity, and set it apart from "real" currencies. The axiom holds.
- In September 2021, El Salvador made bitcoin legal tender. Bitcoin is now a currency in one country, and still a commodity in the US. The axiom breaks.
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.
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.
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:
- A link breaks a "domain and range" axiom. On 10 January 2024, the US SEC approved the first spot bitcoin ETFs, BlackRock's iShares Bitcoin Trust among them. The next day, a portfolio in the graph holds it, and nothing in the graph says it's an asset yet. Should the graph conclude it is one, or flag the link as a mistake?
- New data breaks a confirmed axiom. In September 2021, the news parsing marks bitcoin as a currency in El Salvador, while the graph already knows it as a commodity, against the "disjoint" axiom. Is the news reading wrong, or is it the axiom?
These are decided case by case, by three judges, cheapest first:
- 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.
- 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.
- An LLM (a large language model, the kind behind chatbots), only when the decision model isn't sure enough.
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.
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
- A knowledge graph is not an ontology. It stores statements; it only knows something once axioms say what must hold and what follows.
- Classic axioms, as in RDF and OWL, are laws: written once, never tested. A world that moves, like the markets, needs axioms treated as hypotheses: proposed by people and AI agents, tried, confirmed or paused, and kept with their history.
- The machine checks coherence, people judge truth: the system can tell that an axiom contradicts nothing, but only human experts can tell whether it holds in the real world, and they keep the last word on every axiom.
- AI once, code after: a language model translates each axiom once, then plain code applies it to every new fact, for free. Conflicts go to the cheapest judge that can settle them.
References
- Tom Gruber, A Translation Approach to Portable Ontology Specifications, Knowledge Acquisition, 1993: the classic definition of an ontology.
- Aidan Hogan et al., Knowledge Graphs, ACM Computing Surveys, 2021: a broad introduction to knowledge graphs, their schemas and their reasoning.
- W3C, RDF Schema 1.1: subclasses, domains and ranges.
- W3C, OWL 2 Web Ontology Language Document Overview: the richer axioms (transitive, inverse, disjoint) and their reasoners.
The news behind the examples:
- Angola quits OPEC amid dispute over oil production quotas, World Oil, December 2023.
- OPEC+ members to extend oil production cuts through June, Oil & Gas Journal, March 2024.
- CFTC Release 7231-15: bitcoin as a commodity, September 2015.
- S&P Dow Jones Indices and MSCI announce the companies changing with the 2018 GICS revision, January 2018.
- The consequences of China's new rare earths export restrictions, CSIS, April 2025.