summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--freedesktop.org.xml.in5
-rw-r--r--tests/list2
-rw-r--r--tests/test.ttl10
3 files changed, 17 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index af0f6bc..9795716 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -4997,6 +4997,11 @@ command to generate the output files.
<glob pattern="*.vct"/>
<glob pattern="*.gcrd"/>
</mime-type>
+ <mime-type type="text/turtle">
+ <_comment>Turtle document</_comment>
+ <glob pattern="*.ttl"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
<mime-type type="text/x-txt2tags">
<_comment>txt2tags document</_comment>
<sub-class-of type="text/plain"/>
diff --git a/tests/list b/tests/list
index 05c55d5..60c4fd2 100644
--- a/tests/list
+++ b/tests/list
@@ -292,6 +292,8 @@ test.pyx text/x-python ox
test.pl application/x-perl
test.pm application/x-perl
test.t application/x-perl
+# Copied from http://en.wikipedia.org/wiki/Turtle_%28syntax%29#Example
+test.ttl text/turtle ox
# xml subtypes
../shared-mime-info-spec.xml application/x-docbook+xml xox
diff --git a/tests/test.ttl b/tests/test.ttl
new file mode 100644
index 0000000..c2a4884
--- /dev/null
+++ b/tests/test.ttl
@@ -0,0 +1,10 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix dc: <http://purl.org/dc/elements/1.1/> .
+@prefix ex: <http://example.org/stuff/1.0/> .
+
+<http://www.w3.org/TR/rdf-syntax-grammar>
+ dc:title "RDF/XML Syntax Specification (Revised)" ;
+ ex:editor [
+ ex:fullname "Dave Beckett";
+ ex:homePage <http://purl.org/net/dajobe/>
+ ] .