Last updated on July 14, 2026
Installation
Get the full Ontos stack running locally in under 5 minutes using Docker Compose.
π‘
Recommended: Docker Compose. No JVM or Python runtime needed β everything runs in containers. Requires Docker Desktop 4.x or Docker Engine 24+.
Prerequisites
| Requirement | Version | Notes |
|---|---|---|
| Docker Desktop / Engine | 4.x / 24+ | Required for all services |
| Docker Compose v2 | Bundled | make dev uses compose |
| Git | Any | To clone the repository |
| make | GNU Make | All commands use the Makefile |
| Anthropic API key | β | NLβSPARQL + AI mapping features |
| Java 21+ (optional) | 21+ | Only for building from source |
| Node.js 20+ / pnpm (optional) | 20+ | Only for web app from source |
Step 1 β Clone the Repository
bash
git clone https://github.com/vinoth4v/ontos.git
cd ontosStep 2 β Configure Environment Variables
Copy the example env file. All defaults work out-of-the-box except ANTHROPIC_API_KEY.
bash
cp .env.example .envEdit .env and set your Anthropic API key:
.env
# Required
ANTHROPIC_API_KEY=sk-ant-...
# Optional β change the Claude model
ONTOS_LLM_MODEL=claude-sonnet-4-6
# These match docker-compose defaults (no changes needed locally)
FUSEKI_URL=http://localhost:3030
KEYCLOAK_URL=http://localhost:8080
GATEWAY_URL=http://localhost:8082β οΈ
Never commit
.env β it is already in .gitignore. Only .env.example is committed (no secrets).Step 3 β Start the Full Stack
make dev pulls all Docker images and starts all eight services. First run: ~2 minutes. Subsequent starts: ~20 seconds.
bash
make devExpected output:
text
β fuseki http://localhost:3030 (TDB2 dataset /ds)
β postgres localhost:5432 (platform DB)
β opensearch http://localhost:9200 (search index)
β keycloak http://localhost:8080 (realm: ontos)
β kafka localhost:9092 (KRaft)
β gateway http://localhost:8082 (JWT + routing)
β graph-engine http://localhost:8081 (SPARQL + policy)
β ai-svc http://localhost:8000 (MCP + NLβSPARQL)
Stack ready.Step 4 β Load Demo Data
Loads a supply-chain ontology plus 25+ suppliers, 10 products, and 30+ components into named graphs.
bash
make seedtext
Loading ontology.ttl -> urn:ontos:ontology
Loading data.ttl -> urn:ontos:data
Seed complete (25+ suppliers, 10 products, 30+ components).
violations.ttl intentionally skipped.Step 5 β Open the Web App
Open http://localhost:5173. Two demo users are pre-configured:
| Username | Password | Role | Access |
|---|---|---|---|
maya | maya | analyst | Policy-filtered read. Suppliers with risk score > 80 are hidden. |
chen | chen | steward | Full read + approve changes + publish ontology versions. |
Verify the Installation
bash
# Graph store ping
curl -f http://localhost:3030/$/ping
# OpenSearch health
curl -f http://localhost:9200/_cluster/health | jq .status
# Keycloak OIDC discovery
curl -f http://localhost:8080/realms/ontos/.well-known/openid-configuration | jq .issuer
# Gateway (expects 401 without token β correct)
curl -s -o /dev/null -w "%{http_code}" http://localhost:8082/api/graph/search?q=test
# AI service MCP tools
curl http://localhost:8000/mcp/tools | jq '[.[].name]'
# ["search_entities","get_entity","run_sparql","describe_ontology"]Stopping the Stack
bash
make downKubernetes Deployment (Helm)
Use the Helm chart at deploy/helm/ontos/ for kind or EKS. See the Configuration Guide for values details.
bash
kind create cluster
kind load docker-image ontos/gateway:local ontos/graph-engine:local ontos/ai-svc:local
helm dependency build deploy/helm/ontos
helm install ontos deploy/helm/ontos \
-f deploy/helm/ontos/values-local.yaml \
--set aiSvc.anthropicApiKey=$ANTHROPIC_API_KEYNext Steps
- Configuration β env vars, Keycloak realm, Helm values
- Admin Guide β manage users, publish ontologies, approve data
- User Guide β search, NL queries, graph explorer
Was this page helpful?