Type Alias: OntologyExportFormat
@kortexya/reasoninglayer / OntologyExportFormat
Type Alias: OntologyExportFormat
Section titled “Type Alias: 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.
Remarks
Section titled “Remarks”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 |
Example
Section titled “Example”const format: OntologyExportFormat = 'turtle';