git-subtree-dir: ai-context/trustgraph-templates git-subtree-split: 338a8ffadb1439013071ae922e55ed2421f17025 |
||
|---|---|---|
| public | ||
| src | ||
| .gitignore | ||
| eslint.config.js | ||
| index.html | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| retail.json | ||
| retail.ttl | ||
| trustgraph-retail-demo.jsx | ||
| tsconfig.json | ||
| vite.config.js | ||
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:
- Launch a flow using the
ontologyflow blueprint. - Load an OWL ontology into the workbench.
- 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.