# document: 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-marketplace/naas_abi_marketplace/domains/operations/modules/document/ontologies/modules/DocumentOntology.ttl
@prefix abi: <http://ontology.naas.ai/abi/> .
@prefix bfo: <http://purl.obolibrary.org/obo/> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix doc: <http://ontology.naas.ai/abi/document/> .
@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#> .

abi:DocumentOntology a owl:Ontology ;
    dc11:contributor "Alice Dupont",
        "Emma Petit",
        "Grace Lambert" ;
    dc11:date "2026-04-07"^^xsd:date ;
    dc:description "Ontology for documents."@en ;
    dc:license <https://creativecommons.org/licenses/by/4.0/> ;
    dc:title "Document Ontology"@en ;
    rdfs:comment "Ontology for documents."@en ;
    owl:imports <http://purl.obolibrary.org/obo/bfo/2020/bfo-core.ttl> .

doc:DocxToMarkdownProcessor a doc:Processor,
        owl:NamedIndividual ;
    rdfs:label "Docx to Markdown Processor"@en ;
    skos:definition "A Docx to Markdown Processor is a processor that converts a Docx file to a Markdown file."@en ;
    skos:example "A processor that converts a Docx file to a Markdown file."@en .

doc:FileIngestionProcessor a doc:Processor,
        owl:NamedIndividual ;
    rdfs:label "File Ingestion Processor"@en ;
    skos:definition "A File Ingestion Processor is a processor that ingests a file."@en ;
    skos:example "A processor that ingests a file."@en .

doc:MarkdownToVectorProcessor a doc:Processor,
        owl:NamedIndividual ;
    rdfs:label "Markdown to Vector Processor"@en ;
    skos:definition "A Markdown to Vector Processor is a processor that chunks a Markdown file and stores embeddings in a vector store."@en ;
    skos:example "A processor that reads a Markdown file, splits it into chunks, and embeds each chunk into a vector collection."@en .

doc:PDFToMarkdownProcessor a doc:Processor,
        owl:NamedIndividual ;
    rdfs:label "PDF to Markdown Processor"@en ;
    skos:definition "A PDF to Markdown Processor is a processor that converts a PDF file to a Markdown file."@en ;
    skos:example "A processor that converts a PDF file to a Markdown file."@en .

doc:PptxToMarkdownProcessor a doc:Processor,
        owl:NamedIndividual ;
    rdfs:label "Pptx to Markdown Processor"@en ;
    skos:definition "A Pptx to Markdown Processor is a processor that converts a Pptx file to a Markdown file."@en ;
    skos:example "A processor that converts a Pptx file to a Markdown file."@en .

doc:accessed_time a owl:DatatypeProperty ;
    rdfs:label "accessed time"@en ;
    rdfs:domain doc:File ;
    rdfs:range xsd:dateTime ;
    skos:definition "The last accessed timestamp of the document."@en ;
    skos:example "The accessed time of the document is '2026-04-07T16:14:13.492697'."@en .

doc:chunk_index a owl:DatatypeProperty ;
    rdfs:label "chunk index"@en ;
    rdfs:domain doc:Chunk ;
    rdfs:range xsd:integer ;
    skos:definition "The zero-based position of the chunk within its source document."@en ;
    skos:example "The first chunk of a document has chunk_index 0."@en .

doc:collection_name a owl:DatatypeProperty ;
    rdfs:label "collection name"@en ;
    rdfs:domain doc:Chunk ;
    rdfs:range xsd:string ;
    skos:definition "The name of the vector store collection in which this chunk's embedding is stored."@en ;
    skos:example "The collection_name is 'documents'."@en .

doc:content a owl:DatatypeProperty ;
    rdfs:label "content"@en ;
    rdfs:domain doc:Chunk ;
    rdfs:range xsd:string ;
    skos:definition "The text content of a chunk."@en ;
    skos:example "The content of the chunk is 'This section describes the installation procedure.'."@en .

doc:created_time a owl:DatatypeProperty ;
    rdfs:label "created time"@en ;
    rdfs:domain doc:File ;
    rdfs:range xsd:dateTime ;
    skos:definition "The created timestamp of the document."@en ;
    skos:example "The created time of the document is '2026-04-07T16:14:13.411024'."@en .

doc:derivedFrom a owl:ObjectProperty ;
    rdfs:domain doc:File ;
    rdfs:range doc:File ;
    skos:definition "A file is derived from another file."@en ;
    skos:example "The file 'employment_contract.pdf' is derived from the file 'employment_contract_template.pdf'."@en .

doc:embedding_id a owl:DatatypeProperty ;
    rdfs:label "embedding id"@en ;
    rdfs:domain doc:Chunk ;
    rdfs:range xsd:string ;
    skos:definition "The identifier of the vector embedding stored in the vector store."@en ;
    skos:example "The embedding_id of the chunk is 'abc123'."@en .

doc:encoding a owl:DatatypeProperty ;
    rdfs:label "encoding"@en ;
    rdfs:domain doc:File ;
    rdfs:range xsd:string ;
    skos:definition "The detected character encoding of the document when applicable."@en ;
    skos:example "The encoding of the document is 'utf-8'."@en .

doc:file_path a owl:DatatypeProperty ;
    rdfs:label "chunk file path"@en ;
    rdfs:domain doc:Chunk ;
    rdfs:range xsd:string ;
    skos:definition "The file path of the source document from which this chunk was derived."@en ;
    skos:example "The file_path of the chunk is 'documents/report.md'."@en .

