processChunk

fun processChunk(chunk: <Error class: unknown class>, context: SourceAnalysisContext): ChunkPropositionResult

Process a single chunk through the pipeline. Extracts propositions and resolves entities.

If a reviser is configured, propositions are compared against existing ones and classified. Otherwise, propositions are returned without revision.

Note: This method does NOT persist anything — it returns UNSAVED results. The caller must persist the returned entities and propositions via PersistablePropositions.persist within its own transaction scope; nothing is written to any repository otherwise.

Single-chunk semantics are unchanged: this runs extraction then resolution serially on the calling thread and propagates any extraction exception (it never produces a ChunkPropositionResult.Failed — only the batch process does).

Return

Processing result with propositions, entities, and optional revision results

Parameters

chunk

The chunk to process

context

Configuration including schema and entity resolver