Skip to content

Interface: RdfUpload

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RdfUpload

Defined in: src/types/ingestion.ts:2971

One original RDF artifact: its upload extent and its durable ingestion checkpoint.

Mapped from the snake_case wire Artifact. status is the engine’s own string, copied verbatim: uploading until every byte is stored, then queued, processing, paused, complete or failed as the import runs. A read answers interrupted for an import that reads queued or processing but has no live worker; IngestionClient.completeRdfUpload resumes it from the last committed batch.

const upload = await client.ingestion.getRdfUpload(id);
console.log(upload.status, `${upload.uploadedBytes}/${upload.size}`);

batchesCommitted: number

Defined in: src/types/ingestion.ts:3017

The batches committed so far.


chunkBytes: number

Defined in: src/types/ingestion.ts:2984

The chunk size the engine requires: every chunk except the last has exactly this many bytes, and starts at a multiple of it.


chunkSha256: string[]

Defined in: src/types/ingestion.ts:2990

The SHA-256 of each stored chunk, lowercase hex, in offset order. The listing (IngestionClient.listRdfUploads) answers it empty; read one artifact for the digests.


optional datasetScope?: string | null

Defined in: src/types/ingestion.ts:3008

The shared N-Triples/N-Quads dataset scope, when the upload declared one.


optional documentId?: string | null

Defined in: src/types/ingestion.ts:3006

The document of the import within its session, once it has started.


optional engineBinarySha256?: string | null

Defined in: src/types/ingestion.ts:2994

The identity of the engine executable that produced the resumable checkpoint.


optional error?: string | null

Defined in: src/types/ingestion.ts:3030

Why the import failed, when it did.


format: RdfFormatDto

Defined in: src/types/ingestion.ts:2996

The RDF format the engine read from the file name.


gzip: boolean

Defined in: src/types/ingestion.ts:2998

Whether the engine decodes the file as gzip.


id: string

Defined in: src/types/ingestion.ts:2973

The artifact id.


name: string

Defined in: src/types/ingestion.ts:2975

The file name the upload was opened with.


ownerId: string

Defined in: src/types/ingestion.ts:3002

The principal that opened the upload; only it can send chunks, complete or pause.


prefixBindings: Record<string, string>

Defined in: src/types/ingestion.ts:3013

The namespace prefixes the import registered, persisted with the checkpoint. Keys are prefixes and are copied verbatim.


quadsCommitted: number

Defined in: src/types/ingestion.ts:3015

The quads committed so far.


resourcesCreated: number

Defined in: src/types/ingestion.ts:3026

The resources the import created so far.


routedToVocabularyImport: number

Defined in: src/types/ingestion.ts:3024

Statements of the committed batches that the governed vocabulary import owns (POST /api/v1/vocabulary/imports): the SKOS, SKOS-XL and ISO 25964 typing and relations, and the SKOS labels and notes of SKOS concepts. The upload does not ingest them. 0 for a checkpoint written before the routing existed.


optional sessionId?: string | null

Defined in: src/types/ingestion.ts:3004

The ingestion session of the import, once it has started.


optional sha256?: string | null

Defined in: src/types/ingestion.ts:2992

The SHA-256 of the whole file, once the engine has computed it.


size: number

Defined in: src/types/ingestion.ts:2977

The declared size of the file in bytes.


sortsCreated: number

Defined in: src/types/ingestion.ts:3028

The sorts the import created so far.


status: string

Defined in: src/types/ingestion.ts:3000

The engine’s status string (see the remarks).


updatedAt: string

Defined in: src/types/ingestion.ts:3032

When the engine last saved this record (RFC 3339).


uploadedBytes: number

Defined in: src/types/ingestion.ts:2979

The bytes the engine has stored durably.