Skip to content

Interface: TranslateRdfRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Ingestion / TranslateRdfRequest

Interface: TranslateRdfRequest

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

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

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

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

Properties

content

content: string

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

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


format

format: RdfFormatDto

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

Format of the RDF content.


keepDeclarations?

optional keepDeclarations: boolean

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

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

Default Value

false — declarations stay schema-level.

parseOntology?

optional parseOntology: boolean

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

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

false