NEWTake the Ontology Masterclass!Read or watch →

Open-source ontology hypergraph runtime

Take AI to the 4th dimension.

Flat graphs trap AI in three dimensions: subject, predicate, object. TrustGraph is the open-source hypergraph platform that adds the 4th dimension: named graphs that unify your knowledge, ontologies, business logic, complex process flows, prompts, configurations, and policy-governed remote data retrieval in a single store.

Or try it in the hosted Playground
  • Apache 2.0
  • RDF
  • OWL
  • SHACL-AF
  • PROV-O
  • SPARQL 1.1
  • MCP
One ontology named graph spanning every graph layerFour graph layers, business logic, agents, remote data sources and policy, are stacked in one store. The ontology is a single named graph shown as a glowing column passing through every layer, and each layer's nodes connect to it. A hyperedge, one relationship joining nodes across several graphs at once, loops through the stack.POLICYREMOTE DATA SOURCESAGENTSBUSINESS LOGICOntology
Ontology: one named graph across every layerHyperedge: one relationship, many graphs
01The problem

Every platform now sells you an ontology.

In 2026 Palantir, Microsoft, Databricks and Snowflake all launched ontologies. Each one lives inside its own platform: built on a vendor object model, fed mostly from that vendor's tables, and governed by that vendor's permissions. The model of your business becomes the hardest thing to move.

Platform ontology

Everything flows in. The ontology, and what you learned building it, stays inside one vendor.

TrustGraphopen

Your ontology is a W3C file you own. Take it, and the knowledge built on it, anywhere.

Comparison. Platform ontology: the ontology sits inside a single vendor platform; data, apps and users flow in and nothing flows out. TrustGraph: the ontology is an ontology.ttl file that can run on any cloud, any model and any RDF store, and can be exported with the tg-graph-to-turtle and tg-export-workspace commands.
02The 4th dimension

What the 4th dimension unlocks

Standard knowledge graphs stop at triples: subject, predicate, object. TrustGraph stores quads, adding the named graph, plus RDF-star statements about statements. When context, logic and time become first-class dimensions in the same store, AI agents move from brittle prototypes to governable enterprise systems.

Flat graph3D · S · P · O
A single flat graph plane: Supplier has contract C-104:Supplier:C-104:hasContract →
  • Prompts (files)
  • Logic (code)
  • Policies (IAM)
  • Versions (manual)

Triples say what is connected. Time, logic, prompts and governance live somewhere else, disconnected.

TrustGraph hypergraph4D · S · P · O · Graph
Five stacked named graphs in one TrustGraph storePolicy, logic, ontology, knowledge and source named graphs are stacked as planes. Glowing edges pierce through every plane, showing relationships that span named graph boundaries in a single store.
  1. urn:graph:policySHACL-AF governance · remote retrieval
  2. urn:graph:logicBusiness logic · process flows · prompts
  3. urn:graph:ontologyVersioned OWL schemas
  4. urn:graph:knowledgeExtracted & remote entities
  5. urn:graph:sourcePROV-O document lineage

Every named graph is a composable dimension, versioned and governed, with edges that cross boundaries in one store.

Comparison. A flat graph stores subject, predicate, object triples on a single plane, with prompts, logic, policies and versions held outside it. TrustGraph stores quads that add a named graph, stacking policy, logic, ontology, knowledge and source graphs as dimensions linked by cross-dimensional edges.

Trace across the 4th dimension

  1. urn:graph:retrieval(active)
  2. urn:graph:policyALLOWED / FILTERED(active)
  3. urn:graph:logic(inactive)
  4. urn:graph:ontology(inactive)
  5. urn:graph:knowledge(active)
  6. urn:graph:source(inactive)
# Cross-dimensional trace in a single store
GRAPH <urn:graph:retrieval> {
  :Answer-42 prov:wasDerivedFrom :RemoteFetch-9 ;
             tg:usedProcessFlow  <urn:graph:flow:approval-v2> ;
             tg:governedBy       <urn:graph:policy:eu-finance> .
}
GRAPH <urn:graph:policy:eu-finance> {
  :RemoteFetch-9 tg:verdict tg:Filtered .
}

Every live remote fetch is judged Allowed, Filtered or Violation before an agent sees it.

TrustGraph is the one you own.

Your ontology and the knowledge built on it are standard W3C data, not rows in a vendor's object model. Move them to any RDF store, any cloud or any model, with no lock-in.

03How it works

