Skip to content

Interface: TranslateRdfRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / TranslateRdfRequest

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

Request to translate RDF into the engine’s term representation without writing anything to the knowledge base.

Sent to POST /api/v1/ingest/rdf/translate — the read-only mirror of POST /api/v1/sparql/translate. Runs the exact conversion the ingest pipeline runs and discards the result: no term, sort, or @prefix is persisted. Wire format is snake_case (keep_declarations, parse_ontology); format is an untagged snake_case string (e.g. "turtle").

const request: TranslateRdfRequest = {
content: '@prefix ex: <http://example.org/> . ex:alice a ex:Person .',
format: 'turtle',
parseOntology: true,
};

content: string

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

RDF content in Turtle, N-Triples, RDF/XML, JSON-LD, TriG, or N-Quads.


format: RdfFormatDto

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

Format of the RDF content.


optional keepDeclarations?: boolean

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

Whether to materialise OWL/RDFS class and property declarations as identity terms (mirrors the ingest flag of the same name).

false — declarations stay schema-level.

optional parseOntology?: boolean

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

Whether to parse an OWL ontology (TBox) from the content first, so the produced terms carry their declared OWL class as their sort. The parsed sorts are used for this translation only — never persisted.

false

optional repairIris?: boolean

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

Repair RFC 3987-invalid IRIs instead of refusing the document (mirrors IngestRdfRequest.repairIris). The rewrites are reported in TranslateRdfResponse.repairedIris, so this route is the dry-run preview of a repairing ingest.

false