Skip to content
@trustgraph-ai

TrustGraph

Business meaning in the graph. Business authority in the runtime.

Website | Docs | YouTube | Launch TrustGraph | Discord | Blog

The open source ontology hypergraph toolkit for AI agents

Every platform now sells you an ontology. TrustGraph is the one you own.

Ontologies aren't a magic bullet that will transform hallucinating LLMs into deterministic workflows. They can help, but they're another tool in the toolbox. Building high-performance, high-assurance, high-value enterprise AI solutions requires connecting ontologies with knowledge extraction, hybrid retrieval, agent orchestration, policy enforcement, and real-time decisioning. TrustGraph is that full toolkit, with every component already wired together for common enterprise workflows and patterns, radically accelerating your time to value without locking you into a vendor stack.

At its core, TrustGraph is an open-source hypergraph platform with AI native tooling to unify your knowledge, ontologies, business logic, complex process flows, prompts, configurations, policies, and audit trails in a single store with governance for what every agent and user can access or retrieve.

Flat property graphs and vector databases cannot solve enterprise AI alone. They collapse context, scatter prompts, business logic, and configurations across disconnected systems, and bolt on versioning and access control as afterthoughts. Only a hypergraph can solve these problems natively.

Built on W3C standards (RDF, RDF-star, OWL, SHACL, PROV-O), TrustGraph gives you total ownership and portability across any cloud, model, or deployment.

How it works

            Your ontology                       Your documents & data
                 │                                       │
                 └──────────────────┬────────────────────┘
                                    ▼
                         ┌──────────────────────┐
              1. EXTRACT │     OntologyRAG      │  Triples match classes and properties,
                         │                      │  checked against constraints
                         └──────────┬───────────┘
                                    ▼
                         ┌──────────────────────┐
              2. GROUND  │    Context Graph     │  RDF knowledge in named graphs,
                         │                      │  with PROV-O lineage to every source
                         └──────────┬───────────┘
                                    ▼
                         ┌──────────────────────┐
              3. GOVERN  │  SHACL-AF Policies   │  Every query evaluated per node:
                         │                      │  Allowed · Filtered · Violation
                         └──────────┬───────────┘
                                    ▼
                     GraphRAG · SPARQL · Agents · MCP
           + a queryable trace of how each answer was produced

Additional Technical Diagrams

What makes it different

TrustGraph Platform ontologies
Data model W3C RDF, OWL, JSON-LD Vendor object model
Where it runs Docker, Podman, Kubernetes, any cloud, on-prem or self-hosted models Inside one vendor's data estate
Knowledge source Documents (PDF, DOCX, XLSX, PPTX, HTML, Markdown, CSV), images, and structured data Mostly warehouse tables and metadata
Access control SHACL-AF policies evaluated on every query Platform permissions
Audit trail PROV-O in queryable named graphs Platform logs
Models All major LLM APIs, hosted or self-hosted open weight models Platform's choice
License Apache 2.0 Commercial

Core capabilities

1. Own it: open standards, portable knowledge

  • Knowledge is stored as RDF, including language tags, XSD datatypes and RDF-star quoted triples.
  • Load knowledge as Turtle or TriG (named graphs preserved); export the graph as Turtle.
  • Package knowledge into Context Cores that carry triples, embeddings, provenance and source documents between deployments.
  • Move whole workspaces between deployments with portable .tgx bundles (tg-export-workspace / tg-import-workspace).

2. Use it: ontology to knowledge

  • OntologyRAG uses your ontology to guide extraction. A similarity-based selector picks the relevant part of the ontology for each chunk, with a bypass mode for small ontologies.
  • Extracted triples are validated against ontology domain and range constraints, including the subclass hierarchy. Triples that break the rules are rejected.
  • rdf:type attributes are stored with graph embeddings, so you can filter vector searches by entity type.
  • Schema-free GraphRAG and hybrid (BM25 + vector) DocumentRAG are also available, both with cross-encoder reranking.

3. Govern it: policy-based query filtering (new in 2.10)

  • Write access policies as SHACL-AF shapes, stored in the urn:graph:policy named graph.
  • Every graph query is evaluated node by node with a tri-state result: Allowed, Filtered or Violation.
  • Policies apply across the REST API, SPARQL and GraphRAG, using a per-request user context.
  • Each evaluation publishes a structured policy.evaluation audit event.
  • With no policies loaded, the system runs in open mode.

