# CacheEventOntology: 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/cache/ontologies/modules/CacheEventOntology.ttl
@prefix abi: <http://ontology.naas.ai/abi/> .
@prefix cache: <http://ontology.naas.ai/abi/cache/> .
@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#> .

cache:CacheEventOntology a owl:Ontology ;
    abi:ontologyResource "ontologies/modules/CacheEventOntology.ttl" ;
    abi:pythonPackage "naas_abi_core.services.cache" ;
    abi:pythonResource "ontologies/modules/CacheEventOntology.py" ;
    dc11:date "2026-05-27"^^xsd:date ;
    dc1:description "Events emitted by the CacheService when entries are written, removed, or fail to mutate."@en ;
    dc1:license <https://creativecommons.org/licenses/by/4.0/> ;
    dc1:title "Cache Event Ontology"@en ;
    owl:imports abi:EventService .

cache:dataType a owl:DatatypeProperty ;
    rdfs:label "data type"@en ;
    rdfs:domain cache:CacheSet ;
    rdfs:range xsd:string ;
    skos:definition "CachedData.data_type value of the written entry (text/json/binary/pickle)."@en .

cache:key a owl:DatatypeProperty ;
    rdfs:label "key"@en ;
    rdfs:domain cache:CacheDeleted,
        cache:CacheError,
        cache:CacheSet ;
    rdfs:range xsd:string ;
    skos:definition "Cache key the operation targeted."@en .

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

cache:operation a owl:DatatypeProperty ;
    rdfs:label "operation"@en ;
    rdfs:domain cache:CacheError ;
    rdfs:range xsd:string ;
    skos:definition "Name of the cache operation that failed (e.g. 'set', 'delete')."@en .

cache:sizeBytes a owl:DatatypeProperty ;
    rdfs:label "size bytes"@en ;
    rdfs:domain cache:CacheSet ;
    rdfs:range xsd:integer ;
    skos:definition "Size of the serialized payload that was written, in bytes."@en .

cache:tier a owl:DatatypeProperty ;
    rdfs:label "tier"@en ;
    rdfs:domain cache:CacheDeleted,
        cache:CacheError,
        cache:CacheSet ;
    rdfs:range xsd:string ;
    skos:definition "Name of the tier the operation targeted (e.g. 'hot', 'cold')."@en .

cache:CacheDeleted a owl:Class ;
    rdfs:label "CacheDeleted"@en ;
    rdfs:subClassOf abi:LogProcess ;
    skos:definition "An event recorded when a cache entry is successfully removed."@en .

cache:CacheError a owl:Class ;
    rdfs:label "CacheError"@en ;
    rdfs:subClassOf abi:LogProcess ;
    skos:definition "An event recorded when a cache mutation (set/delete) raises an exception."@en .

cache:CacheSet a owl:Class ;
    rdfs:label "CacheSet"@en ;
    rdfs:subClassOf abi:LogProcess ;
    skos:definition "An event recorded when a cache entry is successfully written."@en .

