Interface: CreateRdfUploadRequest
@kortexya/reasoninglayer / CreateRdfUploadRequest
Interface: CreateRdfUploadRequest
Section titled “Interface: CreateRdfUploadRequest”Defined in: src/types/ingestion.ts:2541
Request to open a resumable upload of one original RDF file —
POST /api/v1/ingest/rdf/uploads.
Remarks
Section titled “Remarks”The engine reads the RDF format from the file name extension: .nq,
.nt, .ttl/.turtle, .trig, .rdf/.owl/.xml or
.jsonld/.json-ld, each optionally followed by .gz. The wire keys are
snake_case (dataset_scope); the engine refuses an unknown key with 422.
Example
Section titled “Example”const request: CreateRdfUploadRequest = { name: 'catalog.nt.gz', size: file.size };Properties
Section titled “Properties”datasetScope?
Section titled “datasetScope?”
optionaldatasetScope?:string|null
Defined in: src/types/ingestion.ts:2555
A logical dataset that several N-Triples or N-Quads shards share, so that equal blank-node labels in different shards name the same node. Omit it to give the file its own private blank-node scope. The engine refuses a scope for any other format with 400.
name:
string
Defined in: src/types/ingestion.ts:2546
The file name. 1 to 255 bytes, without /, `` or NUL. Its extension
selects the RDF format and the gzip decoding.
size:
number
Defined in: src/types/ingestion.ts:2548
The exact size of the file in bytes: 1 byte to 32 GiB.