Skip to content

Interface: TranslateRdfResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / TranslateRdfResponse

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

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:1578

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:1583

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:1588

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


routedToVocabularyImport: number

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

Statements the translation left out because the governed vocabulary import owns them (POST /api/v1/vocabulary/imports): the SKOS, SKOS-XL and ISO 25964 typing and relations, and the SKOS labels and notes of SKOS concepts. A skos:Concept is never a sort and skos:broader is never a sort parent. A SKOS label or note of an OWL or RDFS class still annotates its sort. 0 when the document held none, or when an older engine omits the count.


sortPreviews: SortPreview[]

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

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:1605

Distinct sort names referenced by the produced terms.


termCount: number

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

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:1612

The produced terms, rendered as text.