mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 17:39:39 +02:00
Squashed 'ai-context/context-graph-demo/' content from commit 338a8ffa
git-subtree-dir: ai-context/context-graph-demo git-subtree-split: 338a8ffadb1439013071ae922e55ed2421f17025
This commit is contained in:
commit
9b2f675702
54 changed files with 10078 additions and 0 deletions
67
README.md
Normal file
67
README.md
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
|
||||
# Context Graph Demo
|
||||
|
||||
A React application that demonstrates
|
||||
[TrustGraph](https://trustgraph.ai/) 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](https://www.youtube.com/watch?v=sWc7mkhITIo)
|
||||
|
||||
## 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](https://trustgraph.ai/) 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:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
Start the development server:
|
||||
|
||||
```bash
|
||||
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:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Copyright 2026 Knownext Inc. and Knownext Limited.
|
||||
Licensed under the Apache License 2.0 — see [LICENSE](LICENSE) for
|
||||
details.
|
||||
Loading…
Add table
Add a link
Reference in a new issue