diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2015-06-17 09:57:34 -0600 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2015-06-18 12:12:27 +0200 |
commit | 83b9523ab4b5d7ae080a58b0655831ada84994bb (patch) | |
tree | 6ee5c86160458c6f6e05dda71ccd981c30dfe68f | |
parent | f75cbe0d37c990580dbb6f0694b53bc0c914d933 (diff) | |
download | shared-mime-info-83b9523ab4b5d7ae080a58b0655831ada84994bb.tar.gz |
Add application/ld+json as subclass of application/json
https://bugs.freedesktop.org/show_bug.cgi?id=90998
-rw-r--r-- | freedesktop.org.xml.in | 8 | ||||
-rw-r--r-- | tests/json-ld-full-iri.jsonld | 5 | ||||
-rw-r--r-- | tests/list | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index e1137327..e36a9301 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -2209,6 +2209,14 @@ command to generate the output files. <generic-icon name="text-x-script"/> <glob pattern="*.json"/> </mime-type> + <mime-type type="application/ld+json"> + <_comment>JSON-LD document</_comment> + <acronym>JSON-LD</acronym> + <expanded-acronym>JavaScript Object Notation for Linked Data</expanded-acronym> + <sub-class-of type="application/json"/> + <generic-icon name="text-x-script"/> + <glob pattern="*.jsonld"/> + </mime-type> <mime-type type="application/x-jbuilder-project"> <_comment>JBuilder project</_comment> <generic-icon name="x-office-document"/> diff --git a/tests/json-ld-full-iri.jsonld b/tests/json-ld-full-iri.jsonld new file mode 100644 index 00000000..84b19d6c --- /dev/null +++ b/tests/json-ld-full-iri.jsonld @@ -0,0 +1,5 @@ +{ + "http://schema.org/name": "Manu Sporny", + "http://schema.org/url": { "@id": "http://manu.sporny.org/" }, + "http://schema.org/image": { "@id": "http://manu.sporny.org/images/manu.png" } +} @@ -222,6 +222,8 @@ Utils.jsm application/javascript ox # The following two copied from RFC 4627. json_object.json application/json ox json_array.json application/json ox +# Copied from http://www.w3.org/TR/json-ld/ +json-ld-full-iri.jsonld application/ld+json ox test.cs text/x-csharp ox test.dot text/vnd.graphviz x test.vala text/x-vala ox |