Interface: TranslateRdfRequest
@kortexya/reasoninglayer / TranslateRdfRequest
Interface: TranslateRdfRequest
Section titled “Interface: 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.
Remarks
Section titled “Remarks”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").
Example
Section titled “Example”const request: TranslateRdfRequest = { content: '@prefix ex: <http://example.org/> . ex:alice a ex:Person .', format: 'turtle', parseOntology: true,};Properties
Section titled “Properties”content
Section titled “content”content:
string
Defined in: src/types/ingestion.ts:1281
RDF content in Turtle, N-Triples, RDF/XML, JSON-LD, TriG, or N-Quads.
format
Section titled “format”format:
RdfFormatDto
Defined in: src/types/ingestion.ts:1283
Format of the RDF content.
keepDeclarations?
Section titled “keepDeclarations?”
optionalkeepDeclarations?: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).
Default Value
Section titled “Default Value”false — declarations stay schema-level.parseOntology?
Section titled “parseOntology?”
optionalparseOntology?: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.
Default Value
Section titled “Default Value”falserepairIris?
Section titled “repairIris?”
optionalrepairIris?: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.
Default Value
Section titled “Default Value”false