diff options
Diffstat (limited to 'tests/mime-detection')
-rw-r--r-- | tests/mime-detection/list | 4 | ||||
-rw-r--r-- | tests/mime-detection/test.qs | 6 | ||||
-rw-r--r-- | tests/mime-detection/test.srx | 33 |
3 files changed, 43 insertions, 0 deletions
diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 52c8c3f6..74257889 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -897,3 +897,7 @@ test.avifs image/avif test.org text/org ox # OpenZIM file test.zim application/x-openzim +# SPARQL query +test.qs application/sparql-query +# SPARQL query results +test.srx application/sparql-results+xml ox diff --git a/tests/mime-detection/test.qs b/tests/mime-detection/test.qs new file mode 100644 index 00000000..3ce9d2c6 --- /dev/null +++ b/tests/mime-detection/test.qs @@ -0,0 +1,6 @@ +PREFIX foaf: <http://xmlns.com/foaf/0.1/> +SELECT ?name (COUNT(?friend) AS ?count) +WHERE { + ?person foaf:name ?name . + ?person foaf:knows ?friend . +} GROUP BY ?person ?name
\ No newline at end of file diff --git a/tests/mime-detection/test.srx b/tests/mime-detection/test.srx new file mode 100644 index 00000000..3e998378 --- /dev/null +++ b/tests/mime-detection/test.srx @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<sparql xmlns="http://www.w3.org/2005/sparql-results#"> + <head> + <variable name="name"/> + <variable name="count"/> + </head> + <results> + <result> + <binding name="name"> + <literal>Alice</literal> + </binding> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal> + </binding> + </result> + <result> + <binding name="name"> + <literal>Bob</literal> + </binding> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">1</literal> + </binding> + </result> + <result> + <binding name="name"> + <literal>Charlie</literal> + </binding> + <binding name="count"> + <literal datatype="http://www.w3.org/2001/XMLSchema#integer">1</literal> + </binding> + </result> + </results> +</sparql>
\ No newline at end of file |