doc:file_size_bytes a owl:DatatypeProperty ;
    rdfs:label "file size bytes"@en ;
    rdfs:domain doc:File ;
    rdfs:range xsd:integer ;
    skos:definition "The size of the document in bytes."@en ;
    skos:example "The size of the document is '3804'."@en .

doc:hasChunk a owl:ObjectProperty ;
    rdfs:domain doc:File ;
    rdfs:range doc:Chunk ;
    owl:inverseOf doc:isChunkOf ;
    skos:definition "A file has one or more chunks."@en ;
    skos:example "The file 'report.md' has chunks produced by the MarkdownToVectorProcessor."@en .

doc:mime_type a owl:DatatypeProperty ;
    rdfs:label "mime type"@en ;
    rdfs:domain doc:File ;
    rdfs:range xsd:string ;
    skos:definition "The MIME type of the document."@en ;
    skos:example "The MIME type of the document is 'application/pdf'."@en .

doc:modified_time a owl:DatatypeProperty ;
    rdfs:label "modified time"@en ;
    rdfs:domain doc:File ;
    rdfs:range xsd:dateTime ;
    skos:definition "The last modified timestamp of the document."@en ;
    skos:example "The modified time of the document is '2026-04-07T16:14:13.411024'."@en .

doc:name a owl:DatatypeProperty ;
    rdfs:label "file name"@en ;
    rdfs:domain doc:File ;
    rdfs:range xsd:string ;
    skos:definition "The name of the document."@en ;
    skos:example "The name of the document is 'document.pdf'."@en .

doc:path a owl:DatatypeProperty ;
    rdfs:label "file path"@en ;
    rdfs:domain doc:File ;
    rdfs:range xsd:string ;
    skos:definition "The path of the document."@en ;
    skos:example "The path of the document is '/documents/document.pdf'."@en .

doc:permissions a owl:DatatypeProperty ;
    rdfs:label "permissions"@en ;
    rdfs:domain doc:File ;
    rdfs:range xsd:string ;
    skos:definition "The file permissions of the document in Unix-like notation."@en ;
    skos:example "The permissions of the document are '-rw-r--r--'."@en .

doc:processedBy a owl:ObjectProperty ;
    rdfs:domain doc:File ;
    rdfs:range doc:Processor ;
    skos:definition "A file is processed by a processor."@en ;
    skos:example "The file 'employment_contract.pdf' is processed by the processor 'PDF to Markdown Processor'."@en .

doc:sha256 a owl:DatatypeProperty ;
    rdfs:label "sha256"@en ;
    rdfs:domain doc:Document,
        doc:File ;
    rdfs:range xsd:string ;
    skos:definition "The SHA-256 checksum (hex) of the document content."@en ;
    skos:example "The sha256 checksum of the document is '9dd332e7d9bb894763ffe97bc4f6d88d79fc44ed4ec317359dec8fc7fb755c6f'."@en .

doc:isChunkOf a owl:ObjectProperty ;
    rdfs:domain doc:Chunk ;
    rdfs:range doc:File ;
    skos:definition "A chunk is derived from a source file."@en ;
    skos:example "A text segment is a chunk of the file 'report.md'."@en .

doc:isEmbodiedIn a owl:ObjectProperty ;
    rdfs:domain doc:Document ;
    rdfs:range doc:File ;
    owl:inverseOf doc:embodies ;
    skos:definition "A document is embodied in a file."@en ;
    skos:example "The document 'Employment Contract' is embodied in the file 'employment_contract.pdf'."@en .

doc:embodies a owl:ObjectProperty ;
    rdfs:label "embodies" ;
    rdfs:domain doc:File ;
    rdfs:range doc:Document ;
    skos:definition "A file embodies a document."@en ;
    skos:example "The file 'employment_contract.pdf' embodies the document 'Employment Contract'."@en .

doc:Document a owl:Class ;
    rdfs:label "Document"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty doc:isEmbodiedIn ;
            owl:someValuesFrom doc:File ],
        [ a owl:Restriction ;
            owl:allValuesFrom doc:File ;
            owl:onProperty doc:isEmbodiedIn ],
        bfo:BFO_0000031 ;
    skos:definition "A Document is a semantic, meaning-bearing artifact intended for interpretation, such as a textual record, form, certificate, or digitally encoded contract."@en ;
    skos:example "An employment contract in PDF format, a university diploma as a scanned image, or a digitally-signed XML invoice."@en .

doc:Processor a owl:Class ;
    rdfs:label "Processor"@en ;
    rdfs:subClassOf bfo:BFO_0000031 ;
    skos:definition "A Processor is a system that processes documents."@en ;
    skos:example "A processor that converts a PDF file to a Markdown file."@en .

doc:Chunk a owl:Class ;
    rdfs:label "Chunk"@en ;
    rdfs:subClassOf bfo:BFO_0000031 ;
    skos:definition "A Chunk is a text segment derived from a Markdown file, used as a unit for embedding and vector retrieval."@en ;
    skos:example "A paragraph extracted from a Markdown document, stored with an embedding for semantic search."@en .

doc:File a owl:Class ;
    rdfs:label "File"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty doc:embodies ;
            owl:someValuesFrom doc:Document ],
        [ a owl:Restriction ;
            owl:allValuesFrom doc:Document ;
            owl:onProperty doc:embodies ],
        bfo:BFO_0000031 ;
    skos:definition "A File is a physical or digital file that contains information."@en ;
    skos:example "A PDF file, a Word document, or a spreadsheet."@en .

