Ontology¶
What This Page Is For¶
This page is the quick reference for the SEGB ontology and the prefixes you will see in Turtle exports, scripts, and UI queries.
Canonical SEGB Ontology Reference¶
- Preferred prefix:
segb - Namespace IRI:
http://www.gsi.upm.es/ontologies/segb/ns# - Human-readable ontology documentation: Semantic Ethical Glass Box (SEGB) Ontology
- OWL serialization: [ontology.owl] (https://www.gsi.upm.es/ontologies/segb/ns/doc/ontology.owl)
Prefixes Commonly Used In SEGB Logs¶
The semantic_log_generator package binds a default set of prefixes. These are the ones you will see most often:
| Prefix | Namespace IRI |
|---|---|
segb |
http://www.gsi.upm.es/ontologies/segb/ns# |
prov |
http://www.w3.org/ns/prov# |
oro |
http://kb.openrobots.org# |
mls |
http://www.w3.org/ns/mls# |
onyx |
http://www.gsi.upm.es/ontologies/onyx/ns# |
emoml |
http://www.gsi.upm.es/ontologies/onyx/vocabularies/emotionml/ns# |
sosa |
http://www.w3.org/ns/sosa/ |
schema |
http://schema.org/ |
oa |
http://www.w3.org/ns/oa# |
foaf |
http://xmlns.com/foaf/0.1/ |
rdf |
http://www.w3.org/1999/02/22-rdf-syntax-ns# |
rdfs |
http://www.w3.org/2000/01/rdf-schema# |
owl |
http://www.w3.org/2002/07/owl# |
xsd |
http://www.w3.org/2001/XMLSchema# |
The Main Kinds Of Things You Will See¶
You do not need to memorize the whole ontology to work effectively. In practice, most first integrations revolve around these kinds of resources:
- robots
- humans
- logged activities
- messages
- ML models and evaluation artifacts
- emotion analysis results
- robot state samples
- shared events or shared contexts
Common Modeling Patterns¶
These patterns are the ones you will notice most often in SEGB data.
Activity-Centered Logging¶
SEGB often models an interaction around an activity:
- an activity is performed by a robot
- a message or result is generated by that activity
- timestamps describe when the activity happened
Provenance¶
SEGB relies heavily on provenance-style links so that you can answer questions like:
- what produced this message?
- which model was used?
- what input led to this output?
A Tiny Example¶
This is not a full production example, just a small reading aid:
@prefix segb: <http://www.gsi.upm.es/ontologies/segb/ns#> .
@prefix schema: <http://schema.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
<https://example.org/activity/listen_1>
a segb:LoggedActivity ;
prov:startedAtTime "2026-03-08T12:00:00Z" .
<https://example.org/message/msg_1>
a schema:Message ;
schema:text "Hello ARI" ;
prov:wasGeneratedBy <https://example.org/activity/listen_1> .
Even in this tiny snippet you can already read the structure:
- there is an activity
- there is a message
- the message was generated by that activity