The world’s first unified interface for agent harnessesOpen Source4.6kPowered by UHP

InsightsDec 1, 202612 min read

Everyone says knowledge graph. Production runs property graphs.

Everyone says knowledge graph, but production runs property graphs. Why agent memory belongs in a property graph, why reasoning belongs in the model rather than the data layer, and why the ontology should become a write schema.

Richard's cover for Everyone says knowledge graph. Production runs property graphs: RDF, OWL and a reasoner, built for machines that couldn't read; a property graph for the facts; the model and harness for the reasoning.

Everyone building agent memory says "knowledge graph". Look at what they actually run, and it's a property graph.

I checked the six best-known graph memory projects from yesterday's post. Five call themselves knowledge graphs, and none of them stores RDF. The ones that use a graph database use a property graph database. The rest keep the graph in an in-memory library or in plain tables. The wider market looks the same: on DB-Engines' December ranking, Neo4j alone scores more than 11 times the most popular RDF store. That ranking measures popularity, not installations, but the gap is hard to miss.

The two aren't just different file formats. Strict definitions of a knowledge graph ask for more than nodes and edges: an ontology that says what things mean, and a reasoner that derives new facts from it. The standard way to build that is the W3C's semantic web stack, with facts stored as RDF triples, meaning written in OWL, and SPARQL to query it. That stack was designed for a world where machines couldn't read.

Agents can read. The reasoning now happens in the model and the harness around it, and that changes what the graph is for. The graph no longer has to derive anything. It has to be a good witness: what was said, when it was true, where it came from, and what replaced it. A property graph keeps exactly that, written on the fact itself, which is why I'm all in on property graphs for agent memory.

I'm not throwing everything from the knowledge graph world away, though. My view is a little contrarian: keep the ontology, drop the reasoner.

Below: the two models in plain words, one fact written both ways, why the reasoning belongs in the model and not in the data, what still belongs in the graph, why I still believe in the ontology, and what a property graph costs you.

Same two facts, a reasoner vs a model: what the user said (she lived in San Francisco with Dr. Lee as her dentist, then moved to New York); an RDF and OWL reasoner that concludes San Francisco is the same place as New York; and a property graph read by a model, which sees she moved in Oct 2026 and keeps Dr. Lee as history.

Two ways to store a fact

A knowledge graph in the RDF sense stores every fact as a triple: a subject, a predicate and an object, like (Alice, livesIn, New York). Every thing gets a global ID that looks like a URL, so facts published by different organizations can join without anyone coordinating. On top sits an ontology written in OWL. It defines classes ("a dentist is a healthcare provider") and rules about relationships ("a person lives in at most one city"). A reasoner reads the ontology and the triples and derives facts nobody wrote down.

A property graph stores nodes and the relationships between them, and both can carry properties, which are plain key-value pairs. A relationship has a type, a direction and properties of its own: (Alice)-[LIVES_IN {since: Oct 2026, source: chat 812}]->(New York). There's no reasoner, and often no fixed schema. You query it with Cypher, or with GQL, the ISO standard query language for property graphs, published in April 2024.

One fact, both ways

Take the example from yesterday's post. Two years ago a user told your agent they live in San Francisco. Last month they said they'd moved to New York.

One dated fact, 8 triples or 1 edge: RDF 1.1 turns the fact into a node with 8 triples for type, subject, predicate, object, time and source; a property graph stores one LIVES_IN edge with valid_from, valid_to and source; Wikidata keeps start time and end time as qualifiers on a statement node.

In the property graph, the move is two writes: put an end date on the old relationship and add the new one. Nothing is deleted, so you can still ask where the user lived in 2025.

In RDF 1.1, every fact that needs a date becomes a node of its own. RDF 1.2 adds a cleaner way to make statements about a triple, but as of 16 November it's still a Candidate Recommendation Draft, not a standard. Even Wikidata had to work around this. Its statements carry qualifiers such as "start time" and "end time", and when it exports to RDF, each statement becomes a node of its own so the qualifiers have somewhere to attach. The plain triples in the same export simply drop them. Wikidata's documentation says it in four words: "The qualifiers are ignored."

What the RDF stack was built for

The semantic web stack was built for the open web: many publishers, nobody in charge, and programs that couldn't read a sentence. If you wanted software to know that a dentist is a healthcare provider, someone had to write it down in a formal language, and a rule engine had to apply it. Four of its design choices follow from that, and every one of them works against agent memory:

  • It assumes an open world. The OWL 2 Primer says it plainly: a fact missing from an OWL document "may simply be missing (but possibly true)". That's right for the web. A memory has to answer "where does she live now?", and that means knowing a fact has ended.
  • It doesn't assume two names mean two things. The Primer explains why: names "may be coined by different organizations at different times unknowingly referring to the same individual".
  • It has no time. RDF's own spec calls its data model "atemporal": "RDF graphs are static snapshots of information." Time is a vocabulary you add on top.
  • Its logic is monotonic. The RDF semantics require that adding facts never takes a conclusion away. Memory is the opposite: every update is a new fact that makes an old one false.

