97a30ab769f09d4d170cc4f2b1ff39f9d883a364
Visualizador Instanciados
Docker Compose stack for exploring large RDF/OWL graphs stored in AnzoGraph.
What Runs Here
anzograph: SPARQL storebackend: Go API that queries AnzoGraph and serves cached graph snapshotsfrontend: React/Vite app with a WebGL left graph and a right-sidecosmos.glselection graphowl_imports_combiner: one-shot Python service that can mergeowl:importsradial_sugiyama: Rust hierarchy layout pipeline used in two ways:- standalone SVG generator through the
radialCompose profile - optional hierarchy layout engine for the Go backend
- standalone SVG generator through the
Current Flow
- The backend always builds graph snapshots from SPARQL queries against AnzoGraph.
graph_query_id=defaultandgraph_query_id=typesuse the Go layout path.graph_query_id=hierarchycan use either:- the Go layout path
- the Rust radial Sugiyama path when
HIERARCHY_LAYOUT_ENGINE=rust
- When the Rust hierarchy path is enabled, the backend sends the hierarchy graph to Rust over JSON, Rust lays it out, returns node positions + routed edge segments, and also rewrites:
radial_sugiyama/out/layout.svg
That SVG is a debug artifact for the exact Rust layout run used by the backend.
Quick Start
- Put your TTL files under
./data/. - Copy or edit
.envas needed. - Start the stack:
docker compose up --build
Open:
- Frontend:
http://localhost:5173 - Backend health:
http://localhost:8000/api/health
Stop:
docker compose down
Rust Hierarchy Layout
To use Rust for the hierarchy graph mode, set this in the repo root .env:
HIERARCHY_LAYOUT_ENGINE=rust
The backend also reads radial_sugiyama/.env for the Rust layout settings such as:
RADIAL_ROOT_CLASS_IRIRADIAL_OUTPUT_DIRRADIAL_OUTPUT_FILERADIAL_RING_DISTRIBUTION
The debug SVG for backend-driven hierarchy requests is written to:
radial_sugiyama/out/layout.svg
You can still run the standalone Rust SVG pipeline directly with:
docker compose --profile radial up --build radial_sugiyama
Main API
GET /api/healthGET /api/statsGET /api/graphGET /api/graph_queriesGET /api/selection_queriesPOST /api/selection_queryPOST /api/selection_triplesPOST /api/sparql
Repo Layout
backend_go/Go API and SPARQL snapshot logicfrontend/React/Vite UIradial_sugiyama/Rust hierarchy layout and SVG exportpython_services/owl_imports_combiner/import-flattening helperdata/local shared data mounted into containersdocker-compose.ymlservice wiring
Description
Languages
Rust
38.2%
TypeScript
30.8%
Go
29.3%
Python
1.1%
Dockerfile
0.4%
Other
0.1%