Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
SemWeb
libview
Commits
20727e021fe8
Commit
ff024e37
authored
Feb 14, 2020
by
Fabien Amarger
Browse files
[mimetype] Change mimetype priorities
We prefer ttl from n3
parent
f29feaac2615
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/src/common/data.ts
View file @
20727e02
...
...
@@ -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
"
)
};
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment