Chunk
A Chunk is a text segment derived from a Markdown file, used as a unit for embedding and vector retrieval.
ApplicationsClass
Hierarchyโ
Position of Chunk in the class hierarchy: its ancestors and direct subclasses.
- entity (BFO)
- continuant (BFO)
- generically dependent continuant (BFO)
- Chunk (App)
- generically dependent continuant (BFO)
- continuant (BFO)
Propertiesโ
Declared on this classโ
| Property | Domain โ Range | Details |
|---|---|---|
| chunk file pathdatatype | Domain โ RangeChunk to xsd:string | |
| ||
| chunk indexdatatype | Domain โ RangeChunk to xsd:integer | |
| ||
| collection namedatatype | Domain โ RangeChunk to xsd:string | |
| ||
| contentdatatype | Domain โ RangeChunk to xsd:string | |
| ||
| embedding iddatatype | Domain โ RangeChunk to xsd:string | |
| ||
| is Chunk Ofobject | Domain โ RangeChunk to File | |
| ||
Inherited propertiesโ
From Generically dependent continuant (6)
Declared on generically dependent continuant.
| Property | Domain โ Range | Details |
|---|---|---|
| asset url | Domain โ Rangegenerically dependent continuant to xsd:string | |
| extracted at | Domain โ Rangegenerically dependent continuant to xsd:dateTime | |
| generically depends on | Domain โ Rangegenerically dependent continuant to independent continuant and not spatial region | |
| inheres in aggregate | Domain โ Rangegenerically dependent continuant to object aggregate | |
| is concretized by | Domain โ Rangegenerically dependent continuant to process or specifically dependent continuant | |
| participates in | Domain โ Rangegenerically dependent continuant to process |
From Continuant (6)
Declared on continuant.
| Property | Domain โ Range | Details |
|---|---|---|
| continuant part of | Domain โ Rangecontinuant to continuant | |
| has continuant part | Domain โ Rangecontinuant to continuant | |
| is affected by | Domain โ Rangecontinuant to process | |
| is input of | Domain โ Rangecontinuant to process | |
| is object of | Domain โ Rangecontinuant to process | |
| is output of | Domain โ Rangecontinuant to process |
From Entity (15)
8 of 15 properties declared on entity, where all of them are listed.
| Property | Domain โ Range | Details |
|---|---|---|
| condition described by | Domain โ Rangeentity to Performance Specification | |
| data property | Domain โ Rangeentity to xsd:string | |
| described by | Domain โ Rangeentity to Descriptive Information Content Entity | |
| designated by | Domain โ Rangeentity to Designative Information Content Entity | |
| exists at | Domain โ Rangeentity to temporal region | |
| has backing data source | Domain โ Rangeentity to Data Source | |
| has nebari class | Domain โ Rangeentity to Nebari Class | |
| is measured by | Domain โ Rangeentity to Measurement Information Content Entity |
Used as the range ofโ
Examplesโ
- A paragraph extracted from a Markdown document, stored with an embedding for semantic search.
Turtle
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ex: <https://example.org/> .
ex:chunk1 a <http://ontology.naas.ai/abi/document/Chunk> ; # Chunk
rdfs:label "Example Chunk" ;
<http://ontology.naas.ai/abi/document/file_path> "Example" ; # chunk file path
<http://ontology.naas.ai/abi/document/chunk_index> 1 . # chunk index
SPARQL
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Instances of Chunk, including instances of its subclasses
SELECT ?item ?label WHERE {
?item a/rdfs:subClassOf* <http://ontology.naas.ai/abi/document/Chunk> .
OPTIONAL { ?item rdfs:label ?label }
}
LIMIT 100