Skip to main content

Chunk

A Chunk is a text segment derived from a Markdown file, used as a unit for embedding and vector retrieval.

ApplicationsClass
IRI
http://ontology.naas.ai/abi/document/Chunk
Module
document ยท Applications

Hierarchyโ€‹

Position of Chunk in the class hierarchy: its ancestors and direct subclasses.

Propertiesโ€‹

Declared on this classโ€‹

Properties declared on Chunk
PropertyDomain โ†’ RangeDetails
chunk file pathdatatypeDomain โ†’ RangeChunk to xsd:string
chunk indexdatatypeDomain โ†’ RangeChunk to xsd:integer
collection namedatatypeDomain โ†’ RangeChunk to xsd:string
contentdatatypeDomain โ†’ RangeChunk to xsd:string
embedding iddatatypeDomain โ†’ RangeChunk to xsd:string
is Chunk OfobjectDomain โ†’ RangeChunk to File

Inherited propertiesโ€‹

From Generically dependent continuant (6)

Declared on generically dependent continuant.

Properties inherited from generically dependent continuant
PropertyDomain โ†’ RangeDetails
asset urlDomain โ†’ Rangegenerically dependent continuant to xsd:string
extracted atDomain โ†’ Rangegenerically dependent continuant to xsd:dateTime
generically depends onDomain โ†’ Rangegenerically dependent continuant to independent continuant and not spatial region
inheres in aggregateDomain โ†’ Rangegenerically dependent continuant to object aggregate
is concretized byDomain โ†’ Rangegenerically dependent continuant to process or specifically dependent continuant
participates inDomain โ†’ Rangegenerically dependent continuant to process
From Continuant (6)

Declared on continuant.

Properties inherited from continuant
PropertyDomain โ†’ RangeDetails
continuant part ofDomain โ†’ Rangecontinuant to continuant
has continuant partDomain โ†’ Rangecontinuant to continuant
is affected byDomain โ†’ Rangecontinuant to process
is input ofDomain โ†’ Rangecontinuant to process
is object ofDomain โ†’ Rangecontinuant to process
is output ofDomain โ†’ Rangecontinuant to process
From Entity (15)

8 of 15 properties declared on entity, where all of them are listed.

Properties inherited from entity
PropertyDomain โ†’ RangeDetails
condition described byDomain โ†’ Rangeentity to Performance Specification
data propertyDomain โ†’ Rangeentity to xsd:string
described byDomain โ†’ Rangeentity to Descriptive Information Content Entity
designated byDomain โ†’ Rangeentity to Designative Information Content Entity
exists atDomain โ†’ Rangeentity to temporal region
has backing data sourceDomain โ†’ Rangeentity to Data Source
has nebari classDomain โ†’ Rangeentity to Nebari Class
is measured byDomain โ†’ 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

Sibling classesโ€‹