SEGB is a semantic logging stack for human-robot interaction. It captures interaction evidence as connected RDF
knowledge so you can inspect not only what happened, but also who was involved, which component or model acted, and
how the full trace fits together. This repository contains the full stack in one place: the reusable
semantic_log_generator package, the backend API, the web UI, the demo simulations, and the documentation.
In practice, a robot or simulator builds semantic logs, the backend receives them and manages the graph behind the scenes, and the UI turns that data into reports, graph views, queries, and audit workflows.
If you want the shortest meaningful run, this is the right path. It starts the centralized stack, loads the UC-02 demo dataset, and opens the UI with real interaction data already prepared for reports and graph exploration.
git clone https://github.com/gsi-upm/semantic_ethical_glass_box.git
cd semantic_ethical_glass_boxcp .env.example .envFor a first run, set only:
VIRTUOSO_PASSWORD=change-this-passwordLeave SECRET_KEY empty so authentication stays disabled during the demo.
docker compose -f docker-compose.yaml pull
docker compose -f docker-compose.yaml up -dpython3 -m venv .segb_env
./.segb_env/bin/python -m pip install -U pip
./.segb_env/bin/python -m pip install -e packages/semantic_log_generator
./.segb_env/bin/python -m pip install pydantic./.segb_env/bin/python -m examples.simulations.run_use_case_02_report_ready_dataset \
--publish-url http://localhost:5000 \
--no-print-ttlThis loader clears the configured graph before inserting the demo dataset.
- Reports:
http://localhost:8080/reports - Graph view:
http://localhost:8080/kg-graph - Backend API docs:
http://localhost:5000/docs
If /reports shows populated cards and /kg-graph shows connected nodes, you have completed the full SEGB loop.
The full documentation is available on Read the Docs: semantic-ethical-black-box-segb.readthedocs.io/en/latest
Use these pages as the main reading path:
- First overview: Home
- Package-first onboarding: Package Overview, Install
semantic_log_generator, API Reference, Usesemantic_log_generator - First full run: Quickstart
- Conceptual model: Core Concepts and Roles
- First integration: Publish Your First Log
- UI walkthrough: Explore the Web UI
- Shared context flow: Shared Context Workflow
- ROS integration: ROS4HRI Integration
- Deployment and operation: Centralized Deployment, Authentication and JWT
- Protocol and data reference: API and Roles, Ontology
If you prefer to browse the docs from the repository, start at docs/index.md.
