# EmailEventOntology: 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/email/ontologies/modules/EmailEventOntology.ttl
@prefix abi: <http://ontology.naas.ai/abi/> .
@prefix dc1: <http://purl.org/dc/terms/> .
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix email: <http://ontology.naas.ai/abi/email/> .
@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#> .

email:EmailEventOntology a owl:Ontology ;
    abi:ontologyResource "ontologies/modules/EmailEventOntology.ttl" ;
    abi:pythonPackage "naas_abi_core.services.email" ;
    abi:pythonResource "ontologies/modules/EmailEventOntology.py" ;
    dc11:date "2026-05-27"^^xsd:date ;
    dc1:description "Events emitted by the EmailService when messages are sent or fail to send."@en ;
    dc1:license <https://creativecommons.org/licenses/by/4.0/> ;
    dc1:title "Email Event Ontology"@en ;
    owl:imports abi:EventService .

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

email:sender a owl:DatatypeProperty ;
    rdfs:label "sender"@en ;
    rdfs:domain email:EmailSent ;
    rdfs:range xsd:string ;
    skos:definition "Sender address used to dispatch the message (the send() from_email)."@en .

email:subject a owl:DatatypeProperty ;
    rdfs:label "subject"@en ;
    rdfs:domain email:EmailError,
        email:EmailSent ;
    rdfs:range xsd:string ;
    skos:definition "Subject line of the message."@en .

email:to a owl:DatatypeProperty ;
    rdfs:label "to"@en ;
    rdfs:domain email:EmailError,
        email:EmailSent ;
    rdfs:range xsd:string ;
    skos:definition "Recipient address the message was directed at."@en .

email:EmailError a owl:Class ;
    rdfs:label "EmailError"@en ;
    rdfs:subClassOf abi:LogProcess ;
    skos:definition "An event recorded when sending an email raises an exception."@en .

email:EmailSent a owl:Class ;
    rdfs:label "EmailSent"@en ;
    rdfs:subClassOf abi:LogProcess ;
    skos:definition "An event recorded when an email is successfully sent."@en .

