Skip to content

Interface: TranslateRdfResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / TranslateRdfResponse

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

Result of an RDF translation: the terms the RDF would become, with nothing written to the knowledge base.

Returned by POST /api/v1/ingest/rdf/translate. Wire format is snake_case (term_count); prefixes is a plain prefix → namespace IRI map whose keys are data and therefore left untouched by normalization. Pass prefixes as BulkCreateSortsRequest.prefixes or MaterializeScenarioRequest.prefixes to write the previewed names.

prefixes: Record<string, string>

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

The bindings the names are compacted through (prefix → namespace IRI). A document prefix that conflicts with a tenant binding is renamed, never rebound. Pass it as BulkCreateSortsRequest.prefixes or MaterializeScenarioRequest.prefixes.


repairedIriCount: number

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

Number of distinct IRIs that repairIris rewrote. 0 when the flag was off or the content was already valid.


repairedIris: IriRepair[]

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

The rewrites, capped by the engine; repairedIriCount carries the true total. Empty when nothing was repaired.


sortPreviews: SortPreview[]

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

The concepts the document’s TBox would create. sorts names only what the produced instances are typed as; this is the schema itself. Empty unless parseOntology was set.


sorts: string[]

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

Distinct sort names referenced by the produced terms.


termCount: number

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

Number of terms produced (equals terms.length). The objects of skipped schema declarations produce no stub terms.


terms: TranslatedRdfTermDto[]

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

The produced terms, rendered as text.