4. Steer it: guided graph traversal (new in 2.10)

  • Supply grounding seeds or graph seeds to skip LLM concept extraction.
  • Restrict each hop by type, relationship or named graph, and filter edges by language tag.

5. Prove it: explainability

  • Extraction emits PROV-O lineage from document to page, chunk and edge (urn:graph:source).
  • GraphRAG, DocumentRAG and agent queries record full reasoning traces (urn:graph:retrieval).
  • Inspect them with tg-show-explain-trace and tg-show-extraction-provenance, or query them with SPARQL.

6. Decide fast (new in 2.10)

  • Decision Scoring (Laya, ONNX Runtime, ~35 ms per call): pick an option, score on an ordered scale, or get a yes/no confidence.
  • Cloze Classification: auto-train a DistilBERT classifier from labeled examples and serve it with confidence scores.

Agents and APIs

  • Agent orchestrator with ReAct, Plan-then-Execute and Supervisor patterns.
  • MCP server with tools for graph queries, SPARQL, GraphQL over structured data and embeddings, with bearer-token authentication.
  • SPARQL 1.1 query service with 30+ built-in functions and streaming results.
  • REST, WebSocket, Python SDK, TypeScript libraries and a full tg-* CLI.

Support & Community

Pinned Loading

  1. trustgraph trustgraph Public

    The open source ontology hypergraph toolkit for AI agents.

    Python 3.5k 419

  2. demo-agentic-finance demo-agentic-finance Public

    Shell 13 4

  3. workbench-ui workbench-ui Public archive

    [LEGACY] Workbench UI for TrustGraph. This is the previous product, see https://github.com/trustgraph-ai/trustgraph-ui

    TypeScript 5 6

  4. demo-retail-agentic-mcp demo-retail-agentic-mcp Public

    An agentic structure using knowledge graphs and MCP connections

    Python 3 1

  5. trustgraph-ts-client trustgraph-ts-client Public

    Typescript client library for TrustGraph

    TypeScript 1

  6. trustgraph-client trustgraph-client Public archive

    TrustGraph TS API client - ARCHIVED. See https://github.com/trustgraph-ai/trustgraph-ui

    TypeScript 1 2

Repositories

Showing 10 of 54 repositories
  • trustgraph Public

    The open source ontology hypergraph toolkit for AI agents.

    trustgraph-ai/trustgraph's past year of commit activity
    Python 3,508 Apache-2.0 419 16 (1 issue needs help) 8 Updated Dec 5, 2026
  • demo-erp-service Public

    ERP demo data set and execution orchestration

    trustgraph-ai/demo-erp-service's past year of commit activity
    Makefile 0 0 0 0 Updated Dec 5, 2026
  • duckdb-action-service Public

    TrustGraph remote action service: Uses DuckDB as a store / retrieval mechanism

    trustgraph-ai/duckdb-action-service's past year of commit activity
    Python 0 0 0 0 Updated Dec 5, 2026
  • .github Public

    The Context Operating System for AI

    trustgraph-ai/.github's past year of commit activity
    7 0 0 0 Updated Dec 5, 2026
  • trustgraph-ai/trustgraph-templates's past year of commit activity
    Jsonnet 1 2 0 1 Updated Dec 3, 2026
  • contributor-license-agreement Public

    Contributor license agreement

    trustgraph-ai/contributor-license-agreement's past year of commit activity
    JavaScript 0 0 0 0 Updated Dec 3, 2026
  • trustgraph-ui Public

    TrustGraph's web UI, built with React 19, TypeScript, and Vite - includes context graph UX

    trustgraph-ai/trustgraph-ui's past year of commit activity
    TypeScript 1 Apache-2.0 2 1 0 Updated Dec 3, 2026
  • badges Public

    Badges for READMEs

    trustgraph-ai/badges's past year of commit activity
    JavaScript 1 0 0 0 Updated Nov 30, 2026
  • docs.trustgraph.ai Public

    TrustGraph docs

    trustgraph-ai/docs.trustgraph.ai's past year of commit activity
    HTML 0 1 0 0 Updated Oct 28, 2026
  • simple-config-ui Public

    Simple UI, code largely taken from research-ui

    trustgraph-ai/simple-config-ui's past year of commit activity
    JavaScript 5 Apache-2.0 0 0 0 Updated Oct 7, 2026

People

This organization has no public members. You must be a member to see who’s a part of this organization.