Commit ff024e37 authored by Fabien Amarger's avatar Fabien Amarger
Browse files

[mimetype] Change mimetype priorities

We prefer ttl from n3
parent f29feaac2615
......@@ -305,6 +305,9 @@ export function fetchObservableAt(target: string): Promise<ObservableContent> {
* Map of known MIME types to badge names
*/
export const MIME: { [mime: string]: MimeInfo | undefined } = {
"text/turtle": new MimeInfo("text/turtle", "TTL", 2, ".ttl"),
"application/ld+json": new MimeInfo("application/ld+json", "LD", 3, ".json"),
"application/rdf+xml": new MimeInfo("application/rdf+xml", "RDF", 4, ".xml"),
"text/n3": new MimeInfo("text/n3", "N3", 5, ".n3"),
"application/n-triples": new MimeInfo(
"application/n-triples",
......@@ -313,10 +316,7 @@ export const MIME: { [mime: string]: MimeInfo | undefined } = {
".nt"
),
"application/n-quads": new MimeInfo("application/n-quads", "NQ", 7, ".nq"),
"text/turtle": new MimeInfo("text/turtle", "TTL", 8, ".ttl"),
"application/trig": new MimeInfo("application/trig", "TRIG", 9, ".trig"),
"application/rdf+xml": new MimeInfo("application/rdf+xml", "RDF", 10, ".xml"),
"application/ld+json": new MimeInfo("application/ld+json", "LD", 11, ".json")
"application/trig": new MimeInfo("application/trig", "TRIG", 9, ".trig")
};
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment