Ontos
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

RequirementVersionNotes
Docker Desktop / Engine4.x / 24+Required for all services
Docker Compose v2Bundledmake dev uses compose
GitAnyTo clone the repository
makeGNU MakeAll 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 ontos

Step 2 β€” Configure Environment Variables

Copy the example env file. All defaults work out-of-the-box except ANTHROPIC_API_KEY.

bash
cp .env.example .env

Edit .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 dev

Expected 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 seed
text
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:

UsernamePasswordRoleAccess
mayamayaanalystPolicy-filtered read. Suppliers with risk score > 80 are hidden.
chenchenstewardFull 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 down

Kubernetes 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_KEY

Next 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?