Put them together. Tell an OWL reasoner that Alice lives in at most one city, then that she lives in San Francisco and in New York. It won't retire the old city. It concludes that San Francisco and New York are the same place. From then on, everything true of one city is true of the other, so the dentist she saw in San Francisco now "practices in New York". (If you've said the two cities are different, it calls your data inconsistent instead.) Nothing in the logic can say "she moved".

Reasoning is also expensive. The W3C's own table lists the core reasoning problems for full OWL 2 as N2EXPTIME-complete, which means the worst case grows faster than exponentially. That's why it also defines three cut-down profiles, EL, QL and RL, that stay tractable on large data.

The reasoner is now the model

An OWL reasoner knows only what you state. The Primer's own example is that two classes don't overlap: that's "part of our background knowledge and has to be explicitly stated for a reasoning system to make use of it."

A model brings the background knowledge with it. Give it the two LIVES_IN relationships with their dates, and it concludes that she moved last month, that her old dentist is now across the country, and that she'll probably want a new one. Nobody wrote a rule. It also handles the fuzzy cases no rule ever covered, like "I'm mostly in New York now".

What the model can't do is recover evidence nobody wrote down. It can infer that Alice no longer lives in San Francisco. It can't infer when she told you, or who told you. That has to be written on the fact itself.

Why the reasoning belongs in the model, not in the data

This is the part I feel most strongly about. Keep the data graph factual, and put the reasoning in the model and the harness around it. It's separation of concerns, and five things make it the right split:

  1. Facts and interpretations change for different reasons. A fact changes when the world changes. An interpretation changes when the question changes, or when a better model comes out. Put both in the data layer, and every new rule or model upgrade becomes a data migration. Keep them apart, and you upgrade the reasoning by swapping the model, without touching a single fact.
  2. Stored conclusions go stale. A reasoner that writes its conclusions into the database has to take them back when a fact they came from changes. Databases have needed dedicated algorithms for this since "delete and rederive" (DRed, SIGMOD 1993). RDFox, a reasoner that stores its conclusions, gives the problem in one line: delete the fact that Oxford is in Oxfordshire, and the derived facts that Oxford is in England and in the UK "should also be retracted as they are no longer justified." A model that reasons at read time has nothing to take back. It reads the current facts every time.
  3. Reasoning depends on the question. "Is she free on Tuesday?" means something different to a scheduling agent than to a travel agent. A rule in the data layer fires the same way for every question, every agent and every user. The harness knows the task: it can pull the facts that matter, run a query when it needs an exact answer, and check the result before anyone sees it.
  4. Mistakes stay small and visible. A wrong rule in the data layer runs on every write, for every user, and nothing on screen shows it. We learned that the hard way. On BEAM, a public long-term memory benchmark, one rule in our store wrongly retired 133 of 176 preferences in the memories we checked, and every agent still passed its own tests. A wrong inference in the harness affects one answer, and it's in the trace, where you can read it and write a test for it.
  5. Research went the same way. Think-on-Graph (ICLR 2024) "treats the LLM as an agent to interactively explore related entities and relations on KGs and perform reasoning based on the retrieved knowledge." Reasoning on Graphs (also ICLR 2024) has the model plan paths through the graph, then reason over the paths it retrieves. In both, the graph supplies grounded facts and the model does the reasoning.

The model isn't good at everything, which is exactly why the split matters. It's very good at judgment. It's unreliable at bookkeeping.

Reasoning in the model, bookkeeping in the graph: the model and harness handle judgment; the graph handles which fact is current, exact counts and long paths, who may see which fact and which node is which, through tools; a rule in the data layer hits every write and every user, while an inference in the harness affects one answer and is in the trace.

What stays in the graph

Reasoning belongs to the model. Bookkeeping doesn't. The graph exposes these through tools the harness can call, and the model never guesses them:

  • Which fact is current. That's decided when the fact is written, by a rule declared per relationship type: "lives in" holds one value, "likes" holds many. Keep these rules few and declared, and test them, because they run on every write. Our 133-of-176 bug was exactly this kind of rule. The model writing facts marked preferences as one-value, so each new preference closed earlier ones that had nothing to do with it. The fix went into the rule: a new value now closes an old one only when both are about the same thing.
  • Exact counts and long paths. "How many times has she rescheduled this year?" A query answers exactly; a model estimates. Oolong (COLM 2026), a benchmark of aggregation over long inputs, found that "aggregation is the bottleneck": giving models the right labels for every item barely helped them count.
  • Who may see which fact. Permissions are never a judgment call.
  • Which node is which. Deciding that "Alice", "Alice Chen" and "my sister" are one person may start as a model's suggestion. Once it's made, it's a recorded fact with a source, not a guess remade on every read.