Extract. Ground. Govern.

  1. 1 · Extract

    OntologyRAG

    Triples that match your ontology, validated against domain, range and subclass constraints.

    Read the docs
  2. 2 · Ground

    Context Graph

    RDF in named graphs, with PROV-O lineage to every source chunk.

    Read the docs
  3. 3 · Govern

    SHACL-AF Policies

    Every query evaluated node by node: Allowed, Filtered or Violation.

    Read the docs
04Open by design

Standards you own, not a platform you rent.

TrustGraph compared with platform ontologies
AspectTrustGraphPlatform ontologies
Data modelW3C RDF and OWLVendor object model
Where it runsAny cloud, on-prem, self-hosted modelsInside one vendor's data estate
Knowledge sourceAll data: documents, structured data and imagesMostly warehouse tables
Access controlSHACL-AF policies on every graph queryPlatform permissions
Audit trailPROV-O in queryable named graphsPlatform logs
ModelsAll major LLM APIs, or self-hosted open modelsPlatform's choice
LicenseApache 2.0Commercial
05The standards stack

W3C from storage to agent.

Every layer is an open standard, so every layer is portable.

  1. MCP · REST · SPARQL 1.1how agents ask
  2. SHACL-AFwhat they may see
  3. PROV-Owhy they got that answer
  4. OWL / RDFSwhat things mean
  5. RDF (+ RDF-star)how knowledge is stored

06Use cases

Built for teams where decisions carry real risk

07Release

What's new in 2.10

Full changelog
08Start small

One question, a few classes, value in a day.

Pick one question your agents need to answer. Model the handful of classes it touches, load your data, and see grounded, policy-filtered answers the same day. Grow the ontology as the questions grow.

Hosted LLMs
AnthropicOpenAIGoogleMistral
Open models
vLLMLM Studiollama.cppOllamaon NVIDIA, AMD or Intel acceleration
Clouds
AWSAzureGoogle CloudOVHcloudScalewayand on-prem
Stores
Cassandra (graph)Qdrant (vector)
Deploy
Docker ComposeKubernetes
$ npx @trustgraph/config
? Platform, stores, LLM provider…
✓ deploy.zip
✓ INSTALLATION.md

Run the wizard, then follow the generated INSTALLATION.md. Prefer a browser? The configuration terminal builds the same bundle. CLI docs

Nothing to installRequest access to the hosted Playground
09FAQ

Questions, answered

More in the glossary and guides.

What is TrustGraph?

For enterprises deploying AI agents where decisions carry real risk, TrustGraph is the open-source ontology hypergraph runtime that turns all your data, including documents, structured data and images, into ontology-grounded knowledge, and governs what every agent and user can see from it. Unlike platform ontologies from Palantir, Microsoft, Databricks and Snowflake, TrustGraph is built on W3C standards (RDF, OWL, SHACL, PROV-O) and Apache 2.0, so your ontology, your knowledge and your audit trail stay yours.

What is a hypergraph?

A standard knowledge graph stores triples: subject, predicate, object. A hypergraph goes further, letting a single relationship connect many nodes and span many graphs at once. TrustGraph adds a 4th element to every statement, the named graph, and supports RDF-star statements about statements. That means your ontology, business logic, agents, policies and remote data sources live as separate, versionable named graphs in one store, and relationships cross between them, so a single query can trace an answer through every layer.

How is this different from Palantir's Ontology?

Palantir's Ontology is proprietary and lives inside Foundry. TrustGraph uses W3C standards, is Apache 2.0, and runs anywhere; you can export your ontology and knowledge as Turtle.

Do I need an existing ontology?

No. Start with a handful of classes for one question, or begin with schema-free GraphRAG and add an ontology later.

What is a context graph?

A context graph connects business entities, relationships and evidence so AI agents retrieve knowledge with its full meaning and its source. TrustGraph builds context graphs, the technique Thoughtworks' Technology Radar recommends assessing for agentic AI.

How is this different from AI guardrails?

Guardrails filter what a model says after it has seen the data. TrustGraph's SHACL-AF policies filter what an agent or user can see in the first place: every graph query is evaluated node by node and each result is Allowed, Filtered or a Violation, with the evaluation recorded.

Which standards does TrustGraph use?

W3C RDF (with RDF-star), OWL, SHACL-AF, PROV-O and SPARQL 1.1, plus MCP for agent access. Your ontologies, policies and provenance stay portable with no lock-in.

Is TrustGraph open source?

Yes, the core is Apache 2.0. Enterprise add-ons cover knowledge-based access controls and IAM, an attestation engine and temporal knowledge management, with engineering support for production deployments.

10See it on your domain

See your ontology govern your agents.

A 30-minute technical walkthrough with the TrustGraph team, built around your data.