aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tests-ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-03-31 17:33:21 +0000
committerDavid Robillard <d@drobilla.net>2013-03-31 17:33:21 +0000
commitdc9f6c8d6b8a218a1209baea2297a87eded17bff (patch)
tree9e34db8b93db1518a270c04c751e110f81081671 /tests/tests-ttl
parent6114b08ae0cb3958af2da6b3185471b0cb8dfd68 (diff)
downloadserd-dc9f6c8d6b8a218a1209baea2297a87eded17bff.tar.gz
serd-dc9f6c8d6b8a218a1209baea2297a87eded17bff.tar.bz2
serd-dc9f6c8d6b8a218a1209baea2297a87eded17bff.zip
Add new literal tests from Turtle test suite.
git-svn-id: http://svn.drobilla.net/serd/trunk@449 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/tests-ttl')
-rw-r--r--tests/tests-ttl/LITERAL1_ascii_boundaries.nt1
-rw-r--r--tests/tests-ttl/LITERAL1_ascii_boundaries.ttlbin0 -> 57 bytes
-rw-r--r--tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl1
-rw-r--r--tests/tests-ttl/LITERAL2_ascii_boundaries.nt1
-rw-r--r--tests/tests-ttl/LITERAL2_ascii_boundaries.ttlbin0 -> 57 bytes
-rw-r--r--tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl1
-rw-r--r--tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt1
-rw-r--r--tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttlbin0 -> 53 bytes
-rw-r--r--tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl1
-rw-r--r--tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt1
-rw-r--r--tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttlbin0 -> 53 bytes
-rw-r--r--tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl1
-rw-r--r--tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt1
-rw-r--r--tests/tests-ttl/manifest.ttl147
14 files changed, 152 insertions, 4 deletions
diff --git a/tests/tests-ttl/LITERAL1_ascii_boundaries.nt b/tests/tests-ttl/LITERAL1_ascii_boundaries.nt
new file mode 100644
index 00000000..69c41447
--- /dev/null
+++ b/tests/tests-ttl/LITERAL1_ascii_boundaries.nt
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E&([]\u007F" .
diff --git a/tests/tests-ttl/LITERAL1_ascii_boundaries.ttl b/tests/tests-ttl/LITERAL1_ascii_boundaries.ttl
new file mode 100644
index 00000000..7d65396f
--- /dev/null
+++ b/tests/tests-ttl/LITERAL1_ascii_boundaries.ttl
Binary files differ
diff --git a/tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl b/tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl
new file mode 100644
index 00000000..ce3a4919
--- /dev/null
+++ b/tests/tests-ttl/LITERAL1_with_UTF8_boundaries.ttl
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> '€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽' .
diff --git a/tests/tests-ttl/LITERAL2_ascii_boundaries.nt b/tests/tests-ttl/LITERAL2_ascii_boundaries.nt
new file mode 100644
index 00000000..270a51e3
--- /dev/null
+++ b/tests/tests-ttl/LITERAL2_ascii_boundaries.nt
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E!#[]\u007F" .
diff --git a/tests/tests-ttl/LITERAL2_ascii_boundaries.ttl b/tests/tests-ttl/LITERAL2_ascii_boundaries.ttl
new file mode 100644
index 00000000..90b4cd69
--- /dev/null
+++ b/tests/tests-ttl/LITERAL2_ascii_boundaries.ttl
Binary files differ
diff --git a/tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl b/tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl
new file mode 100644
index 00000000..f7e71af4
--- /dev/null
+++ b/tests/tests-ttl/LITERAL2_with_UTF8_boundaries.ttl
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> "€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽" .
diff --git a/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt b/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt
new file mode 100644
index 00000000..a592b4a1
--- /dev/null
+++ b/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.nt
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> "\u0000&([]\u007F" .
diff --git a/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl b/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl
new file mode 100644
index 00000000..f943e249
--- /dev/null
+++ b/tests/tests-ttl/LITERAL_LONG1_ascii_boundaries.ttl
Binary files differ
diff --git a/tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl b/tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl
new file mode 100644
index 00000000..59a70515
--- /dev/null
+++ b/tests/tests-ttl/LITERAL_LONG1_with_UTF8_boundaries.ttl
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> '''€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽''' .
diff --git a/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt b/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt
new file mode 100644
index 00000000..28785039
--- /dev/null
+++ b/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.nt
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> "\u0000!#[]\u007F" .
diff --git a/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl b/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl
new file mode 100644
index 00000000..e919865f
--- /dev/null
+++ b/tests/tests-ttl/LITERAL_LONG2_ascii_boundaries.ttl
Binary files differ
diff --git a/tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl b/tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl
new file mode 100644
index 00000000..c90d9a0f
--- /dev/null
+++ b/tests/tests-ttl/LITERAL_LONG2_with_UTF8_boundaries.ttl
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> """€߿ࠀ࿿က쿿퀀퟿￿𐀀𿿿񀀀󿿿􀀀􏿽""" .
diff --git a/tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt b/tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt
new file mode 100644
index 00000000..c952f632
--- /dev/null
+++ b/tests/tests-ttl/LITERAL_with_UTF8_boundaries.nt
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> "\u0080\u07FF\u0800\u0FFF\u1000\uCFFF\uD000\uD7FF\uE000\uFFFF\U00010000\U0003FFFF\U00040000\U000FFFFF\U00100000\U0010FFFD" .
diff --git a/tests/tests-ttl/manifest.ttl b/tests/tests-ttl/manifest.ttl
index d38ed41d..e686a17f 100644
--- a/tests/tests-ttl/manifest.ttl
+++ b/tests/tests-ttl/manifest.ttl
@@ -37,17 +37,26 @@
<#prefixed_IRI_predicate>
<#prefixed_IRI_object>
<#prefix_only_IRI>
+ # <#prefix_with_PN_CHARS_BASE_character_boundaries>
+ # <#prefix_with_non_leading_extras>
<#default_namespace_IRI>
<#prefix_reassigned_and_used>
+ # <#reserved_escaped_localName>
<#percent_escaped_localName>
<#HYPHEN_MINUS_in_localName>
<#underscore_in_localName>
<#localname_with_COLON>
+ # <#localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries>
+ # <#localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries>
+ # <#localName_with_nfc_PN_CHARS_BASE_character_boundaries>
+ # <#localName_with_PN_CHARS_BASE_character_boundaries>
<#localName_with_leading_underscore>
<#localName_with_leading_digit>
+ # <#localName_with_non_leading_extras>
<#old_style_base>
<#labeled_blank_node_subject>
<#labeled_blank_node_object>
+ # <#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries>
<#labeled_blank_node_with_leading_underscore>
<#labeled_blank_node_with_leading_digit>
<#labeled_blank_node_with_non_leading_extras>
@@ -66,13 +75,21 @@
<#first>
<#last>
<#LITERAL1>
+ <#LITERAL1_ascii_boundaries>
+ <#LITERAL1_with_UTF8_boundaries>
<#LITERAL1_all_controls>
<#LITERAL1_all_punctuation>
<#LITERAL_LONG1>
+ <#LITERAL_LONG1_ascii_boundaries>
+ <#LITERAL_LONG1_with_UTF8_boundaries>
<#LITERAL_LONG1_with_1_squote>
<#LITERAL_LONG1_with_2_squotes>
<#LITERAL2>
+ <#LITERAL2_ascii_boundaries>
+ <#LITERAL2_with_UTF8_boundaries>
<#LITERAL_LONG2>
+ <#LITERAL_LONG2_ascii_boundaries>
+ <#LITERAL_LONG2_with_UTF8_boundaries>
<#LITERAL_LONG2_with_1_squote>
<#LITERAL_LONG2_with_2_squotes>
<#literal_with_CHARACTER_TABULATION>
@@ -116,12 +133,8 @@
<#turtle-syntax-uri-03>
<#turtle-syntax-uri-04>
<#turtle-syntax-base-01>
- <#turtle-syntax-base-02>
<#turtle-syntax-base-03>
- <#turtle-syntax-base-04>
<#turtle-syntax-prefix-01>
- <#turtle-syntax-prefix-02>
- <#turtle-syntax-prefix-03>
<#turtle-syntax-prefix-04>
<#turtle-syntax-prefix-05>
<#turtle-syntax-prefix-06>
@@ -371,6 +384,48 @@
mf:result <IRI_spo.nt> ;
.
+# <#prefix_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
+# mf:name "prefix_with_PN_CHARS_BASE_character_boundaries" ;
+# rdfs:comment "prefix with PN CHARS BASE character boundaries (prefix: AZazÀÖØöø...:)" ;
+# mf:action <prefix_with_PN_CHARS_BASE_character_boundaries.ttl> ;
+# mf:result <IRI_spo.nt> ;
+# .
+
+# <#prefix_with_non_leading_extras> rdf:type rdft:TestTurtleEval ;
+# mf:name "prefix_with_non_leading_extras" ;
+# rdfs:comment "prefix with_non_leading_extras (_:a·̀ͯ‿.⁀)" ;
+# mf:action <prefix_with_non_leading_extras.ttl> ;
+# mf:result <IRI_spo.nt> ;
+# .
+
+# <#localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
+# mf:name "localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries" ;
+# rdfs:comment "localName with assigned, NFC-normalized, basic-multilingual-plane PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
+# mf:action <localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl> ;
+# mf:result <localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt> ;
+# .
+
+# <#localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
+# mf:name "localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries" ;
+# rdfs:comment "localName with assigned, NFC-normalized PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
+# mf:action <localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl> ;
+# mf:result <localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt> ;
+# .
+
+# <#localName_with_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
+# mf:name "localName_with_nfc_PN_CHARS_BASE_character_boundaries" ;
+# rdfs:comment "localName with nfc-normalize PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
+# mf:action <localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl> ;
+# mf:result <localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt> ;
+# .
+
+# <#localName_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
+# mf:name "localName_with_PN_CHARS_BASE_character_boundaries" ;
+# rdfs:comment "localName with PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ;
+# mf:action <localName_with_PN_CHARS_BASE_character_boundaries.ttl> ;
+# mf:result <localName_with_PN_CHARS_BASE_character_boundaries.nt> ;
+# .
+
<#default_namespace_IRI> rdf:type rdft:TestTurtleEval ;
mf:name "default_namespace_IRI" ;
rdfs:comment "default namespace IRI (:ln)" ;
@@ -385,6 +440,13 @@
mf:result <prefix_reassigned_and_used.nt> ;
.
+# <#reserved_escaped_localName> rdf:type rdft:TestTurtleEval ;
+# mf:name "reserved_escaped_localName" ;
+# rdfs:comment "reserved-escaped local name" ;
+# mf:action <reserved_escaped_localName.ttl> ;
+# mf:result <reserved_escaped_localName.nt> ;
+# .
+
<#percent_escaped_localName> rdf:type rdft:TestTurtleEval ;
mf:name "percent_escaped_localName" ;
rdfs:comment "percent-escaped local name" ;
@@ -427,6 +489,13 @@
mf:result <localName_with_leading_digit.nt> ;
.
+# <#localName_with_non_leading_extras> rdf:type rdft:TestTurtleEval ;
+# mf:name "localName_with_non_leading_extras" ;
+# rdfs:comment "localName with_non_leading_extras (_:a·̀ͯ‿.⁀)" ;
+# mf:action <localName_with_non_leading_extras.ttl> ;
+# mf:result <localName_with_non_leading_extras.nt> ;
+# .
+
<#old_style_base> rdf:type rdft:TestTurtleEval ;
mf:name "old_style_base" ;
rdfs:comment "old-style base" ;
@@ -448,6 +517,13 @@
mf:result <labeled_blank_node_object.nt> ;
.
+# <#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
+# mf:name "labeled_blank_node_with_PN_CHARS_BASE_character_boundaries" ;
+# rdfs:comment "labeled blank node with PN_CHARS_BASE character boundaries (_:AZazÀÖØöø...)" ;
+# mf:action <labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl> ;
+# mf:result <labeled_blank_node_object.nt> ;
+# .
+
<#labeled_blank_node_with_leading_underscore> rdf:type rdft:TestTurtleEval ;
mf:name "labeled_blank_node_with_leading_underscore" ;
rdfs:comment "labeled blank node with_leading_underscore (_:_)" ;
@@ -462,6 +538,13 @@
mf:result <labeled_blank_node_with_leading_digit.nt> ;
.
+# <#labeled_blank_node_with_non_leading_extras> rdf:type rdft:TestTurtleEval ;
+# mf:name "labeled_blank_node_with_non_leading_extras" ;
+# rdfs:comment "labeled blank node with_non_leading_extras (_:a·̀ͯ‿.⁀)" ;
+# mf:action <labeled_blank_node_with_non_leading_extras.ttl> ;
+# mf:result <labeled_blank_node_object.nt> ;
+# .
+
<#anonymous_blank_node_subject> rdf:type rdft:TestTurtleEval ;
mf:name "anonymous_blank_node_subject" ;
rdfs:comment "anonymous blank node subject" ;
@@ -567,6 +650,20 @@
mf:result <LITERAL1.nt> ;
.
+<#LITERAL1_ascii_boundaries> rdf:type rdft:TestTurtleEval ;
+ mf:name "LITERAL1_ascii_boundaries" ;
+ rdfs:comment "LITERAL1_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x26\\x28...'" ;
+ mf:action <LITERAL1_ascii_boundaries.ttl> ;
+ mf:result <LITERAL1_ascii_boundaries.nt> ;
+ .
+
+<#LITERAL1_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
+ mf:name "LITERAL1_with_UTF8_boundaries" ;
+ rdfs:comment "LITERAL1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
+ mf:action <LITERAL1_with_UTF8_boundaries.ttl> ;
+ mf:result <LITERAL_with_UTF8_boundaries.nt> ;
+ .
+
<#LITERAL1_all_controls> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL1_all_controls" ;
rdfs:comment "LITERAL1_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ;
@@ -588,6 +685,20 @@
mf:result <LITERAL1.nt> ;
.
+<#LITERAL_LONG1_ascii_boundaries> rdf:type rdft:TestTurtleEval ;
+ mf:name "LITERAL_LONG1_ascii_boundaries" ;
+ rdfs:comment "LITERAL_LONG1_ascii_boundaries '\\x00\\x26\\x28...'" ;
+ mf:action <LITERAL_LONG1_ascii_boundaries.ttl> ;
+ mf:result <LITERAL_LONG1_ascii_boundaries.nt> ;
+ .
+
+# <#LITERAL_LONG1_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
+# mf:name "LITERAL_LONG1_with_UTF8_boundaries" ;
+# rdfs:comment "LITERAL_LONG1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
+# mf:action <LITERAL_LONG1_with_UTF8_boundaries.ttl> ;
+# mf:result <LITERAL_with_UTF8_boundaries.nt> ;
+# .
+
<#LITERAL_LONG1_with_1_squote> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL_LONG1_with_1_squote" ;
rdfs:comment "LITERAL_LONG1 with 1 squote '''a'b'''" ;
@@ -609,6 +720,20 @@
mf:result <LITERAL1.nt> ;
.
+<#LITERAL2_ascii_boundaries> rdf:type rdft:TestTurtleEval ;
+ mf:name "LITERAL2_ascii_boundaries" ;
+ rdfs:comment "LITERAL2_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x21\\x23...'" ;
+ mf:action <LITERAL2_ascii_boundaries.ttl> ;
+ mf:result <LITERAL2_ascii_boundaries.nt> ;
+ .
+
+<#LITERAL2_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
+ mf:name "LITERAL2_with_UTF8_boundaries" ;
+ rdfs:comment "LITERAL2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
+ mf:action <LITERAL2_with_UTF8_boundaries.ttl> ;
+ mf:result <LITERAL_with_UTF8_boundaries.nt> ;
+ .
+
<#LITERAL_LONG2> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL_LONG2" ;
rdfs:comment "LITERAL_LONG2 \"\"\"x\"\"\"" ;
@@ -616,6 +741,20 @@
mf:result <LITERAL1.nt> ;
.
+<#LITERAL_LONG2_ascii_boundaries> rdf:type rdft:TestTurtleEval ;
+ mf:name "LITERAL_LONG2_ascii_boundaries" ;
+ rdfs:comment "LITERAL_LONG2_ascii_boundaries '\\x00\\x21\\x23...'" ;
+ mf:action <LITERAL_LONG2_ascii_boundaries.ttl> ;
+ mf:result <LITERAL_LONG2_ascii_boundaries.nt> ;
+ .
+
+<#LITERAL_LONG2_with_UTF8_boundaries> rdf:type rdft:TestTurtleEval ;
+ mf:name "LITERAL_LONG2_with_UTF8_boundaries" ;
+ rdfs:comment "LITERAL_LONG2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
+ mf:action <LITERAL_LONG2_with_UTF8_boundaries.ttl> ;
+ mf:result <LITERAL_with_UTF8_boundaries.nt> ;
+ .
+
<#LITERAL_LONG2_with_1_squote> rdf:type rdft:TestTurtleEval ;
mf:name "LITERAL_LONG2_with_1_squote" ;
rdfs:comment "LITERAL_LONG2 with 1 squote \"\"\"a\"b\"\"\"" ;