Skip to content

Type Alias: OntologyExportFormat

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OntologyExportFormat

OntologyExportFormat = "json" | "turtle" | "ntriples" | "rdfxml" | "jsonld" | "nquads" | "trig"

Defined in: src/types/ontology-export.ts:26

The serialization an ontology export is requested in.

The export endpoints negotiate on the HTTP Accept header: each member maps to the registered media type of an RDF serialization, and the default (json) asks for the backend’s JSON rendering rather than an RDF document.

Format Accept media type
json application/json
turtle text/turtle
ntriples application/n-triples
rdfxml application/rdf+xml
jsonld application/ld+json
nquads application/n-quads
trig application/trig
const format: OntologyExportFormat = 'turtle';