# BusEventOntology: generated by generator/ttl_export.py from jupyter-naas/abi 56f86c1be218b046068d8abf683d1ea6cd66763e
# (zen-prod-2026-11-24-1). Do not edit by hand. Source files:
#   libs/naas-abi-core/naas_abi_core/services/bus/ontologies/modules/BusEventOntology.ttl
@prefix abi: <http://ontology.naas.ai/abi/> .
@prefix bus: <http://ontology.naas.ai/abi/bus/> .
@prefix dc1: <http://purl.org/dc/terms/> .
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

bus:BusEventOntology a owl:Ontology ;
    abi:ontologyResource "ontologies/modules/BusEventOntology.ttl" ;
    abi:pythonPackage "naas_abi_core.services.bus" ;
    abi:pythonResource "ontologies/modules/BusEventOntology.py" ;
    dc11:date "2026-05-27"^^xsd:date ;
    dc1:description "Events emitted by the BusService when messages are published, enqueued, or fail to be delivered to the adapter."@en ;
    dc1:license <https://creativecommons.org/licenses/by/4.0/> ;
    dc1:title "Bus Event Ontology"@en ;
    owl:imports abi:EventService .

bus:message a owl:DatatypeProperty ;
    rdfs:label "message"@en ;
    rdfs:domain bus:BusError ;
    rdfs:range xsd:string ;
    skos:definition "String representation of the exception raised by the adapter."@en .

bus:operation a owl:DatatypeProperty ;
    rdfs:label "operation"@en ;
    rdfs:domain bus:BusError ;
    rdfs:range xsd:string ;
    skos:definition "Name of the bus operation that failed (e.g. 'publish', 'enqueue')."@en .

bus:routingKey a owl:DatatypeProperty ;
    rdfs:label "routing key"@en ;
    rdfs:domain bus:BusError,
        bus:BusMessageEnqueued,
        bus:BusMessagePublished ;
    rdfs:range xsd:string ;
    skos:definition "Routing key used for the bus message."@en .

bus:sizeBytes a owl:DatatypeProperty ;
    rdfs:label "size bytes"@en ;
    rdfs:domain bus:BusMessageEnqueued,
        bus:BusMessagePublished ;
    rdfs:range xsd:integer ;
    skos:definition "Size of the bus message payload in bytes."@en .

bus:topic a owl:DatatypeProperty ;
    rdfs:label "topic"@en ;
    rdfs:domain bus:BusError,
        bus:BusMessageEnqueued,
        bus:BusMessagePublished ;
    rdfs:range xsd:string ;
    skos:definition "Bus topic the operation targeted."@en .

bus:BusMessageEnqueued a owl:Class ;
    rdfs:label "BusMessageEnqueued"@en ;
    rdfs:subClassOf abi:LogProcess ;
    skos:definition "An event recorded when a message is successfully enqueued on the bus."@en .

bus:BusMessagePublished a owl:Class ;
    rdfs:label "BusMessagePublished"@en ;
    rdfs:subClassOf abi:LogProcess ;
    skos:definition "An event recorded when a message is successfully published on the bus."@en .

bus:BusError a owl:Class ;
    rdfs:label "BusError"@en ;
    rdfs:subClassOf abi:LogProcess ;
    skos:definition "An event recorded when a bus publish or enqueue operation raises an exception."@en .

