semantica-explorer is an interactive browser dashboard for knowledge graph exploration. You give it a graph file, it starts a local server, and opens a browser tab where you can search nodes, find paths, inspect provenance, and run analytics: no code required after launch.
This page covers everything needed to go from zero to a running Explorer. For the full REST API reference and endpoint catalogue, see Explorer Reference.
Prerequisites
The Explorer depends on FastAPI and uvicorn, which are not included in the base install:pip install semantica alone is not sufficient. Running semantica-explorer without the [explorer] extra immediately prints an error and exits with code 1.command not found, activate your virtual environment first. See CLI Setup for PATH help.
Minimal End-to-End Example
The following four steps are everything needed to get Explorer running:http://127.0.0.1:8000. The health endpoint confirms the server is up:
Step 1: Build and Save a ContextGraph
Explorer loads a graph from a JSON file on disk. You need to create that file first.Save to a JSON file
save_to_file writes a JSON object with graph_id, nodes, edges, and links to the specified path.Step 2: Launch Explorer
http://127.0.0.1:8000 shortly after the server starts.
CLI Flags
semantica-explorer accepts exactly four flags:
| Flag | Short | Default | Description |
|---|---|---|---|
--graph | -g | (required) | Path to a ContextGraph JSON file |
--port | -p | 8000 | Port to bind the server |
--host | : | 127.0.0.1 | Host to bind the server |
--no-browser | : | off | Do not open a browser tab automatically |
Examples
Browser Access
Once the server is running:| URL | What you get |
|---|---|
http://127.0.0.1:8000 | Interactive dashboard |
http://127.0.0.1:8000/docs | Swagger UI: every REST endpoint, interactive |
http://127.0.0.1:8000/api/health | Health check: {"status": "healthy"} |
--no-browser and open it yourself.
Running as a Python Module
Ifsemantica-explorer is not on PATH, use the module form:
Common Startup Errors
Error: graph file not found
Error: graph file not found
The path passed to
--graph must point to an existing file. The CLI checks with os.path.isfile() before loading anything.Error: uvicorn is required
Error: uvicorn is required
The
[explorer] extra was not installed alongside the base package:Explorer launches but shows zero nodes
Explorer launches but shows zero nodes
The file loaded but contains no nodes. Verify with Python:A
node_count of 0 means the graph was saved before any nodes were added. Make sure you called add_node() before save_to_file().Connection refused from another machine
Connection refused from another machine
The default
--host 127.0.0.1 only accepts connections from the same machine. To allow remote access:Browser tab does not open
Browser tab does not open
Expected in headless, SSH, and container environments. Pass
--no-browser to suppress the warning, then open http://127.0.0.1:8000 in a browser that has network access to the server.What Explorer Gives You
Once running, Explorer exposes a REST API and dashboard for:- Node and edge search: indexed search across all nodes by ID, type, and content
- Neighborhood expansion: inspect neighbors up to configurable hop depth
- Path finding: BFS shortest path between any two nodes
- Graph analytics: centrality, community detection, connectivity
- Decisions and provenance: query recorded decisions and their causal chains
- Import / export: upload JSON or CSV to extend the graph; download the current state
/docs and in the reference page below.
Explorer Reference
Every REST endpoint, WebSocket events, analytics, and all supported flags.
CLI Setup
All five Semantica executables and when to use each one.
Context Module
Full documentation for ContextGraph: build, query, save, and load.
Quickstart
End-to-end pipeline: ingest → extract → build graph → export.
