The context development platform. Store, enrich, and retrieve structured knowledge with graph-native infrastructure, semantic retrieval, and portable context cores. https://trustgraph.ai
Find a file
elpresidank 9b2f675702 Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa
git-subtree-dir: ai-context/context-graph-demo
git-subtree-split: 338a8ffadb1439013071ae922e55ed2421f17025
2026-04-05 21:08:35 -05:00
public Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
src Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
.gitignore Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
eslint.config.js Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
index.html Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
LICENSE Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
package-lock.json Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
package.json Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
README.md Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
retail.json Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
retail.ttl Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
trustgraph-retail-demo.jsx Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
tsconfig.json Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00
vite.config.js Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa 2026-04-05 21:08:35 -05:00

Context Graph Demo

A React application that demonstrates TrustGraph context graph capabilities The demo provides an interactive graph visualisation, natural-language querying, explainability views, and ontology browsing — all powered by a TrustGraph backend. Load your own data to explore.

See it in action: Context Graph demo video

Features

  • Graph view — interactive force-directed graph of entities and relationships, with domain-based filtering
  • Query view — natural-language questions answered by the TrustGraph knowledge graph
  • Explain view — step-by-step explainability traces showing how answers were derived
  • Data view — browse the raw documents loaded into TrustGraph
  • Ontology view — explore the ontology (types and predicates) extracted from the dataset

Prerequisites

  • Node.js (v18+)
  • A running TrustGraph instance (tested with TrustGraph 2.1)

Preparing TrustGraph

This demo requires TrustGraph to be running in ontology mode:

  1. Launch a flow using the ontology flow blueprint.
  2. Load an OWL ontology into the workbench.
  3. Process your data using the new flow.

Getting started

Install dependencies:

npm install

Start the development server:

npm run dev

The Vite dev server proxies /api/socket (WebSocket) and other API routes to the TrustGraph API gateway at localhost:8088. If your TrustGraph instance is running on a different host or port, edit the proxy targets in vite.config.js.

Build for production:

npm run build

License

Copyright 2026 Knownext Inc. and Knownext Limited. Licensed under the Apache License 2.0 — see LICENSE for details.