TrustGraph: An RDF/OWL Hypergraph Layer for Agent Context
The context orchestration layer powered by hypergraphs. Build a unified semantic context layer where agentic outcomes are deterministic and agent behavior is not just traceable, but cryptographically verifiable.
At a glance
- What is it?
- TrustGraph is an Apache-2.0 Python project that turns enterprise documents into an RDF 1.2 and Named Graphs hypergraph, then serves that context to agents over SPARQL or GraphRAG. The design bet is that explicit semantics beat embedding similarity; the cost is that you now own an ontology.
- Who is it for?
- Adopt TrustGraph if your agents operate over data that already has named entities, policy vocabulary and relationships worth stating explicitly, and you are prepared to author or import an OWL ontology. Do not adopt it if your retrieval problem is genuinely fuzzy text matching, or if nobody on the team can read Turtle and SPARQL, because the ontology becomes the failure point rather than the fix.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.
DEEP OPEN-SOURCE ANALYSIS
The Problem TrustGraph Picks: Two Agents With Different Definitions
The README frames the problem with the Abbott and Costello "Who's on First?" routine. In that sketch, Who is the name of a player, What is another, and I Don't Know is a third. Costello hears questions; Abbott is stating names. TrustGraph's claim is that this is the enterprise AI failure mode in miniature: two agents cannot communicate if they do not share the same context understanding. The project is aimed at teams building agentic systems over heterogeneous corporate data where the same string means different things in different systems, and where an agent that guesses wrong produces a confidently incorrect answer. That audience is narrower than "everyone doing RAG." It is specifically people who can enumerate the entities and relationships in their domain and want those written down rather than inferred.
Why the README Rejects Vector Similarity for This Class of Query
The README walks through what happens when the "Who's on First?" question reaches a standard RAG pipeline. The query "Who is playing on first base?" is embedded, semantic similarity matches vectors near "playing," "first base" and "who," and because "Who" is a common pronoun the embedding space maps it toward general questions about identity rather than toward a proper noun. The retriever returns irrelevant documents. The README's conclusion is blunt: semantic similarity operates on fuzzy statistical probability and cannot distinguish a word used as a pronoun from the same word used as a proper noun inside a localized context. That is a fair description of the limitation, and it is also the boundary of the argument. For questions where the answer really is distributed across paraphrases and no schema exists, embedding search is the better tool, and TrustGraph's explicit model has nothing to offer.
The Mechanism: RDF 1.2, Named Graphs and N-Quads
The core mechanism is not a graph database with a graph-shaped API. TrustGraph models context as RDF triples serialized as N-Quads, which adds a graph name to each triple. Standard knowledge graphs express binary relationships, Node A to Node B. TrustGraph points at RDF 1.2, where a triple can itself be referenced as a node, and combines that with Named Graphs to group a multi-entity event into one addressable unit. The README's contrast is concrete: a standard graph records Document to Author, while the hypergraph connects Document, Author, Approving Manager, Compliance Policy and time or location metadata into a single relational event. That is what the project means by n-ary relationships, and it is the part of the design worth evaluating against your data model. If your domain is mostly pairwise links, the hypergraph machinery buys you little.
Bring Your Own Ontology, and What That Implies
TrustGraph accepts an ontology in OWL format. Once loaded, the README states that the ontology-enabled hypergraph uses the provided ontology for semantic compliance on all ingested data, and that ontology-compliant retrieval is automated. The README's Turtle example defines :Player and :BaseballPosition as owl:Class, :playsPosition as an owl:ObjectProperty with :Player as domain and :BaseballPosition as range, then asserts :Who :playsPosition :FirstBase. An agent traversing that graph with SPARQL or GraphRAG does not resolve "Who" by proximity; it follows a declared property. The trade-off is direct and worth stating plainly: the ontology is now a first-class artifact you maintain. Extraction that produces an entity the ontology does not cover, or that assigns the wrong class, is not smoothed over by statistics. It is a modeling bug, and it will surface as a failed or empty query rather than a slightly worse answer.
Ingestion and Hyperflows
Two capabilities are described in the README's capability list. First, ingestion: TrustGraph presents itself as a processing engine rather than only a store. It ingests unstructured enterprise data such as PDFs, wikis, APIs and databases, extracts entities and relationships using LLMs, and structures the output into the hypergraph. Second, Hyperflows, described as agentic workflows with processing capabilities. The supplied README truncates mid-sentence at that point, so the mechanics of Hyperflows, their execution model, and how they are defined or scheduled cannot be confirmed from this material. Treat the ingestion path as the part you can reason about today and the Hyperflows as the part you need to read the docs for.
Getting It Running: What the Material Actually Confirms
The README links to a self-host configuration UI at config-ui.demo.trustgraph.ai and to docs.trustgraph.ai, and the PyPI badge indicates a package named trustgraph. Beyond the package name and the presence of an end-to-end test workflow in the repository's release pipeline, the supplied README does not give an install command, a docker compose invocation, a port, or a configuration key. It also does not document the ontology loading path as a command. That is a real gap for an operations reader: you can see that self-hosting is supported and that a configuration UI exists, but you cannot plan a deployment from the README alone. The honest next step is the docs site and the config UI, not a guess at the CLI.
A Realistic Alternative: Vector RAG With a Schema Layer
The obvious alternative is the pipeline the README argues against: chunk documents, embed them, retrieve by similarity, and let the model synthesize. The difference in approach is not incremental. Vector RAG keeps the source text as the unit of retrieval and treats meaning as a position in a continuous space; TrustGraph discards the text as the retrieval unit and makes declared relationships the unit instead. A middle path exists and is worth naming: keep vector search for prose and add a lightweight entity layer, for example resolving person and organization names to canonical identifiers before retrieval. That gets you part of the "Who is a player, not a question" fix without committing to OWL. TrustGraph's position is that partial fixes leave the ambiguity in place, and the README's argument supports that for domains with real relational structure.
Licence, Maintenance and What to Verify First
The project is Apache-2.0, which permits commercial use and modification and includes a patent grant; it also requires that you preserve notices and state changes. That is a permissive licence, but if you redistribute a modified TrustGraph or embed it in a product, the notice obligations are yours to satisfy, and this is not legal advice. On maintenance, the repository is not archived, the last push shown is 2026-09-03, and the most recent release listed is v2.8.17 from 2026-09-08, so the 2.8 line is active. The upgrade cost that matters is not the Python dependency, it is the ontology. Every release that changes how extraction maps to classes can invalidate queries written against your OWL file, so pin the version you validate against and keep the ontology under version control alongside it. Verify the package installs and starts on your Python version, and verify extraction against a sample of your own documents before trusting it on the full corpus.
Editorial conclusion
Adopt TrustGraph if your agents operate over data that already has named entities, policy vocabulary and relationships worth stating explicitly, and you are prepared to author or import an OWL ontology. Do not adopt it if your retrieval problem is genuinely fuzzy text matching, or if nobody on the team can read Turtle and SPARQL, because the ontology becomes the failure point rather than the fix. Before committing, verify two things in your own environment: that the PyPI package installs and starts against your Python version, and that your real documents survive extraction into the graph without entity collisions of the "Who" variety. The ontology file is the artifact to review first, not the agent.
Community notes