Why the property graph is the natural memory

I've worked in graphs for more than seven years, and I've seen both models' strengths and their costs up close. For agent memory, one reason outweighs the rest: the evidence lives on the fact. Its time, its source and what replaced it are written with the fact, in one write, and read back with it.

A property graph lets you choose how big a fact is. A simple fact can be one relationship with properties, like the LIVES_IN example above. A fact that other facts need to point at becomes a node: it carries its own properties, and relationships link it to the things it's about.

That's how we built our own memory. Every fact is a node. It carries when it became true, when it stopped and who wrote it, and its earlier versions are kept. Relationships link it to the people and things it's about, and to other facts: the one it replaced, the ones it contradicts, the ones it was derived from. A memory has to answer "what replaced this, and why?", so facts have to point at facts.

In our memory, a fact is a node: one user's facts about where she lives and what she prefers, each a node carrying valid_from, valid_to, source conversation, written_by and earlier versions, linked by CLOSED_BY, CONTRADICTS and DERIVED_FROM; LIVES_IN holds one value and PREFERS holds many.

RDF can model a fact as a node too; that's what Wikidata does. The difference is that in RDF every property of that node is another triple, written separately and joined back together on every read. In a property graph, the fact and its properties are one record.

The rest follows from there. Memory is private, so RDF's real strength, joining data across organizations through global IDs, buys little inside one user's memory. The model reads a node with properties as what it is: a JSON object, the same shape every tool call takes and returns. And the standards caught up: GQL became an ISO standard in April 2024, and SQL:2023 added property-graph queries to SQL itself.

Keep the ontology, drop the reasoner

Here's where I part ways with a lot of the LLM crowd. A popular view says memory doesn't need a schema: let the model extract whatever it finds, and name relationships as it goes. I think that's backwards.

A data model is specific to its domain, and data should follow its constraints. A sales team's memory and a clinic's memory shouldn't share one free-for-all vocabulary, and neither should let a model invent a new relationship name every time it phrases something differently. So in our memory, every fact has to say whether it holds one value or many, and the store enforces it. The memories we build from conversations also carry a schema of entity types and relationship types, and every fact derived from a conversation is checked against it.

That's the ontology, moved from read time to write time. In the RDF world, it fed a reasoner that derived new facts when you asked. In agent memory, it checks every fact before it gets in. Cognee already does a version of this: it reads OWL ontology files to label entities as it writes, and stores the result in a property graph.

So I believe in the ontology. I just don't need its reasoner anymore: the model does that job better.

What a property graph costs you

It isn't free. Here are three costs I've hit, and how we handle each.

  • Identity is your job. There are no global IDs, so nothing tells you that two mentions are the same person. We match names after normalizing case, spacing and possessives, so "Alice" and "alice's" land on one node. An entity can also carry aliases, and a name that matches an alias lands on the same node. But nothing merges "my sister" into Alice on its own: a writer has to record that alias. Where I think this should go: merges the model proposes, recorded by the graph as facts with a source, so a wrong merge can be undone.
  • Supernodes. A node with thousands of edges slows down everything that touches it, and in agent memory the biggest one is the user: nearly every fact hangs off one node. The question you ask most often, "which of this person's facts is current?", is exactly the one that would walk all of them. So we index every one-value fact by its subject and its relationship type, and the check reads just that slot, however many other facts the person has. Reads work the same way: start from the slot or the relationship type you need, not from everything the user ever said.
  • No shared meaning. Two teams can use LIVES_IN for different things, and the database won't notice. That's why the schema above isn't optional for us.

Side by side

Knowledge graph (RDF stack)Property graph
A fact isa triple: subject, predicate, objecta relationship with properties, or a node when other facts point at it
IDsglobal, built to join data across publisherslocal to one database
Meaning lives inan OWL ontology, used by a reasonerthe schema you declare and enforce on write
New facts come froma reasoner applying rulesthe application, which now means the model
A missing fact meansunknown (open world)whatever your application decides
Time on a facta node per fact, or RDF 1.2 (still a draft)properties on the fact
Logicmonotonic: new facts never retract old conclusionsnone built in: you retire facts with write rules
Query languageSPARQL 1.1 (W3C, 2013)Cypher; GQL (ISO, 2024); SQL/PGQ (SQL:2023)
Best atpublishing and joining open datadata one application writes and changes all day
Knowledge graph (RDF stack) vs property graph for agent memory, side by side on nine rows, the same comparison as the table above.

My bet for the end of Q1 2027

Graph memory products for agents store property graphs with time on every fact, and none of them ships an OWL reasoner. The ontology survives as the schema that decides what may be written, and the reasoning lives in the model and its harness.

If you run graph memory today: is it RDF or a property graph, do you enforce a schema, and has anyone on your team ever turned the reasoner on?

→Next

Run agents from any harness

Run supported harnesses through HarnessRouter and use task traces to inspect their execution.