semantica.explorer is a browser-based dashboard for exploring knowledge graphs, managing ontologies, and running visual analyses:
- Indexed search: 0.004ms on 118k nodes: no full scans
- Ontology Hub: visual editor, SHACL Studio, alignment authoring, and health dashboard
- Bidirectional path finding between any two nodes
- WebSocket progress streaming for live pipeline monitoring
- No code required after launch: full graph exploration in the browser
Getting Started
Install, export your graph to JSON, and launch:http://127.0.0.1:8000. The interactive API docs are at /docs.
Launch
1
Save your graph and launch Explorer
2
Custom host and port
3
Import new data without restarting
4
Use via Python module
CLI Reference
Thesemantica-explorer command accepts exactly four flags:
There are no flags for authentication, CORS, or log level in the CLI. CORS allowed origins are configured via the
EXPLORER_CORS_ORIGINS environment variable (comma-separated, default: http://localhost:5173,http://127.0.0.1:5173).What You Get
- Graph Explorer — Interactive node/edge search, path finding, and neighborhood expansion. Indexed search at 0.004ms on 118k-node graphs.
- Ontology Hub — SKOS vocabulary management, SHACL shape generation and validation, ontology alignment, health dashboard, and versioning.
- Analytics — Degree centrality, community detection, connectivity analysis, graph validation, and distance matrices.
- REST API — All features available as a REST API: fully documented at
/docs. - WebSocket Updates — Real-time graph mutation events streamed over WebSocket at
/ws/graph-updates. - CLI Launcher —
semantica-explorer --graph my_graph.jsonfor instant local startup.
Features
- Graph Explorer
- Ontology Hub
- Analytics
- Decisions & Provenance
Core dashboard for navigating knowledge graphs:
- Indexed search: POST to
/api/graph/searchwith a query; 0.004ms on 118k-node graphs - Path finding: BFS or Dijkstra between any two nodes via
GET /api/graph/path?source=&target= - Neighbor expansion:
GET /api/graph/node/{id}/neighbors?depth=2 - Filter by entity type:
GET /api/graph/nodes?type=Person - Semantic neighborhood:
GET /api/graph/semantic-neighborhood?node_id=&top_k=20 - Distance matrix:
POST /api/graph/distance-matrix
API Endpoints
Full interactive docs athttp://localhost:8000/docs. All endpoints accept and return JSON.
Graph endpoints
Graph endpoints
Analytics, Enrich & Temporal
Analytics, Enrich & Temporal
Analytics:
Enrich:
Temporal:
Ontology, Vocabulary & SPARQL
Ontology, Vocabulary & SPARQL
Ontology:
Vocabulary:
SKOS hierarchy writes reject cycles in both
skos:broader and
skos:narrower relationships. Vocabulary imports validate the complete
batch before adding nodes, while direct graph/session edge writes apply
the same invariant at the graph storage boundary.SPARQL:Decisions, Provenance, Annotations & Export
Decisions, Provenance, Annotations & Export
Decisions:
Provenance:
Annotations:
Export / Import:
Health & Info
Health & Info
WebSocket Graph Updates
Real-time graph mutation events are streamed over WebSocket atws://localhost:8000/ws/graph-updates:
connection_ack, pong, and graph_mutation (fired when nodes or edges are added/updated/removed via import or enrichment). Send the text "ping" to receive a pong response.
Performance
The node search index is built on startup. For graphs > 500k nodes, allow extra startup time before connecting.
Distance matrix is capped at 50 node pairs per request. Semantic distance requires nodes to have embeddings stored in their properties.
Troubleshooting
Browser tab does not open The browser is launched 1.5 seconds after the server starts. Use--no-browser and open http://127.0.0.1:8000 manually if the auto-open fails.
Error: graph file not found
The --graph path must be an existing file. Check the path and ensure the file exists before launching.
Error: uvicorn is required
Install the explorer extras: pip install "semantica[explorer]".
Connection refused on API calls
The server only binds to 127.0.0.1 by default. To access Explorer from another machine or container, launch with --host 0.0.0.0.
Empty graph after import
The import endpoint (/api/import) only parses .json and .csv files. Other formats return HTTP 422. JSON files must contain a top-level entities/nodes array or relationships/edges array.
PathFinder not available error from /api/graph/path
Path finding requires the semantica[kg] extras. Install with pip install "semantica[all]".
Semantic neighborhood returns 503
Semantic neighborhood requires node embeddings stored in node properties (keys embedding, vector, or node2vec_embedding). Graphs without embeddings return 503.
Session state lost after restart
Session state is in-memory only. Use POST /api/export to save a JSON snapshot before shutting down.
- Context — Build and save the ContextGraph that Explorer loads.
- Ontology — Programmatic ontology management and SHACL generation.
- Visualization — Programmatic graph rendering without the Explorer server.
- Export — Export to RDF, Parquet, and other formats without launching a server.
