diff options
Diffstat (limited to 'tests/new')
125 files changed, 776 insertions, 0 deletions
diff --git a/tests/new/HYPHEN_MINUS_in_local_name.nt b/tests/new/HYPHEN_MINUS_in_local_name.nt new file mode 100644 index 00000000..25546b38 --- /dev/null +++ b/tests/new/HYPHEN_MINUS_in_local_name.nt @@ -0,0 +1 @@ +<http://a.example/s-> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/HYPHEN_MINUS_in_local_name.ttl b/tests/new/HYPHEN_MINUS_in_local_name.ttl new file mode 100644 index 00000000..0340b8c8 --- /dev/null +++ b/tests/new/HYPHEN_MINUS_in_local_name.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s- <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/IRIREF_datatype.nt b/tests/new/IRIREF_datatype.nt new file mode 100644 index 00000000..c333a5f6 --- /dev/null +++ b/tests/new/IRIREF_datatype.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/tests/new/IRIREF_datatype.ttl b/tests/new/IRIREF_datatype.ttl new file mode 100644 index 00000000..c333a5f6 --- /dev/null +++ b/tests/new/IRIREF_datatype.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/tests/new/IRI_subject.nt b/tests/new/IRI_subject.nt new file mode 100644 index 00000000..01125e50 --- /dev/null +++ b/tests/new/IRI_subject.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/IRI_subject.ttl b/tests/new/IRI_subject.ttl new file mode 100644 index 00000000..01125e50 --- /dev/null +++ b/tests/new/IRI_subject.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/IRI_with_all_punctuation.nt b/tests/new/IRI_with_all_punctuation.nt new file mode 100644 index 00000000..94158773 --- /dev/null +++ b/tests/new/IRI_with_all_punctuation.nt @@ -0,0 +1 @@ +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/IRI_with_all_punctuation.ttl b/tests/new/IRI_with_all_punctuation.ttl new file mode 100644 index 00000000..94158773 --- /dev/null +++ b/tests/new/IRI_with_all_punctuation.ttl @@ -0,0 +1 @@ +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/IRI_with_eight_digit_numeric_escape.ttl b/tests/new/IRI_with_eight_digit_numeric_escape.ttl new file mode 100644 index 00000000..434034e7 --- /dev/null +++ b/tests/new/IRI_with_eight_digit_numeric_escape.ttl @@ -0,0 +1 @@ +<http://a.example/\U00000073> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/IRI_with_four_digit_numeric_escape.ttl b/tests/new/IRI_with_four_digit_numeric_escape.ttl new file mode 100644 index 00000000..4163636e --- /dev/null +++ b/tests/new/IRI_with_four_digit_numeric_escape.ttl @@ -0,0 +1 @@ +<http://a.example/\u0073> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/LITERAL1.nt b/tests/new/LITERAL1.nt new file mode 100644 index 00000000..3aba89e4 --- /dev/null +++ b/tests/new/LITERAL1.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x" . diff --git a/tests/new/LITERAL1.ttl b/tests/new/LITERAL1.ttl new file mode 100644 index 00000000..725a2403 --- /dev/null +++ b/tests/new/LITERAL1.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 'x' . diff --git a/tests/new/LITERAL2.ttl b/tests/new/LITERAL2.ttl new file mode 100644 index 00000000..3aba89e4 --- /dev/null +++ b/tests/new/LITERAL2.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x" . diff --git a/tests/new/LITERAL_LONG1.ttl b/tests/new/LITERAL_LONG1.ttl new file mode 100644 index 00000000..ab6baa93 --- /dev/null +++ b/tests/new/LITERAL_LONG1.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''x''' . diff --git a/tests/new/LITERAL_LONG1_with_1_squote.nt b/tests/new/LITERAL_LONG1_with_1_squote.nt new file mode 100644 index 00000000..acf7f58f --- /dev/null +++ b/tests/new/LITERAL_LONG1_with_1_squote.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x'y" . diff --git a/tests/new/LITERAL_LONG1_with_1_squote.ttl b/tests/new/LITERAL_LONG1_with_1_squote.ttl new file mode 100644 index 00000000..3b93046b --- /dev/null +++ b/tests/new/LITERAL_LONG1_with_1_squote.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''x'y''' . diff --git a/tests/new/LITERAL_LONG1_with_2_squotes.nt b/tests/new/LITERAL_LONG1_with_2_squotes.nt new file mode 100644 index 00000000..8ddc52e8 --- /dev/null +++ b/tests/new/LITERAL_LONG1_with_2_squotes.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x''y" . diff --git a/tests/new/LITERAL_LONG1_with_2_squotes.ttl b/tests/new/LITERAL_LONG1_with_2_squotes.ttl new file mode 100644 index 00000000..1219bad3 --- /dev/null +++ b/tests/new/LITERAL_LONG1_with_2_squotes.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''x''y''' . diff --git a/tests/new/LITERAL_LONG2.ttl b/tests/new/LITERAL_LONG2.ttl new file mode 100644 index 00000000..e37bf4a3 --- /dev/null +++ b/tests/new/LITERAL_LONG2.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """x""" . diff --git a/tests/new/LITERAL_LONG2_with_1_squote.nt b/tests/new/LITERAL_LONG2_with_1_squote.nt new file mode 100644 index 00000000..05a1fd3a --- /dev/null +++ b/tests/new/LITERAL_LONG2_with_1_squote.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"y" . diff --git a/tests/new/LITERAL_LONG2_with_1_squote.ttl b/tests/new/LITERAL_LONG2_with_1_squote.ttl new file mode 100644 index 00000000..80e389b8 --- /dev/null +++ b/tests/new/LITERAL_LONG2_with_1_squote.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """x"y""" . diff --git a/tests/new/LITERAL_LONG2_with_2_squotes.nt b/tests/new/LITERAL_LONG2_with_2_squotes.nt new file mode 100644 index 00000000..3e69dc10 --- /dev/null +++ b/tests/new/LITERAL_LONG2_with_2_squotes.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"\"y" . diff --git a/tests/new/LITERAL_LONG2_with_2_squotes.ttl b/tests/new/LITERAL_LONG2_with_2_squotes.ttl new file mode 100644 index 00000000..2f14f5b3 --- /dev/null +++ b/tests/new/LITERAL_LONG2_with_2_squotes.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """x""y""" . diff --git a/tests/new/SPARQL_style_base.ttl b/tests/new/SPARQL_style_base.ttl new file mode 100644 index 00000000..d134ea81 --- /dev/null +++ b/tests/new/SPARQL_style_base.ttl @@ -0,0 +1,2 @@ +BASE <http://a.example/> +<s> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/SPARQL_style_prefix.ttl b/tests/new/SPARQL_style_prefix.ttl new file mode 100644 index 00000000..e7e4a3da --- /dev/null +++ b/tests/new/SPARQL_style_prefix.ttl @@ -0,0 +1,2 @@ +PREFIX p: <http://a.example/> +p:s <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/anonymous_blank_node_object.nt b/tests/new/anonymous_blank_node_object.nt new file mode 100644 index 00000000..89e88f63 --- /dev/null +++ b/tests/new/anonymous_blank_node_object.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:b1 . diff --git a/tests/new/anonymous_blank_node_object.ttl b/tests/new/anonymous_blank_node_object.ttl new file mode 100644 index 00000000..0b2ce436 --- /dev/null +++ b/tests/new/anonymous_blank_node_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> [] . diff --git a/tests/new/anonymous_blank_node_subject.ttl b/tests/new/anonymous_blank_node_subject.ttl new file mode 100644 index 00000000..17b378c2 --- /dev/null +++ b/tests/new/anonymous_blank_node_subject.ttl @@ -0,0 +1 @@ +[] <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/bareword_a_predicate.nt b/tests/new/bareword_a_predicate.nt new file mode 100644 index 00000000..afe14252 --- /dev/null +++ b/tests/new/bareword_a_predicate.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://a.example/o> . diff --git a/tests/new/bareword_a_predicate.ttl b/tests/new/bareword_a_predicate.ttl new file mode 100644 index 00000000..66fa0d0c --- /dev/null +++ b/tests/new/bareword_a_predicate.ttl @@ -0,0 +1 @@ +<http://a.example/s> a <http://a.example/o> . diff --git a/tests/new/bareword_decimal.nt b/tests/new/bareword_decimal.nt new file mode 100644 index 00000000..e177a9c6 --- /dev/null +++ b/tests/new/bareword_decimal.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/tests/new/bareword_decimal.ttl b/tests/new/bareword_decimal.ttl new file mode 100644 index 00000000..20955d51 --- /dev/null +++ b/tests/new/bareword_decimal.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1.0 . diff --git a/tests/new/bareword_double.nt b/tests/new/bareword_double.nt new file mode 100644 index 00000000..dd8be2fd --- /dev/null +++ b/tests/new/bareword_double.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1E0"^^<http://www.w3.org/2001/XMLSchema#double> . diff --git a/tests/new/bareword_double.ttl b/tests/new/bareword_double.ttl new file mode 100644 index 00000000..7ce25b11 --- /dev/null +++ b/tests/new/bareword_double.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1E0 . diff --git a/tests/new/bareword_integer.ttl b/tests/new/bareword_integer.ttl new file mode 100644 index 00000000..087e71b6 --- /dev/null +++ b/tests/new/bareword_integer.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1 . diff --git a/tests/new/blankNodePropertyList_as_object.nt b/tests/new/blankNodePropertyList_as_object.nt new file mode 100644 index 00000000..528bd844 --- /dev/null +++ b/tests/new/blankNodePropertyList_as_object.nt @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> _:b1 . +_:b1 <http://a.example/p2> <http://a.example/o2> . diff --git a/tests/new/blankNodePropertyList_as_object.ttl b/tests/new/blankNodePropertyList_as_object.ttl new file mode 100644 index 00000000..aa85a746 --- /dev/null +++ b/tests/new/blankNodePropertyList_as_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o2> ] . diff --git a/tests/new/blankNodePropertyList_as_subject.nt b/tests/new/blankNodePropertyList_as_subject.nt new file mode 100644 index 00000000..f0768879 --- /dev/null +++ b/tests/new/blankNodePropertyList_as_subject.nt @@ -0,0 +1,2 @@ +_:b1 <http://a.example/p> <http://a.example/o> . +_:b1 <http://a.example/p2> <http://a.example/o2> . diff --git a/tests/new/blankNodePropertyList_as_subject.ttl b/tests/new/blankNodePropertyList_as_subject.ttl new file mode 100644 index 00000000..cb2e52aa --- /dev/null +++ b/tests/new/blankNodePropertyList_as_subject.ttl @@ -0,0 +1 @@ +[ <http://a.example/p> <http://a.example/o> ] <http://a.example/p2> <http://a.example/o2> . diff --git a/tests/new/blankNodePropertyList_containing_collection.nt b/tests/new/blankNodePropertyList_containing_collection.nt new file mode 100644 index 00000000..e590826b --- /dev/null +++ b/tests/new/blankNodePropertyList_containing_collection.nt @@ -0,0 +1,3 @@ +_:b1 <http://a.example/p1> _:b2 . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/tests/new/blankNodePropertyList_containing_collection.ttl b/tests/new/blankNodePropertyList_containing_collection.ttl new file mode 100644 index 00000000..bf164c83 --- /dev/null +++ b/tests/new/blankNodePropertyList_containing_collection.ttl @@ -0,0 +1 @@ +[ <http://a.example/p1> (1) ] . diff --git a/tests/new/blankNodePropertyList_with_multiple_triples.nt b/tests/new/blankNodePropertyList_with_multiple_triples.nt new file mode 100644 index 00000000..8f3fc507 --- /dev/null +++ b/tests/new/blankNodePropertyList_with_multiple_triples.nt @@ -0,0 +1,3 @@ +_:b1 <http://a.example/p1> <http://a.example/o1> . +_:b1 <http://a.example/p2> <http://a.example/o2> . +_:b1 <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/blankNodePropertyList_with_multiple_triples.ttl b/tests/new/blankNodePropertyList_with_multiple_triples.ttl new file mode 100644 index 00000000..6153c13d --- /dev/null +++ b/tests/new/blankNodePropertyList_with_multiple_triples.ttl @@ -0,0 +1 @@ +[ <http://a.example/p1> <http://a.example/o1> ; <http://a.example/p2> <http://a.example/o2> ] <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/collection_object.nt b/tests/new/collection_object.nt new file mode 100644 index 00000000..391162e0 --- /dev/null +++ b/tests/new/collection_object.nt @@ -0,0 +1,3 @@ +<http://a.example/s> <http://a.example/p> _:b1 . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/tests/new/collection_object.ttl b/tests/new/collection_object.ttl new file mode 100644 index 00000000..6af34715 --- /dev/null +++ b/tests/new/collection_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> (1) . diff --git a/tests/new/collection_subject.nt b/tests/new/collection_subject.nt new file mode 100644 index 00000000..502768c8 --- /dev/null +++ b/tests/new/collection_subject.nt @@ -0,0 +1,3 @@ +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +_:b1 <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/collection_subject.ttl b/tests/new/collection_subject.ttl new file mode 100644 index 00000000..00a4c0bc --- /dev/null +++ b/tests/new/collection_subject.ttl @@ -0,0 +1 @@ +(1) <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/default_namespace_IRI.ttl b/tests/new/default_namespace_IRI.ttl new file mode 100644 index 00000000..f1f83fd5 --- /dev/null +++ b/tests/new/default_namespace_IRI.ttl @@ -0,0 +1,2 @@ +@prefix : <http://a.example/>. +:s <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/double_lower_case_e.nt b/tests/new/double_lower_case_e.nt new file mode 100644 index 00000000..49a792b9 --- /dev/null +++ b/tests/new/double_lower_case_e.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "1e0"^^<http://www.w3.org/2001/XMLSchema#double> . diff --git a/tests/new/double_lower_case_e.ttl b/tests/new/double_lower_case_e.ttl new file mode 100644 index 00000000..5f4552bf --- /dev/null +++ b/tests/new/double_lower_case_e.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1e0 . diff --git a/tests/new/empty_collection.nt b/tests/new/empty_collection.nt new file mode 100644 index 00000000..82726a3f --- /dev/null +++ b/tests/new/empty_collection.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/tests/new/empty_collection.ttl b/tests/new/empty_collection.ttl new file mode 100644 index 00000000..02f9cc07 --- /dev/null +++ b/tests/new/empty_collection.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> () . diff --git a/tests/new/first.nt b/tests/new/first.nt new file mode 100644 index 00000000..d50539f6 --- /dev/null +++ b/tests/new/first.nt @@ -0,0 +1,7 @@ +<http://a.example/s> <http://a.example/p> _:b1 . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b2 . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:b3 . +_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/tests/new/first.ttl b/tests/new/first.ttl new file mode 100644 index 00000000..44f496cb --- /dev/null +++ b/tests/new/first.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ((1) 2) . diff --git a/tests/new/labeled_blank_node_object.nt b/tests/new/labeled_blank_node_object.nt new file mode 100644 index 00000000..2645d4ee --- /dev/null +++ b/tests/new/labeled_blank_node_object.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:o . diff --git a/tests/new/labeled_blank_node_object.ttl b/tests/new/labeled_blank_node_object.ttl new file mode 100644 index 00000000..2645d4ee --- /dev/null +++ b/tests/new/labeled_blank_node_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:o . diff --git a/tests/new/labeled_blank_node_subject.nt b/tests/new/labeled_blank_node_subject.nt new file mode 100644 index 00000000..d0c7f458 --- /dev/null +++ b/tests/new/labeled_blank_node_subject.nt @@ -0,0 +1 @@ +_:s <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/labeled_blank_node_subject.ttl b/tests/new/labeled_blank_node_subject.ttl new file mode 100644 index 00000000..d0c7f458 --- /dev/null +++ b/tests/new/labeled_blank_node_subject.ttl @@ -0,0 +1 @@ +_:s <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/langtagged_LONG.ttl b/tests/new/langtagged_LONG.ttl new file mode 100644 index 00000000..2baefe5d --- /dev/null +++ b/tests/new/langtagged_LONG.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """chat"""@en . diff --git a/tests/new/langtagged_non_LONG.nt b/tests/new/langtagged_non_LONG.nt new file mode 100644 index 00000000..1bddb04e --- /dev/null +++ b/tests/new/langtagged_non_LONG.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en . diff --git a/tests/new/langtagged_non_LONG.ttl b/tests/new/langtagged_non_LONG.ttl new file mode 100644 index 00000000..1bddb04e --- /dev/null +++ b/tests/new/langtagged_non_LONG.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en . diff --git a/tests/new/lantag_with_subtag.nt b/tests/new/lantag_with_subtag.nt new file mode 100644 index 00000000..46c9d53a --- /dev/null +++ b/tests/new/lantag_with_subtag.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en-us . diff --git a/tests/new/lantag_with_subtag.ttl b/tests/new/lantag_with_subtag.ttl new file mode 100644 index 00000000..46c9d53a --- /dev/null +++ b/tests/new/lantag_with_subtag.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en-us . diff --git a/tests/new/last.nt b/tests/new/last.nt new file mode 100644 index 00000000..27c21b3d --- /dev/null +++ b/tests/new/last.nt @@ -0,0 +1,7 @@ +<http://a.example/s> <http://a.example/p> _:b1 . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:b2 . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b3 . +_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/tests/new/last.ttl b/tests/new/last.ttl new file mode 100644 index 00000000..1254c261 --- /dev/null +++ b/tests/new/last.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> (1 (2)) . diff --git a/tests/new/literal_false.nt b/tests/new/literal_false.nt new file mode 100644 index 00000000..5bbbae84 --- /dev/null +++ b/tests/new/literal_false.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . diff --git a/tests/new/literal_false.ttl b/tests/new/literal_false.ttl new file mode 100644 index 00000000..6a32e362 --- /dev/null +++ b/tests/new/literal_false.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> false . diff --git a/tests/new/literal_true.nt b/tests/new/literal_true.nt new file mode 100644 index 00000000..054b229f --- /dev/null +++ b/tests/new/literal_true.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . diff --git a/tests/new/literal_true.ttl b/tests/new/literal_true.ttl new file mode 100644 index 00000000..6c5bb742 --- /dev/null +++ b/tests/new/literal_true.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> true . diff --git a/tests/new/literal_with_BACKSPACE.nt b/tests/new/literal_with_BACKSPACE.nt new file mode 100644 index 00000000..339013df --- /dev/null +++ b/tests/new/literal_with_BACKSPACE.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\b" . diff --git a/tests/new/literal_with_BACKSPACE.ttl b/tests/new/literal_with_BACKSPACE.ttl new file mode 100644 index 00000000..17b2880f --- /dev/null +++ b/tests/new/literal_with_BACKSPACE.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '' . diff --git a/tests/new/literal_with_CARRIAGE_RETURN.nt b/tests/new/literal_with_CARRIAGE_RETURN.nt new file mode 100644 index 00000000..91b85c89 --- /dev/null +++ b/tests/new/literal_with_CARRIAGE_RETURN.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\r" . diff --git a/tests/new/literal_with_CARRIAGE_RETURN.ttl b/tests/new/literal_with_CARRIAGE_RETURN.ttl new file mode 100644 index 00000000..3cd1d89c --- /dev/null +++ b/tests/new/literal_with_CARRIAGE_RETURN.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''
''' . diff --git a/tests/new/literal_with_CHARACTER_TABULATION.nt b/tests/new/literal_with_CHARACTER_TABULATION.nt new file mode 100644 index 00000000..a6a9d9f0 --- /dev/null +++ b/tests/new/literal_with_CHARACTER_TABULATION.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\t" . diff --git a/tests/new/literal_with_CHARACTER_TABULATION.ttl b/tests/new/literal_with_CHARACTER_TABULATION.ttl new file mode 100644 index 00000000..37fbd9d1 --- /dev/null +++ b/tests/new/literal_with_CHARACTER_TABULATION.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ' ' . diff --git a/tests/new/literal_with_FORM_FEED.nt b/tests/new/literal_with_FORM_FEED.nt new file mode 100644 index 00000000..10d2c6d7 --- /dev/null +++ b/tests/new/literal_with_FORM_FEED.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\f" . diff --git a/tests/new/literal_with_FORM_FEED.ttl b/tests/new/literal_with_FORM_FEED.ttl new file mode 100644 index 00000000..76d6ee77 --- /dev/null +++ b/tests/new/literal_with_FORM_FEED.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '' . diff --git a/tests/new/literal_with_LINE_FEED.nt b/tests/new/literal_with_LINE_FEED.nt new file mode 100644 index 00000000..462f97ac --- /dev/null +++ b/tests/new/literal_with_LINE_FEED.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\n" . diff --git a/tests/new/literal_with_LINE_FEED.ttl b/tests/new/literal_with_LINE_FEED.ttl new file mode 100644 index 00000000..50cc8a8b --- /dev/null +++ b/tests/new/literal_with_LINE_FEED.ttl @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> ''' +''' . diff --git a/tests/new/literal_with_REVERSE_SOLIDUS.nt b/tests/new/literal_with_REVERSE_SOLIDUS.nt new file mode 100644 index 00000000..ebc846ed --- /dev/null +++ b/tests/new/literal_with_REVERSE_SOLIDUS.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\\" . diff --git a/tests/new/literal_with_REVERSE_SOLIDUS.ttl b/tests/new/literal_with_REVERSE_SOLIDUS.ttl new file mode 100644 index 00000000..380a3d04 --- /dev/null +++ b/tests/new/literal_with_REVERSE_SOLIDUS.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\\' . diff --git a/tests/new/literal_with_escaped_BACKSPACE.ttl b/tests/new/literal_with_escaped_BACKSPACE.ttl new file mode 100644 index 00000000..5284b9b6 --- /dev/null +++ b/tests/new/literal_with_escaped_BACKSPACE.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\b' . diff --git a/tests/new/literal_with_escaped_CARRIAGE_RETURN.ttl b/tests/new/literal_with_escaped_CARRIAGE_RETURN.ttl new file mode 100644 index 00000000..a28e7c0b --- /dev/null +++ b/tests/new/literal_with_escaped_CARRIAGE_RETURN.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\r' . diff --git a/tests/new/literal_with_escaped_CHARACTER_TABULATION.ttl b/tests/new/literal_with_escaped_CHARACTER_TABULATION.ttl new file mode 100644 index 00000000..67966f78 --- /dev/null +++ b/tests/new/literal_with_escaped_CHARACTER_TABULATION.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\t' . diff --git a/tests/new/literal_with_escaped_FORM_FEED.ttl b/tests/new/literal_with_escaped_FORM_FEED.ttl new file mode 100644 index 00000000..21acace9 --- /dev/null +++ b/tests/new/literal_with_escaped_FORM_FEED.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\f' . diff --git a/tests/new/literal_with_escaped_LINE_FEED.ttl b/tests/new/literal_with_escaped_LINE_FEED.ttl new file mode 100644 index 00000000..b53f49ec --- /dev/null +++ b/tests/new/literal_with_escaped_LINE_FEED.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\n' . diff --git a/tests/new/literal_with_numeric_escape4.nt b/tests/new/literal_with_numeric_escape4.nt new file mode 100644 index 00000000..0b35a89a --- /dev/null +++ b/tests/new/literal_with_numeric_escape4.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "o" . diff --git a/tests/new/literal_with_numeric_escape4.ttl b/tests/new/literal_with_numeric_escape4.ttl new file mode 100644 index 00000000..2b4e0175 --- /dev/null +++ b/tests/new/literal_with_numeric_escape4.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\u006F' . diff --git a/tests/new/literal_with_numeric_escape8.ttl b/tests/new/literal_with_numeric_escape8.ttl new file mode 100644 index 00000000..8d0e4ef2 --- /dev/null +++ b/tests/new/literal_with_numeric_escape8.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\U0000006F' . diff --git a/tests/new/localname_with_COLON.nt b/tests/new/localname_with_COLON.nt new file mode 100644 index 00000000..eb966ca3 --- /dev/null +++ b/tests/new/localname_with_COLON.nt @@ -0,0 +1 @@ +<http://a.example/s:> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/localname_with_COLON.ttl b/tests/new/localname_with_COLON.ttl new file mode 100644 index 00000000..1d45f20f --- /dev/null +++ b/tests/new/localname_with_COLON.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s: <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/manifest.ttl b/tests/new/manifest.ttl new file mode 100644 index 00000000..60bb8b93 --- /dev/null +++ b/tests/new/manifest.ttl @@ -0,0 +1,605 @@ +# Turtle atomic test manifest + +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . +@prefix rdft: <http://www.w3.org/ns/rdftest#> . + +<> rdf:type mf:Manifest ; + rdfs:comment "Atomic Turtle tests" ; + mf:entries + ( + <#IRI_subject> + <#IRI_with_four_digit_numeric_escape> + <#IRI_with_eight_digit_numeric_escape> + <#IRI_with_all_punctuation> + <#bareword_a_predicate> + <#old_style_prefix> + <#SPARQL_style_prefix> + <#prefixed_IRI_predicate> + <#prefixed_IRI_object> + <#prefix_only_IRI> + <#default_namespace_IRI> + <#prefix_reassigned_and_used> + <#reserved_escaped_local_name> + <#percent_escaped_local_name> + <#HYPHEN_MINUS_in_local_name> + <#underscore_in_local_name> + <#localname_with_COLON> + <#old_style_base> + <#SPARQL_style_base> + <#labeled_blank_node_subject> + <#labeled_blank_node_object> + <#anonymous_blank_node_subject> + <#anonymous_blank_node_object> + <#sole_blankNodePropertyList> + <#blankNodePropertyList_as_subject> + <#blankNodePropertyList_as_object> + <#blankNodePropertyList_with_multiple_triples> + <#nested_blankNodePropertyLists> + <#blankNodePropertyList_containing_collection> + <#collection_subject> + <#collection_object> + <#empty_collection> + <#nested_collection> + <#first> + <#last> + <#LITERAL1> + <#LITERAL_LONG1> + <#LITERAL_LONG1_with_1_squote> + <#LITERAL_LONG1_with_2_squotes> + <#LITERAL2> + <#LITERAL_LONG2> + <#LITERAL_LONG2_with_1_squote> + <#LITERAL_LONG2_with_2_squotes> + <#literal_with_CHARACTER_TABULATION> + <#literal_with_BACKSPACE> + <#literal_with_LINE_FEED> + <#literal_with_CARRIAGE_RETURN> + <#literal_with_FORM_FEED> + <#literal_with_REVERSE_SOLIDUS> + <#literal_with_escaped_CHARACTER_TABULATION> + <#literal_with_escaped_BACKSPACE> + <#literal_with_escaped_LINE_FEED> + <#literal_with_escaped_CARRIAGE_RETURN> + <#literal_with_escaped_FORM_FEED> + <#literal_with_numeric_escape4> + <#literal_with_numeric_escape8> + <#IRIREF_datatype> + <#prefixed_name_datatype> + <#bareword_integer> + <#bareword_decimal> + <#bareword_double> + <#double_lower_case_e> + <#negative_numeric> + <#positive_numeric> + <#numeric_with_leading_0> + <#literal_true> + <#literal_false> + <#langtagged_non_LONG> + <#langtagged_LONG> + <#lantag_with_subtag> + <#objectList_with_two_objects> + <#predicateObjectList_with_two_objectLists> + <#repeated_semis_at_end> + <#repeated_semis_not_at_end> + ) . + +<#IRI_subject> rdf:type rdft:TestTurtleEval ; + mf:name "IRI_subject" ; + rdfs:comment "IRI subject" ; + mf:action <IRI_subject.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#IRI_with_four_digit_numeric_escape> rdf:type rdft:TestTurtleEval ; + mf:name "IRI_with_four_digit_numeric_escape" ; + rdfs:comment "IRI with four digit numeric escape (\\u)" ; + mf:action <IRI_with_four_digit_numeric_escape.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#IRI_with_eight_digit_numeric_escape> rdf:type rdft:TestTurtleEval ; + mf:name "IRI_with_eight_digit_numeric_escape" ; + rdfs:comment "IRI with eight digit numeric escape (\\U)" ; + mf:action <IRI_with_eight_digit_numeric_escape.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#IRI_with_all_punctuation> rdf:type rdft:TestTurtleEval ; + mf:name "IRI_with_all_punctuation" ; + rdfs:comment "IRI with all punctuation" ; + mf:action <IRI_with_all_punctuation.ttl> ; + mf:result <IRI_with_all_punctuation.nt> ; + . + +<#bareword_a_predicate> rdf:type rdft:TestTurtleEval ; + mf:name "bareword_a_predicate" ; + rdfs:comment "bareword a predicate" ; + mf:action <bareword_a_predicate.ttl> ; + mf:result <bareword_a_predicate.nt> ; + . + +<#old_style_prefix> rdf:type rdft:TestTurtleEval ; + mf:name "old_style_prefix" ; + rdfs:comment "old-style prefix" ; + mf:action <old_style_prefix.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#SPARQL_style_prefix> rdf:type rdft:TestTurtleEval ; + mf:name "SPARQL_style_prefix" ; + rdfs:comment "SPARQL-style prefix" ; + mf:action <SPARQL_style_prefix.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#prefixed_IRI_predicate> rdf:type rdft:TestTurtleEval ; + mf:name "prefixed_IRI_predicate" ; + rdfs:comment "prefixed IRI predicate" ; + mf:action <prefixed_IRI_predicate.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#prefixed_IRI_object> rdf:type rdft:TestTurtleEval ; + mf:name "prefixed_IRI_object" ; + rdfs:comment "prefixed IRI object" ; + mf:action <prefixed_IRI_object.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#prefix_only_IRI> rdf:type rdft:TestTurtleEval ; + mf:name "prefix_only_IRI" ; + rdfs:comment "prefix-only IRI (p:)" ; + mf:action <prefix_only_IRI.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#default_namespace_IRI> rdf:type rdft:TestTurtleEval ; + mf:name "default_namespace_IRI" ; + rdfs:comment "default namespace IRI (:ln)" ; + mf:action <default_namespace_IRI.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#prefix_reassigned_and_used> rdf:type rdft:TestTurtleEval ; + mf:name "prefix_reassigned_and_used" ; + rdfs:comment "prefix reassigned and used" ; + mf:action <prefix_reassigned_and_used.ttl> ; + mf:result <prefix_reassigned_and_used.nt> ; + . + +<#reserved_escaped_local_name> rdf:type rdft:TestTurtleEval ; + mf:name "reserved_escaped_local_name" ; + rdfs:comment "reserved-escaped local name" ; + mf:action <reserved_escaped_local_name.ttl> ; + mf:result <reserved_escaped_local_name.nt> ; + . + +<#percent_escaped_local_name> rdf:type rdft:TestTurtleEval ; + mf:name "percent_escaped_local_name" ; + rdfs:comment "percent-escaped local name" ; + mf:action <percent_escaped_local_name.ttl> ; + mf:result <percent_escaped_local_name.nt> ; + . + +<#HYPHEN_MINUS_in_local_name> rdf:type rdft:TestTurtleEval ; + mf:name "HYPHEN_MINUS_in_local_name" ; + rdfs:comment "HYPHEN-MINUS in local name" ; + mf:action <HYPHEN_MINUS_in_local_name.ttl> ; + mf:result <HYPHEN_MINUS_in_local_name.nt> ; + . + +<#underscore_in_local_name> rdf:type rdft:TestTurtleEval ; + mf:name "underscore_in_local_name" ; + rdfs:comment "underscore in local name" ; + mf:action <underscore_in_local_name.ttl> ; + mf:result <underscore_in_local_name.nt> ; + . + +<#localname_with_COLON> rdf:type rdft:TestTurtleEval ; + mf:name "localname_with_COLON" ; + rdfs:comment "localname with COLON" ; + mf:action <localname_with_COLON.ttl> ; + mf:result <localname_with_COLON.nt> ; + . + +<#old_style_base> rdf:type rdft:TestTurtleEval ; + mf:name "old_style_base" ; + rdfs:comment "old-style base" ; + mf:action <old_style_base.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#SPARQL_style_base> rdf:type rdft:TestTurtleEval ; + mf:name "SPARQL_style_base" ; + rdfs:comment "SPARQL-style base" ; + mf:action <SPARQL_style_base.ttl> ; + mf:result <IRI_subject.nt> ; + . + +<#labeled_blank_node_subject> rdf:type rdft:TestTurtleEval ; + mf:name "labeled_blank_node_subject" ; + rdfs:comment "labeled blank node subject" ; + mf:action <labeled_blank_node_subject.ttl> ; + mf:result <labeled_blank_node_subject.nt> ; + . + +<#labeled_blank_node_object> rdf:type rdft:TestTurtleEval ; + mf:name "labeled_blank_node_object" ; + rdfs:comment "labeled blank node object" ; + mf:action <labeled_blank_node_object.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" ; + mf:action <anonymous_blank_node_subject.ttl> ; + mf:result <labeled_blank_node_subject.nt> ; + . + +<#anonymous_blank_node_object> rdf:type rdft:TestTurtleEval ; + mf:name "anonymous_blank_node_object" ; + rdfs:comment "anonymous blank node object" ; + mf:action <anonymous_blank_node_object.ttl> ; + mf:result <anonymous_blank_node_object.nt> ; + . + +<#sole_blankNodePropertyList> rdf:type rdft:TestTurtleEval ; + mf:name "sole_blankNodePropertyList" ; + rdfs:comment "sole blankNodePropertyList [ <p> <o> ] ." ; + mf:action <sole_blankNodePropertyList.ttl> ; + mf:result <sole_blankNodePropertyList.nt> ; + . + +<#blankNodePropertyList_as_subject> rdf:type rdft:TestTurtleEval ; + mf:name "blankNodePropertyList_as_subject" ; + rdfs:comment "blankNodePropertyList as subject [ … ] <p> <o> ." ; + mf:action <blankNodePropertyList_as_subject.ttl> ; + mf:result <blankNodePropertyList_as_subject.nt> ; + . + +<#blankNodePropertyList_as_object> rdf:type rdft:TestTurtleEval ; + mf:name "blankNodePropertyList_as_object" ; + rdfs:comment "blankNodePropertyList as object <s> <p> [ … ] ." ; + mf:action <blankNodePropertyList_as_object.ttl> ; + mf:result <blankNodePropertyList_as_object.nt> ; + . + +<#blankNodePropertyList_with_multiple_triples> rdf:type rdft:TestTurtleEval ; + mf:name "blankNodePropertyList_with_multiple_triples" ; + rdfs:comment "blankNodePropertyList with multiple triples [ <s> <p> ; <s2> <p2> ]" ; + mf:action <blankNodePropertyList_with_multiple_triples.ttl> ; + mf:result <blankNodePropertyList_with_multiple_triples.nt> ; + . + +<#nested_blankNodePropertyLists> rdf:type rdft:TestTurtleEval ; + mf:name "nested_blankNodePropertyLists" ; + rdfs:comment "nested blankNodePropertyLists [ <p1> [ <p2> <o2> ] ; <p3> <o3> ]" ; + mf:action <nested_blankNodePropertyLists.ttl> ; + mf:result <nested_blankNodePropertyLists.nt> ; + . + +<#blankNodePropertyList_containing_collection> rdf:type rdft:TestTurtleEval ; + mf:name "blankNodePropertyList_containing_collection" ; + rdfs:comment "blankNodePropertyList containing collection [ <p1> ( … ) ]" ; + mf:action <blankNodePropertyList_containing_collection.ttl> ; + mf:result <blankNodePropertyList_containing_collection.nt> ; + . + +<#collection_subject> rdf:type rdft:TestTurtleEval ; + mf:name "collection_subject" ; + rdfs:comment "collection subject" ; + mf:action <collection_subject.ttl> ; + mf:result <collection_subject.nt> ; + . + +<#collection_object> rdf:type rdft:TestTurtleEval ; + mf:name "collection_object" ; + rdfs:comment "collection object" ; + mf:action <collection_object.ttl> ; + mf:result <collection_object.nt> ; + . + +<#empty_collection> rdf:type rdft:TestTurtleEval ; + mf:name "empty_collection" ; + rdfs:comment "empty collection ()" ; + mf:action <empty_collection.ttl> ; + mf:result <empty_collection.nt> ; + . + +<#nested_collection> rdf:type rdft:TestTurtleEval ; + mf:name "nested_collection" ; + rdfs:comment "nested collection (())" ; + mf:action <nested_collection.ttl> ; + mf:result <nested_collection.nt> ; + . + +<#first> rdf:type rdft:TestTurtleEval ; + mf:name "first" ; + rdfs:comment "first, not last, non-empty nested collection" ; + mf:action <first.ttl> ; + mf:result <first.nt> ; + . + +<#last> rdf:type rdft:TestTurtleEval ; + mf:name "last" ; + rdfs:comment "last, not first, non-empty nested collection" ; + mf:action <last.ttl> ; + mf:result <last.nt> ; + . + +<#LITERAL1> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL1" ; + rdfs:comment "LITERAL1 'x'" ; + mf:action <LITERAL1.ttl> ; + mf:result <LITERAL1.nt> ; + . + +<#LITERAL_LONG1> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL_LONG1" ; + rdfs:comment "LITERAL_LONG1 '''x'''" ; + mf:action <LITERAL_LONG1.ttl> ; + mf:result <LITERAL1.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'''" ; + mf:action <LITERAL_LONG1_with_1_squote.ttl> ; + mf:result <LITERAL_LONG1_with_1_squote.nt> ; + . + +<#LITERAL_LONG1_with_2_squotes> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL_LONG1_with_2_squotes" ; + rdfs:comment "LITERAL_LONG1 with 2 squotes '''a''b'''" ; + mf:action <LITERAL_LONG1_with_2_squotes.ttl> ; + mf:result <LITERAL_LONG1_with_2_squotes.nt> ; + . + +<#LITERAL2> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL2" ; + rdfs:comment "LITERAL2 \"x\"" ; + mf:action <LITERAL2.ttl> ; + mf:result <LITERAL1.nt> ; + . + +<#LITERAL_LONG2> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL_LONG2" ; + rdfs:comment "LITERAL_LONG2 \"\"\"x\"\"\"" ; + mf:action <LITERAL_LONG2.ttl> ; + mf:result <LITERAL1.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\"\"\"" ; + mf:action <LITERAL_LONG2_with_1_squote.ttl> ; + mf:result <LITERAL_LONG2_with_1_squote.nt> ; + . + +<#LITERAL_LONG2_with_2_squotes> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL_LONG2_with_2_squotes" ; + rdfs:comment "LITERAL_LONG2 with 2 squotes \"\"\"a\"\"b\"\"\"" ; + mf:action <LITERAL_LONG2_with_2_squotes.ttl> ; + mf:result <LITERAL_LONG2_with_2_squotes.nt> ; + . + +<#literal_with_CHARACTER_TABULATION> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_CHARACTER_TABULATION" ; + rdfs:comment "literal with CHARACTER TABULATION" ; + mf:action <literal_with_CHARACTER_TABULATION.ttl> ; + mf:result <literal_with_CHARACTER_TABULATION.nt> ; + . + +<#literal_with_BACKSPACE> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_BACKSPACE" ; + rdfs:comment "literal with BACKSPACE" ; + mf:action <literal_with_BACKSPACE.ttl> ; + mf:result <literal_with_BACKSPACE.nt> ; + . + +<#literal_with_LINE_FEED> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_LINE_FEED" ; + rdfs:comment "literal with LINE FEED" ; + mf:action <literal_with_LINE_FEED.ttl> ; + mf:result <literal_with_LINE_FEED.nt> ; + . + +<#literal_with_CARRIAGE_RETURN> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_CARRIAGE_RETURN" ; + rdfs:comment "literal with CARRIAGE RETURN" ; + mf:action <literal_with_CARRIAGE_RETURN.ttl> ; + mf:result <literal_with_CARRIAGE_RETURN.nt> ; + . + +<#literal_with_FORM_FEED> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_FORM_FEED" ; + rdfs:comment "literal with FORM FEED" ; + mf:action <literal_with_FORM_FEED.ttl> ; + mf:result <literal_with_FORM_FEED.nt> ; + . + +<#literal_with_REVERSE_SOLIDUS> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_REVERSE_SOLIDUS" ; + rdfs:comment "literal with REVERSE SOLIDUS" ; + mf:action <literal_with_REVERSE_SOLIDUS.ttl> ; + mf:result <literal_with_REVERSE_SOLIDUS.nt> ; + . + +<#literal_with_escaped_CHARACTER_TABULATION> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_escaped_CHARACTER_TABULATION" ; + rdfs:comment "literal with escaped CHARACTER TABULATION" ; + mf:action <literal_with_escaped_CHARACTER_TABULATION.ttl> ; + mf:result <literal_with_CHARACTER_TABULATION.nt> ; + . + +<#literal_with_escaped_BACKSPACE> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_escaped_BACKSPACE" ; + rdfs:comment "literal with escaped BACKSPACE" ; + mf:action <literal_with_escaped_BACKSPACE.ttl> ; + mf:result <literal_with_BACKSPACE.nt> ; + . + +<#literal_with_escaped_LINE_FEED> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_escaped_LINE_FEED" ; + rdfs:comment "literal with escaped LINE FEED" ; + mf:action <literal_with_escaped_LINE_FEED.ttl> ; + mf:result <literal_with_LINE_FEED.nt> ; + . + +<#literal_with_escaped_CARRIAGE_RETURN> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_escaped_CARRIAGE_RETURN" ; + rdfs:comment "literal with escaped CARRIAGE RETURN" ; + mf:action <literal_with_escaped_CARRIAGE_RETURN.ttl> ; + mf:result <literal_with_CARRIAGE_RETURN.nt> ; + . + +<#literal_with_escaped_FORM_FEED> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_escaped_FORM_FEED" ; + rdfs:comment "literal with escaped FORM FEED" ; + mf:action <literal_with_escaped_FORM_FEED.ttl> ; + mf:result <literal_with_FORM_FEED.nt> ; + . + +<#literal_with_numeric_escape4> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_numeric_escape4" ; + rdfs:comment "literal with numeric escape4 \\u" ; + mf:action <literal_with_numeric_escape4.ttl> ; + mf:result <literal_with_numeric_escape4.nt> ; + . + +<#literal_with_numeric_escape8> rdf:type rdft:TestTurtleEval ; + mf:name "literal_with_numeric_escape8" ; + rdfs:comment "literal with numeric escape8 \\U" ; + mf:action <literal_with_numeric_escape8.ttl> ; + mf:result <literal_with_numeric_escape4.nt> ; + . + +<#IRIREF_datatype> rdf:type rdft:TestTurtleEval ; + mf:name "IRIREF_datatype" ; + rdfs:comment "IRIREF datatype \"\"^^<t>" ; + mf:action <IRIREF_datatype.ttl> ; + mf:result <IRIREF_datatype.nt> ; + . + +<#prefixed_name_datatype> rdf:type rdft:TestTurtleEval ; + mf:name "prefixed_name_datatype" ; + rdfs:comment "prefixed name datatype \"\"^^p:t" ; + mf:action <prefixed_name_datatype.ttl> ; + mf:result <IRIREF_datatype.nt> ; + . + +<#bareword_integer> rdf:type rdft:TestTurtleEval ; + mf:name "bareword_integer" ; + rdfs:comment "bareword integer" ; + mf:action <bareword_integer.ttl> ; + mf:result <IRIREF_datatype.nt> ; + . + +<#bareword_decimal> rdf:type rdft:TestTurtleEval ; + mf:name "bareword_decimal" ; + rdfs:comment "bareword decimal" ; + mf:action <bareword_decimal.ttl> ; + mf:result <bareword_decimal.nt> ; + . + +<#bareword_double> rdf:type rdft:TestTurtleEval ; + mf:name "bareword_double" ; + rdfs:comment "bareword double" ; + mf:action <bareword_double.ttl> ; + mf:result <bareword_double.nt> ; + . + +<#double_lower_case_e> rdf:type rdft:TestTurtleEval ; + mf:name "double_lower_case_e" ; + rdfs:comment "double lower case e" ; + mf:action <double_lower_case_e.ttl> ; + mf:result <double_lower_case_e.nt> ; + . + +<#negative_numeric> rdf:type rdft:TestTurtleEval ; + mf:name "negative_numeric" ; + rdfs:comment "negative numeric" ; + mf:action <negative_numeric.ttl> ; + mf:result <negative_numeric.nt> ; + . + +<#positive_numeric> rdf:type rdft:TestTurtleEval ; + mf:name "positive_numeric" ; + rdfs:comment "positive numeric" ; + mf:action <positive_numeric.ttl> ; + mf:result <positive_numeric.nt> ; + . + +<#numeric_with_leading_0> rdf:type rdft:TestTurtleEval ; + mf:name "numeric_with_leading_0" ; + rdfs:comment "numeric with leading 0" ; + mf:action <numeric_with_leading_0.ttl> ; + mf:result <numeric_with_leading_0.nt> ; + . + +<#literal_true> rdf:type rdft:TestTurtleEval ; + mf:name "literal_true" ; + rdfs:comment "literal true" ; + mf:action <literal_true.ttl> ; + mf:result <literal_true.nt> ; + . + +<#literal_false> rdf:type rdft:TestTurtleEval ; + mf:name "literal_false" ; + rdfs:comment "literal false" ; + mf:action <literal_false.ttl> ; + mf:result <literal_false.nt> ; + . + +<#langtagged_non_LONG> rdf:type rdft:TestTurtleEval ; + mf:name "langtagged_non_LONG" ; + rdfs:comment "langtagged non-LONG \"x\"@en" ; + mf:action <langtagged_non_LONG.ttl> ; + mf:result <langtagged_non_LONG.nt> ; + . + +<#langtagged_LONG> rdf:type rdft:TestTurtleEval ; + mf:name "langtagged_LONG" ; + rdfs:comment "langtagged LONG \"\"\"x\"\"\"@en" ; + mf:action <langtagged_LONG.ttl> ; + mf:result <langtagged_non_LONG.nt> ; + . + +<#lantag_with_subtag> rdf:type rdft:TestTurtleEval ; + mf:name "lantag_with_subtag" ; + rdfs:comment "lantag with subtag \"x\"@en-us" ; + mf:action <lantag_with_subtag.ttl> ; + mf:result <lantag_with_subtag.nt> ; + . + +<#objectList_with_two_objects> rdf:type rdft:TestTurtleEval ; + mf:name "objectList_with_two_objects" ; + rdfs:comment "objectList with two objects … <o1>,<o2>" ; + mf:action <objectList_with_two_objects.ttl> ; + mf:result <objectList_with_two_objects.nt> ; + . + +<#predicateObjectList_with_two_objectLists> rdf:type rdft:TestTurtleEval ; + mf:name "predicateObjectList_with_two_objectLists" ; + rdfs:comment "predicateObjectList with two objectLists … <o1>,<o2>" ; + mf:action <predicateObjectList_with_two_objectLists.ttl> ; + mf:result <predicateObjectList_with_two_objectLists.nt> ; + . + +<#repeated_semis_at_end> rdf:type rdft:TestTurtleEval ; + mf:name "repeated_semis_at_end" ; + rdfs:comment "repeated semis at end <s> <p> <o> ;; <p2> <o2> ." ; + mf:action <repeated_semis_at_end.ttl> ; + mf:result <predicateObjectList_with_two_objectLists.nt> ; + . + +<#repeated_semis_not_at_end> rdf:type rdft:TestTurtleEval ; + mf:name "repeated_semis_not_at_end" ; + rdfs:comment "repeated semis not at end <s> <p> <o> ;;." ; + mf:action <repeated_semis_not_at_end.ttl> ; + mf:result <repeated_semis_not_at_end.nt> ; + . + diff --git a/tests/new/negative_numeric.nt b/tests/new/negative_numeric.nt new file mode 100644 index 00000000..4baf628d --- /dev/null +++ b/tests/new/negative_numeric.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/tests/new/negative_numeric.ttl b/tests/new/negative_numeric.ttl new file mode 100644 index 00000000..a6a7f57b --- /dev/null +++ b/tests/new/negative_numeric.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> -1 . diff --git a/tests/new/nested_blankNodePropertyLists.nt b/tests/new/nested_blankNodePropertyLists.nt new file mode 100644 index 00000000..5284c007 --- /dev/null +++ b/tests/new/nested_blankNodePropertyLists.nt @@ -0,0 +1,3 @@ +_:b1 <http://a.example/p1> _:b2 . +_:b2 <http://a.example/p2> <http://a.example/o2> . +_:b1 <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/nested_blankNodePropertyLists.ttl b/tests/new/nested_blankNodePropertyLists.ttl new file mode 100644 index 00000000..a3e4681c --- /dev/null +++ b/tests/new/nested_blankNodePropertyLists.ttl @@ -0,0 +1 @@ +[ <http://a.example/p1> [ <http://a.example/p2> <http://a.example/o2> ] ; <http://a.example/p> <http://a.example/o> ]. diff --git a/tests/new/nested_collection.nt b/tests/new/nested_collection.nt new file mode 100644 index 00000000..eaea2847 --- /dev/null +++ b/tests/new/nested_collection.nt @@ -0,0 +1,5 @@ +<http://a.example/s> <http://a.example/p> _:b1 . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b2 . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/tests/new/nested_collection.ttl b/tests/new/nested_collection.ttl new file mode 100644 index 00000000..944e7c6b --- /dev/null +++ b/tests/new/nested_collection.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ((1)) . diff --git a/tests/new/numeric_with_leading_0.nt b/tests/new/numeric_with_leading_0.nt new file mode 100644 index 00000000..1df5c472 --- /dev/null +++ b/tests/new/numeric_with_leading_0.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "01"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/tests/new/numeric_with_leading_0.ttl b/tests/new/numeric_with_leading_0.ttl new file mode 100644 index 00000000..a5eac209 --- /dev/null +++ b/tests/new/numeric_with_leading_0.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 01 . diff --git a/tests/new/objectList_with_two_objects.nt b/tests/new/objectList_with_two_objects.nt new file mode 100644 index 00000000..7f8e9c0f --- /dev/null +++ b/tests/new/objectList_with_two_objects.nt @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o1> . +<http://a.example/s> <http://a.example/p> <http://a.example/o2> . diff --git a/tests/new/objectList_with_two_objects.ttl b/tests/new/objectList_with_two_objects.ttl new file mode 100644 index 00000000..b12f02d1 --- /dev/null +++ b/tests/new/objectList_with_two_objects.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o1>, <http://a.example/o2> . diff --git a/tests/new/old_style_base.ttl b/tests/new/old_style_base.ttl new file mode 100644 index 00000000..f0f4c03c --- /dev/null +++ b/tests/new/old_style_base.ttl @@ -0,0 +1,2 @@ +@base <http://a.example/>. +<s> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/old_style_prefix.ttl b/tests/new/old_style_prefix.ttl new file mode 100644 index 00000000..59595672 --- /dev/null +++ b/tests/new/old_style_prefix.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/percent_escaped_local_name.nt b/tests/new/percent_escaped_local_name.nt new file mode 100644 index 00000000..e0af4b62 --- /dev/null +++ b/tests/new/percent_escaped_local_name.nt @@ -0,0 +1 @@ +<http://a.example/%25> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/percent_escaped_local_name.ttl b/tests/new/percent_escaped_local_name.ttl new file mode 100644 index 00000000..0564ccab --- /dev/null +++ b/tests/new/percent_escaped_local_name.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:%25 <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/positive_numeric.nt b/tests/new/positive_numeric.nt new file mode 100644 index 00000000..96e6086a --- /dev/null +++ b/tests/new/positive_numeric.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "+1"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/tests/new/positive_numeric.ttl b/tests/new/positive_numeric.ttl new file mode 100644 index 00000000..606691d9 --- /dev/null +++ b/tests/new/positive_numeric.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> +1 . diff --git a/tests/new/predicateObjectList_with_two_objectLists.nt b/tests/new/predicateObjectList_with_two_objectLists.nt new file mode 100644 index 00000000..274182c7 --- /dev/null +++ b/tests/new/predicateObjectList_with_two_objectLists.nt @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1> . +<http://a.example/s> <http://a.example/p2> <http://a.example/o2> . diff --git a/tests/new/predicateObjectList_with_two_objectLists.ttl b/tests/new/predicateObjectList_with_two_objectLists.ttl new file mode 100644 index 00000000..337b132f --- /dev/null +++ b/tests/new/predicateObjectList_with_two_objectLists.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1>; <http://a.example/p2> <http://a.example/o2> . diff --git a/tests/new/prefix_only_IRI.ttl b/tests/new/prefix_only_IRI.ttl new file mode 100644 index 00000000..9ff66603 --- /dev/null +++ b/tests/new/prefix_only_IRI.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/s>. +p: <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/prefix_reassigned_and_used.nt b/tests/new/prefix_reassigned_and_used.nt new file mode 100644 index 00000000..68bc9efe --- /dev/null +++ b/tests/new/prefix_reassigned_and_used.nt @@ -0,0 +1 @@ +<http://b.example/s> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/prefix_reassigned_and_used.ttl b/tests/new/prefix_reassigned_and_used.ttl new file mode 100644 index 00000000..1f948597 --- /dev/null +++ b/tests/new/prefix_reassigned_and_used.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +@prefix p: <http://b.example/>. +p:s <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/prefixed_IRI_object.ttl b/tests/new/prefixed_IRI_object.ttl new file mode 100644 index 00000000..c2d50362 --- /dev/null +++ b/tests/new/prefixed_IRI_object.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +<http://a.example/s> <http://a.example/p> p:o . diff --git a/tests/new/prefixed_IRI_predicate.ttl b/tests/new/prefixed_IRI_predicate.ttl new file mode 100644 index 00000000..2c1e5cc7 --- /dev/null +++ b/tests/new/prefixed_IRI_predicate.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +<http://a.example/s> p:p <http://a.example/o> . diff --git a/tests/new/prefixed_name_datatype.ttl b/tests/new/prefixed_name_datatype.ttl new file mode 100644 index 00000000..4a526073 --- /dev/null +++ b/tests/new/prefixed_name_datatype.ttl @@ -0,0 +1,2 @@ +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +<http://a.example/s> <http://a.example/p> "1"^^xsd:integer . diff --git a/tests/new/repeated_semis_at_end.ttl b/tests/new/repeated_semis_at_end.ttl new file mode 100644 index 00000000..8a4d9356 --- /dev/null +++ b/tests/new/repeated_semis_at_end.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; <http://a.example/p2> <http://a.example/o2> . diff --git a/tests/new/repeated_semis_not_at_end.nt b/tests/new/repeated_semis_not_at_end.nt new file mode 100644 index 00000000..9ac6005f --- /dev/null +++ b/tests/new/repeated_semis_not_at_end.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1> . diff --git a/tests/new/repeated_semis_not_at_end.ttl b/tests/new/repeated_semis_not_at_end.ttl new file mode 100644 index 00000000..3c8144f3 --- /dev/null +++ b/tests/new/repeated_semis_not_at_end.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; . diff --git a/tests/new/reserved_escaped_local_name.nt b/tests/new/reserved_escaped_local_name.nt new file mode 100644 index 00000000..1dd88393 --- /dev/null +++ b/tests/new/reserved_escaped_local_name.nt @@ -0,0 +1 @@ +<http://a.example/%00> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/reserved_escaped_local_name.ttl b/tests/new/reserved_escaped_local_name.ttl new file mode 100644 index 00000000..2464d655 --- /dev/null +++ b/tests/new/reserved_escaped_local_name.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:\%00 <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/sole_blankNodePropertyList.nt b/tests/new/sole_blankNodePropertyList.nt new file mode 100644 index 00000000..b48df9a7 --- /dev/null +++ b/tests/new/sole_blankNodePropertyList.nt @@ -0,0 +1 @@ +_:b1 <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/sole_blankNodePropertyList.ttl b/tests/new/sole_blankNodePropertyList.ttl new file mode 100644 index 00000000..5cc300f3 --- /dev/null +++ b/tests/new/sole_blankNodePropertyList.ttl @@ -0,0 +1 @@ +[ <http://a.example/p> <http://a.example/o> ] . diff --git a/tests/new/underscore_in_local_name.nt b/tests/new/underscore_in_local_name.nt new file mode 100644 index 00000000..f9d0c4f1 --- /dev/null +++ b/tests/new/underscore_in_local_name.nt @@ -0,0 +1 @@ +<http://a.example/s_> <http://a.example/p> <http://a.example/o> . diff --git a/tests/new/underscore_in_local_name.ttl b/tests/new/underscore_in_local_name.ttl new file mode 100644 index 00000000..34596fdf --- /dev/null +++ b/tests/new/underscore_in_local_name.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s_ <http://a.example/p> <http://a.example/o> . |