diff options
author | David Robillard <d@drobilla.net> | 2023-04-03 09:00:12 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-05 09:45:15 -0400 |
commit | 08a09191dd69e66aa56822383e84fe034d59dd3f (patch) | |
tree | 36048566f68bf46b8ad6b52925e0fac30f9f38fa /test/w3c | |
parent | f1adf9a4999d80d26314565d0c1f49c4471e5851 (diff) | |
download | serd-08a09191dd69e66aa56822383e84fe034d59dd3f.tar.gz serd-08a09191dd69e66aa56822383e84fe034d59dd3f.tar.bz2 serd-08a09191dd69e66aa56822383e84fe034d59dd3f.zip |
Separate test suites and simplify licensing metadata
Diffstat (limited to 'test/w3c')
1005 files changed, 9768 insertions, 0 deletions
diff --git a/test/w3c/NQuadsTests/README b/test/w3c/NQuadsTests/README new file mode 100644 index 00000000..7aef79dd --- /dev/null +++ b/test/w3c/NQuadsTests/README @@ -0,0 +1,25 @@ +This README is for the W3C RDF Working Group's N-Quads test suite. +This test suite contains two kinds of tests: + + Positive syntax (rdft:TestNQuadsPositiveSyntax) - an input N-Quads + file with no syntax errors. + + Negative syntax (rdft:TestNQuadsNegativeSyntax) - an input N-Quads + file with at least one syntax error. + +The manifest.ttl file in this directory lists tests in the +RDF WG's N-Quads test suite. All +tests have a name (mf:name) and an input (mf:action). + +• An implementation passes a positive syntax test if it parses the + input. + +• An implementation passes a negative syntax test if it fails to parse + the input. + +The home of the test suite is <http://www.w3.org/2013/NQuadsTests/>. + +See http://www.w3.org/2011/rdf-wg/wiki/RDF_Test_Suites for more details. + +Eric Prud'hommeaux <eric+turtle@w3.org> - 11 June 2013. +Gregg Kellogg <gregg@greggkellogg.net> - 26 June 2013. diff --git a/test/w3c/NQuadsTests/comment_following_triple.nq b/test/w3c/NQuadsTests/comment_following_triple.nq new file mode 100644 index 00000000..5619459a --- /dev/null +++ b/test/w3c/NQuadsTests/comment_following_triple.nq @@ -0,0 +1,5 @@ +<http://example/s> <http://example/p> <http://example/o> . # comment +<http://example/s> <http://example/p> _:o . # comment +<http://example/s> <http://example/p> "o" . # comment +<http://example/s> <http://example/p> "o"^^<http://example/dt> . # comment +<http://example/s> <http://example/p> "o"@en . # comment diff --git a/test/w3c/NQuadsTests/langtagged_string.nq b/test/w3c/NQuadsTests/langtagged_string.nq new file mode 100644 index 00000000..1bddb04e --- /dev/null +++ b/test/w3c/NQuadsTests/langtagged_string.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en . diff --git a/test/w3c/NQuadsTests/lantag_with_subtag.nq b/test/w3c/NQuadsTests/lantag_with_subtag.nq new file mode 100644 index 00000000..629cbf42 --- /dev/null +++ b/test/w3c/NQuadsTests/lantag_with_subtag.nq @@ -0,0 +1 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "Cheers"@en-UK . diff --git a/test/w3c/NQuadsTests/literal.nq b/test/w3c/NQuadsTests/literal.nq new file mode 100644 index 00000000..3aba89e4 --- /dev/null +++ b/test/w3c/NQuadsTests/literal.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x" . diff --git a/test/w3c/NQuadsTests/literal_all_controls.nq b/test/w3c/NQuadsTests/literal_all_controls.nq new file mode 100644 index 00000000..91c8af14 --- /dev/null +++ b/test/w3c/NQuadsTests/literal_all_controls.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" . diff --git a/test/w3c/NQuadsTests/literal_all_punctuation.nq b/test/w3c/NQuadsTests/literal_all_punctuation.nq new file mode 100644 index 00000000..c25d818f --- /dev/null +++ b/test/w3c/NQuadsTests/literal_all_punctuation.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> " !\"#$%&():;<=>?@[]^_`{|}~" . diff --git a/test/w3c/NQuadsTests/literal_ascii_boundaries.nq b/test/w3c/NQuadsTests/literal_ascii_boundaries.nq Binary files differnew file mode 100644 index 00000000..7a4dc717 --- /dev/null +++ b/test/w3c/NQuadsTests/literal_ascii_boundaries.nq diff --git a/test/w3c/NQuadsTests/literal_false.nq b/test/w3c/NQuadsTests/literal_false.nq new file mode 100644 index 00000000..5bbbae84 --- /dev/null +++ b/test/w3c/NQuadsTests/literal_false.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . diff --git a/test/w3c/NQuadsTests/literal_true.nq b/test/w3c/NQuadsTests/literal_true.nq new file mode 100644 index 00000000..054b229f --- /dev/null +++ b/test/w3c/NQuadsTests/literal_true.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . diff --git a/test/w3c/NQuadsTests/literal_with_2_dquotes.nq b/test/w3c/NQuadsTests/literal_with_2_dquotes.nq new file mode 100644 index 00000000..3e69dc10 --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_2_dquotes.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"\"y" . diff --git a/test/w3c/NQuadsTests/literal_with_2_squotes.nq b/test/w3c/NQuadsTests/literal_with_2_squotes.nq new file mode 100644 index 00000000..8ddc52e8 --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_2_squotes.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x''y" . diff --git a/test/w3c/NQuadsTests/literal_with_BACKSPACE.nq b/test/w3c/NQuadsTests/literal_with_BACKSPACE.nq new file mode 100644 index 00000000..339013df --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_BACKSPACE.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\b" . diff --git a/test/w3c/NQuadsTests/literal_with_CARRIAGE_RETURN.nq b/test/w3c/NQuadsTests/literal_with_CARRIAGE_RETURN.nq new file mode 100644 index 00000000..91b85c89 --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_CARRIAGE_RETURN.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\r" . diff --git a/test/w3c/NQuadsTests/literal_with_CHARACTER_TABULATION.nq b/test/w3c/NQuadsTests/literal_with_CHARACTER_TABULATION.nq new file mode 100644 index 00000000..a6a9d9f0 --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_CHARACTER_TABULATION.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\t" . diff --git a/test/w3c/NQuadsTests/literal_with_FORM_FEED.nq b/test/w3c/NQuadsTests/literal_with_FORM_FEED.nq new file mode 100644 index 00000000..10d2c6d7 --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_FORM_FEED.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\f" . diff --git a/test/w3c/NQuadsTests/literal_with_LINE_FEED.nq b/test/w3c/NQuadsTests/literal_with_LINE_FEED.nq new file mode 100644 index 00000000..462f97ac --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_LINE_FEED.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\n" . diff --git a/test/w3c/NQuadsTests/literal_with_REVERSE_SOLIDUS.nq b/test/w3c/NQuadsTests/literal_with_REVERSE_SOLIDUS.nq new file mode 100644 index 00000000..ebc846ed --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_REVERSE_SOLIDUS.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\\" . diff --git a/test/w3c/NQuadsTests/literal_with_REVERSE_SOLIDUS2.nq b/test/w3c/NQuadsTests/literal_with_REVERSE_SOLIDUS2.nq new file mode 100644 index 00000000..586e364d --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_REVERSE_SOLIDUS2.nq @@ -0,0 +1 @@ +<http://example.org/ns#s> <http://example.org/ns#p1> "test-\\" . diff --git a/test/w3c/NQuadsTests/literal_with_UTF8_boundaries.nq b/test/w3c/NQuadsTests/literal_with_UTF8_boundaries.nq new file mode 100644 index 00000000..0e1616db --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_UTF8_boundaries.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "߿ࠀက쿿퀀�𐀀" . diff --git a/test/w3c/NQuadsTests/literal_with_dquote.nq b/test/w3c/NQuadsTests/literal_with_dquote.nq new file mode 100644 index 00000000..05a1fd3a --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_dquote.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"y" . diff --git a/test/w3c/NQuadsTests/literal_with_numeric_escape4.nq b/test/w3c/NQuadsTests/literal_with_numeric_escape4.nq new file mode 100644 index 00000000..16f0a036 --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_numeric_escape4.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u006F" . diff --git a/test/w3c/NQuadsTests/literal_with_numeric_escape8.nq b/test/w3c/NQuadsTests/literal_with_numeric_escape8.nq new file mode 100644 index 00000000..e909a79d --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_numeric_escape8.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\U0000006F" . diff --git a/test/w3c/NQuadsTests/literal_with_squote.nq b/test/w3c/NQuadsTests/literal_with_squote.nq new file mode 100644 index 00000000..acf7f58f --- /dev/null +++ b/test/w3c/NQuadsTests/literal_with_squote.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x'y" . diff --git a/test/w3c/NQuadsTests/manifest.ttl b/test/w3c/NQuadsTests/manifest.ttl new file mode 100644 index 00000000..eb5f5508 --- /dev/null +++ b/test/w3c/NQuadsTests/manifest.ttl @@ -0,0 +1,695 @@ +# N-Quads Syntax tests + +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . +@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> . + +@prefix rdft: <http://www.w3.org/ns/rdftest#> . + +<> a mf:Manifest ; + mf:name "N-Quads tests" ; + mf:entries + ( + <#nq-syntax-uri-01> + <#nq-syntax-uri-02> + <#nq-syntax-uri-03> + <#nq-syntax-uri-04> + <#nq-syntax-uri-05> + <#nq-syntax-uri-06> + <#nq-syntax-bnode-01> + <#nq-syntax-bnode-02> + <#nq-syntax-bnode-03> + <#nq-syntax-bnode-04> + <#nq-syntax-bnode-05> + <#nq-syntax-bnode-06> + <#nq-syntax-bad-literal-01> + <#nq-syntax-bad-literal-02> + <#nq-syntax-bad-literal-03> + <#nq-syntax-bad-uri-01> + <#nq-syntax-bad-quint-01> + <#nt-syntax-file-01> + <#nt-syntax-file-02> + <#nt-syntax-file-03> + <#nt-syntax-uri-01> + <#nt-syntax-uri-02> + <#nt-syntax-uri-03> + <#nt-syntax-uri-04> + <#nt-syntax-string-01> + <#nt-syntax-string-02> + <#nt-syntax-string-03> + <#nt-syntax-str-esc-01> + <#nt-syntax-str-esc-02> + <#nt-syntax-str-esc-03> + <#nt-syntax-bnode-01> + <#nt-syntax-bnode-02> + <#nt-syntax-bnode-03> + <#nt-syntax-datatypes-01> + <#nt-syntax-datatypes-02> + <#nt-syntax-bad-uri-01> + <#nt-syntax-bad-uri-02> + <#nt-syntax-bad-uri-03> + <#nt-syntax-bad-uri-04> + <#nt-syntax-bad-uri-05> + <#nt-syntax-bad-uri-06> + <#nt-syntax-bad-uri-07> + <#nt-syntax-bad-uri-08> + <#nt-syntax-bad-uri-09> + <#nt-syntax-bad-prefix-01> + <#nt-syntax-bad-base-01> + <#nt-syntax-bad-struct-01> + <#nt-syntax-bad-struct-02> + <#nt-syntax-bad-lang-01> + <#nt-syntax-bad-esc-01> + <#nt-syntax-bad-esc-02> + <#nt-syntax-bad-esc-03> + <#nt-syntax-bad-string-01> + <#nt-syntax-bad-string-02> + <#nt-syntax-bad-string-03> + <#nt-syntax-bad-string-04> + <#nt-syntax-bad-string-05> + <#nt-syntax-bad-string-06> + <#nt-syntax-bad-string-07> + <#nt-syntax-bad-num-01> + <#nt-syntax-bad-num-02> + <#nt-syntax-bad-num-03> + <#nt-syntax-subm-01> + <#comment_following_triple> + <#literal> + <#literal_all_controls> + <#literal_all_punctuation> + <#literal_ascii_boundaries> + <#literal_with_2_dquotes> + <#literal_with_2_squotes> + <#literal_with_BACKSPACE> + <#literal_with_CARRIAGE_RETURN> + <#literal_with_CHARACTER_TABULATION> + <#literal_with_dquote> + <#literal_with_FORM_FEED> + <#literal_with_LINE_FEED> + <#literal_with_numeric_escape4> + <#literal_with_numeric_escape8> + <#literal_with_REVERSE_SOLIDUS> + <#literal_with_REVERSE_SOLIDUS2> + <#literal_with_squote> + <#literal_with_UTF8_boundaries> + <#langtagged_string> + <#lantag_with_subtag> + <#minimal_whitespace> + ) . + +<#nq-syntax-uri-01> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-uri-01" ; + rdfs:comment "URI graph with URI triple" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-uri-01.nq> ; + . + +<#nq-syntax-uri-02> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-uri-02" ; + rdfs:comment "URI graph with BNode subject" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-uri-02.nq> ; + . + +<#nq-syntax-uri-03> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-uri-03" ; + rdfs:comment "URI graph with BNode object" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-uri-03.nq> ; + . + +<#nq-syntax-uri-04> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-uri-04" ; + rdfs:comment "URI graph with simple literal" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-uri-04.nq> ; + . + +<#nq-syntax-uri-05> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-uri-05" ; + rdfs:comment "URI graph with language tagged literal" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-uri-05.nq> ; + . + +<#nq-syntax-uri-06> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-uri-06" ; + rdfs:comment "URI graph with datatyped literal" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-uri-06.nq> ; + . + +<#nq-syntax-bnode-01> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-bnode-01" ; + rdfs:comment "BNode graph with URI triple" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bnode-01.nq> ; + . + +<#nq-syntax-bnode-02> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-bnode-02" ; + rdfs:comment "BNode graph with BNode subject" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bnode-02.nq> ; + . + +<#nq-syntax-bnode-03> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-bnode-03" ; + rdfs:comment "BNode graph with BNode object" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bnode-03.nq> ; + . + +<#nq-syntax-bnode-04> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-bnode-04" ; + rdfs:comment "BNode graph with simple literal" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bnode-04.nq> ; + . + +<#nq-syntax-bnode-05> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-bnode-05" ; + rdfs:comment "BNode graph with language tagged literal" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bnode-05.nq> ; + . + +<#nq-syntax-bnode-06> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nq-syntax-bnode-06" ; + rdfs:comment "BNode graph with datatyped literal" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bnode-06.nq> ; + . + +<#nq-syntax-bad-literal-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nq-syntax-bad-literal-01" ; + rdfs:comment "Graph name may not be a simple literal (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bad-literal-01.nq> ; + . + +<#nq-syntax-bad-literal-02> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nq-syntax-bad-literal-02" ; + rdfs:comment "Graph name may not be a language tagged literal (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bad-literal-02.nq> ; + . + +<#nq-syntax-bad-literal-03> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nq-syntax-bad-literal-03" ; + rdfs:comment "Graph name may not be a datatyped literal (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bad-literal-03.nq> ; + . + +<#nq-syntax-bad-uri-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nq-syntax-bad-uri-01" ; + rdfs:comment "Graph name URI must be absolute (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bad-uri-01.nq> ; + . + +<#nq-syntax-bad-quint-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nq-syntax-bad-quint-01" ; + rdfs:comment "N-Quads does not have a fifth element (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nq-syntax-bad-quint-01.nq> ; + . + +<#nt-syntax-file-01> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-file-01" ; + rdfs:comment "Empty file" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-file-01.nq> ; + . + +<#nt-syntax-file-02> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-file-02" ; + rdfs:comment "Only comment" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-file-02.nq> ; + . + +<#nt-syntax-file-03> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-file-03" ; + rdfs:comment "One comment, one empty line" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-file-03.nq> ; + . + +<#nt-syntax-uri-01> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-uri-01" ; + rdfs:comment "Only IRIs" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-uri-01.nq> ; + . + +<#nt-syntax-uri-02> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-uri-02" ; + rdfs:comment "IRIs with Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-uri-02.nq> ; + . + +<#nt-syntax-uri-03> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-uri-03" ; + rdfs:comment "IRIs with long Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-uri-03.nq> ; + . + +<#nt-syntax-uri-04> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-uri-04" ; + rdfs:comment "Legal IRIs" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-uri-04.nq> ; + . + +<#nt-syntax-string-01> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-string-01" ; + rdfs:comment "string literal" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-string-01.nq> ; + . + +<#nt-syntax-string-02> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-string-02" ; + rdfs:comment "langString literal" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-string-02.nq> ; + . + +<#nt-syntax-string-03> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-string-03" ; + rdfs:comment "langString literal with region" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-string-03.nq> ; + . + +<#nt-syntax-str-esc-01> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-str-esc-01" ; + rdfs:comment "string literal with escaped newline" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-str-esc-01.nq> ; + . + +<#nt-syntax-str-esc-02> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-str-esc-02" ; + rdfs:comment "string literal with Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-str-esc-02.nq> ; + . + +<#nt-syntax-str-esc-03> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-str-esc-03" ; + rdfs:comment "string literal with long Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-str-esc-03.nq> ; + . + +<#nt-syntax-bnode-01> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-bnode-01" ; + rdfs:comment "bnode subject" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bnode-01.nq> ; + . + +<#nt-syntax-bnode-02> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-bnode-02" ; + rdfs:comment "bnode object" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bnode-02.nq> ; + . + +<#nt-syntax-bnode-03> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-bnode-03" ; + rdfs:comment "Blank node labels may start with a digit" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bnode-03.nq> ; + . + +<#nt-syntax-datatypes-01> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-datatypes-01" ; + rdfs:comment "xsd:byte literal" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-datatypes-01.nq> ; + . + +<#nt-syntax-datatypes-02> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-datatypes-02" ; + rdfs:comment "integer as xsd:string" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-datatypes-02.nq> ; + . + +<#nt-syntax-bad-uri-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-uri-01" ; + rdfs:comment "Bad IRI : space (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-uri-01.nq> ; + . + +<#nt-syntax-bad-uri-02> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-uri-02" ; + rdfs:comment "Bad IRI : bad escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-uri-02.nq> ; + . + +<#nt-syntax-bad-uri-03> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-uri-03" ; + rdfs:comment "Bad IRI : bad long escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-uri-03.nq> ; + . + +<#nt-syntax-bad-uri-04> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-uri-04" ; + rdfs:comment "Bad IRI : character escapes not allowed (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-uri-04.nq> ; + . + +<#nt-syntax-bad-uri-05> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-uri-05" ; + rdfs:comment "Bad IRI : character escapes not allowed (2) (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-uri-05.nq> ; + . + +<#nt-syntax-bad-uri-06> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-uri-06" ; + rdfs:comment "Bad IRI : relative IRI not allowed in subject (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-uri-06.nq> ; + . + +<#nt-syntax-bad-uri-07> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-uri-07" ; + rdfs:comment "Bad IRI : relative IRI not allowed in predicate (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-uri-07.nq> ; + . + +<#nt-syntax-bad-uri-08> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-uri-08" ; + rdfs:comment "Bad IRI : relative IRI not allowed in object (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-uri-08.nq> ; + . + +<#nt-syntax-bad-uri-09> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-uri-09" ; + rdfs:comment "Bad IRI : relative IRI not allowed in datatype (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-uri-09.nq> ; + . + +<#nt-syntax-bad-prefix-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-prefix-01" ; + rdfs:comment "@prefix not allowed in n-triples (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-prefix-01.nq> ; + . + +<#nt-syntax-bad-base-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-base-01" ; + rdfs:comment "@base not allowed in N-Triples (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-base-01.nq> ; + . + +<#nt-syntax-bad-struct-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-struct-01" ; + rdfs:comment "N-Triples does not have objectList (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-struct-01.nq> ; + . + +<#nt-syntax-bad-struct-02> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-struct-02" ; + rdfs:comment "N-Triples does not have predicateObjectList (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-struct-02.nq> ; + . + +<#nt-syntax-bad-lang-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-lang-01" ; + rdfs:comment "langString with bad lang (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-lang-01.nq> ; + . + +<#nt-syntax-bad-esc-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-esc-01" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-esc-01.nq> ; + . + +<#nt-syntax-bad-esc-02> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-esc-02" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-esc-02.nq> ; + . + +<#nt-syntax-bad-esc-03> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-esc-03" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-esc-03.nq> ; + . + +<#nt-syntax-bad-string-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-string-01" ; + rdfs:comment "mismatching string literal open/close (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-string-01.nq> ; + . + +<#nt-syntax-bad-string-02> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-string-02" ; + rdfs:comment "mismatching string literal open/close (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-string-02.nq> ; + . + +<#nt-syntax-bad-string-03> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-string-03" ; + rdfs:comment "single quotes (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-string-03.nq> ; + . + +<#nt-syntax-bad-string-04> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-string-04" ; + rdfs:comment "long single string literal (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-string-04.nq> ; + . + +<#nt-syntax-bad-string-05> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-string-05" ; + rdfs:comment "long double string literal (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-string-05.nq> ; + . + +<#nt-syntax-bad-string-06> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-string-06" ; + rdfs:comment "string literal with no end (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-string-06.nq> ; + . + +<#nt-syntax-bad-string-07> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-string-07" ; + rdfs:comment "string literal with no start (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-string-07.nq> ; + . + +<#nt-syntax-bad-num-01> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-num-01" ; + rdfs:comment "no numbers in N-Triples (integer) (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-num-01.nq> ; + . + +<#nt-syntax-bad-num-02> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-num-02" ; + rdfs:comment "no numbers in N-Triples (decimal) (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-num-02.nq> ; + . + +<#nt-syntax-bad-num-03> a rdft:TestNQuadsNegativeSyntax ; + mf:name "nt-syntax-bad-num-03" ; + rdfs:comment "no numbers in N-Triples (float) (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-bad-num-03.nq> ; + . + +<#nt-syntax-subm-01> a rdft:TestNQuadsPositiveSyntax ; + mf:name "nt-syntax-subm-01" ; + rdfs:comment "Submission test from Original RDF Test Cases" ; + rdft:approval rdft:Approved ; + mf:action <nt-syntax-subm-01.nq> ; + . + +<#comment_following_triple> a rdft:TestNQuadsPositiveSyntax ; + mf:name "comment_following_triple" ; + rdfs:comment "Tests comments after a triple" ; + rdft:approval rdft:Approved ; + mf:action <comment_following_triple.nq> ; + . + +<#literal_ascii_boundaries> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_ascii_boundaries" ; + rdfs:comment "literal_ascii_boundaries '\\x00\\x26\\x28...'" ; + rdft:approval rdft:Approved ; + mf:action <literal_ascii_boundaries.nq> ; + . + +<#literal_with_UTF8_boundaries> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_UTF8_boundaries" ; + rdfs:comment "literal_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_UTF8_boundaries.nq> ; + . + +<#literal_all_controls> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_all_controls" ; + rdfs:comment "literal_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ; + rdft:approval rdft:Approved ; + rdft:approval rdft:Approved ; + mf:action <literal_all_controls.nq> ; + . + +<#literal_all_punctuation> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_all_punctuation" ; + rdfs:comment "literal_all_punctuation '!\"#$%&()...'" ; + rdft:approval rdft:Approved ; + rdft:approval rdft:Approved ; + mf:action <literal_all_punctuation.nq> ; + . + +<#literal_with_squote> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_squote" ; + rdfs:comment "literal with squote \"x'y\"" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_squote.nq> ; + . + +<#literal_with_2_squotes> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_2_squotes" ; + rdfs:comment "literal with 2 squotes \"x''y\"" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_2_squotes.nq> ; + . + +<#literal> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal" ; + rdfs:comment "literal \"\"\"x\"\"\"" ; + rdft:approval rdft:Approved ; + mf:action <literal.nq> ; + . + +<#literal_with_dquote> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_dquote" ; + rdfs:comment "literal with dquote \"x\"y\"" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_dquote.nq> ; + . + +<#literal_with_2_dquotes> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_2_dquotes" ; + rdfs:comment "literal with 2 squotes \"\"\"a\"\"b\"\"\"" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_2_dquotes.nq> ; + . + +<#literal_with_REVERSE_SOLIDUS2> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_REVERSE_SOLIDUS2" ; + rdfs:comment "REVERSE SOLIDUS at end of literal" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_REVERSE_SOLIDUS2.nq> ; + . + +<#literal_with_CHARACTER_TABULATION> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_CHARACTER_TABULATION" ; + rdfs:comment "literal with CHARACTER TABULATION" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_CHARACTER_TABULATION.nq> ; + . + +<#literal_with_BACKSPACE> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_BACKSPACE" ; + rdfs:comment "literal with BACKSPACE" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_BACKSPACE.nq> ; + . + +<#literal_with_LINE_FEED> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_LINE_FEED" ; + rdfs:comment "literal with LINE FEED" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_LINE_FEED.nq> ; + . + +<#literal_with_CARRIAGE_RETURN> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_CARRIAGE_RETURN" ; + rdfs:comment "literal with CARRIAGE RETURN" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_CARRIAGE_RETURN.nq> ; + . + +<#literal_with_FORM_FEED> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_FORM_FEED" ; + rdfs:comment "literal with FORM FEED" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_FORM_FEED.nq> ; + . + +<#literal_with_REVERSE_SOLIDUS> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_REVERSE_SOLIDUS" ; + rdfs:comment "literal with REVERSE SOLIDUS" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_REVERSE_SOLIDUS.nq> ; + . + +<#literal_with_numeric_escape4> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_numeric_escape4" ; + rdfs:comment "literal with numeric escape4 \\u" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_numeric_escape4.nq> ; + . + +<#literal_with_numeric_escape8> a rdft:TestNQuadsPositiveSyntax ; + mf:name "literal_with_numeric_escape8" ; + rdfs:comment "literal with numeric escape8 \\U" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_numeric_escape8.nq> ; + . + +<#langtagged_string> a rdft:TestNQuadsPositiveSyntax ; + mf:name "langtagged_string" ; + rdfs:comment "langtagged string \"x\"@en" ; + rdft:approval rdft:Approved ; + mf:action <langtagged_string.nq> ; + . + +<#lantag_with_subtag> a rdft:TestNQuadsPositiveSyntax ; + mf:name "lantag_with_subtag" ; + rdfs:comment "lantag with subtag \"x\"@en-us" ; + rdft:approval rdft:Approved ; + mf:action <lantag_with_subtag.nq> ; + . + +<#minimal_whitespace> a rdft:TestNQuadsPositiveSyntax ; + mf:name "minimal_whitespace" ; + rdfs:comment "tests absense of whitespace between subject, predicate, object and end-of-statement" ; + rdft:approval rdft:Approved ; + mf:action <minimal_whitespace.nq> ; + . diff --git a/test/w3c/NQuadsTests/minimal_whitespace.nq b/test/w3c/NQuadsTests/minimal_whitespace.nq new file mode 100644 index 00000000..e9e3a801 --- /dev/null +++ b/test/w3c/NQuadsTests/minimal_whitespace.nq @@ -0,0 +1,6 @@ +<http://example/s><http://example/p><http://example/o>. +<http://example/s><http://example/p>"Alice". +<http://example/s><http://example/p>_:o. +_:s<http://example/p><http://example/o>. +_:s<http://example/p>"Alice". +_:s<http://example/p>_:bnode1. diff --git a/test/w3c/NQuadsTests/nq-syntax-bad-literal-01.nq b/test/w3c/NQuadsTests/nq-syntax-bad-literal-01.nq new file mode 100644 index 00000000..bb17eb37 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bad-literal-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o> "o" .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-bad-literal-02.nq b/test/w3c/NQuadsTests/nq-syntax-bad-literal-02.nq new file mode 100644 index 00000000..ea303b28 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bad-literal-02.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o> "o"@en .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-bad-literal-03.nq b/test/w3c/NQuadsTests/nq-syntax-bad-literal-03.nq new file mode 100644 index 00000000..854b867f --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bad-literal-03.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o> "o"^^<http://www.w3.org/2001/XMLSchema#string> .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-bad-quint-01.nq b/test/w3c/NQuadsTests/nq-syntax-bad-quint-01.nq new file mode 100644 index 00000000..52b7581e --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bad-quint-01.nq @@ -0,0 +1,2 @@ +# N-Quads rejects a quint +<http://example/s> <http://example/p> <http://example/o> <http://example/g> <http://example/n> . diff --git a/test/w3c/NQuadsTests/nq-syntax-bad-uri-01.nq b/test/w3c/NQuadsTests/nq-syntax-bad-uri-01.nq new file mode 100644 index 00000000..3bf4dbd0 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bad-uri-01.nq @@ -0,0 +1,2 @@ +# No relative IRIs in N-Quads +<http://example/s> <http://example/p> <http://example/o> <g>. diff --git a/test/w3c/NQuadsTests/nq-syntax-bnode-01.nq b/test/w3c/NQuadsTests/nq-syntax-bnode-01.nq new file mode 100644 index 00000000..b7acbd5c --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bnode-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o> _:g .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-bnode-02.nq b/test/w3c/NQuadsTests/nq-syntax-bnode-02.nq new file mode 100644 index 00000000..07c92637 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bnode-02.nq @@ -0,0 +1 @@ +_:s <http://example/p> <http://example/o> _:g .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-bnode-03.nq b/test/w3c/NQuadsTests/nq-syntax-bnode-03.nq new file mode 100644 index 00000000..5f89bd96 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bnode-03.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> _:o _:g .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-bnode-04.nq b/test/w3c/NQuadsTests/nq-syntax-bnode-04.nq new file mode 100644 index 00000000..f89ca814 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bnode-04.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "o" _:g .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-bnode-05.nq b/test/w3c/NQuadsTests/nq-syntax-bnode-05.nq new file mode 100644 index 00000000..9bb45ce6 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bnode-05.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "o"@en _:g .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-bnode-06.nq b/test/w3c/NQuadsTests/nq-syntax-bnode-06.nq new file mode 100644 index 00000000..194ffdc2 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-bnode-06.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "o"^^<http://www.w3.org/2001/XMLSchema#string> _:g .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-uri-01.nq b/test/w3c/NQuadsTests/nq-syntax-uri-01.nq new file mode 100644 index 00000000..3026e122 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-uri-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o> <http://example/g> .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-uri-02.nq b/test/w3c/NQuadsTests/nq-syntax-uri-02.nq new file mode 100644 index 00000000..1590ab94 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-uri-02.nq @@ -0,0 +1 @@ +_:s <http://example/p> <http://example/o> <http://example/g> .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-uri-03.nq b/test/w3c/NQuadsTests/nq-syntax-uri-03.nq new file mode 100644 index 00000000..4592edcb --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-uri-03.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> _:o <http://example/g> .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-uri-04.nq b/test/w3c/NQuadsTests/nq-syntax-uri-04.nq new file mode 100644 index 00000000..f7b834ab --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-uri-04.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "o" <http://example/g> .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-uri-05.nq b/test/w3c/NQuadsTests/nq-syntax-uri-05.nq new file mode 100644 index 00000000..cf5a0ee2 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-uri-05.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "o"@en <http://example/g> .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nq-syntax-uri-06.nq b/test/w3c/NQuadsTests/nq-syntax-uri-06.nq new file mode 100644 index 00000000..65e77033 --- /dev/null +++ b/test/w3c/NQuadsTests/nq-syntax-uri-06.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "o"^^<http://www.w3.org/2001/XMLSchema#string> <http://example/g> .
\ No newline at end of file diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-base-01.nq b/test/w3c/NQuadsTests/nt-syntax-bad-base-01.nq new file mode 100644 index 00000000..dff1b3b4 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-base-01.nq @@ -0,0 +1 @@ +@base <http://example/> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-esc-01.nq b/test/w3c/NQuadsTests/nt-syntax-bad-esc-01.nq new file mode 100644 index 00000000..f7a88add --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-esc-01.nq @@ -0,0 +1,2 @@ +# Bad string escape +<http://example/s> <http://example/p> "a\zb" . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-esc-02.nq b/test/w3c/NQuadsTests/nt-syntax-bad-esc-02.nq new file mode 100644 index 00000000..72711d49 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-esc-02.nq @@ -0,0 +1,2 @@ +# Bad string escape +<http://example/s> <http://example/p> "\uWXYZ" . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-esc-03.nq b/test/w3c/NQuadsTests/nt-syntax-bad-esc-03.nq new file mode 100644 index 00000000..3a4522fc --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-esc-03.nq @@ -0,0 +1,2 @@ +# Bad string escape +<http://example/s> <http://example/p> "\U0000WXYZ" . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-lang-01.nq b/test/w3c/NQuadsTests/nt-syntax-bad-lang-01.nq new file mode 100644 index 00000000..a4d952c8 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-lang-01.nq @@ -0,0 +1,2 @@ +# Bad lang tag +<http://example/s> <http://example/p> "string"@1 . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-num-01.nq b/test/w3c/NQuadsTests/nt-syntax-bad-num-01.nq new file mode 100644 index 00000000..2be6f516 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-num-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1 . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-num-02.nq b/test/w3c/NQuadsTests/nt-syntax-bad-num-02.nq new file mode 100644 index 00000000..e1d5b06c --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-num-02.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1.0 . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-num-03.nq b/test/w3c/NQuadsTests/nt-syntax-bad-num-03.nq new file mode 100644 index 00000000..a9be82fc --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-num-03.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1.0e0 . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-prefix-01.nq b/test/w3c/NQuadsTests/nt-syntax-bad-prefix-01.nq new file mode 100644 index 00000000..89e08cc7 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-prefix-01.nq @@ -0,0 +1 @@ +@prefix : <http://example/> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-string-01.nq b/test/w3c/NQuadsTests/nt-syntax-bad-string-01.nq new file mode 100644 index 00000000..988af87a --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-string-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "abc' . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-string-02.nq b/test/w3c/NQuadsTests/nt-syntax-bad-string-02.nq new file mode 100644 index 00000000..e1d5b06c --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-string-02.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1.0 . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-string-03.nq b/test/w3c/NQuadsTests/nt-syntax-bad-string-03.nq new file mode 100644 index 00000000..64d343da --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-string-03.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1.0e1 . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-string-04.nq b/test/w3c/NQuadsTests/nt-syntax-bad-string-04.nq new file mode 100644 index 00000000..af4ff28f --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-string-04.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> '''abc''' . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-string-05.nq b/test/w3c/NQuadsTests/nt-syntax-bad-string-05.nq new file mode 100644 index 00000000..75ad4b2b --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-string-05.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> """abc""" . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-string-06.nq b/test/w3c/NQuadsTests/nt-syntax-bad-string-06.nq new file mode 100644 index 00000000..56dcbc60 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-string-06.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "abc . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-string-07.nq b/test/w3c/NQuadsTests/nt-syntax-bad-string-07.nq new file mode 100644 index 00000000..7f1ee800 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-string-07.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> abc" . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-struct-01.nq b/test/w3c/NQuadsTests/nt-syntax-bad-struct-01.nq new file mode 100644 index 00000000..d546d564 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-struct-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o>, <http://example/o2> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-struct-02.nq b/test/w3c/NQuadsTests/nt-syntax-bad-struct-02.nq new file mode 100644 index 00000000..1f388c6e --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-struct-02.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o>; <http://example/p2>, <http://example/o2> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-uri-01.nq b/test/w3c/NQuadsTests/nt-syntax-bad-uri-01.nq new file mode 100644 index 00000000..0e69dc0c --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-01.nq @@ -0,0 +1,2 @@ +# Bad IRI : space. +<http://example/ space> <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-uri-02.nq b/test/w3c/NQuadsTests/nt-syntax-bad-uri-02.nq new file mode 100644 index 00000000..36d91af9 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-02.nq @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +<http://example/\u00ZZ11> <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-uri-03.nq b/test/w3c/NQuadsTests/nt-syntax-bad-uri-03.nq new file mode 100644 index 00000000..f512345f --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-03.nq @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +<http://example/\U00ZZ1111> <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-uri-04.nq b/test/w3c/NQuadsTests/nt-syntax-bad-uri-04.nq new file mode 100644 index 00000000..5cab062c --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-04.nq @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +<http://example/\n> <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-uri-05.nq b/test/w3c/NQuadsTests/nt-syntax-bad-uri-05.nq new file mode 100644 index 00000000..be0a21e0 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-05.nq @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +<http://example/\/> <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-uri-06.nq b/test/w3c/NQuadsTests/nt-syntax-bad-uri-06.nq new file mode 100644 index 00000000..b4e64592 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-06.nq @@ -0,0 +1,2 @@ +# No relative IRIs in N-Triples +<s> <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-uri-07.nq b/test/w3c/NQuadsTests/nt-syntax-bad-uri-07.nq new file mode 100644 index 00000000..74534dde --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-07.nq @@ -0,0 +1,2 @@ +# No relative IRIs in N-Triples +<http://example/s> <p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-uri-08.nq b/test/w3c/NQuadsTests/nt-syntax-bad-uri-08.nq new file mode 100644 index 00000000..41a953d4 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-08.nq @@ -0,0 +1,2 @@ +# No relative IRIs in N-Triples +<http://example/s> <http://example/p> <o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-uri-09.nq b/test/w3c/NQuadsTests/nt-syntax-bad-uri-09.nq new file mode 100644 index 00000000..58821da8 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-09.nq @@ -0,0 +1,2 @@ +# No relative IRIs in N-Triples +<http://example/s> <http://example/p> "foo"^^<dt> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bnode-01.nq b/test/w3c/NQuadsTests/nt-syntax-bnode-01.nq new file mode 100644 index 00000000..5fb0d0f9 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bnode-01.nq @@ -0,0 +1 @@ +_:a <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bnode-02.nq b/test/w3c/NQuadsTests/nt-syntax-bnode-02.nq new file mode 100644 index 00000000..737e81b4 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bnode-02.nq @@ -0,0 +1,2 @@ +<http://example/s> <http://example/p> _:a . +_:a <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bnode-03.nq b/test/w3c/NQuadsTests/nt-syntax-bnode-03.nq new file mode 100644 index 00000000..1a1f1c9f --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bnode-03.nq @@ -0,0 +1,2 @@ +<http://example/s> <http://example/p> _:1a . +_:1a <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-datatypes-01.nq b/test/w3c/NQuadsTests/nt-syntax-datatypes-01.nq new file mode 100644 index 00000000..91263091 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-datatypes-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "123"^^<http://www.w3.org/2001/XMLSchema#byte> . diff --git a/test/w3c/NQuadsTests/nt-syntax-datatypes-02.nq b/test/w3c/NQuadsTests/nt-syntax-datatypes-02.nq new file mode 100644 index 00000000..d49cc27d --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-datatypes-02.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "123"^^<http://www.w3.org/2001/XMLSchema#string> . diff --git a/test/w3c/NQuadsTests/nt-syntax-file-01.nq b/test/w3c/NQuadsTests/nt-syntax-file-01.nq new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-file-01.nq diff --git a/test/w3c/NQuadsTests/nt-syntax-file-02.nq b/test/w3c/NQuadsTests/nt-syntax-file-02.nq new file mode 100644 index 00000000..e6d327d5 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-file-02.nq @@ -0,0 +1 @@ +#Empty file. diff --git a/test/w3c/NQuadsTests/nt-syntax-file-03.nq b/test/w3c/NQuadsTests/nt-syntax-file-03.nq new file mode 100644 index 00000000..a9ca0358 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-file-03.nq @@ -0,0 +1,2 @@ +#One comment, one empty line. + diff --git a/test/w3c/NQuadsTests/nt-syntax-str-esc-01.nq b/test/w3c/NQuadsTests/nt-syntax-str-esc-01.nq new file mode 100644 index 00000000..3925f2ec --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-str-esc-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "a\n" . diff --git a/test/w3c/NQuadsTests/nt-syntax-str-esc-02.nq b/test/w3c/NQuadsTests/nt-syntax-str-esc-02.nq new file mode 100644 index 00000000..e7d032f0 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-str-esc-02.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "a\u0020b" . diff --git a/test/w3c/NQuadsTests/nt-syntax-str-esc-03.nq b/test/w3c/NQuadsTests/nt-syntax-str-esc-03.nq new file mode 100644 index 00000000..b8588c79 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-str-esc-03.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "a\U00000020b" . diff --git a/test/w3c/NQuadsTests/nt-syntax-string-01.nq b/test/w3c/NQuadsTests/nt-syntax-string-01.nq new file mode 100644 index 00000000..5333aefe --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-string-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "string" . diff --git a/test/w3c/NQuadsTests/nt-syntax-string-02.nq b/test/w3c/NQuadsTests/nt-syntax-string-02.nq new file mode 100644 index 00000000..1ab55a33 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-string-02.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "string"@en . diff --git a/test/w3c/NQuadsTests/nt-syntax-string-03.nq b/test/w3c/NQuadsTests/nt-syntax-string-03.nq new file mode 100644 index 00000000..b34ca0f6 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-string-03.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "string"@en-uk . diff --git a/test/w3c/NQuadsTests/nt-syntax-subm-01.nq b/test/w3c/NQuadsTests/nt-syntax-subm-01.nq new file mode 100644 index 00000000..91b49889 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-subm-01.nq @@ -0,0 +1,79 @@ +# +# Copyright World Wide Web Consortium, (Massachusetts Institute of +# Technology, Institut National de Recherche en Informatique et en +# Automatique, Keio University). +# +# All Rights Reserved. +# +# Please see the full Copyright clause at +# <http://www.w3.org/Consortium/Legal/copyright-software.html> +# +# Test file with a variety of legal N-Triples +# +# Dave Beckett - http://purl.org/net/dajobe/ +# +# $Id: test.nt,v 1.7 2003/10/06 15:52:19 dbeckett2 Exp $ +# +##################################################################### + +# comment lines + # comment line after whitespace +# empty blank line, then one with spaces and tabs + + +<http://example.org/resource1> <http://example.org/property> <http://example.org/resource2> . +_:anon <http://example.org/property> <http://example.org/resource2> . +<http://example.org/resource2> <http://example.org/property> _:anon . +# spaces and tabs throughout: + <http://example.org/resource3> <http://example.org/property> <http://example.org/resource2> . + +# line ending with CR NL (ASCII 13, ASCII 10) +<http://example.org/resource4> <http://example.org/property> <http://example.org/resource2> . + +# 2 statement lines separated by single CR (ASCII 10) +<http://example.org/resource5> <http://example.org/property> <http://example.org/resource2> . +<http://example.org/resource6> <http://example.org/property> <http://example.org/resource2> . + + +# All literal escapes +<http://example.org/resource7> <http://example.org/property> "simple literal" . +<http://example.org/resource8> <http://example.org/property> "backslash:\\" . +<http://example.org/resource9> <http://example.org/property> "dquote:\"" . +<http://example.org/resource10> <http://example.org/property> "newline:\n" . +<http://example.org/resource11> <http://example.org/property> "return\r" . +<http://example.org/resource12> <http://example.org/property> "tab:\t" . + +# Space is optional before final . +<http://example.org/resource13> <http://example.org/property> <http://example.org/resource2>. +<http://example.org/resource14> <http://example.org/property> "x". +<http://example.org/resource15> <http://example.org/property> _:anon. + +# \u and \U escapes +# latin small letter e with acute symbol \u00E9 - 3 UTF-8 bytes #xC3 #A9 +<http://example.org/resource16> <http://example.org/property> "\u00E9" . +# Euro symbol \u20ac - 3 UTF-8 bytes #xE2 #x82 #xAC +<http://example.org/resource17> <http://example.org/property> "\u20AC" . +# resource18 test removed +# resource19 test removed +# resource20 test removed + +# XML Literals as Datatyped Literals +<http://example.org/resource21> <http://example.org/property> ""^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource22> <http://example.org/property> " "^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource23> <http://example.org/property> "x"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource23> <http://example.org/property> "\""^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource24> <http://example.org/property> "<a></a>"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource25> <http://example.org/property> "a <b></b>"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource26> <http://example.org/property> "a <b></b> c"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource26> <http://example.org/property> "a\n<b></b>\nc"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource27> <http://example.org/property> "chat"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +# resource28 test removed 2003-08-03 +# resource29 test removed 2003-08-03 + +# Plain literals with languages +<http://example.org/resource30> <http://example.org/property> "chat"@fr . +<http://example.org/resource31> <http://example.org/property> "chat"@en . + +# Typed Literals +<http://example.org/resource32> <http://example.org/property> "abc"^^<http://example.org/datatype1> . +# resource33 test removed 2003-08-03 diff --git a/test/w3c/NQuadsTests/nt-syntax-uri-01.nq b/test/w3c/NQuadsTests/nt-syntax-uri-01.nq new file mode 100644 index 00000000..02e6ba98 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-uri-01.nq @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-uri-02.nq b/test/w3c/NQuadsTests/nt-syntax-uri-02.nq new file mode 100644 index 00000000..664feea1 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-uri-02.nq @@ -0,0 +1,2 @@ +# x53 is capital S +<http://example/\u0053> <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-uri-03.nq b/test/w3c/NQuadsTests/nt-syntax-uri-03.nq new file mode 100644 index 00000000..b5aeb26e --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-uri-03.nq @@ -0,0 +1,2 @@ +# x53 is capital S +<http://example/\U00000053> <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-uri-04.nq b/test/w3c/NQuadsTests/nt-syntax-uri-04.nq new file mode 100644 index 00000000..49bacca7 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-uri-04.nq @@ -0,0 +1,2 @@ +# IRI with all chars in it. +<http://example/s> <http://example/p> <scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> . diff --git a/test/w3c/NTriplesTests/README b/test/w3c/NTriplesTests/README new file mode 100644 index 00000000..12d8bf16 --- /dev/null +++ b/test/w3c/NTriplesTests/README @@ -0,0 +1,25 @@ +This README is for the W3C RDF Working Group's N-Triples test suite. +This test suite contains two kinds of tests: + + Positive syntax (rdft:TestNTriplesPositiveSyntax) - an input N-Triples + file with no syntax errors. + + Negative syntax (rdft:TestNTriplesNegativeSyntax) - an input N-Triples + file with at least one syntax error. + +The manifest.ttl file in this directory lists tests in the +RDF WG's N-Triples test suite. All +tests have a name (mf:name) and an input (mf:action). + +• An implementation passes a positive syntax test if it parses the + input. + +• An implementation passes a negative syntax test if it fails to parse + the input. + +The home of the test suite is <http://www.w3.org/2013/N-TriplesTests/>. + +See http://www.w3.org/2011/rdf-wg/wiki/RDF_Test_Suites for more details. + +Eric Prud'hommeaux <eric+turtle@w3.org> - 11 June 2013. +Gregg Kellogg <gregg@greggkellogg.net> - 26 June 2013. diff --git a/test/w3c/NTriplesTests/comment_following_triple.nt b/test/w3c/NTriplesTests/comment_following_triple.nt new file mode 100644 index 00000000..5619459a --- /dev/null +++ b/test/w3c/NTriplesTests/comment_following_triple.nt @@ -0,0 +1,5 @@ +<http://example/s> <http://example/p> <http://example/o> . # comment +<http://example/s> <http://example/p> _:o . # comment +<http://example/s> <http://example/p> "o" . # comment +<http://example/s> <http://example/p> "o"^^<http://example/dt> . # comment +<http://example/s> <http://example/p> "o"@en . # comment diff --git a/test/w3c/NTriplesTests/langtagged_string.nt b/test/w3c/NTriplesTests/langtagged_string.nt new file mode 100644 index 00000000..1bddb04e --- /dev/null +++ b/test/w3c/NTriplesTests/langtagged_string.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en . diff --git a/test/w3c/NTriplesTests/lantag_with_subtag.nt b/test/w3c/NTriplesTests/lantag_with_subtag.nt new file mode 100644 index 00000000..629cbf42 --- /dev/null +++ b/test/w3c/NTriplesTests/lantag_with_subtag.nt @@ -0,0 +1 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "Cheers"@en-UK . diff --git a/test/w3c/NTriplesTests/literal.nt b/test/w3c/NTriplesTests/literal.nt new file mode 100644 index 00000000..3aba89e4 --- /dev/null +++ b/test/w3c/NTriplesTests/literal.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x" . diff --git a/test/w3c/NTriplesTests/literal_all_controls.nt b/test/w3c/NTriplesTests/literal_all_controls.nt new file mode 100644 index 00000000..91c8af14 --- /dev/null +++ b/test/w3c/NTriplesTests/literal_all_controls.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" . diff --git a/test/w3c/NTriplesTests/literal_all_punctuation.nt b/test/w3c/NTriplesTests/literal_all_punctuation.nt new file mode 100644 index 00000000..c25d818f --- /dev/null +++ b/test/w3c/NTriplesTests/literal_all_punctuation.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> " !\"#$%&():;<=>?@[]^_`{|}~" . diff --git a/test/w3c/NTriplesTests/literal_ascii_boundaries.nt b/test/w3c/NTriplesTests/literal_ascii_boundaries.nt Binary files differnew file mode 100644 index 00000000..7a4dc717 --- /dev/null +++ b/test/w3c/NTriplesTests/literal_ascii_boundaries.nt diff --git a/test/w3c/NTriplesTests/literal_false.nt b/test/w3c/NTriplesTests/literal_false.nt new file mode 100644 index 00000000..5bbbae84 --- /dev/null +++ b/test/w3c/NTriplesTests/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/test/w3c/NTriplesTests/literal_true.nt b/test/w3c/NTriplesTests/literal_true.nt new file mode 100644 index 00000000..054b229f --- /dev/null +++ b/test/w3c/NTriplesTests/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/test/w3c/NTriplesTests/literal_with_2_dquotes.nt b/test/w3c/NTriplesTests/literal_with_2_dquotes.nt new file mode 100644 index 00000000..3e69dc10 --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_2_dquotes.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"\"y" . diff --git a/test/w3c/NTriplesTests/literal_with_2_squotes.nt b/test/w3c/NTriplesTests/literal_with_2_squotes.nt new file mode 100644 index 00000000..8ddc52e8 --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_2_squotes.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x''y" . diff --git a/test/w3c/NTriplesTests/literal_with_BACKSPACE.nt b/test/w3c/NTriplesTests/literal_with_BACKSPACE.nt new file mode 100644 index 00000000..339013df --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_BACKSPACE.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\b" . diff --git a/test/w3c/NTriplesTests/literal_with_CARRIAGE_RETURN.nt b/test/w3c/NTriplesTests/literal_with_CARRIAGE_RETURN.nt new file mode 100644 index 00000000..91b85c89 --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_CARRIAGE_RETURN.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\r" . diff --git a/test/w3c/NTriplesTests/literal_with_CHARACTER_TABULATION.nt b/test/w3c/NTriplesTests/literal_with_CHARACTER_TABULATION.nt new file mode 100644 index 00000000..a6a9d9f0 --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_CHARACTER_TABULATION.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\t" . diff --git a/test/w3c/NTriplesTests/literal_with_FORM_FEED.nt b/test/w3c/NTriplesTests/literal_with_FORM_FEED.nt new file mode 100644 index 00000000..10d2c6d7 --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_FORM_FEED.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\f" . diff --git a/test/w3c/NTriplesTests/literal_with_LINE_FEED.nt b/test/w3c/NTriplesTests/literal_with_LINE_FEED.nt new file mode 100644 index 00000000..462f97ac --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_LINE_FEED.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\n" . diff --git a/test/w3c/NTriplesTests/literal_with_REVERSE_SOLIDUS.nt b/test/w3c/NTriplesTests/literal_with_REVERSE_SOLIDUS.nt new file mode 100644 index 00000000..ebc846ed --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_REVERSE_SOLIDUS.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\\" . diff --git a/test/w3c/NTriplesTests/literal_with_REVERSE_SOLIDUS2.nt b/test/w3c/NTriplesTests/literal_with_REVERSE_SOLIDUS2.nt new file mode 100644 index 00000000..586e364d --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_REVERSE_SOLIDUS2.nt @@ -0,0 +1 @@ +<http://example.org/ns#s> <http://example.org/ns#p1> "test-\\" . diff --git a/test/w3c/NTriplesTests/literal_with_UTF8_boundaries.nt b/test/w3c/NTriplesTests/literal_with_UTF8_boundaries.nt new file mode 100644 index 00000000..0e1616db --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_UTF8_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "߿ࠀက쿿퀀�𐀀" . diff --git a/test/w3c/NTriplesTests/literal_with_dquote.nt b/test/w3c/NTriplesTests/literal_with_dquote.nt new file mode 100644 index 00000000..05a1fd3a --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_dquote.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"y" . diff --git a/test/w3c/NTriplesTests/literal_with_numeric_escape4.nt b/test/w3c/NTriplesTests/literal_with_numeric_escape4.nt new file mode 100644 index 00000000..16f0a036 --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_numeric_escape4.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u006F" . diff --git a/test/w3c/NTriplesTests/literal_with_numeric_escape8.nt b/test/w3c/NTriplesTests/literal_with_numeric_escape8.nt new file mode 100644 index 00000000..e909a79d --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_numeric_escape8.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\U0000006F" . diff --git a/test/w3c/NTriplesTests/literal_with_squote.nt b/test/w3c/NTriplesTests/literal_with_squote.nt new file mode 100644 index 00000000..acf7f58f --- /dev/null +++ b/test/w3c/NTriplesTests/literal_with_squote.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x'y" . diff --git a/test/w3c/NTriplesTests/manifest.ttl b/test/w3c/NTriplesTests/manifest.ttl new file mode 100644 index 00000000..246561cb --- /dev/null +++ b/test/w3c/NTriplesTests/manifest.ttl @@ -0,0 +1,512 @@ +# N-Triples Syntax tests + +@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 qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> . + +@prefix rdft: <http://www.w3.org/ns/rdftest#> . + +<> rdf:type mf:Manifest ; + mf:name "N-Triples tests" ; + mf:entries + ( + <#nt-syntax-file-01> + <#nt-syntax-file-02> + <#nt-syntax-file-03> + <#nt-syntax-uri-01> + <#nt-syntax-uri-02> + <#nt-syntax-uri-03> + <#nt-syntax-uri-04> + <#nt-syntax-string-01> + <#nt-syntax-string-02> + <#nt-syntax-string-03> + <#nt-syntax-str-esc-01> + <#nt-syntax-str-esc-02> + <#nt-syntax-str-esc-03> + <#nt-syntax-bnode-01> + <#nt-syntax-bnode-02> + <#nt-syntax-bnode-03> + <#nt-syntax-datatypes-01> + <#nt-syntax-datatypes-02> + <#nt-syntax-bad-uri-01> + <#nt-syntax-bad-uri-02> + <#nt-syntax-bad-uri-03> + <#nt-syntax-bad-uri-04> + <#nt-syntax-bad-uri-05> + <#nt-syntax-bad-uri-06> + <#nt-syntax-bad-uri-07> + <#nt-syntax-bad-uri-08> + <#nt-syntax-bad-uri-09> + <#nt-syntax-bad-prefix-01> + <#nt-syntax-bad-base-01> + <#nt-syntax-bad-struct-01> + <#nt-syntax-bad-struct-02> + <#nt-syntax-bad-lang-01> + <#nt-syntax-bad-esc-01> + <#nt-syntax-bad-esc-02> + <#nt-syntax-bad-esc-03> + <#nt-syntax-bad-string-01> + <#nt-syntax-bad-string-02> + <#nt-syntax-bad-string-03> + <#nt-syntax-bad-string-04> + <#nt-syntax-bad-string-05> + <#nt-syntax-bad-string-06> + <#nt-syntax-bad-string-07> + <#nt-syntax-bad-num-01> + <#nt-syntax-bad-num-02> + <#nt-syntax-bad-num-03> + <#nt-syntax-subm-01> + <#comment_following_triple> + <#literal> + <#literal_all_controls> + <#literal_all_punctuation> + <#literal_ascii_boundaries> + <#literal_with_2_dquotes> + <#literal_with_2_squotes> + <#literal_with_BACKSPACE> + <#literal_with_CARRIAGE_RETURN> + <#literal_with_CHARACTER_TABULATION> + <#literal_with_dquote> + <#literal_with_FORM_FEED> + <#literal_with_LINE_FEED> + <#literal_with_numeric_escape4> + <#literal_with_numeric_escape8> + <#literal_with_REVERSE_SOLIDUS> + <#literal_with_REVERSE_SOLIDUS2> + <#literal_with_squote> + <#literal_with_UTF8_boundaries> + <#langtagged_string> + <#lantag_with_subtag> + <#minimal_whitespace> + ) . + +<#nt-syntax-file-01> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-file-01" ; + rdfs:comment "Empty file" ; + mf:action <nt-syntax-file-01.nt> ; + . + +<#nt-syntax-file-02> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-file-02" ; + rdfs:comment "Only comment" ; + mf:action <nt-syntax-file-02.nt> ; + . + +<#nt-syntax-file-03> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-file-03" ; + rdfs:comment "One comment, one empty line" ; + mf:action <nt-syntax-file-03.nt> ; + . + +<#nt-syntax-uri-01> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-uri-01" ; + rdfs:comment "Only IRIs" ; + mf:action <nt-syntax-uri-01.nt> ; + . + +<#nt-syntax-uri-02> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-uri-02" ; + rdfs:comment "IRIs with Unicode escape" ; + mf:action <nt-syntax-uri-02.nt> ; + . + +<#nt-syntax-uri-03> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-uri-03" ; + rdfs:comment "IRIs with long Unicode escape" ; + mf:action <nt-syntax-uri-03.nt> ; + . + +<#nt-syntax-uri-04> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-uri-04" ; + rdfs:comment "Legal IRIs" ; + mf:action <nt-syntax-uri-04.nt> ; + . + +<#nt-syntax-string-01> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-string-01" ; + rdfs:comment "string literal" ; + mf:action <nt-syntax-string-01.nt> ; + . + +<#nt-syntax-string-02> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-string-02" ; + rdfs:comment "langString literal" ; + mf:action <nt-syntax-string-02.nt> ; + . + +<#nt-syntax-string-03> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-string-03" ; + rdfs:comment "langString literal with region" ; + mf:action <nt-syntax-string-03.nt> ; + . + +<#nt-syntax-str-esc-01> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-str-esc-01" ; + rdfs:comment "string literal with escaped newline" ; + mf:action <nt-syntax-str-esc-01.nt> ; + . + +<#nt-syntax-str-esc-02> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-str-esc-02" ; + rdfs:comment "string literal with Unicode escape" ; + mf:action <nt-syntax-str-esc-02.nt> ; + . + +<#nt-syntax-str-esc-03> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-str-esc-03" ; + rdfs:comment "string literal with long Unicode escape" ; + mf:action <nt-syntax-str-esc-03.nt> ; + . + +<#nt-syntax-bnode-01> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-bnode-01" ; + rdfs:comment "bnode subject" ; + mf:action <nt-syntax-bnode-01.nt> ; + . + +<#nt-syntax-bnode-02> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-bnode-02" ; + rdfs:comment "bnode object" ; + mf:action <nt-syntax-bnode-02.nt> ; + . + +<#nt-syntax-bnode-03> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-bnode-03" ; + rdfs:comment "Blank node labels may start with a digit" ; + mf:action <nt-syntax-bnode-03.nt> ; + . + +<#nt-syntax-datatypes-01> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-datatypes-01" ; + rdfs:comment "xsd:byte literal" ; + mf:action <nt-syntax-datatypes-01.nt> ; + . + +<#nt-syntax-datatypes-02> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-datatypes-02" ; + rdfs:comment "integer as xsd:string" ; + mf:action <nt-syntax-datatypes-02.nt> ; + . + +<#nt-syntax-bad-uri-01> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-uri-01" ; + rdfs:comment "Bad IRI : space (negative test)" ; + mf:action <nt-syntax-bad-uri-01.nt> ; + . + +<#nt-syntax-bad-uri-02> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-uri-02" ; + rdfs:comment "Bad IRI : bad escape (negative test)" ; + mf:action <nt-syntax-bad-uri-02.nt> ; + . + +<#nt-syntax-bad-uri-03> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-uri-03" ; + rdfs:comment "Bad IRI : bad long escape (negative test)" ; + mf:action <nt-syntax-bad-uri-03.nt> ; + . + +<#nt-syntax-bad-uri-04> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-uri-04" ; + rdfs:comment "Bad IRI : character escapes not allowed (negative test)" ; + mf:action <nt-syntax-bad-uri-04.nt> ; + . + +<#nt-syntax-bad-uri-05> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-uri-05" ; + rdfs:comment "Bad IRI : character escapes not allowed (2) (negative test)" ; + mf:action <nt-syntax-bad-uri-05.nt> ; + . + +<#nt-syntax-bad-uri-06> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-uri-06" ; + rdfs:comment "Bad IRI : relative IRI not allowed in subject (negative test)" ; + mf:action <nt-syntax-bad-uri-06.nt> ; + . + +<#nt-syntax-bad-uri-07> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-uri-07" ; + rdfs:comment "Bad IRI : relative IRI not allowed in predicate (negative test)" ; + mf:action <nt-syntax-bad-uri-07.nt> ; + . + +<#nt-syntax-bad-uri-08> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-uri-08" ; + rdfs:comment "Bad IRI : relative IRI not allowed in object (negative test)" ; + mf:action <nt-syntax-bad-uri-08.nt> ; + . + +<#nt-syntax-bad-uri-09> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-uri-09" ; + rdfs:comment "Bad IRI : relative IRI not allowed in datatype (negative test)" ; + mf:action <nt-syntax-bad-uri-09.nt> ; + . + +<#nt-syntax-bad-prefix-01> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-prefix-01" ; + rdfs:comment "@prefix not allowed in n-triples (negative test)" ; + mf:action <nt-syntax-bad-prefix-01.nt> ; + . + +<#nt-syntax-bad-base-01> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-base-01" ; + rdfs:comment "@base not allowed in N-Triples (negative test)" ; + mf:action <nt-syntax-bad-base-01.nt> ; + . + +<#nt-syntax-bad-struct-01> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-struct-01" ; + rdfs:comment "N-Triples does not have objectList (negative test)" ; + mf:action <nt-syntax-bad-struct-01.nt> ; + . + +<#nt-syntax-bad-struct-02> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-struct-02" ; + rdfs:comment "N-Triples does not have predicateObjectList (negative test)" ; + mf:action <nt-syntax-bad-struct-02.nt> ; + . + +<#nt-syntax-bad-lang-01> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-lang-01" ; + rdfs:comment "langString with bad lang (negative test)" ; + mf:action <nt-syntax-bad-lang-01.nt> ; + . + +<#nt-syntax-bad-esc-01> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-esc-01" ; + rdfs:comment "Bad string escape (negative test)" ; + mf:action <nt-syntax-bad-esc-01.nt> ; + . + +<#nt-syntax-bad-esc-02> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-esc-02" ; + rdfs:comment "Bad string escape (negative test)" ; + mf:action <nt-syntax-bad-esc-02.nt> ; + . + +<#nt-syntax-bad-esc-03> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-esc-03" ; + rdfs:comment "Bad string escape (negative test)" ; + mf:action <nt-syntax-bad-esc-03.nt> ; + . + +<#nt-syntax-bad-string-01> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-string-01" ; + rdfs:comment "mismatching string literal open/close (negative test)" ; + mf:action <nt-syntax-bad-string-01.nt> ; + . + +<#nt-syntax-bad-string-02> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-string-02" ; + rdfs:comment "mismatching string literal open/close (negative test)" ; + mf:action <nt-syntax-bad-string-02.nt> ; + . + +<#nt-syntax-bad-string-03> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-string-03" ; + rdfs:comment "single quotes (negative test)" ; + mf:action <nt-syntax-bad-string-03.nt> ; + . + +<#nt-syntax-bad-string-04> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-string-04" ; + rdfs:comment "long single string literal (negative test)" ; + mf:action <nt-syntax-bad-string-04.nt> ; + . + +<#nt-syntax-bad-string-05> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-string-05" ; + rdfs:comment "long double string literal (negative test)" ; + mf:action <nt-syntax-bad-string-05.nt> ; + . + +<#nt-syntax-bad-string-06> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-string-06" ; + rdfs:comment "string literal with no end (negative test)" ; + mf:action <nt-syntax-bad-string-06.nt> ; + . + +<#nt-syntax-bad-string-07> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-string-07" ; + rdfs:comment "string literal with no start (negative test)" ; + mf:action <nt-syntax-bad-string-07.nt> ; + . + +<#nt-syntax-bad-num-01> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-num-01" ; + rdfs:comment "no numbers in N-Triples (integer) (negative test)" ; + mf:action <nt-syntax-bad-num-01.nt> ; + . + +<#nt-syntax-bad-num-02> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-num-02" ; + rdfs:comment "no numbers in N-Triples (decimal) (negative test)" ; + mf:action <nt-syntax-bad-num-02.nt> ; + . + +<#nt-syntax-bad-num-03> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-num-03" ; + rdfs:comment "no numbers in N-Triples (float) (negative test)" ; + mf:action <nt-syntax-bad-num-03.nt> ; + . + +<#nt-syntax-subm-01> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "nt-syntax-subm-01" ; + rdfs:comment "Submission test from Original RDF Test Cases" ; + mf:action <nt-syntax-subm-01.nt> ; + . + +<#comment_following_triple> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "comment_following_triple" ; + rdfs:comment "Tests comments after a triple" ; + rdft:approval rdft:Proposed ; + mf:action <comment_following_triple.nt> ; + . + +<#literal_ascii_boundaries> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_ascii_boundaries" ; + rdfs:comment "literal_ascii_boundaries '\\x00\\x26\\x28...'" ; + rdft:approval rdft:Proposed ; + mf:action <literal_ascii_boundaries.nt> ; + . + +<#literal_with_UTF8_boundaries> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_UTF8_boundaries" ; + rdfs:comment "literal_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_UTF8_boundaries.nt> ; + . + +<#literal_all_controls> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_all_controls" ; + rdfs:comment "literal_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ; + rdft:approval rdft:Approved ; + mf:action <literal_all_controls.nt> ; + . + +<#literal_all_punctuation> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_all_punctuation" ; + rdfs:comment "literal_all_punctuation '!\"#$%&()...'" ; + rdft:approval rdft:Approved ; + mf:action <literal_all_punctuation.nt> ; + . + +<#literal_with_squote> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_squote" ; + rdfs:comment "literal with squote \"x'y\"" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_squote.nt> ; + . + +<#literal_with_2_squotes> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_2_squotes" ; + rdfs:comment "literal with 2 squotes \"x''y\"" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_2_squotes.nt> ; + . + +<#literal> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal" ; + rdfs:comment "literal \"\"\"x\"\"\"" ; + rdft:approval rdft:Proposed ; + mf:action <literal.nt> ; + . + +<#literal_with_dquote> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_dquote" ; + rdfs:comment "literal with dquote \"x\"y\"" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_dquote.nt> ; + . + +<#literal_with_2_dquotes> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_2_dquotes" ; + rdfs:comment "literal with 2 squotes \"\"\"a\"\"b\"\"\"" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_2_dquotes.nt> ; + . + +<#literal_with_REVERSE_SOLIDUS2> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_REVERSE_SOLIDUS2" ; + rdfs:comment "REVERSE SOLIDUS at end of literal" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_REVERSE_SOLIDUS2.nt> ; + . + +<#literal_with_CHARACTER_TABULATION> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_CHARACTER_TABULATION" ; + rdfs:comment "literal with CHARACTER TABULATION" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_CHARACTER_TABULATION.nt> ; + . + +<#literal_with_BACKSPACE> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_BACKSPACE" ; + rdfs:comment "literal with BACKSPACE" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_BACKSPACE.nt> ; + . + +<#literal_with_LINE_FEED> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_LINE_FEED" ; + rdfs:comment "literal with LINE FEED" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_LINE_FEED.nt> ; + . + +<#literal_with_CARRIAGE_RETURN> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_CARRIAGE_RETURN" ; + rdfs:comment "literal with CARRIAGE RETURN" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_CARRIAGE_RETURN.nt> ; + . + +<#literal_with_FORM_FEED> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_FORM_FEED" ; + rdfs:comment "literal with FORM FEED" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_FORM_FEED.nt> ; + . + +<#literal_with_REVERSE_SOLIDUS> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_REVERSE_SOLIDUS" ; + rdfs:comment "literal with REVERSE SOLIDUS" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_REVERSE_SOLIDUS.nt> ; + . + +<#literal_with_numeric_escape4> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_numeric_escape4" ; + rdfs:comment "literal with numeric escape4 \\u" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_numeric_escape4.nt> ; + . + +<#literal_with_numeric_escape8> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "literal_with_numeric_escape8" ; + rdfs:comment "literal with numeric escape8 \\U" ; + rdft:approval rdft:Proposed ; + mf:action <literal_with_numeric_escape8.nt> ; + . + +<#langtagged_string> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "langtagged_string" ; + rdfs:comment "langtagged string \"x\"@en" ; + rdft:approval rdft:Proposed ; + mf:action <langtagged_string.nt> ; + . + +<#lantag_with_subtag> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "lantag_with_subtag" ; + rdfs:comment "lantag with subtag \"x\"@en-us" ; + rdft:approval rdft:Proposed ; + mf:action <lantag_with_subtag.nt> ; + . + +<#minimal_whitespace> rdf:type rdft:TestNTriplesPositiveSyntax ; + mf:name "minimal_whitespace" ; + rdfs:comment "tests absense of whitespace between subject, predicate, object and end-of-statement" ; + rdft:approval rdft:Proposed ; + mf:action <minimal_whitespace.nt> ; + . diff --git a/test/w3c/NTriplesTests/minimal_whitespace.nt b/test/w3c/NTriplesTests/minimal_whitespace.nt new file mode 100644 index 00000000..e9e3a801 --- /dev/null +++ b/test/w3c/NTriplesTests/minimal_whitespace.nt @@ -0,0 +1,6 @@ +<http://example/s><http://example/p><http://example/o>. +<http://example/s><http://example/p>"Alice". +<http://example/s><http://example/p>_:o. +_:s<http://example/p><http://example/o>. +_:s<http://example/p>"Alice". +_:s<http://example/p>_:bnode1. diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-base-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-base-01.nt new file mode 100644 index 00000000..dff1b3b4 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-base-01.nt @@ -0,0 +1 @@ +@base <http://example/> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-esc-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-esc-01.nt new file mode 100644 index 00000000..f7a88add --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-esc-01.nt @@ -0,0 +1,2 @@ +# Bad string escape +<http://example/s> <http://example/p> "a\zb" . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-esc-02.nt b/test/w3c/NTriplesTests/nt-syntax-bad-esc-02.nt new file mode 100644 index 00000000..72711d49 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-esc-02.nt @@ -0,0 +1,2 @@ +# Bad string escape +<http://example/s> <http://example/p> "\uWXYZ" . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-esc-03.nt b/test/w3c/NTriplesTests/nt-syntax-bad-esc-03.nt new file mode 100644 index 00000000..3a4522fc --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-esc-03.nt @@ -0,0 +1,2 @@ +# Bad string escape +<http://example/s> <http://example/p> "\U0000WXYZ" . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-lang-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-lang-01.nt new file mode 100644 index 00000000..a4d952c8 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-lang-01.nt @@ -0,0 +1,2 @@ +# Bad lang tag +<http://example/s> <http://example/p> "string"@1 . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-num-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-num-01.nt new file mode 100644 index 00000000..2be6f516 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-num-01.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1 . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-num-02.nt b/test/w3c/NTriplesTests/nt-syntax-bad-num-02.nt new file mode 100644 index 00000000..e1d5b06c --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-num-02.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1.0 . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-num-03.nt b/test/w3c/NTriplesTests/nt-syntax-bad-num-03.nt new file mode 100644 index 00000000..a9be82fc --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-num-03.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1.0e0 . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-prefix-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-prefix-01.nt new file mode 100644 index 00000000..89e08cc7 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-prefix-01.nt @@ -0,0 +1 @@ +@prefix : <http://example/> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-string-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-string-01.nt new file mode 100644 index 00000000..988af87a --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-string-01.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "abc' . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-string-02.nt b/test/w3c/NTriplesTests/nt-syntax-bad-string-02.nt new file mode 100644 index 00000000..e1d5b06c --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-string-02.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1.0 . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-string-03.nt b/test/w3c/NTriplesTests/nt-syntax-bad-string-03.nt new file mode 100644 index 00000000..64d343da --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-string-03.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> 1.0e1 . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-string-04.nt b/test/w3c/NTriplesTests/nt-syntax-bad-string-04.nt new file mode 100644 index 00000000..af4ff28f --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-string-04.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> '''abc''' . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-string-05.nt b/test/w3c/NTriplesTests/nt-syntax-bad-string-05.nt new file mode 100644 index 00000000..75ad4b2b --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-string-05.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> """abc""" . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-string-06.nt b/test/w3c/NTriplesTests/nt-syntax-bad-string-06.nt new file mode 100644 index 00000000..56dcbc60 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-string-06.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "abc . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-string-07.nt b/test/w3c/NTriplesTests/nt-syntax-bad-string-07.nt new file mode 100644 index 00000000..7f1ee800 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-string-07.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> abc" . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-struct-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-struct-01.nt new file mode 100644 index 00000000..d546d564 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-struct-01.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o>, <http://example/o2> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-struct-02.nt b/test/w3c/NTriplesTests/nt-syntax-bad-struct-02.nt new file mode 100644 index 00000000..1f388c6e --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-struct-02.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o>; <http://example/p2>, <http://example/o2> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-uri-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-uri-01.nt new file mode 100644 index 00000000..0e69dc0c --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-uri-01.nt @@ -0,0 +1,2 @@ +# Bad IRI : space. +<http://example/ space> <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-uri-02.nt b/test/w3c/NTriplesTests/nt-syntax-bad-uri-02.nt new file mode 100644 index 00000000..36d91af9 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-uri-02.nt @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +<http://example/\u00ZZ11> <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-uri-03.nt b/test/w3c/NTriplesTests/nt-syntax-bad-uri-03.nt new file mode 100644 index 00000000..f512345f --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-uri-03.nt @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +<http://example/\U00ZZ1111> <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-uri-04.nt b/test/w3c/NTriplesTests/nt-syntax-bad-uri-04.nt new file mode 100644 index 00000000..5cab062c --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-uri-04.nt @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +<http://example/\n> <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-uri-05.nt b/test/w3c/NTriplesTests/nt-syntax-bad-uri-05.nt new file mode 100644 index 00000000..be0a21e0 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-uri-05.nt @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +<http://example/\/> <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-uri-06.nt b/test/w3c/NTriplesTests/nt-syntax-bad-uri-06.nt new file mode 100644 index 00000000..b4e64592 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-uri-06.nt @@ -0,0 +1,2 @@ +# No relative IRIs in N-Triples +<s> <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-uri-07.nt b/test/w3c/NTriplesTests/nt-syntax-bad-uri-07.nt new file mode 100644 index 00000000..74534dde --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-uri-07.nt @@ -0,0 +1,2 @@ +# No relative IRIs in N-Triples +<http://example/s> <p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-uri-08.nt b/test/w3c/NTriplesTests/nt-syntax-bad-uri-08.nt new file mode 100644 index 00000000..41a953d4 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-uri-08.nt @@ -0,0 +1,2 @@ +# No relative IRIs in N-Triples +<http://example/s> <http://example/p> <o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-uri-09.nt b/test/w3c/NTriplesTests/nt-syntax-bad-uri-09.nt new file mode 100644 index 00000000..58821da8 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-uri-09.nt @@ -0,0 +1,2 @@ +# No relative IRIs in N-Triples +<http://example/s> <http://example/p> "foo"^^<dt> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bnode-01.nt b/test/w3c/NTriplesTests/nt-syntax-bnode-01.nt new file mode 100644 index 00000000..5fb0d0f9 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bnode-01.nt @@ -0,0 +1 @@ +_:a <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bnode-02.nt b/test/w3c/NTriplesTests/nt-syntax-bnode-02.nt new file mode 100644 index 00000000..737e81b4 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bnode-02.nt @@ -0,0 +1,2 @@ +<http://example/s> <http://example/p> _:a . +_:a <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-bnode-03.nt b/test/w3c/NTriplesTests/nt-syntax-bnode-03.nt new file mode 100644 index 00000000..1a1f1c9f --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bnode-03.nt @@ -0,0 +1,2 @@ +<http://example/s> <http://example/p> _:1a . +_:1a <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-datatypes-01.nt b/test/w3c/NTriplesTests/nt-syntax-datatypes-01.nt new file mode 100644 index 00000000..91263091 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-datatypes-01.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "123"^^<http://www.w3.org/2001/XMLSchema#byte> . diff --git a/test/w3c/NTriplesTests/nt-syntax-datatypes-02.nt b/test/w3c/NTriplesTests/nt-syntax-datatypes-02.nt new file mode 100644 index 00000000..d49cc27d --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-datatypes-02.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "123"^^<http://www.w3.org/2001/XMLSchema#string> . diff --git a/test/w3c/NTriplesTests/nt-syntax-file-01.nt b/test/w3c/NTriplesTests/nt-syntax-file-01.nt new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-file-01.nt diff --git a/test/w3c/NTriplesTests/nt-syntax-file-02.nt b/test/w3c/NTriplesTests/nt-syntax-file-02.nt new file mode 100644 index 00000000..e6d327d5 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-file-02.nt @@ -0,0 +1 @@ +#Empty file. diff --git a/test/w3c/NTriplesTests/nt-syntax-file-03.nt b/test/w3c/NTriplesTests/nt-syntax-file-03.nt new file mode 100644 index 00000000..a9ca0358 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-file-03.nt @@ -0,0 +1,2 @@ +#One comment, one empty line. + diff --git a/test/w3c/NTriplesTests/nt-syntax-str-esc-01.nt b/test/w3c/NTriplesTests/nt-syntax-str-esc-01.nt new file mode 100644 index 00000000..3925f2ec --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-str-esc-01.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "a\n" . diff --git a/test/w3c/NTriplesTests/nt-syntax-str-esc-02.nt b/test/w3c/NTriplesTests/nt-syntax-str-esc-02.nt new file mode 100644 index 00000000..e7d032f0 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-str-esc-02.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "a\u0020b" . diff --git a/test/w3c/NTriplesTests/nt-syntax-str-esc-03.nt b/test/w3c/NTriplesTests/nt-syntax-str-esc-03.nt new file mode 100644 index 00000000..b8588c79 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-str-esc-03.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "a\U00000020b" . diff --git a/test/w3c/NTriplesTests/nt-syntax-string-01.nt b/test/w3c/NTriplesTests/nt-syntax-string-01.nt new file mode 100644 index 00000000..5333aefe --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-string-01.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "string" . diff --git a/test/w3c/NTriplesTests/nt-syntax-string-02.nt b/test/w3c/NTriplesTests/nt-syntax-string-02.nt new file mode 100644 index 00000000..1ab55a33 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-string-02.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "string"@en . diff --git a/test/w3c/NTriplesTests/nt-syntax-string-03.nt b/test/w3c/NTriplesTests/nt-syntax-string-03.nt new file mode 100644 index 00000000..b34ca0f6 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-string-03.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> "string"@en-uk . diff --git a/test/w3c/NTriplesTests/nt-syntax-subm-01.nt b/test/w3c/NTriplesTests/nt-syntax-subm-01.nt new file mode 100644 index 00000000..91b49889 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-subm-01.nt @@ -0,0 +1,79 @@ +# +# Copyright World Wide Web Consortium, (Massachusetts Institute of +# Technology, Institut National de Recherche en Informatique et en +# Automatique, Keio University). +# +# All Rights Reserved. +# +# Please see the full Copyright clause at +# <http://www.w3.org/Consortium/Legal/copyright-software.html> +# +# Test file with a variety of legal N-Triples +# +# Dave Beckett - http://purl.org/net/dajobe/ +# +# $Id: test.nt,v 1.7 2003/10/06 15:52:19 dbeckett2 Exp $ +# +##################################################################### + +# comment lines + # comment line after whitespace +# empty blank line, then one with spaces and tabs + + +<http://example.org/resource1> <http://example.org/property> <http://example.org/resource2> . +_:anon <http://example.org/property> <http://example.org/resource2> . +<http://example.org/resource2> <http://example.org/property> _:anon . +# spaces and tabs throughout: + <http://example.org/resource3> <http://example.org/property> <http://example.org/resource2> . + +# line ending with CR NL (ASCII 13, ASCII 10) +<http://example.org/resource4> <http://example.org/property> <http://example.org/resource2> . + +# 2 statement lines separated by single CR (ASCII 10) +<http://example.org/resource5> <http://example.org/property> <http://example.org/resource2> . +<http://example.org/resource6> <http://example.org/property> <http://example.org/resource2> . + + +# All literal escapes +<http://example.org/resource7> <http://example.org/property> "simple literal" . +<http://example.org/resource8> <http://example.org/property> "backslash:\\" . +<http://example.org/resource9> <http://example.org/property> "dquote:\"" . +<http://example.org/resource10> <http://example.org/property> "newline:\n" . +<http://example.org/resource11> <http://example.org/property> "return\r" . +<http://example.org/resource12> <http://example.org/property> "tab:\t" . + +# Space is optional before final . +<http://example.org/resource13> <http://example.org/property> <http://example.org/resource2>. +<http://example.org/resource14> <http://example.org/property> "x". +<http://example.org/resource15> <http://example.org/property> _:anon. + +# \u and \U escapes +# latin small letter e with acute symbol \u00E9 - 3 UTF-8 bytes #xC3 #A9 +<http://example.org/resource16> <http://example.org/property> "\u00E9" . +# Euro symbol \u20ac - 3 UTF-8 bytes #xE2 #x82 #xAC +<http://example.org/resource17> <http://example.org/property> "\u20AC" . +# resource18 test removed +# resource19 test removed +# resource20 test removed + +# XML Literals as Datatyped Literals +<http://example.org/resource21> <http://example.org/property> ""^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource22> <http://example.org/property> " "^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource23> <http://example.org/property> "x"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource23> <http://example.org/property> "\""^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource24> <http://example.org/property> "<a></a>"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource25> <http://example.org/property> "a <b></b>"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource26> <http://example.org/property> "a <b></b> c"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource26> <http://example.org/property> "a\n<b></b>\nc"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +<http://example.org/resource27> <http://example.org/property> "chat"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> . +# resource28 test removed 2003-08-03 +# resource29 test removed 2003-08-03 + +# Plain literals with languages +<http://example.org/resource30> <http://example.org/property> "chat"@fr . +<http://example.org/resource31> <http://example.org/property> "chat"@en . + +# Typed Literals +<http://example.org/resource32> <http://example.org/property> "abc"^^<http://example.org/datatype1> . +# resource33 test removed 2003-08-03 diff --git a/test/w3c/NTriplesTests/nt-syntax-uri-01.nt b/test/w3c/NTriplesTests/nt-syntax-uri-01.nt new file mode 100644 index 00000000..02e6ba98 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-uri-01.nt @@ -0,0 +1 @@ +<http://example/s> <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-uri-02.nt b/test/w3c/NTriplesTests/nt-syntax-uri-02.nt new file mode 100644 index 00000000..664feea1 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-uri-02.nt @@ -0,0 +1,2 @@ +# x53 is capital S +<http://example/\u0053> <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-uri-03.nt b/test/w3c/NTriplesTests/nt-syntax-uri-03.nt new file mode 100644 index 00000000..b5aeb26e --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-uri-03.nt @@ -0,0 +1,2 @@ +# x53 is capital S +<http://example/\U00000053> <http://example/p> <http://example/o> . diff --git a/test/w3c/NTriplesTests/nt-syntax-uri-04.nt b/test/w3c/NTriplesTests/nt-syntax-uri-04.nt new file mode 100644 index 00000000..49bacca7 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-uri-04.nt @@ -0,0 +1,2 @@ +# IRI with all chars in it. +<http://example/s> <http://example/p> <scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> . diff --git a/test/w3c/TriGTests/HYPHEN_MINUS_in_localName.nq b/test/w3c/TriGTests/HYPHEN_MINUS_in_localName.nq new file mode 100644 index 00000000..2de67fd4 --- /dev/null +++ b/test/w3c/TriGTests/HYPHEN_MINUS_in_localName.nq @@ -0,0 +1,2 @@ +<http://a.example/s-> <http://a.example/p> <http://a.example/o> . +<http://a.example/s-> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/HYPHEN_MINUS_in_localName.trig b/test/w3c/TriGTests/HYPHEN_MINUS_in_localName.trig new file mode 100644 index 00000000..e93280e9 --- /dev/null +++ b/test/w3c/TriGTests/HYPHEN_MINUS_in_localName.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{p:s- <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:s- <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/IRIREF_datatype.nq b/test/w3c/TriGTests/IRIREF_datatype.nq new file mode 100644 index 00000000..2ddce8e3 --- /dev/null +++ b/test/w3c/TriGTests/IRIREF_datatype.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://a.example/s> <http://a.example/p> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . diff --git a/test/w3c/TriGTests/IRIREF_datatype.trig b/test/w3c/TriGTests/IRIREF_datatype.trig new file mode 100644 index 00000000..f8e89b17 --- /dev/null +++ b/test/w3c/TriGTests/IRIREF_datatype.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .} diff --git a/test/w3c/TriGTests/IRI_spo.nq b/test/w3c/TriGTests/IRI_spo.nq new file mode 100644 index 00000000..9e8bf24d --- /dev/null +++ b/test/w3c/TriGTests/IRI_spo.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o> . +<http://a.example/s> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/IRI_subject.trig b/test/w3c/TriGTests/IRI_subject.trig new file mode 100644 index 00000000..0a258598 --- /dev/null +++ b/test/w3c/TriGTests/IRI_subject.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/IRI_with_all_punctuation.nq b/test/w3c/TriGTests/IRI_with_all_punctuation.nq new file mode 100644 index 00000000..ea278b6c --- /dev/null +++ b/test/w3c/TriGTests/IRI_with_all_punctuation.nq @@ -0,0 +1,2 @@ +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> . +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/IRI_with_all_punctuation.trig b/test/w3c/TriGTests/IRI_with_all_punctuation.trig new file mode 100644 index 00000000..4b602a73 --- /dev/null +++ b/test/w3c/TriGTests/IRI_with_all_punctuation.trig @@ -0,0 +1,2 @@ +{<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/IRI_with_eight_digit_numeric_escape.trig b/test/w3c/TriGTests/IRI_with_eight_digit_numeric_escape.trig new file mode 100644 index 00000000..6042a770 --- /dev/null +++ b/test/w3c/TriGTests/IRI_with_eight_digit_numeric_escape.trig @@ -0,0 +1,2 @@ +{<http://a.example/\U00000073> <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {<http://a.example/\U00000073> <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/IRI_with_four_digit_numeric_escape.trig b/test/w3c/TriGTests/IRI_with_four_digit_numeric_escape.trig new file mode 100644 index 00000000..6c659d06 --- /dev/null +++ b/test/w3c/TriGTests/IRI_with_four_digit_numeric_escape.trig @@ -0,0 +1,2 @@ +{<http://a.example/\u0073> <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {<http://a.example/\u0073> <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/LICENSE b/test/w3c/TriGTests/LICENSE new file mode 100644 index 00000000..3c128537 --- /dev/null +++ b/test/w3c/TriGTests/LICENSE @@ -0,0 +1,48 @@ +Summary +======= + +Distributed under both the W3C Test Suite License[1] and the W3C 3-clause BSD License[2]. To contribute to a W3C Test Suite, see the policies and contribution forms [3] + +1. http://www.w3.org/Consortium/Legal/2008/04-testsuite-license +2. http://www.w3.org/Consortium/Legal/2008/03-bsd-license +3. http://www.w3.org/2004/10/27-testcases + +DISCLAIMER + +UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. +COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF. + + +W3C Test Suite License +====================== + +This document, Test Suites and other documents that link to this statement are provided by the copyright holders under the following license: By using and/or copying this document, or the W3C document from which this statement is linked, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions: + +Permission to copy, and distribute the contents of this document, or the W3C document from which this statement is linked, in any medium for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the document, or portions thereof, that you use: + +A link or URL to the original W3C document. +The pre-existing copyright notice of the original author, or if it doesn't exist, a notice (hypertext is preferred, but a textual representation is permitted) of the form: "Copyright © [$date-of-document] World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University) and others. All Rights Reserved. http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html" +If it exists, the STATUS of the W3C document. +When space permits, inclusion of the full text of this NOTICE should be provided. We request that authorship attribution be provided in any software, documents, or other items or products that you create pursuant to the implementation of the contents of this document, or any portion thereof. + +No right to create modifications or derivatives of W3C documents is granted pursuant to this license. However, if additional requirements (documented in the Copyright FAQ) are satisfied, the right to create modifications or derivatives is sometimes granted by the W3C to individuals complying with those requirements. + +If a Test Suite distinguishes the test harness (or, framework for navigation) and the actual tests, permission is given to remove or alter the harness or navigation if the Test Suite in question allows to do so. The tests themselves shall NOT be changed in any way. + +The name and trademarks of W3C and other copyright holders may NOT be used in advertising or publicity pertaining to this document or other documents that link to this statement without specific, written prior permission. Title to copyright in this document will at all times remain with copyright holders. Permission is given to use the trademarked string W3C within claims of performance concerning W3C Specifications or features described therein, and there only, if the test suite so authorizes. + +THIS WORK IS PROVIDED BY W3C, MIT, ERCIM, KEIO UNIVERSITY, THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL W3C, MIT, ERCIM, KEIO UNIVERSITY, THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +W3C 3-clause BSD License +======================== +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + Redistributions of works must retain the original copyright notice, this list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the original copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + Neither the name of the W3C nor the names of its contributors may be used to endorse or promote products derived from this work without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/test/w3c/TriGTests/LITERAL1.nq b/test/w3c/TriGTests/LITERAL1.nq new file mode 100644 index 00000000..97b680a5 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL1.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "x" . +<http://a.example/s> <http://a.example/p> "x" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL1.trig b/test/w3c/TriGTests/LITERAL1.trig new file mode 100644 index 00000000..df544ef8 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL1.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> 'x' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> 'x' .} diff --git a/test/w3c/TriGTests/LITERAL1_all_controls.nq b/test/w3c/TriGTests/LITERAL1_all_controls.nq new file mode 100644 index 00000000..3bfb3bd4 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL1_all_controls.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" . +<http://a.example/s> <http://a.example/p> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL1_all_controls.trig b/test/w3c/TriGTests/LITERAL1_all_controls.trig Binary files differnew file mode 100644 index 00000000..1246b619 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL1_all_controls.trig diff --git a/test/w3c/TriGTests/LITERAL1_all_punctuation.nq b/test/w3c/TriGTests/LITERAL1_all_punctuation.nq new file mode 100644 index 00000000..47ef8763 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL1_all_punctuation.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> " !\"#$%&():;<=>?@[]^_`{|}~" . +<http://a.example/s> <http://a.example/p> " !\"#$%&():;<=>?@[]^_`{|}~" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL1_all_punctuation.trig b/test/w3c/TriGTests/LITERAL1_all_punctuation.trig new file mode 100644 index 00000000..456e7972 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL1_all_punctuation.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> ' !"#$%&():;<=>?@[]^_`{|}~' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> ' !"#$%&():;<=>?@[]^_`{|}~' .} diff --git a/test/w3c/TriGTests/LITERAL1_ascii_boundaries.nq b/test/w3c/TriGTests/LITERAL1_ascii_boundaries.nq new file mode 100644 index 00000000..672da9d1 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL1_ascii_boundaries.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E&([]\u007F" . +<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E&([]\u007F" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL1_ascii_boundaries.trig b/test/w3c/TriGTests/LITERAL1_ascii_boundaries.trig Binary files differnew file mode 100644 index 00000000..cd14a4e8 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL1_ascii_boundaries.trig diff --git a/test/w3c/TriGTests/LITERAL1_with_UTF8_boundaries.trig b/test/w3c/TriGTests/LITERAL1_with_UTF8_boundaries.trig new file mode 100644 index 00000000..b72eb040 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL1_with_UTF8_boundaries.trig @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '߿ࠀက쿿퀀�𐀀' . diff --git a/test/w3c/TriGTests/LITERAL2.trig b/test/w3c/TriGTests/LITERAL2.trig new file mode 100644 index 00000000..c2b09ff6 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL2.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> "x" .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> "x" .} diff --git a/test/w3c/TriGTests/LITERAL2_ascii_boundaries.nq b/test/w3c/TriGTests/LITERAL2_ascii_boundaries.nq new file mode 100644 index 00000000..63402430 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL2_ascii_boundaries.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E!#[]\u007F" . +<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E!#[]\u007F" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL2_ascii_boundaries.trig b/test/w3c/TriGTests/LITERAL2_ascii_boundaries.trig Binary files differnew file mode 100644 index 00000000..dd6b3ddf --- /dev/null +++ b/test/w3c/TriGTests/LITERAL2_ascii_boundaries.trig diff --git a/test/w3c/TriGTests/LITERAL2_with_UTF8_boundaries.trig b/test/w3c/TriGTests/LITERAL2_with_UTF8_boundaries.trig new file mode 100644 index 00000000..0e1616db --- /dev/null +++ b/test/w3c/TriGTests/LITERAL2_with_UTF8_boundaries.trig @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "߿ࠀက쿿퀀�𐀀" . diff --git a/test/w3c/TriGTests/LITERAL_LONG1.trig b/test/w3c/TriGTests/LITERAL_LONG1.trig new file mode 100644 index 00000000..5db4af44 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG1.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '''x''' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '''x''' .} diff --git a/test/w3c/TriGTests/LITERAL_LONG1_ascii_boundaries.nq b/test/w3c/TriGTests/LITERAL_LONG1_ascii_boundaries.nq new file mode 100644 index 00000000..5dc9b17a --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG1_ascii_boundaries.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\u0000&([]\u007F" . +<http://a.example/s> <http://a.example/p> "\u0000&([]\u007F" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL_LONG1_ascii_boundaries.trig b/test/w3c/TriGTests/LITERAL_LONG1_ascii_boundaries.trig Binary files differnew file mode 100644 index 00000000..25db84dd --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG1_ascii_boundaries.trig diff --git a/test/w3c/TriGTests/LITERAL_LONG1_with_1_squote.nq b/test/w3c/TriGTests/LITERAL_LONG1_with_1_squote.nq new file mode 100644 index 00000000..f72af857 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG1_with_1_squote.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "x'y" . +<http://a.example/s> <http://a.example/p> "x'y" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL_LONG1_with_1_squote.trig b/test/w3c/TriGTests/LITERAL_LONG1_with_1_squote.trig new file mode 100644 index 00000000..45e742ed --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG1_with_1_squote.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '''x'y''' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '''x'y''' .} diff --git a/test/w3c/TriGTests/LITERAL_LONG1_with_2_squotes.nq b/test/w3c/TriGTests/LITERAL_LONG1_with_2_squotes.nq new file mode 100644 index 00000000..5e7a4890 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG1_with_2_squotes.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "x''y" . +<http://a.example/s> <http://a.example/p> "x''y" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL_LONG1_with_2_squotes.trig b/test/w3c/TriGTests/LITERAL_LONG1_with_2_squotes.trig new file mode 100644 index 00000000..75f94883 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG1_with_2_squotes.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '''x''y''' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '''x''y''' .} diff --git a/test/w3c/TriGTests/LITERAL_LONG1_with_UTF8_boundaries.trig b/test/w3c/TriGTests/LITERAL_LONG1_with_UTF8_boundaries.trig new file mode 100644 index 00000000..e04b675e --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG1_with_UTF8_boundaries.trig @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''߿ࠀက쿿퀀�𐀀''' . diff --git a/test/w3c/TriGTests/LITERAL_LONG2.trig b/test/w3c/TriGTests/LITERAL_LONG2.trig new file mode 100644 index 00000000..2f1a86ec --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> """x""" .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> """x""" .} diff --git a/test/w3c/TriGTests/LITERAL_LONG2_ascii_boundaries.nq b/test/w3c/TriGTests/LITERAL_LONG2_ascii_boundaries.nq new file mode 100644 index 00000000..1dc45f7c --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2_ascii_boundaries.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\u0000!#[]\u007F" . +<http://a.example/s> <http://a.example/p> "\u0000!#[]\u007F" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL_LONG2_ascii_boundaries.trig b/test/w3c/TriGTests/LITERAL_LONG2_ascii_boundaries.trig Binary files differnew file mode 100644 index 00000000..804fe250 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2_ascii_boundaries.trig diff --git a/test/w3c/TriGTests/LITERAL_LONG2_with_1_squote.nq b/test/w3c/TriGTests/LITERAL_LONG2_with_1_squote.nq new file mode 100644 index 00000000..3cbb9785 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2_with_1_squote.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "x\"y" . +<http://a.example/s> <http://a.example/p> "x\"y" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL_LONG2_with_1_squote.trig b/test/w3c/TriGTests/LITERAL_LONG2_with_1_squote.trig new file mode 100644 index 00000000..fccbe173 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2_with_1_squote.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> """x"y""" .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> """x"y""" .} diff --git a/test/w3c/TriGTests/LITERAL_LONG2_with_2_squotes.nq b/test/w3c/TriGTests/LITERAL_LONG2_with_2_squotes.nq new file mode 100644 index 00000000..cdab9945 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2_with_2_squotes.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "x\"\"y" . +<http://a.example/s> <http://a.example/p> "x\"\"y" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL_LONG2_with_2_squotes.trig b/test/w3c/TriGTests/LITERAL_LONG2_with_2_squotes.trig new file mode 100644 index 00000000..8d1f3359 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2_with_2_squotes.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> """x""y""" .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> """x""y""" .} diff --git a/test/w3c/TriGTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.nq b/test/w3c/TriGTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.nq new file mode 100644 index 00000000..43b76993 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.nq @@ -0,0 +1,2 @@ +<http://example.org/ns#s> <http://example.org/ns#p1> "test-\\" . +<http://example.org/ns#s> <http://example.org/ns#p1> "test-\\" <http://example/graph> . diff --git a/test/w3c/TriGTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.trig b/test/w3c/TriGTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.trig new file mode 100644 index 00000000..4dfe5e1f --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.trig @@ -0,0 +1,4 @@ +@prefix : <http://example.org/ns#> . + +{:s :p1 """test-\\""" .} +<http://example/graph> {:s :p1 """test-\\""" .} diff --git a/test/w3c/TriGTests/LITERAL_LONG2_with_UTF8_boundaries.trig b/test/w3c/TriGTests/LITERAL_LONG2_with_UTF8_boundaries.trig new file mode 100644 index 00000000..644b32d8 --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_LONG2_with_UTF8_boundaries.trig @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """߿ࠀက쿿퀀�𐀀""" . diff --git a/test/w3c/TriGTests/LITERAL_with_UTF8_boundaries.nq b/test/w3c/TriGTests/LITERAL_with_UTF8_boundaries.nq new file mode 100644 index 00000000..47a2527a --- /dev/null +++ b/test/w3c/TriGTests/LITERAL_with_UTF8_boundaries.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0080\u07FF\u0800\u0FFF\u1000\uCFFF\uD000\uD7FF\uE000\uFFFD\U00010000\U0003FFFD\U00040000\U000FFFFD\U00100000\U0010FFFD" . diff --git a/test/w3c/TriGTests/README b/test/w3c/TriGTests/README new file mode 100644 index 00000000..adbb2a3f --- /dev/null +++ b/test/w3c/TriGTests/README @@ -0,0 +1,41 @@ +This README is for the W3C RDF Working Group's TriG test suite. +This test suite contains three kinds of tests: + + Evaluation (rdft:TestTriGEval) - a pair of an input trig file + and reference ntriples file. + + Positive syntax (rdft:TestTriGPositiveSyntax) - an input trig + file with no syntax errors. + + Negative syntax (rdft:TestTriGNegativeSyntax) - an input trig + file with at least one syntax error. + +The manifest.ttl file in this directory lists all of the tests in the +RDF WG's TriG test suite. Each test is one of the above tests. All +tests have a name (mf:name) and an input (mf:action). The Evaluation +tests have an expected result (mf:result). + +• An implementation passes an Evaluation test if it parses the input + into a graph, parses the expecte result into another graph, and + those two graphs are isomorphic (see + <http://www.w3.org/TR/rdf11-concepts/#graph-isomorphism>). + +• An implementation passes a positive syntax test if it parses the + input. + +• An implementation passes a negative syntax test if it fails to parse + the input. + +The home of the test suite is <http://www.w3.org/2013/TriGTests/>. +Per RFC 3986 section 5.1.3, the base IRI for parsing each file is the +retrieval IRI for that file. For example, the tests trig-subm-01 and +trig-subm-27 require relative IRI resolution against a base of +<http://www.w3.org/2013/TriGTests/trig-subm-01.trig> and +<http://www.w3.org/2013/TriGTests/trig-subm-27.trig> respectively. + + +See http://www.w3.org/2011/rdf-wg/wiki/TriG_Test_Suite for more details. + + +Eric Prud'hommeaux <eric+turtle@w3.org> - 11 June 2013. +Gregg Kellogg <gregg@greggkellogg.net> - 12 June 2013. diff --git a/test/w3c/TriGTests/SPARQL_style_base.trig b/test/w3c/TriGTests/SPARQL_style_base.trig new file mode 100644 index 00000000..5697b450 --- /dev/null +++ b/test/w3c/TriGTests/SPARQL_style_base.trig @@ -0,0 +1,3 @@ +BASE <http://a.example/> +{<s> <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {<s> <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/SPARQL_style_prefix.trig b/test/w3c/TriGTests/SPARQL_style_prefix.trig new file mode 100644 index 00000000..49bc9737 --- /dev/null +++ b/test/w3c/TriGTests/SPARQL_style_prefix.trig @@ -0,0 +1,3 @@ +PREFIX p: <http://a.example/> +{p:s <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:s <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/alternating_bnode_graphs.nq b/test/w3c/TriGTests/alternating_bnode_graphs.nq new file mode 100644 index 00000000..66124112 --- /dev/null +++ b/test/w3c/TriGTests/alternating_bnode_graphs.nq @@ -0,0 +1,4 @@ +<http://example/a> <http://example/b> <http://example/c> . +<http://example/a> <http://example/b> <http://example/d> _:G . +<http://example/a> <http://example/b> <http://example/e> . +<http://example/a> <http://example/b> <http://example/f> _:G . diff --git a/test/w3c/TriGTests/alternating_bnode_graphs.trig b/test/w3c/TriGTests/alternating_bnode_graphs.trig new file mode 100644 index 00000000..e921099b --- /dev/null +++ b/test/w3c/TriGTests/alternating_bnode_graphs.trig @@ -0,0 +1,5 @@ +@prefix : <http://example/> . +{:a :b :c.} +_:G {:a :b :d.} +{:a :b :e.} +_:G {:a :b :f.} diff --git a/test/w3c/TriGTests/alternating_iri_graphs.nq b/test/w3c/TriGTests/alternating_iri_graphs.nq new file mode 100644 index 00000000..29c063e4 --- /dev/null +++ b/test/w3c/TriGTests/alternating_iri_graphs.nq @@ -0,0 +1,4 @@ +<http://example/a> <http://example/b> <http://example/c> . +<http://example/a> <http://example/b> <http://example/d> <http://example/G> . +<http://example/a> <http://example/b> <http://example/e> . +<http://example/a> <http://example/b> <http://example/f> <http://example/G> . diff --git a/test/w3c/TriGTests/alternating_iri_graphs.trig b/test/w3c/TriGTests/alternating_iri_graphs.trig new file mode 100644 index 00000000..6ce4d656 --- /dev/null +++ b/test/w3c/TriGTests/alternating_iri_graphs.trig @@ -0,0 +1,5 @@ +@prefix : <http://example/> . +{:a :b :c.} +:G {:a :b :d.} +{:a :b :e.} +:G {:a :b :f.} diff --git a/test/w3c/TriGTests/anonymous_blank_node_graph.nq b/test/w3c/TriGTests/anonymous_blank_node_graph.nq new file mode 100644 index 00000000..0522cbda --- /dev/null +++ b/test/w3c/TriGTests/anonymous_blank_node_graph.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o> _:b1 . diff --git a/test/w3c/TriGTests/anonymous_blank_node_graph.trig b/test/w3c/TriGTests/anonymous_blank_node_graph.trig new file mode 100644 index 00000000..6dd8d54e --- /dev/null +++ b/test/w3c/TriGTests/anonymous_blank_node_graph.trig @@ -0,0 +1 @@ +[] {<http://a.example/s> <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/anonymous_blank_node_object.nq b/test/w3c/TriGTests/anonymous_blank_node_object.nq new file mode 100644 index 00000000..a2c997f2 --- /dev/null +++ b/test/w3c/TriGTests/anonymous_blank_node_object.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> _:b1 . +<http://a.example/s> <http://a.example/p> _:b2 <http://example/graph> . diff --git a/test/w3c/TriGTests/anonymous_blank_node_object.trig b/test/w3c/TriGTests/anonymous_blank_node_object.trig new file mode 100644 index 00000000..e91e7102 --- /dev/null +++ b/test/w3c/TriGTests/anonymous_blank_node_object.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> [] .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> [] .} diff --git a/test/w3c/TriGTests/anonymous_blank_node_subject.nq b/test/w3c/TriGTests/anonymous_blank_node_subject.nq new file mode 100644 index 00000000..b17e189c --- /dev/null +++ b/test/w3c/TriGTests/anonymous_blank_node_subject.nq @@ -0,0 +1,2 @@ +_:b1 <http://a.example/p> <http://a.example/o> . +_:b2 <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/anonymous_blank_node_subject.trig b/test/w3c/TriGTests/anonymous_blank_node_subject.trig new file mode 100644 index 00000000..e9866f94 --- /dev/null +++ b/test/w3c/TriGTests/anonymous_blank_node_subject.trig @@ -0,0 +1,2 @@ +{[] <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {[] <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/bareword_a_predicate.nq b/test/w3c/TriGTests/bareword_a_predicate.nq new file mode 100644 index 00000000..fd01c46a --- /dev/null +++ b/test/w3c/TriGTests/bareword_a_predicate.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://a.example/o> . +<http://a.example/s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/bareword_a_predicate.trig b/test/w3c/TriGTests/bareword_a_predicate.trig new file mode 100644 index 00000000..315dc9bb --- /dev/null +++ b/test/w3c/TriGTests/bareword_a_predicate.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> a <http://a.example/o> .} +<http://example/graph> {<http://a.example/s> a <http://a.example/o> .} diff --git a/test/w3c/TriGTests/bareword_decimal.nq b/test/w3c/TriGTests/bareword_decimal.nq new file mode 100644 index 00000000..ed5de576 --- /dev/null +++ b/test/w3c/TriGTests/bareword_decimal.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://a.example/s> <http://a.example/p> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> <http://example/graph> . diff --git a/test/w3c/TriGTests/bareword_decimal.trig b/test/w3c/TriGTests/bareword_decimal.trig new file mode 100644 index 00000000..f862e712 --- /dev/null +++ b/test/w3c/TriGTests/bareword_decimal.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> 1.0 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> 1.0 .} diff --git a/test/w3c/TriGTests/bareword_double.nq b/test/w3c/TriGTests/bareword_double.nq new file mode 100644 index 00000000..f1783256 --- /dev/null +++ b/test/w3c/TriGTests/bareword_double.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "1E0"^^<http://www.w3.org/2001/XMLSchema#double> . +<http://a.example/s> <http://a.example/p> "1E0"^^<http://www.w3.org/2001/XMLSchema#double> <http://example/graph> . diff --git a/test/w3c/TriGTests/bareword_double.trig b/test/w3c/TriGTests/bareword_double.trig new file mode 100644 index 00000000..788b8cee --- /dev/null +++ b/test/w3c/TriGTests/bareword_double.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> 1E0 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> 1E0 .} diff --git a/test/w3c/TriGTests/bareword_integer.trig b/test/w3c/TriGTests/bareword_integer.trig new file mode 100644 index 00000000..be1fa8ed --- /dev/null +++ b/test/w3c/TriGTests/bareword_integer.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> 1 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> 1 .} diff --git a/test/w3c/TriGTests/blankNodePropertyList_as_object.nq b/test/w3c/TriGTests/blankNodePropertyList_as_object.nq new file mode 100644 index 00000000..8e38d4e4 --- /dev/null +++ b/test/w3c/TriGTests/blankNodePropertyList_as_object.nq @@ -0,0 +1,4 @@ +<http://a.example/s> <http://a.example/p> _:b1 . +_:b1 <http://a.example/p2> <http://a.example/o2> . +<http://a.example/s> <http://a.example/p> _:b2 <http://example/graph> . +_:b2 <http://a.example/p2> <http://a.example/o2> <http://example/graph> . diff --git a/test/w3c/TriGTests/blankNodePropertyList_as_object.trig b/test/w3c/TriGTests/blankNodePropertyList_as_object.trig new file mode 100644 index 00000000..724d77ba --- /dev/null +++ b/test/w3c/TriGTests/blankNodePropertyList_as_object.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o2> ] .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o2> ] .}
\ No newline at end of file diff --git a/test/w3c/TriGTests/blankNodePropertyList_as_subject.nq b/test/w3c/TriGTests/blankNodePropertyList_as_subject.nq new file mode 100644 index 00000000..b3c274ce --- /dev/null +++ b/test/w3c/TriGTests/blankNodePropertyList_as_subject.nq @@ -0,0 +1,4 @@ +_:b1 <http://a.example/p> <http://a.example/o> . +_:b1 <http://a.example/p2> <http://a.example/o2> . +_:b2 <http://a.example/p> <http://a.example/o> <http://example/graph> . +_:b2 <http://a.example/p2> <http://a.example/o2> <http://example/graph> . diff --git a/test/w3c/TriGTests/blankNodePropertyList_as_subject.trig b/test/w3c/TriGTests/blankNodePropertyList_as_subject.trig new file mode 100644 index 00000000..925b680a --- /dev/null +++ b/test/w3c/TriGTests/blankNodePropertyList_as_subject.trig @@ -0,0 +1,2 @@ +{[ <http://a.example/p> <http://a.example/o> ] <http://a.example/p2> <http://a.example/o2> .} +<http://example/graph> {[ <http://a.example/p> <http://a.example/o> ] <http://a.example/p2> <http://a.example/o2> .} diff --git a/test/w3c/TriGTests/blankNodePropertyList_containing_collection.nq b/test/w3c/TriGTests/blankNodePropertyList_containing_collection.nq new file mode 100644 index 00000000..85f272a7 --- /dev/null +++ b/test/w3c/TriGTests/blankNodePropertyList_containing_collection.nq @@ -0,0 +1,6 @@ +_: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> . +_:b3 <http://a.example/p1> _:b4 <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . diff --git a/test/w3c/TriGTests/blankNodePropertyList_containing_collection.trig b/test/w3c/TriGTests/blankNodePropertyList_containing_collection.trig new file mode 100644 index 00000000..d23b848c --- /dev/null +++ b/test/w3c/TriGTests/blankNodePropertyList_containing_collection.trig @@ -0,0 +1,2 @@ +{[ <http://a.example/p1> (1) ] .} +<http://example/graph> {[ <http://a.example/p1> (1) ] .} diff --git a/test/w3c/TriGTests/blankNodePropertyList_with_multiple_triples.nq b/test/w3c/TriGTests/blankNodePropertyList_with_multiple_triples.nq new file mode 100644 index 00000000..ac7e6125 --- /dev/null +++ b/test/w3c/TriGTests/blankNodePropertyList_with_multiple_triples.nq @@ -0,0 +1,6 @@ +_: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> . +_:b2 <http://a.example/p1> <http://a.example/o1> <http://example/graph> . +_:b2 <http://a.example/p2> <http://a.example/o2> <http://example/graph> . +_:b2 <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/blankNodePropertyList_with_multiple_triples.trig b/test/w3c/TriGTests/blankNodePropertyList_with_multiple_triples.trig new file mode 100644 index 00000000..dc5b5461 --- /dev/null +++ b/test/w3c/TriGTests/blankNodePropertyList_with_multiple_triples.trig @@ -0,0 +1,2 @@ +{[ <http://a.example/p1> <http://a.example/o1> ; <http://a.example/p2> <http://a.example/o2> ] <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {[ <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/test/w3c/TriGTests/collection_object.nq b/test/w3c/TriGTests/collection_object.nq new file mode 100644 index 00000000..8ced4ad1 --- /dev/null +++ b/test/w3c/TriGTests/collection_object.nq @@ -0,0 +1,6 @@ +<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> . +<http://a.example/s> <http://a.example/p> _:b2 <http://example/graph> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . diff --git a/test/w3c/TriGTests/collection_object.trig b/test/w3c/TriGTests/collection_object.trig new file mode 100644 index 00000000..a86dd42f --- /dev/null +++ b/test/w3c/TriGTests/collection_object.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> (1) .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> (1) .}
\ No newline at end of file diff --git a/test/w3c/TriGTests/collection_subject.nq b/test/w3c/TriGTests/collection_subject.nq new file mode 100644 index 00000000..26858dc1 --- /dev/null +++ b/test/w3c/TriGTests/collection_subject.nq @@ -0,0 +1,6 @@ +_: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> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . +_:b2 <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/collection_subject.trig b/test/w3c/TriGTests/collection_subject.trig new file mode 100644 index 00000000..cb49acd8 --- /dev/null +++ b/test/w3c/TriGTests/collection_subject.trig @@ -0,0 +1,2 @@ +{(1) <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {(1) <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/comment_following_PNAME_NS.nq b/test/w3c/TriGTests/comment_following_PNAME_NS.nq new file mode 100644 index 00000000..a8ca81c5 --- /dev/null +++ b/test/w3c/TriGTests/comment_following_PNAME_NS.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/> . diff --git a/test/w3c/TriGTests/comment_following_PNAME_NS.trig b/test/w3c/TriGTests/comment_following_PNAME_NS.trig new file mode 100644 index 00000000..c03124c4 --- /dev/null +++ b/test/w3c/TriGTests/comment_following_PNAME_NS.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:#comment +. diff --git a/test/w3c/TriGTests/comment_following_localName.trig b/test/w3c/TriGTests/comment_following_localName.trig new file mode 100644 index 00000000..649a9a59 --- /dev/null +++ b/test/w3c/TriGTests/comment_following_localName.trig @@ -0,0 +1,8 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:o#comment +. + +<http://example/graph> { + <http://a.example/s> <http://a.example/p> <http://a.example/o>#comment + . +} diff --git a/test/w3c/TriGTests/default_namespace_IRI.trig b/test/w3c/TriGTests/default_namespace_IRI.trig new file mode 100644 index 00000000..7eccc879 --- /dev/null +++ b/test/w3c/TriGTests/default_namespace_IRI.trig @@ -0,0 +1,3 @@ +@prefix : <http://a.example/>. +{:s <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {:s <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/double_lower_case_e.nq b/test/w3c/TriGTests/double_lower_case_e.nq new file mode 100644 index 00000000..c19ca11d --- /dev/null +++ b/test/w3c/TriGTests/double_lower_case_e.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "1e0"^^<http://www.w3.org/2001/XMLSchema#double> . +<http://a.example/s> <http://a.example/p> "1e0"^^<http://www.w3.org/2001/XMLSchema#double> <http://example/graph> . diff --git a/test/w3c/TriGTests/double_lower_case_e.trig b/test/w3c/TriGTests/double_lower_case_e.trig new file mode 100644 index 00000000..588669fa --- /dev/null +++ b/test/w3c/TriGTests/double_lower_case_e.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> 1e0 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> 1e0 .} diff --git a/test/w3c/TriGTests/empty_collection.nq b/test/w3c/TriGTests/empty_collection.nq new file mode 100644 index 00000000..f85ed8fb --- /dev/null +++ b/test/w3c/TriGTests/empty_collection.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +<http://a.example/s> <http://a.example/p> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . diff --git a/test/w3c/TriGTests/empty_collection.trig b/test/w3c/TriGTests/empty_collection.trig new file mode 100644 index 00000000..c6aef8b2 --- /dev/null +++ b/test/w3c/TriGTests/empty_collection.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> () .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> () .} diff --git a/test/w3c/TriGTests/first.nq b/test/w3c/TriGTests/first.nq new file mode 100644 index 00000000..0ba78d55 --- /dev/null +++ b/test/w3c/TriGTests/first.nq @@ -0,0 +1,14 @@ +<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> . +<http://a.example/s> <http://a.example/p> _:b4 <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b5 <http://example/graph> . +_:b5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +_:b5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:b6 <http://example/graph> . +_:b6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "2"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +_:b6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . diff --git a/test/w3c/TriGTests/first.trig b/test/w3c/TriGTests/first.trig new file mode 100644 index 00000000..0f80aa69 --- /dev/null +++ b/test/w3c/TriGTests/first.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> ((1) 2) .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> ((1) 2) .} diff --git a/test/w3c/TriGTests/labeled_blank_node_graph.nq b/test/w3c/TriGTests/labeled_blank_node_graph.nq new file mode 100644 index 00000000..e9d83f4e --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_graph.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o> _:g1 . diff --git a/test/w3c/TriGTests/labeled_blank_node_graph.trig b/test/w3c/TriGTests/labeled_blank_node_graph.trig new file mode 100644 index 00000000..a6adbb98 --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_graph.trig @@ -0,0 +1 @@ +_:g1 {<http://a.example/s> <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/labeled_blank_node_object.nq b/test/w3c/TriGTests/labeled_blank_node_object.nq new file mode 100644 index 00000000..58b5fad2 --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_object.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> _:o . +<http://a.example/s> <http://a.example/p> _:o <http://example/graph> . diff --git a/test/w3c/TriGTests/labeled_blank_node_object.trig b/test/w3c/TriGTests/labeled_blank_node_object.trig new file mode 100644 index 00000000..1ac7de76 --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_object.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> _:o .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> _:o .} diff --git a/test/w3c/TriGTests/labeled_blank_node_subject.nq b/test/w3c/TriGTests/labeled_blank_node_subject.nq new file mode 100644 index 00000000..b1f38d51 --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_subject.nq @@ -0,0 +1,2 @@ +_:s <http://a.example/p> <http://a.example/o> . +_:s <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/labeled_blank_node_subject.trig b/test/w3c/TriGTests/labeled_blank_node_subject.trig new file mode 100644 index 00000000..4dca0e98 --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_subject.trig @@ -0,0 +1,2 @@ +{_:s <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {_:s <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.nq b/test/w3c/TriGTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.nq new file mode 100644 index 00000000..969c0c2a --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> _:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀 . +<http://a.example/s> <http://a.example/p> _:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀 <http://example/graph> . diff --git a/test/w3c/TriGTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.trig b/test/w3c/TriGTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.trig new file mode 100644 index 00000000..8920d476 --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> _:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> _:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀 .} diff --git a/test/w3c/TriGTests/labeled_blank_node_with_leading_digit.nq b/test/w3c/TriGTests/labeled_blank_node_with_leading_digit.nq new file mode 100644 index 00000000..24f52035 --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_with_leading_digit.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> _:0 . +<http://a.example/s> <http://a.example/p> _:0 <http://example/graph> . diff --git a/test/w3c/TriGTests/labeled_blank_node_with_leading_digit.trig b/test/w3c/TriGTests/labeled_blank_node_with_leading_digit.trig new file mode 100644 index 00000000..32ff3860 --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_with_leading_digit.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> _:0 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> _:0 .} diff --git a/test/w3c/TriGTests/labeled_blank_node_with_leading_underscore.nq b/test/w3c/TriGTests/labeled_blank_node_with_leading_underscore.nq new file mode 100644 index 00000000..57d0044e --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_with_leading_underscore.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> _:_ . +<http://a.example/s> <http://a.example/p> _:_ <http://example/graph> . diff --git a/test/w3c/TriGTests/labeled_blank_node_with_leading_underscore.trig b/test/w3c/TriGTests/labeled_blank_node_with_leading_underscore.trig new file mode 100644 index 00000000..11bd621c --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_with_leading_underscore.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> _:_ .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> _:_ .} diff --git a/test/w3c/TriGTests/labeled_blank_node_with_non_leading_extras.nq b/test/w3c/TriGTests/labeled_blank_node_with_non_leading_extras.nq new file mode 100644 index 00000000..ebf8024c --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_with_non_leading_extras.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> _:a·̀ͯ‿.⁀ . +<http://a.example/s> <http://a.example/p> _:a·̀ͯ‿.⁀ <http://example/graph> . diff --git a/test/w3c/TriGTests/labeled_blank_node_with_non_leading_extras.trig b/test/w3c/TriGTests/labeled_blank_node_with_non_leading_extras.trig new file mode 100644 index 00000000..dad502a4 --- /dev/null +++ b/test/w3c/TriGTests/labeled_blank_node_with_non_leading_extras.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> _:a·̀ͯ‿.⁀ .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> _:a·̀ͯ‿.⁀ .} diff --git a/test/w3c/TriGTests/langtagged_LONG.trig b/test/w3c/TriGTests/langtagged_LONG.trig new file mode 100644 index 00000000..d63e0e19 --- /dev/null +++ b/test/w3c/TriGTests/langtagged_LONG.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> """chat"""@en .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> """chat"""@en .} diff --git a/test/w3c/TriGTests/langtagged_LONG_with_subtag.nq b/test/w3c/TriGTests/langtagged_LONG_with_subtag.nq new file mode 100644 index 00000000..14b56574 --- /dev/null +++ b/test/w3c/TriGTests/langtagged_LONG_with_subtag.nq @@ -0,0 +1,2 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "Cheers"@en-UK . +<http://example.org/ex#a> <http://example.org/ex#b> "Cheers"@en-UK <http://example/graph> . diff --git a/test/w3c/TriGTests/langtagged_LONG_with_subtag.trig b/test/w3c/TriGTests/langtagged_LONG_with_subtag.trig new file mode 100644 index 00000000..c7ba8f2d --- /dev/null +++ b/test/w3c/TriGTests/langtagged_LONG_with_subtag.trig @@ -0,0 +1,4 @@ +# Test long literal with lang tag +@prefix : <http://example.org/ex#> . +{:a :b """Cheers"""@en-UK .} +<http://example/graph> {:a :b """Cheers"""@en-UK .} diff --git a/test/w3c/TriGTests/langtagged_non_LONG.nq b/test/w3c/TriGTests/langtagged_non_LONG.nq new file mode 100644 index 00000000..7e0a5b9e --- /dev/null +++ b/test/w3c/TriGTests/langtagged_non_LONG.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "chat"@en . +<http://a.example/s> <http://a.example/p> "chat"@en <http://example/graph> . diff --git a/test/w3c/TriGTests/langtagged_non_LONG.trig b/test/w3c/TriGTests/langtagged_non_LONG.trig new file mode 100644 index 00000000..bebcb884 --- /dev/null +++ b/test/w3c/TriGTests/langtagged_non_LONG.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> "chat"@en .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> "chat"@en .} diff --git a/test/w3c/TriGTests/lantag_with_subtag.nq b/test/w3c/TriGTests/lantag_with_subtag.nq new file mode 100644 index 00000000..165aa77c --- /dev/null +++ b/test/w3c/TriGTests/lantag_with_subtag.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "chat"@en-us . +<http://a.example/s> <http://a.example/p> "chat"@en-us <http://example/graph> . diff --git a/test/w3c/TriGTests/lantag_with_subtag.trig b/test/w3c/TriGTests/lantag_with_subtag.trig new file mode 100644 index 00000000..d25f1039 --- /dev/null +++ b/test/w3c/TriGTests/lantag_with_subtag.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> "chat"@en-us .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> "chat"@en-us .} diff --git a/test/w3c/TriGTests/last.nq b/test/w3c/TriGTests/last.nq new file mode 100644 index 00000000..54b3d790 --- /dev/null +++ b/test/w3c/TriGTests/last.nq @@ -0,0 +1,14 @@ +<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> . +<http://a.example/s> <http://a.example/p> _:b4 <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:b5 <http://example/graph> . +_:b5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b6 <http://example/graph> . +_:b6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "2"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +_:b6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . +_:b5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . diff --git a/test/w3c/TriGTests/last.trig b/test/w3c/TriGTests/last.trig new file mode 100644 index 00000000..6fd17f7f --- /dev/null +++ b/test/w3c/TriGTests/last.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> (1 (2)) .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> (1 (2)) .} diff --git a/test/w3c/TriGTests/literal_false.nq b/test/w3c/TriGTests/literal_false.nq new file mode 100644 index 00000000..9a334557 --- /dev/null +++ b/test/w3c/TriGTests/literal_false.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . +<http://a.example/s> <http://a.example/p> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> <http://example/graph> . diff --git a/test/w3c/TriGTests/literal_false.trig b/test/w3c/TriGTests/literal_false.trig new file mode 100644 index 00000000..e1f6f447 --- /dev/null +++ b/test/w3c/TriGTests/literal_false.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> false .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> false .} diff --git a/test/w3c/TriGTests/literal_true.nq b/test/w3c/TriGTests/literal_true.nq new file mode 100644 index 00000000..39675c3b --- /dev/null +++ b/test/w3c/TriGTests/literal_true.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . +<http://a.example/s> <http://a.example/p> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> <http://example/graph> . diff --git a/test/w3c/TriGTests/literal_true.trig b/test/w3c/TriGTests/literal_true.trig new file mode 100644 index 00000000..b49aa1ac --- /dev/null +++ b/test/w3c/TriGTests/literal_true.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> true .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> true .} diff --git a/test/w3c/TriGTests/literal_with_BACKSPACE.nq b/test/w3c/TriGTests/literal_with_BACKSPACE.nq new file mode 100644 index 00000000..e4e9a247 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_BACKSPACE.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\u0008" . +<http://a.example/s> <http://a.example/p> "\u0008" <http://example/graph> . diff --git a/test/w3c/TriGTests/literal_with_BACKSPACE.trig b/test/w3c/TriGTests/literal_with_BACKSPACE.trig new file mode 100644 index 00000000..0a3a1cac --- /dev/null +++ b/test/w3c/TriGTests/literal_with_BACKSPACE.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '' .} diff --git a/test/w3c/TriGTests/literal_with_CARRIAGE_RETURN.nq b/test/w3c/TriGTests/literal_with_CARRIAGE_RETURN.nq new file mode 100644 index 00000000..d1ecddce --- /dev/null +++ b/test/w3c/TriGTests/literal_with_CARRIAGE_RETURN.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\r" . +<http://a.example/s> <http://a.example/p> "\r" <http://example/graph> . diff --git a/test/w3c/TriGTests/literal_with_CARRIAGE_RETURN.trig b/test/w3c/TriGTests/literal_with_CARRIAGE_RETURN.trig new file mode 100644 index 00000000..18d6fe84 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_CARRIAGE_RETURN.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '''
''' .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p> '''
''' .}
\ No newline at end of file diff --git a/test/w3c/TriGTests/literal_with_CHARACTER_TABULATION.nq b/test/w3c/TriGTests/literal_with_CHARACTER_TABULATION.nq new file mode 100644 index 00000000..4baf1754 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_CHARACTER_TABULATION.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\t" . +<http://a.example/s> <http://a.example/p> "\t" <http://example/graph> . diff --git a/test/w3c/TriGTests/literal_with_CHARACTER_TABULATION.trig b/test/w3c/TriGTests/literal_with_CHARACTER_TABULATION.trig new file mode 100644 index 00000000..65b4152a --- /dev/null +++ b/test/w3c/TriGTests/literal_with_CHARACTER_TABULATION.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> ' ' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> ' ' .} diff --git a/test/w3c/TriGTests/literal_with_FORM_FEED.nq b/test/w3c/TriGTests/literal_with_FORM_FEED.nq new file mode 100644 index 00000000..c6157bf3 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_FORM_FEED.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\u000C" . +<http://a.example/s> <http://a.example/p> "\u000C" <http://example/graph> . diff --git a/test/w3c/TriGTests/literal_with_FORM_FEED.trig b/test/w3c/TriGTests/literal_with_FORM_FEED.trig new file mode 100644 index 00000000..742f7cac --- /dev/null +++ b/test/w3c/TriGTests/literal_with_FORM_FEED.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '' .} diff --git a/test/w3c/TriGTests/literal_with_LINE_FEED.nq b/test/w3c/TriGTests/literal_with_LINE_FEED.nq new file mode 100644 index 00000000..facb59ec --- /dev/null +++ b/test/w3c/TriGTests/literal_with_LINE_FEED.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\n" . +<http://a.example/s> <http://a.example/p> "\n" <http://example/graph> . diff --git a/test/w3c/TriGTests/literal_with_LINE_FEED.trig b/test/w3c/TriGTests/literal_with_LINE_FEED.trig new file mode 100644 index 00000000..26c292d9 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_LINE_FEED.trig @@ -0,0 +1,4 @@ +{<http://a.example/s> <http://a.example/p> ''' +''' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> ''' +''' .}
\ No newline at end of file diff --git a/test/w3c/TriGTests/literal_with_REVERSE_SOLIDUS.nq b/test/w3c/TriGTests/literal_with_REVERSE_SOLIDUS.nq new file mode 100644 index 00000000..45674069 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_REVERSE_SOLIDUS.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "\\" . +<http://a.example/s> <http://a.example/p> "\\" <http://example/graph> . diff --git a/test/w3c/TriGTests/literal_with_REVERSE_SOLIDUS.trig b/test/w3c/TriGTests/literal_with_REVERSE_SOLIDUS.trig new file mode 100644 index 00000000..b939dc28 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_REVERSE_SOLIDUS.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '\\' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '\\' .} diff --git a/test/w3c/TriGTests/literal_with_escaped_BACKSPACE.trig b/test/w3c/TriGTests/literal_with_escaped_BACKSPACE.trig new file mode 100644 index 00000000..f13d246b --- /dev/null +++ b/test/w3c/TriGTests/literal_with_escaped_BACKSPACE.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '\b' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '\b' .} diff --git a/test/w3c/TriGTests/literal_with_escaped_CARRIAGE_RETURN.trig b/test/w3c/TriGTests/literal_with_escaped_CARRIAGE_RETURN.trig new file mode 100644 index 00000000..c2ded66d --- /dev/null +++ b/test/w3c/TriGTests/literal_with_escaped_CARRIAGE_RETURN.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '\r' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '\r' .} diff --git a/test/w3c/TriGTests/literal_with_escaped_CHARACTER_TABULATION.trig b/test/w3c/TriGTests/literal_with_escaped_CHARACTER_TABULATION.trig new file mode 100644 index 00000000..60dbac21 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_escaped_CHARACTER_TABULATION.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '\t' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '\t' .} diff --git a/test/w3c/TriGTests/literal_with_escaped_FORM_FEED.trig b/test/w3c/TriGTests/literal_with_escaped_FORM_FEED.trig new file mode 100644 index 00000000..63f8dc97 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_escaped_FORM_FEED.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '\f' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '\f' .} diff --git a/test/w3c/TriGTests/literal_with_escaped_LINE_FEED.trig b/test/w3c/TriGTests/literal_with_escaped_LINE_FEED.trig new file mode 100644 index 00000000..2c1f89a4 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_escaped_LINE_FEED.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '\n' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '\n' .} diff --git a/test/w3c/TriGTests/literal_with_numeric_escape4.nq b/test/w3c/TriGTests/literal_with_numeric_escape4.nq new file mode 100644 index 00000000..84fce641 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_numeric_escape4.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "o" . +<http://a.example/s> <http://a.example/p> "o" <http://example/graph> . diff --git a/test/w3c/TriGTests/literal_with_numeric_escape4.trig b/test/w3c/TriGTests/literal_with_numeric_escape4.trig new file mode 100644 index 00000000..1c868cc9 --- /dev/null +++ b/test/w3c/TriGTests/literal_with_numeric_escape4.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '\u006F' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '\u006F' .} diff --git a/test/w3c/TriGTests/literal_with_numeric_escape8.trig b/test/w3c/TriGTests/literal_with_numeric_escape8.trig new file mode 100644 index 00000000..b36ff3ea --- /dev/null +++ b/test/w3c/TriGTests/literal_with_numeric_escape8.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> '\U0000006F' .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> '\U0000006F' .} diff --git a/test/w3c/TriGTests/localName_with_PN_CHARS_BASE_character_boundaries.nq b/test/w3c/TriGTests/localName_with_PN_CHARS_BASE_character_boundaries.nq new file mode 100644 index 00000000..1f93580c --- /dev/null +++ b/test/w3c/TriGTests/localName_with_PN_CHARS_BASE_character_boundaries.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u037F\u1FFF\u200C\u200D\u2070\u218F\u2C00\u2FEF\u3001\uD7FF\uF900\uFDCF\uFDF0\uFFEF\U00010000\U000EFFFD> . +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u037F\u1FFF\u200C\u200D\u2070\u218F\u2C00\u2FEF\u3001\uD7FF\uF900\uFDCF\uFDF0\uFFEF\U00010000\U000EFFFD> <http://example/graph> . diff --git a/test/w3c/TriGTests/localName_with_PN_CHARS_BASE_character_boundaries.trig b/test/w3c/TriGTests/localName_with_PN_CHARS_BASE_character_boundaries.trig new file mode 100644 index 00000000..08221635 --- /dev/null +++ b/test/w3c/TriGTests/localName_with_PN_CHARS_BASE_character_boundaries.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +{<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ𐀀 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ𐀀 .} diff --git a/test/w3c/TriGTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nq b/test/w3c/TriGTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nq new file mode 100644 index 00000000..c347f934 --- /dev/null +++ b/test/w3c/TriGTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u0384\u1FFE\u200C\u200D\u2070\u2189\u2C00\u2FD5\u3001\uD7FB\uFA0E\uFDC7\uFDF0\uFFEF\U00010000\U000E01EF> . +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u0384\u1FFE\u200C\u200D\u2070\u2189\u2C00\u2FD5\u3001\uD7FB\uFA0E\uFDC7\uFDF0\uFFEF\U00010000\U000E01EF> <http://example/graph> . diff --git a/test/w3c/TriGTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.trig b/test/w3c/TriGTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.trig new file mode 100644 index 00000000..c3f36e9e --- /dev/null +++ b/test/w3c/TriGTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +{<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿Ͱͽ΄῾⁰↉Ⰰ⿕、ퟻ﨎ﷇﷰ𐀀󠇯 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿Ͱͽ΄῾⁰↉Ⰰ⿕、ퟻ﨎ﷇﷰ𐀀󠇯 .} diff --git a/test/w3c/TriGTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nq b/test/w3c/TriGTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nq new file mode 100644 index 00000000..988855ef --- /dev/null +++ b/test/w3c/TriGTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u0384\u1FFE\u200C\u200D\u2070\u2189\u2C00\u2FD5\u3001\uD7FB\uFA0E\uFDC7\uFDF0\uFFEF> . +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u0384\u1FFE\u200C\u200D\u2070\u2189\u2C00\u2FD5\u3001\uD7FB\uFA0E\uFDC7\uFDF0\uFFEF> <http://example/graph> . diff --git a/test/w3c/TriGTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.trig b/test/w3c/TriGTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.trig new file mode 100644 index 00000000..dd48ac12 --- /dev/null +++ b/test/w3c/TriGTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +{<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿Ͱͽ΄῾⁰↉Ⰰ⿕、ퟻ﨎ﷇﷰ .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿Ͱͽ΄῾⁰↉Ⰰ⿕、ퟻ﨎ﷇﷰ .} diff --git a/test/w3c/TriGTests/localName_with_leading_digit.nq b/test/w3c/TriGTests/localName_with_leading_digit.nq new file mode 100644 index 00000000..6f05d1ca --- /dev/null +++ b/test/w3c/TriGTests/localName_with_leading_digit.nq @@ -0,0 +1,2 @@ +<http://a.example/0> <http://a.example/p> <http://a.example/o> . +<http://a.example/0> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/localName_with_leading_digit.trig b/test/w3c/TriGTests/localName_with_leading_digit.trig new file mode 100644 index 00000000..540aa007 --- /dev/null +++ b/test/w3c/TriGTests/localName_with_leading_digit.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{p:0 <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:0 <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/localName_with_leading_underscore.nq b/test/w3c/TriGTests/localName_with_leading_underscore.nq new file mode 100644 index 00000000..2cb72818 --- /dev/null +++ b/test/w3c/TriGTests/localName_with_leading_underscore.nq @@ -0,0 +1,2 @@ +<http://a.example/_> <http://a.example/p> <http://a.example/o> . +<http://a.example/_> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/localName_with_leading_underscore.trig b/test/w3c/TriGTests/localName_with_leading_underscore.trig new file mode 100644 index 00000000..72f2e30b --- /dev/null +++ b/test/w3c/TriGTests/localName_with_leading_underscore.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{p:_ <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:_ <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.nq b/test/w3c/TriGTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.nq new file mode 100644 index 00000000..9c6a3d4d --- /dev/null +++ b/test/w3c/TriGTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u037F\u1FFF\u200C\u200D\u2070\u218F\u2C00\u2FEF\u3001\uD7FF\uFA0E\uFDCF\uFDF0\uFFEF\U00010000\U000EFFFD> . +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u037F\u1FFF\u200C\u200D\u2070\u218F\u2C00\u2FEF\u3001\uD7FF\uFA0E\uFDCF\uFDF0\uFFEF\U00010000\U000EFFFD> <http://example/graph> . diff --git a/test/w3c/TriGTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.trig b/test/w3c/TriGTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.trig new file mode 100644 index 00000000..d998e3d4 --- /dev/null +++ b/test/w3c/TriGTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +{<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、﨎﷏ﷰ𐀀 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、﨎﷏ﷰ𐀀 .} diff --git a/test/w3c/TriGTests/localName_with_non_leading_extras.nq b/test/w3c/TriGTests/localName_with_non_leading_extras.nq new file mode 100644 index 00000000..40353439 --- /dev/null +++ b/test/w3c/TriGTests/localName_with_non_leading_extras.nq @@ -0,0 +1,2 @@ +<http://a.example/a\u00B7\u0300\u036F\u203F.\u2040> <http://a.example/p> <http://a.example/o> . +<http://a.example/a\u00B7\u0300\u036F\u203F.\u2040> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/localName_with_non_leading_extras.trig b/test/w3c/TriGTests/localName_with_non_leading_extras.trig new file mode 100644 index 00000000..bd1c32c8 --- /dev/null +++ b/test/w3c/TriGTests/localName_with_non_leading_extras.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{p:a·̀ͯ‿.⁀ <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:a·̀ͯ‿.⁀ <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/localname_with_COLON.nq b/test/w3c/TriGTests/localname_with_COLON.nq new file mode 100644 index 00000000..9a1a0d5a --- /dev/null +++ b/test/w3c/TriGTests/localname_with_COLON.nq @@ -0,0 +1,2 @@ +<http://a.example/s:> <http://a.example/p> <http://a.example/o> . +<http://a.example/s:> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/localname_with_COLON.trig b/test/w3c/TriGTests/localname_with_COLON.trig new file mode 100644 index 00000000..e166d575 --- /dev/null +++ b/test/w3c/TriGTests/localname_with_COLON.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{p:s: <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:s: <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/manifest.ttl b/test/w3c/TriGTests/manifest.ttl new file mode 100644 index 00000000..10a4661f --- /dev/null +++ b/test/w3c/TriGTests/manifest.ttl @@ -0,0 +1,2883 @@ +# TriG tests +## Distributed under both the W3C Test Suite License[1] and the W3C 3- +## clause BSD License[2]. To contribute to a W3C Test Suite, see the +## policies and contribution forms [3] +## +## 1. http://www.w3.org/Consortium/Legal/2008/04-testsuite-license +## 2. http://www.w3.org/Consortium/Legal/2008/03-bsd-license +## 3. http://www.w3.org/2004/10/27-testcases + +@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 qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> . + +@prefix rdft: <http://www.w3.org/ns/rdftest#> . + +<> rdf:type mf:Manifest ; + mf:name "TriG tests" ; + mf:entries + ( + # TriG specific tests + <#anonymous_blank_node_graph> + <#labeled_blank_node_graph> + <#alternating_iri_graphs> + <#alternating_bnode_graphs> + <#trig-syntax-bad-base-04> + <#trig-syntax-bad-base-05> + <#trig-syntax-bad-prefix-06> + <#trig-syntax-bad-prefix-07> + <#trig-syntax-struct-06> + <#trig-syntax-struct-07> + <#trig-syntax-minimal-whitespace-01> + + # From Turtle tests + # atomic tests + <#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> + <#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_leading_underscore> + <#localName_with_leading_digit> + <#localName_with_non_leading_extras> + <#old_style_base> + <#SPARQL_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> + <#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> + <#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> + <#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> + + # tests requested by Jeremy Carroll + # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c35 + <#comment_following_localName> + <#number_sign_following_localName> + <#comment_following_PNAME_NS> + <#number_sign_following_PNAME_NS> + + # tests from Dave Beckett + # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c28 + <#LITERAL_LONG2_with_REVERSE_SOLIDUS> + <#trig-syntax-bad-LITERAL2_with_langtag_and_datatype> + <#two_LITERAL_LONG2s> + <#langtagged_LONG_with_subtag> + + # original tests-ttl + <#trig-syntax-file-01> + <#trig-syntax-file-02> + <#trig-syntax-file-03> + <#trig-syntax-uri-01> + <#trig-syntax-uri-02> + <#trig-syntax-uri-03> + <#trig-syntax-uri-04> + <#trig-syntax-base-01> + <#trig-syntax-base-02> + <#trig-syntax-base-03> + <#trig-syntax-base-04> + <#trig-syntax-prefix-01> + <#trig-syntax-prefix-02> + <#trig-syntax-prefix-03> + <#trig-syntax-prefix-04> + <#trig-syntax-prefix-05> + <#trig-syntax-prefix-06> + <#trig-syntax-prefix-07> + <#trig-syntax-prefix-08> + <#trig-syntax-prefix-09> + <#trig-syntax-string-01> + <#trig-syntax-string-02> + <#trig-syntax-string-03> + <#trig-syntax-string-04> + <#trig-syntax-string-05> + <#trig-syntax-string-06> + <#trig-syntax-string-07> + <#trig-syntax-string-08> + <#trig-syntax-string-09> + <#trig-syntax-string-10> + <#trig-syntax-string-11> + <#trig-syntax-str-esc-01> + <#trig-syntax-str-esc-02> + <#trig-syntax-str-esc-03> + <#trig-syntax-pname-esc-01> + <#trig-syntax-pname-esc-02> + <#trig-syntax-pname-esc-03> + <#trig-syntax-bnode-01> + <#trig-syntax-bnode-02> + <#trig-syntax-bnode-03> + <#trig-syntax-bnode-04> + <#trig-syntax-bnode-05> + <#trig-syntax-bnode-06> + <#trig-syntax-bnode-07> + <#trig-syntax-bnode-08> + <#trig-syntax-bnode-09> + <#trig-syntax-bnode-10> + <#trig-syntax-number-01> + <#trig-syntax-number-02> + <#trig-syntax-number-03> + <#trig-syntax-number-04> + <#trig-syntax-number-05> + <#trig-syntax-number-06> + <#trig-syntax-number-07> + <#trig-syntax-number-08> + <#trig-syntax-number-09> + <#trig-syntax-number-10> + <#trig-syntax-number-11> + <#trig-syntax-datatypes-01> + <#trig-syntax-datatypes-02> + <#trig-syntax-kw-01> + <#trig-syntax-kw-02> + <#trig-syntax-kw-03> + <#trig-syntax-struct-01> + <#trig-syntax-struct-02> + <#trig-syntax-struct-03> + <#trig-syntax-struct-04> + <#trig-syntax-struct-05> + <#trig-syntax-lists-01> + <#trig-syntax-lists-02> + <#trig-syntax-lists-03> + <#trig-syntax-lists-04> + <#trig-syntax-lists-05> + <#trig-syntax-bad-uri-01> + <#trig-syntax-bad-uri-02> + <#trig-syntax-bad-uri-03> + <#trig-syntax-bad-uri-04> + <#trig-syntax-bad-uri-05> + <#trig-syntax-bad-prefix-01> + <#trig-syntax-bad-prefix-02> + <#trig-syntax-bad-prefix-03> + <#trig-syntax-bad-prefix-04> + <#trig-syntax-bad-prefix-05> + <#trig-syntax-bad-base-01> + <#trig-syntax-bad-base-02> + <#trig-syntax-bad-base-03> + <#trig-syntax-bad-struct-02> + <#trig-syntax-bad-struct-03> + <#trig-syntax-bad-struct-04> + <#trig-syntax-bad-struct-05> + <#trig-syntax-bad-struct-06> + <#trig-syntax-bad-struct-07> + <#trig-syntax-bad-kw-01> + <#trig-syntax-bad-kw-02> + <#trig-syntax-bad-kw-03> + <#trig-syntax-bad-kw-04> + <#trig-syntax-bad-kw-05> + <#trig-syntax-bad-n3-extras-01> + <#trig-syntax-bad-n3-extras-02> + <#trig-syntax-bad-n3-extras-03> + <#trig-syntax-bad-n3-extras-04> + <#trig-syntax-bad-n3-extras-05> + <#trig-syntax-bad-n3-extras-06> + <#trig-syntax-bad-n3-extras-07> + <#trig-syntax-bad-n3-extras-08> + <#trig-syntax-bad-n3-extras-09> + <#trig-syntax-bad-n3-extras-10> + <#trig-syntax-bad-n3-extras-11> + <#trig-syntax-bad-n3-extras-12> + <#trig-syntax-bad-n3-extras-13> + <#trig-syntax-bad-struct-09> + <#trig-syntax-bad-struct-10> + <#trig-syntax-bad-struct-12> + <#trig-syntax-bad-struct-13> + <#trig-syntax-bad-struct-14> + <#trig-syntax-bad-struct-15> + <#trig-syntax-bad-struct-16> + <#trig-syntax-bad-struct-17> + <#trig-syntax-bad-lang-01> + <#trig-syntax-bad-esc-01> + <#trig-syntax-bad-esc-02> + <#trig-syntax-bad-esc-03> + <#trig-syntax-bad-esc-04> + <#trig-syntax-bad-pname-01> + <#trig-syntax-bad-pname-02> + <#trig-syntax-bad-pname-03> + <#trig-syntax-bad-string-01> + <#trig-syntax-bad-string-02> + <#trig-syntax-bad-string-03> + <#trig-syntax-bad-string-04> + <#trig-syntax-bad-string-05> + <#trig-syntax-bad-string-06> + <#trig-syntax-bad-string-07> + <#trig-syntax-bad-num-01> + <#trig-syntax-bad-num-02> + <#trig-syntax-bad-num-03> + <#trig-syntax-bad-num-04> + <#trig-syntax-bad-num-05> + <#trig-eval-struct-01> + <#trig-eval-struct-02> + <#trig-subm-01> + <#trig-subm-02> + <#trig-subm-03> + <#trig-subm-04> + <#trig-subm-05> + <#trig-subm-06> + <#trig-subm-07> + <#trig-subm-08> + <#trig-subm-09> + <#trig-subm-10> + <#trig-subm-11> + <#trig-subm-12> + <#trig-subm-13> + <#trig-subm-14> + <#trig-subm-15> + <#trig-subm-16> + <#trig-subm-17> + <#trig-subm-18> + <#trig-subm-19> + <#trig-subm-20> + <#trig-subm-21> + <#trig-subm-22> + <#trig-subm-23> + <#trig-subm-24> + <#trig-subm-25> + <#trig-subm-26> + <#trig-subm-27> + <#trig-eval-bad-01> + <#trig-eval-bad-02> + <#trig-eval-bad-03> + <#trig-eval-bad-04> + + # tests from David Robillard + # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c21 + <#trig-syntax-bad-blank-label-dot-end> + <#trig-syntax-bad-ln-dash-start> + <#trig-syntax-bad-ln-escape-start> + <#trig-syntax-bad-ln-escape> + <#trig-syntax-bad-missing-ns-dot-end> + <#trig-syntax-bad-missing-ns-dot-start> + <#trig-syntax-bad-ns-dot-end> + <#trig-syntax-bad-ns-dot-start> + <#trig-syntax-bad-number-dot-in-anon> + <#trig-syntax-bad-list-01> + <#trig-syntax-bad-list-02> + <#trig-syntax-bad-list-03> + <#trig-syntax-bad-list-04> + + <#trig-syntax-blank-label> + <#trig-syntax-ln-colons> + <#trig-syntax-ln-dots> + <#trig-syntax-ns-dots> + + # tests for bnode graph names, optional GRAPH keyword and + # triples outside {} + <#trig-kw-graph-01> + <#trig-kw-graph-02> + <#trig-kw-graph-03> + <#trig-kw-graph-04> + <#trig-kw-graph-05> + + <#trig-kw-graph-06> + <#trig-kw-graph-07> + <#trig-kw-graph-08> + <#trig-kw-graph-09> + + <#trig-kw-graph-10> + + <#trig-graph-bad-01> + <#trig-graph-bad-02> + <#trig-graph-bad-03> + <#trig-graph-bad-04> + <#trig-graph-bad-05> + + <#trig-graph-bad-06> + <#trig-graph-bad-07> + <#trig-graph-bad-08> + <#trig-graph-bad-09> + + <#trig-graph-bad-10> + <#trig-graph-bad-11> + + <#trig-bnodeplist-graph-01> + + <#trig-collection-graph-01> + <#trig-collection-graph-02> + + <#trig-turtle-01> + <#trig-turtle-02> + <#trig-turtle-03> + <#trig-turtle-04> + <#trig-turtle-05> + + <#trig-turtle-06> + + <#trig-turtle-bad-01> + <#trig-turtle-bad-02> + + # Tests from N-Triples/N-Quads + ) . + +# TriG tests +<#anonymous_blank_node_graph> rdf:type rdft:TestTrigEval ; + mf:name "anonymous_blank_node_graph" ; + rdfs:comment "anonymous blank node graph" ; + rdft:approval rdft:Approved ; + mf:action <anonymous_blank_node_graph.trig> ; + mf:result <anonymous_blank_node_graph.nq> ; + . + +<#labeled_blank_node_graph> rdf:type rdft:TestTrigEval ; + mf:name "labeled_blank_node_graph" ; + rdfs:comment "labeled blank node graph" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_graph.trig> ; + mf:result <labeled_blank_node_graph.nq> ; + . +<#alternating_iri_graphs> rdf:type rdft:TestTrigEval ; + mf:name "alternating_iri_graphs" ; + rdfs:comment "alternating graphs with IRI names" ; + rdft:approval rdft:Approved ; + mf:action <alternating_iri_graphs.trig> ; + mf:result <alternating_iri_graphs.nq> ; + . + +<#alternating_bnode_graphs> rdf:type rdft:TestTrigEval ; + mf:name "alternating_bnode_graphs" ; + rdfs:comment "alternating graphs with BNode names" ; + rdft:approval rdft:Approved ; + mf:action <alternating_bnode_graphs.trig> ; + mf:result <alternating_bnode_graphs.nq> ; + . + +<#trig-syntax-bad-base-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-base-04" ; + rdfs:comment "@base inside graph (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-base-04.trig> ; + . + +<#trig-syntax-bad-base-05> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-base-05" ; + rdfs:comment "BASE inside graph (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-base-05.trig> ; + . + +<#trig-syntax-bad-prefix-06> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-prefix-06" ; + rdfs:comment "@prefix inside graph (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-prefix-06.trig> ; + . + +<#trig-syntax-bad-prefix-07> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-prefix-07" ; + rdfs:comment "PREFIX inside graph (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-prefix-07.trig> ; + . + +<#trig-syntax-struct-06> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-struct-06" ; + rdfs:comment "missing '.'" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-struct-06.trig> ; + . + +<#trig-syntax-struct-07> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-struct-07" ; + rdfs:comment "trailing ';' no '.'" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-struct-07.trig> ; + . + +<#trig-syntax-minimal-whitespace-01> a rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-minimal-whitespace-01" ; + rdfs:comment "tests absense of whitespace in various positions" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-minimal-whitespace-01.trig> ; + . +# Original Turtle tests +# atomic tests +<#IRI_subject> rdf:type rdft:TestTrigEval ; + mf:name "IRI_subject" ; + rdfs:comment "IRI subject" ; + rdft:approval rdft:Approved ; + mf:action <IRI_subject.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#IRI_with_four_digit_numeric_escape> rdf:type rdft:TestTrigEval ; + mf:name "IRI_with_four_digit_numeric_escape" ; + rdfs:comment "IRI with four digit numeric escape (\\u)" ; + rdft:approval rdft:Approved ; + mf:action <IRI_with_four_digit_numeric_escape.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#IRI_with_eight_digit_numeric_escape> rdf:type rdft:TestTrigEval ; + mf:name "IRI_with_eight_digit_numeric_escape" ; + rdfs:comment "IRI with eight digit numeric escape (\\U)" ; + rdft:approval rdft:Approved ; + mf:action <IRI_with_eight_digit_numeric_escape.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#IRI_with_all_punctuation> rdf:type rdft:TestTrigEval ; + mf:name "IRI_with_all_punctuation" ; + rdfs:comment "IRI with all punctuation" ; + rdft:approval rdft:Approved ; + mf:action <IRI_with_all_punctuation.trig> ; + mf:result <IRI_with_all_punctuation.nq> ; + . + +<#bareword_a_predicate> rdf:type rdft:TestTrigEval ; + mf:name "bareword_a_predicate" ; + rdfs:comment "bareword a predicate" ; + rdft:approval rdft:Approved ; + mf:action <bareword_a_predicate.trig> ; + mf:result <bareword_a_predicate.nq> ; + . + +<#old_style_prefix> rdf:type rdft:TestTrigEval ; + mf:name "old_style_prefix" ; + rdfs:comment "old-style prefix" ; + rdft:approval rdft:Approved ; + mf:action <old_style_prefix.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#SPARQL_style_prefix> rdf:type rdft:TestTrigEval ; + mf:name "SPARQL_style_prefix" ; + rdfs:comment "SPARQL-style prefix" ; + rdft:approval rdft:Approved ; + mf:action <SPARQL_style_prefix.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#prefixed_IRI_predicate> rdf:type rdft:TestTrigEval ; + mf:name "prefixed_IRI_predicate" ; + rdfs:comment "prefixed IRI predicate" ; + rdft:approval rdft:Approved ; + mf:action <prefixed_IRI_predicate.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#prefixed_IRI_object> rdf:type rdft:TestTrigEval ; + mf:name "prefixed_IRI_object" ; + rdfs:comment "prefixed IRI object" ; + rdft:approval rdft:Approved ; + mf:action <prefixed_IRI_object.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#prefix_only_IRI> rdf:type rdft:TestTrigEval ; + mf:name "prefix_only_IRI" ; + rdfs:comment "prefix-only IRI (p:)" ; + rdft:approval rdft:Approved ; + mf:action <prefix_only_IRI.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#prefix_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "prefix_with_PN_CHARS_BASE_character_boundaries" ; + rdfs:comment "prefix with PN CHARS BASE character boundaries (prefix: AZazÀÖØöø...:)" ; + rdft:approval rdft:Approved ; + mf:action <prefix_with_PN_CHARS_BASE_character_boundaries.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#prefix_with_non_leading_extras> rdf:type rdft:TestTrigEval ; + mf:name "prefix_with_non_leading_extras" ; + rdfs:comment "prefix with_non_leading_extras (_:a·̀ͯ‿.⁀)" ; + rdft:approval rdft:Approved ; + mf:action <prefix_with_non_leading_extras.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ; + 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ÀÖØöø...)" ; + rdft:approval rdft:Approved ; + mf:action <localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.trig> ; + mf:result <localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nq> ; + . + +<#localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ; + 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ÀÖØöø...)" ; + rdft:approval rdft:Approved ; + mf:action <localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.trig> ; + mf:result <localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nq> ; + . + +<#localName_with_nfc_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "localName_with_nfc_PN_CHARS_BASE_character_boundaries" ; + rdfs:comment "localName with nfc-normalize PN CHARS BASE character boundaries (p:AZazÀÖØöø...)" ; + rdft:approval rdft:Approved ; + mf:action <localName_with_nfc_PN_CHARS_BASE_character_boundaries.trig> ; + mf:result <localName_with_nfc_PN_CHARS_BASE_character_boundaries.nq> ; + . + +<#default_namespace_IRI> rdf:type rdft:TestTrigEval ; + mf:name "default_namespace_IRI" ; + rdfs:comment "default namespace IRI (:ln)" ; + rdft:approval rdft:Approved ; + mf:action <default_namespace_IRI.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#prefix_reassigned_and_used> rdf:type rdft:TestTrigEval ; + mf:name "prefix_reassigned_and_used" ; + rdfs:comment "prefix reassigned and used" ; + rdft:approval rdft:Approved ; + mf:action <prefix_reassigned_and_used.trig> ; + mf:result <prefix_reassigned_and_used.nq> ; + . + +<#reserved_escaped_localName> rdf:type rdft:TestTrigEval ; + mf:name "reserved_escaped_localName" ; + rdfs:comment "reserved-escaped local name" ; + rdft:approval rdft:Approved ; + mf:action <reserved_escaped_localName.trig> ; + mf:result <reserved_escaped_localName.nq> ; + . + +<#percent_escaped_localName> rdf:type rdft:TestTrigEval ; + mf:name "percent_escaped_localName" ; + rdfs:comment "percent-escaped local name" ; + rdft:approval rdft:Approved ; + mf:action <percent_escaped_localName.trig> ; + mf:result <percent_escaped_localName.nq> ; + . + +<#HYPHEN_MINUS_in_localName> rdf:type rdft:TestTrigEval ; + mf:name "HYPHEN_MINUS_in_localName" ; + rdfs:comment "HYPHEN-MINUS in local name" ; + rdft:approval rdft:Approved ; + mf:action <HYPHEN_MINUS_in_localName.trig> ; + mf:result <HYPHEN_MINUS_in_localName.nq> ; + . + +<#underscore_in_localName> rdf:type rdft:TestTrigEval ; + mf:name "underscore_in_localName" ; + rdfs:comment "underscore in local name" ; + rdft:approval rdft:Approved ; + mf:action <underscore_in_localName.trig> ; + mf:result <underscore_in_localName.nq> ; + . + +<#localname_with_COLON> rdf:type rdft:TestTrigEval ; + mf:name "localname_with_COLON" ; + rdfs:comment "localname with COLON" ; + rdft:approval rdft:Approved ; + mf:action <localname_with_COLON.trig> ; + mf:result <localname_with_COLON.nq> ; + . + +<#localName_with_leading_underscore> rdf:type rdft:TestTrigEval ; + mf:name "localName_with_leading_underscore" ; + rdfs:comment "localName with leading underscore (p:_)" ; + rdft:approval rdft:Approved ; + mf:action <localName_with_leading_underscore.trig> ; + mf:result <localName_with_leading_underscore.nq> ; + . + +<#localName_with_leading_digit> rdf:type rdft:TestTrigEval ; + mf:name "localName_with_leading_digit" ; + rdfs:comment "localName with leading digit (p:_)" ; + rdft:approval rdft:Approved ; + mf:action <localName_with_leading_digit.trig> ; + mf:result <localName_with_leading_digit.nq> ; + . + +<#localName_with_non_leading_extras> rdf:type rdft:TestTrigEval ; + mf:name "localName_with_non_leading_extras" ; + rdfs:comment "localName with_non_leading_extras (_:a·̀ͯ‿.⁀)" ; + rdft:approval rdft:Approved ; + mf:action <localName_with_non_leading_extras.trig> ; + mf:result <localName_with_non_leading_extras.nq> ; + . + +<#old_style_base> rdf:type rdft:TestTrigEval ; + mf:name "old_style_base" ; + rdfs:comment "old-style base" ; + rdft:approval rdft:Approved ; + mf:action <old_style_base.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#SPARQL_style_base> rdf:type rdft:TestTrigEval ; + mf:name "SPARQL_style_base" ; + rdfs:comment "SPARQL-style base" ; + rdft:approval rdft:Approved ; + mf:action <SPARQL_style_base.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#labeled_blank_node_subject> rdf:type rdft:TestTrigEval ; + mf:name "labeled_blank_node_subject" ; + rdfs:comment "labeled blank node subject" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_subject.trig> ; + mf:result <labeled_blank_node_subject.nq> ; + . + +<#labeled_blank_node_object> rdf:type rdft:TestTrigEval ; + mf:name "labeled_blank_node_object" ; + rdfs:comment "labeled blank node object" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_object.trig> ; + mf:result <labeled_blank_node_object.nq> ; + . + +<#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "labeled_blank_node_with_PN_CHARS_BASE_character_boundaries" ; + rdfs:comment "labeled blank node with PN_CHARS_BASE character boundaries (_:AZazÀÖØöø...)" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.trig> ; + mf:result <labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.nq> ; + . + +<#labeled_blank_node_with_leading_underscore> rdf:type rdft:TestTrigEval ; + mf:name "labeled_blank_node_with_leading_underscore" ; + rdfs:comment "labeled blank node with_leading_underscore (_:_)" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_with_leading_underscore.trig> ; + mf:result <labeled_blank_node_with_leading_underscore.nq> ; + . + +<#labeled_blank_node_with_leading_digit> rdf:type rdft:TestTrigEval ; + mf:name "labeled_blank_node_with_leading_digit" ; + rdfs:comment "labeled blank node with_leading_digit (_:0)" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_with_leading_digit.trig> ; + mf:result <labeled_blank_node_with_leading_digit.nq> ; + . + +<#labeled_blank_node_with_non_leading_extras> rdf:type rdft:TestTrigEval ; + mf:name "labeled_blank_node_with_non_leading_extras" ; + rdfs:comment "labeled blank node with_non_leading_extras (_:a·̀ͯ‿.⁀)" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_with_non_leading_extras.trig> ; + mf:result <labeled_blank_node_with_non_leading_extras.nq> ; + . + +<#anonymous_blank_node_subject> rdf:type rdft:TestTrigEval ; + mf:name "anonymous_blank_node_subject" ; + rdfs:comment "anonymous blank node subject" ; + rdft:approval rdft:Approved ; + mf:action <anonymous_blank_node_subject.trig> ; + mf:result <anonymous_blank_node_subject.nq> ; + . + +<#anonymous_blank_node_object> rdf:type rdft:TestTrigEval ; + mf:name "anonymous_blank_node_object" ; + rdfs:comment "anonymous blank node object" ; + rdft:approval rdft:Approved ; + mf:action <anonymous_blank_node_object.trig> ; + mf:result <anonymous_blank_node_object.nq> ; + . + +<#sole_blankNodePropertyList> rdf:type rdft:TestTrigEval ; + mf:name "sole_blankNodePropertyList" ; + rdfs:comment "sole blankNodePropertyList [ <p> <o> ] ." ; + rdft:approval rdft:Approved ; + mf:action <sole_blankNodePropertyList.trig> ; + mf:result <sole_blankNodePropertyList.nq> ; + . + +<#blankNodePropertyList_as_subject> rdf:type rdft:TestTrigEval ; + mf:name "blankNodePropertyList_as_subject" ; + rdfs:comment "blankNodePropertyList as subject [ … ] <p> <o> ." ; + rdft:approval rdft:Approved ; + mf:action <blankNodePropertyList_as_subject.trig> ; + mf:result <blankNodePropertyList_as_subject.nq> ; + . + +<#blankNodePropertyList_as_object> rdf:type rdft:TestTrigEval ; + mf:name "blankNodePropertyList_as_object" ; + rdfs:comment "blankNodePropertyList as object <s> <p> [ … ] ." ; + rdft:approval rdft:Approved ; + mf:action <blankNodePropertyList_as_object.trig> ; + mf:result <blankNodePropertyList_as_object.nq> ; + . + +<#blankNodePropertyList_with_multiple_triples> rdf:type rdft:TestTrigEval ; + mf:name "blankNodePropertyList_with_multiple_triples" ; + rdfs:comment "blankNodePropertyList with multiple triples [ <s> <p> ; <s2> <p2> ]" ; + rdft:approval rdft:Approved ; + mf:action <blankNodePropertyList_with_multiple_triples.trig> ; + mf:result <blankNodePropertyList_with_multiple_triples.nq> ; + . + +<#nested_blankNodePropertyLists> rdf:type rdft:TestTrigEval ; + mf:name "nested_blankNodePropertyLists" ; + rdfs:comment "nested blankNodePropertyLists [ <p1> [ <p2> <o2> ] ; <p3> <o3> ]" ; + rdft:approval rdft:Approved ; + mf:action <nested_blankNodePropertyLists.trig> ; + mf:result <nested_blankNodePropertyLists.nq> ; + . + +<#blankNodePropertyList_containing_collection> rdf:type rdft:TestTrigEval ; + mf:name "blankNodePropertyList_containing_collection" ; + rdfs:comment "blankNodePropertyList containing collection [ <p1> ( … ) ]" ; + rdft:approval rdft:Approved ; + mf:action <blankNodePropertyList_containing_collection.trig> ; + mf:result <blankNodePropertyList_containing_collection.nq> ; + . + +<#collection_subject> rdf:type rdft:TestTrigEval ; + mf:name "collection_subject" ; + rdfs:comment "collection subject" ; + rdft:approval rdft:Approved ; + mf:action <collection_subject.trig> ; + mf:result <collection_subject.nq> ; + . + +<#collection_object> rdf:type rdft:TestTrigEval ; + mf:name "collection_object" ; + rdfs:comment "collection object" ; + rdft:approval rdft:Approved ; + mf:action <collection_object.trig> ; + mf:result <collection_object.nq> ; + . + +<#empty_collection> rdf:type rdft:TestTrigEval ; + mf:name "empty_collection" ; + rdfs:comment "empty collection ()" ; + rdft:approval rdft:Approved ; + mf:action <empty_collection.trig> ; + mf:result <empty_collection.nq> ; + . + +<#nested_collection> rdf:type rdft:TestTrigEval ; + mf:name "nested_collection" ; + rdfs:comment "nested collection (())" ; + rdft:approval rdft:Approved ; + mf:action <nested_collection.trig> ; + mf:result <nested_collection.nq> ; + . + +<#first> rdf:type rdft:TestTrigEval ; + mf:name "first" ; + rdfs:comment "first, not last, non-empty nested collection" ; + rdft:approval rdft:Approved ; + mf:action <first.trig> ; + mf:result <first.nq> ; + . + +<#last> rdf:type rdft:TestTrigEval ; + mf:name "last" ; + rdfs:comment "last, not first, non-empty nested collection" ; + rdft:approval rdft:Approved ; + mf:action <last.trig> ; + mf:result <last.nq> ; + . + +<#LITERAL1> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL1" ; + rdfs:comment "LITERAL1 'x'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL1.trig> ; + mf:result <LITERAL1.nq> ; + . + +<#LITERAL1_ascii_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL1_ascii_boundaries" ; + rdfs:comment "LITERAL1_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x26\\x28...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL1_ascii_boundaries.trig> ; + mf:result <LITERAL1_ascii_boundaries.nq> ; + . + +<#LITERAL1_with_UTF8_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL1_with_UTF8_boundaries" ; + rdfs:comment "LITERAL1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL1_with_UTF8_boundaries.trig> ; + mf:result <LITERAL_with_UTF8_boundaries.nq> ; + . + +<#LITERAL1_all_controls> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL1_all_controls" ; + rdfs:comment "LITERAL1_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL1_all_controls.trig> ; + mf:result <LITERAL1_all_controls.nq> ; + . + +<#LITERAL1_all_punctuation> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL1_all_punctuation" ; + rdfs:comment "LITERAL1_all_punctuation '!\"#$%&()...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL1_all_punctuation.trig> ; + mf:result <LITERAL1_all_punctuation.nq> ; + . + +<#LITERAL_LONG1> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG1" ; + rdfs:comment "LITERAL_LONG1 '''x'''" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG1.trig> ; + mf:result <LITERAL1.nq> ; + . + +<#LITERAL_LONG1_ascii_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG1_ascii_boundaries" ; + rdfs:comment "LITERAL_LONG1_ascii_boundaries '\\x00\\x26\\x28...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG1_ascii_boundaries.trig> ; + mf:result <LITERAL_LONG1_ascii_boundaries.nq> ; + . + +<#LITERAL_LONG1_with_UTF8_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG1_with_UTF8_boundaries" ; + rdfs:comment "LITERAL_LONG1_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG1_with_UTF8_boundaries.trig> ; + mf:result <LITERAL_with_UTF8_boundaries.nq> ; + . + +<#LITERAL_LONG1_with_1_squote> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG1_with_1_squote" ; + rdfs:comment "LITERAL_LONG1 with 1 squote '''a'b'''" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG1_with_1_squote.trig> ; + mf:result <LITERAL_LONG1_with_1_squote.nq> ; + . + +<#LITERAL_LONG1_with_2_squotes> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG1_with_2_squotes" ; + rdfs:comment "LITERAL_LONG1 with 2 squotes '''a''b'''" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG1_with_2_squotes.trig> ; + mf:result <LITERAL_LONG1_with_2_squotes.nq> ; + . + +<#LITERAL2> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL2" ; + rdfs:comment "LITERAL2 \"x\"" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL2.trig> ; + mf:result <LITERAL1.nq> ; + . + +<#LITERAL2_ascii_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL2_ascii_boundaries" ; + rdfs:comment "LITERAL2_ascii_boundaries '\\x00\\x09\\x0b\\x0c\\x0e\\x21\\x23...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL2_ascii_boundaries.trig> ; + mf:result <LITERAL2_ascii_boundaries.nq> ; + . + +<#LITERAL2_with_UTF8_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL2_with_UTF8_boundaries" ; + rdfs:comment "LITERAL2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL2_with_UTF8_boundaries.trig> ; + mf:result <LITERAL_with_UTF8_boundaries.nq> ; + . + +<#LITERAL_LONG2> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG2" ; + rdfs:comment "LITERAL_LONG2 \"\"\"x\"\"\"" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG2.trig> ; + mf:result <LITERAL1.nq> ; + . + +<#LITERAL_LONG2_ascii_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG2_ascii_boundaries" ; + rdfs:comment "LITERAL_LONG2_ascii_boundaries '\\x00\\x21\\x23...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG2_ascii_boundaries.trig> ; + mf:result <LITERAL_LONG2_ascii_boundaries.nq> ; + . + +<#LITERAL_LONG2_with_UTF8_boundaries> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG2_with_UTF8_boundaries" ; + rdfs:comment "LITERAL_LONG2_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG2_with_UTF8_boundaries.trig> ; + mf:result <LITERAL_with_UTF8_boundaries.nq> ; + . + +<#LITERAL_LONG2_with_1_squote> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG2_with_1_squote" ; + rdfs:comment "LITERAL_LONG2 with 1 squote \"\"\"a\"b\"\"\"" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG2_with_1_squote.trig> ; + mf:result <LITERAL_LONG2_with_1_squote.nq> ; + . + +<#LITERAL_LONG2_with_2_squotes> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG2_with_2_squotes" ; + rdfs:comment "LITERAL_LONG2 with 2 squotes \"\"\"a\"\"b\"\"\"" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG2_with_2_squotes.trig> ; + mf:result <LITERAL_LONG2_with_2_squotes.nq> ; + . + +<#literal_with_CHARACTER_TABULATION> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_CHARACTER_TABULATION" ; + rdfs:comment "literal with CHARACTER TABULATION" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_CHARACTER_TABULATION.trig> ; + mf:result <literal_with_CHARACTER_TABULATION.nq> ; + . + +<#literal_with_BACKSPACE> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_BACKSPACE" ; + rdfs:comment "literal with BACKSPACE" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_BACKSPACE.trig> ; + mf:result <literal_with_BACKSPACE.nq> ; + . + +<#literal_with_LINE_FEED> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_LINE_FEED" ; + rdfs:comment "literal with LINE FEED" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_LINE_FEED.trig> ; + mf:result <literal_with_LINE_FEED.nq> ; + . + +<#literal_with_CARRIAGE_RETURN> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_CARRIAGE_RETURN" ; + rdfs:comment "literal with CARRIAGE RETURN" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_CARRIAGE_RETURN.trig> ; + mf:result <literal_with_CARRIAGE_RETURN.nq> ; + . + +<#literal_with_FORM_FEED> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_FORM_FEED" ; + rdfs:comment "literal with FORM FEED" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_FORM_FEED.trig> ; + mf:result <literal_with_FORM_FEED.nq> ; + . + +<#literal_with_REVERSE_SOLIDUS> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_REVERSE_SOLIDUS" ; + rdfs:comment "literal with REVERSE SOLIDUS" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_REVERSE_SOLIDUS.trig> ; + mf:result <literal_with_REVERSE_SOLIDUS.nq> ; + . + +<#literal_with_escaped_CHARACTER_TABULATION> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_escaped_CHARACTER_TABULATION" ; + rdfs:comment "literal with escaped CHARACTER TABULATION" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_escaped_CHARACTER_TABULATION.trig> ; + mf:result <literal_with_CHARACTER_TABULATION.nq> ; + . + +<#literal_with_escaped_BACKSPACE> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_escaped_BACKSPACE" ; + rdfs:comment "literal with escaped BACKSPACE" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_escaped_BACKSPACE.trig> ; + mf:result <literal_with_BACKSPACE.nq> ; + . + +<#literal_with_escaped_LINE_FEED> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_escaped_LINE_FEED" ; + rdfs:comment "literal with escaped LINE FEED" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_escaped_LINE_FEED.trig> ; + mf:result <literal_with_LINE_FEED.nq> ; + . + +<#literal_with_escaped_CARRIAGE_RETURN> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_escaped_CARRIAGE_RETURN" ; + rdfs:comment "literal with escaped CARRIAGE RETURN" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_escaped_CARRIAGE_RETURN.trig> ; + mf:result <literal_with_CARRIAGE_RETURN.nq> ; + . + +<#literal_with_escaped_FORM_FEED> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_escaped_FORM_FEED" ; + rdfs:comment "literal with escaped FORM FEED" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_escaped_FORM_FEED.trig> ; + mf:result <literal_with_FORM_FEED.nq> ; + . + +<#literal_with_numeric_escape4> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_numeric_escape4" ; + rdfs:comment "literal with numeric escape4 \\u" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_numeric_escape4.trig> ; + mf:result <literal_with_numeric_escape4.nq> ; + . + +<#literal_with_numeric_escape8> rdf:type rdft:TestTrigEval ; + mf:name "literal_with_numeric_escape8" ; + rdfs:comment "literal with numeric escape8 \\U" ; + rdft:approval rdft:Approved ; + mf:action <literal_with_numeric_escape8.trig> ; + mf:result <literal_with_numeric_escape4.nq> ; + . + +<#IRIREF_datatype> rdf:type rdft:TestTrigEval ; + mf:name "IRIREF_datatype" ; + rdfs:comment "IRIREF datatype \"\"^^<t>" ; + rdft:approval rdft:Approved ; + mf:action <IRIREF_datatype.trig> ; + mf:result <IRIREF_datatype.nq> ; + . + +<#prefixed_name_datatype> rdf:type rdft:TestTrigEval ; + mf:name "prefixed_name_datatype" ; + rdfs:comment "prefixed name datatype \"\"^^p:t" ; + rdft:approval rdft:Approved ; + mf:action <prefixed_name_datatype.trig> ; + mf:result <IRIREF_datatype.nq> ; + . + +<#bareword_integer> rdf:type rdft:TestTrigEval ; + mf:name "bareword_integer" ; + rdfs:comment "bareword integer" ; + rdft:approval rdft:Approved ; + mf:action <bareword_integer.trig> ; + mf:result <IRIREF_datatype.nq> ; + . + +<#bareword_decimal> rdf:type rdft:TestTrigEval ; + mf:name "bareword_decimal" ; + rdfs:comment "bareword decimal" ; + rdft:approval rdft:Approved ; + mf:action <bareword_decimal.trig> ; + mf:result <bareword_decimal.nq> ; + . + +<#bareword_double> rdf:type rdft:TestTrigEval ; + mf:name "bareword_double" ; + rdfs:comment "bareword double" ; + rdft:approval rdft:Approved ; + mf:action <bareword_double.trig> ; + mf:result <bareword_double.nq> ; + . + +<#double_lower_case_e> rdf:type rdft:TestTrigEval ; + mf:name "double_lower_case_e" ; + rdfs:comment "double lower case e" ; + rdft:approval rdft:Approved ; + mf:action <double_lower_case_e.trig> ; + mf:result <double_lower_case_e.nq> ; + . + +<#negative_numeric> rdf:type rdft:TestTrigEval ; + mf:name "negative_numeric" ; + rdfs:comment "negative numeric" ; + rdft:approval rdft:Approved ; + mf:action <negative_numeric.trig> ; + mf:result <negative_numeric.nq> ; + . + +<#positive_numeric> rdf:type rdft:TestTrigEval ; + mf:name "positive_numeric" ; + rdfs:comment "positive numeric" ; + rdft:approval rdft:Approved ; + mf:action <positive_numeric.trig> ; + mf:result <positive_numeric.nq> ; + . + +<#numeric_with_leading_0> rdf:type rdft:TestTrigEval ; + mf:name "numeric_with_leading_0" ; + rdfs:comment "numeric with leading 0" ; + rdft:approval rdft:Approved ; + mf:action <numeric_with_leading_0.trig> ; + mf:result <numeric_with_leading_0.nq> ; + . + +<#literal_true> rdf:type rdft:TestTrigEval ; + mf:name "literal_true" ; + rdfs:comment "literal true" ; + rdft:approval rdft:Approved ; + mf:action <literal_true.trig> ; + mf:result <literal_true.nq> ; + . + +<#literal_false> rdf:type rdft:TestTrigEval ; + mf:name "literal_false" ; + rdfs:comment "literal false" ; + rdft:approval rdft:Approved ; + mf:action <literal_false.trig> ; + mf:result <literal_false.nq> ; + . + +<#langtagged_non_LONG> rdf:type rdft:TestTrigEval ; + mf:name "langtagged_non_LONG" ; + rdfs:comment "langtagged non-LONG \"x\"@en" ; + rdft:approval rdft:Approved ; + mf:action <langtagged_non_LONG.trig> ; + mf:result <langtagged_non_LONG.nq> ; + . + +<#langtagged_LONG> rdf:type rdft:TestTrigEval ; + mf:name "langtagged_LONG" ; + rdfs:comment "langtagged LONG \"\"\"x\"\"\"@en" ; + rdft:approval rdft:Approved ; + mf:action <langtagged_LONG.trig> ; + mf:result <langtagged_non_LONG.nq> ; + . + +<#lantag_with_subtag> rdf:type rdft:TestTrigEval ; + mf:name "lantag_with_subtag" ; + rdfs:comment "lantag with subtag \"x\"@en-us" ; + rdft:approval rdft:Approved ; + mf:action <lantag_with_subtag.trig> ; + mf:result <lantag_with_subtag.nq> ; + . + +<#objectList_with_two_objects> rdf:type rdft:TestTrigEval ; + mf:name "objectList_with_two_objects" ; + rdfs:comment "objectList with two objects … <o1>,<o2>" ; + rdft:approval rdft:Approved ; + mf:action <objectList_with_two_objects.trig> ; + mf:result <objectList_with_two_objects.nq> ; + . + +<#predicateObjectList_with_two_objectLists> rdf:type rdft:TestTrigEval ; + mf:name "predicateObjectList_with_two_objectLists" ; + rdfs:comment "predicateObjectList with two objectLists … <o1>,<o2>" ; + rdft:approval rdft:Approved ; + mf:action <predicateObjectList_with_two_objectLists.trig> ; + mf:result <predicateObjectList_with_two_objectLists.nq> ; + . + +<#repeated_semis_at_end> rdf:type rdft:TestTrigEval ; + mf:name "repeated_semis_at_end" ; + rdfs:comment "repeated semis at end <s> <p> <o> ;; <p2> <o2> ." ; + rdft:approval rdft:Approved ; + mf:action <repeated_semis_at_end.trig> ; + mf:result <predicateObjectList_with_two_objectLists.nq> ; + . + +<#repeated_semis_not_at_end> rdf:type rdft:TestTrigEval ; + mf:name "repeated_semis_not_at_end" ; + rdfs:comment "repeated semis not at end <s> <p> <o> ;;." ; + rdft:approval rdft:Approved ; + mf:action <repeated_semis_not_at_end.trig> ; + mf:result <repeated_semis_not_at_end.nq> ; + . + +# original tests-ttl +<#trig-syntax-file-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-file-01" ; + rdfs:comment "Empty file" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-file-01.trig> ; + . + +<#trig-syntax-file-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-file-02" ; + rdfs:comment "Only comment" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-file-02.trig> ; + . + +<#trig-syntax-file-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-file-03" ; + rdfs:comment "One comment, one empty line" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-file-03.trig> ; + . + +<#trig-syntax-uri-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-uri-01" ; + rdfs:comment "Only IRIs" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-uri-01.trig> ; + . + +<#trig-syntax-uri-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-uri-02" ; + rdfs:comment "IRIs with Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-uri-02.trig> ; + . + +<#trig-syntax-uri-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-uri-03" ; + rdfs:comment "IRIs with long Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-uri-03.trig> ; + . + +<#trig-syntax-uri-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-uri-04" ; + rdfs:comment "Legal IRIs" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-uri-04.trig> ; + . + +<#trig-syntax-base-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-base-01" ; + rdfs:comment "@base" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-base-01.trig> ; + . + +<#trig-syntax-base-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-base-02" ; + rdfs:comment "BASE" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-base-02.trig> ; + . + +<#trig-syntax-base-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-base-03" ; + rdfs:comment "@base with relative IRIs" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-base-03.trig> ; + . + +<#trig-syntax-base-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-base-04" ; + rdfs:comment "base with relative IRIs" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-base-04.trig> ; + . + +<#trig-syntax-prefix-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-prefix-01" ; + rdfs:comment "@prefix" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-prefix-01.trig> ; + . + +<#trig-syntax-prefix-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-prefix-02" ; + rdfs:comment "PreFIX" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-prefix-02.trig> ; + . + +<#trig-syntax-prefix-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-prefix-03" ; + rdfs:comment "Empty PREFIX" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-prefix-03.trig> ; + . + +<#trig-syntax-prefix-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-prefix-04" ; + rdfs:comment "Empty @prefix with % escape" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-prefix-04.trig> ; + . + +<#trig-syntax-prefix-05> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-prefix-05" ; + rdfs:comment "@prefix with no suffix" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-prefix-05.trig> ; + . + +<#trig-syntax-prefix-06> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-prefix-06" ; + rdfs:comment "colon is a legal pname character" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-prefix-06.trig> ; + . + +<#trig-syntax-prefix-07> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-prefix-07" ; + rdfs:comment "dash is a legal pname character" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-prefix-07.trig> ; + . + +<#trig-syntax-prefix-08> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-prefix-08" ; + rdfs:comment "underscore is a legal pname character" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-prefix-08.trig> ; + . + +<#trig-syntax-prefix-09> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-prefix-09" ; + rdfs:comment "percents in pnames" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-prefix-09.trig> ; + . + +<#trig-syntax-string-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-01" ; + rdfs:comment "string literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-01.trig> ; + . + +<#trig-syntax-string-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-02" ; + rdfs:comment "langString literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-02.trig> ; + . + +<#trig-syntax-string-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-03" ; + rdfs:comment "langString literal with region" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-03.trig> ; + . + +<#trig-syntax-string-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-04" ; + rdfs:comment "squote string literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-04.trig> ; + . + +<#trig-syntax-string-05> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-05" ; + rdfs:comment "squote langString literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-05.trig> ; + . + +<#trig-syntax-string-06> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-06" ; + rdfs:comment "squote langString literal with region" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-06.trig> ; + . + +<#trig-syntax-string-07> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-07" ; + rdfs:comment "long string literal with embedded single- and double-quotes" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-07.trig> ; + . + +<#trig-syntax-string-08> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-08" ; + rdfs:comment "long string literal with embedded newline" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-08.trig> ; + . + +<#trig-syntax-string-09> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-09" ; + rdfs:comment "squote long string literal with embedded single- and double-quotes" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-09.trig> ; + . + +<#trig-syntax-string-10> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-10" ; + rdfs:comment "long langString literal with embedded newline" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-10.trig> ; + . + +<#trig-syntax-string-11> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-string-11" ; + rdfs:comment "squote long langString literal with embedded newline" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-string-11.trig> ; + . + +<#trig-syntax-str-esc-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-str-esc-01" ; + rdfs:comment "string literal with escaped newline" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-str-esc-01.trig> ; + . + +<#trig-syntax-str-esc-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-str-esc-02" ; + rdfs:comment "string literal with Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-str-esc-02.trig> ; + . + +<#trig-syntax-str-esc-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-str-esc-03" ; + rdfs:comment "string literal with long Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-str-esc-03.trig> ; + . + +<#trig-syntax-pname-esc-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-pname-esc-01" ; + rdfs:comment "pname with back-slash escapes" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-pname-esc-01.trig> ; + . + +<#trig-syntax-pname-esc-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-pname-esc-02" ; + rdfs:comment "pname with back-slash escapes (2)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-pname-esc-02.trig> ; + . + +<#trig-syntax-pname-esc-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-pname-esc-03" ; + rdfs:comment "pname with back-slash escapes (3)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-pname-esc-03.trig> ; + . + +<#trig-syntax-bnode-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-01" ; + rdfs:comment "bnode subject" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-01.trig> ; + . + +<#trig-syntax-bnode-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-02" ; + rdfs:comment "bnode object" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-02.trig> ; + . + +<#trig-syntax-bnode-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-03" ; + rdfs:comment "bnode property list object" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-03.trig> ; + . + +<#trig-syntax-bnode-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-04" ; + rdfs:comment "bnode property list object (2)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-04.trig> ; + . + +<#trig-syntax-bnode-05> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-05" ; + rdfs:comment "bnode property list subject" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-05.trig> ; + . + +<#trig-syntax-bnode-06> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-06" ; + rdfs:comment "labeled bnode subject" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-06.trig> ; + . + +<#trig-syntax-bnode-07> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-07" ; + rdfs:comment "labeled bnode subject and object" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-07.trig> ; + . + +<#trig-syntax-bnode-08> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-08" ; + rdfs:comment "bare bnode property list" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-08.trig> ; + . + +<#trig-syntax-bnode-09> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-09" ; + rdfs:comment "bnode property list" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-09.trig> ; + . + +<#trig-syntax-bnode-10> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-bnode-10" ; + rdfs:comment "mixed bnode property list and triple" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bnode-10.trig> ; + . + +<#trig-syntax-number-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-01" ; + rdfs:comment "integer literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-01.trig> ; + . + +<#trig-syntax-number-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-02" ; + rdfs:comment "negative integer literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-02.trig> ; + . + +<#trig-syntax-number-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-03" ; + rdfs:comment "positive integer literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-03.trig> ; + . + +<#trig-syntax-number-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-04" ; + rdfs:comment "decimal literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-04.trig> ; + . + +<#trig-syntax-number-05> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-05" ; + rdfs:comment "decimal literal (no leading digits)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-05.trig> ; + . + +<#trig-syntax-number-06> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-06" ; + rdfs:comment "negative decimal literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-06.trig> ; + . + +<#trig-syntax-number-07> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-07" ; + rdfs:comment "positive decimal literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-07.trig> ; + . + +<#trig-syntax-number-08> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-08" ; + rdfs:comment "integer literal with decimal lexical confusion" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-08.trig> ; + . + +<#trig-syntax-number-09> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-09" ; + rdfs:comment "double literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-09.trig> ; + . + +<#trig-syntax-number-10> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-10" ; + rdfs:comment "negative double literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-10.trig> ; + . + +<#trig-syntax-number-11> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-number-11" ; + rdfs:comment "double literal no fraction" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-number-11.trig> ; + . + +<#trig-syntax-datatypes-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-datatypes-01" ; + rdfs:comment "xsd:byte literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-datatypes-01.trig> ; + . + +<#trig-syntax-datatypes-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-datatypes-02" ; + rdfs:comment "integer as xsd:string" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-datatypes-02.trig> ; + . + +<#trig-syntax-kw-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-kw-01" ; + rdfs:comment "boolean literal (true)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-kw-01.trig> ; + . + +<#trig-syntax-kw-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-kw-02" ; + rdfs:comment "boolean literal (false)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-kw-02.trig> ; + . + +<#trig-syntax-kw-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-kw-03" ; + rdfs:comment "'a' as keyword" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-kw-03.trig> ; + . + +<#trig-syntax-struct-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-struct-01" ; + rdfs:comment "object list" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-struct-01.trig> ; + . + +<#trig-syntax-struct-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-struct-02" ; + rdfs:comment "predicate list with object list" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-struct-02.trig> ; + . + +<#trig-syntax-struct-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-struct-03" ; + rdfs:comment "predicate list with object list and dangling ';'" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-struct-03.trig> ; + . + +<#trig-syntax-struct-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-struct-04" ; + rdfs:comment "predicate list with multiple ;;" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-struct-04.trig> ; + . + +<#trig-syntax-struct-05> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-struct-05" ; + rdfs:comment "predicate list with multiple ;;" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-struct-05.trig> ; + . + +<#trig-syntax-lists-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-lists-01" ; + rdfs:comment "empty list" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-lists-01.trig> ; + . + +<#trig-syntax-lists-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-lists-02" ; + rdfs:comment "mixed list" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-lists-02.trig> ; + . + +<#trig-syntax-lists-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-lists-03" ; + rdfs:comment "isomorphic list as subject and object" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-lists-03.trig> ; + . + +<#trig-syntax-lists-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-lists-04" ; + rdfs:comment "lists of lists" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-lists-04.trig> ; + . + +<#trig-syntax-lists-05> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-syntax-lists-05" ; + rdfs:comment "mixed lists with embedded lists" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-lists-05.trig> ; + . + +<#trig-syntax-bad-uri-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-uri-01" ; + rdfs:comment "Bad IRI : space (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-uri-01.trig> ; + . + +<#trig-syntax-bad-uri-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-uri-02" ; + rdfs:comment "Bad IRI : bad escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-uri-02.trig> ; + . + +<#trig-syntax-bad-uri-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-uri-03" ; + rdfs:comment "Bad IRI : bad long escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-uri-03.trig> ; + . + +<#trig-syntax-bad-uri-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-uri-04" ; + rdfs:comment "Bad IRI : character escapes not allowed (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-uri-04.trig> ; + . + +<#trig-syntax-bad-uri-05> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-uri-05" ; + rdfs:comment "Bad IRI : character escapes not allowed (2) (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-uri-05.trig> ; + . + +<#trig-syntax-bad-prefix-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-prefix-01" ; + rdfs:comment "No prefix (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-prefix-01.trig> ; + . + +<#trig-syntax-bad-prefix-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-prefix-02" ; + rdfs:comment "No prefix (2) (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-prefix-02.trig> ; + . + +<#trig-syntax-bad-prefix-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-prefix-03" ; + rdfs:comment "@prefix without URI (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-prefix-03.trig> ; + . + +<#trig-syntax-bad-prefix-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-prefix-04" ; + rdfs:comment "@prefix without prefix name (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-prefix-04.trig> ; + . + +<#trig-syntax-bad-prefix-05> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-prefix-05" ; + rdfs:comment "@prefix without ':' (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-prefix-05.trig> ; + . + +<#trig-syntax-bad-base-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-base-01" ; + rdfs:comment "@base without URI (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-base-01.trig> ; + . + +<#trig-syntax-bad-base-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-base-02" ; + rdfs:comment "@base in wrong case (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-base-02.trig> ; + . + +<#trig-syntax-bad-base-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-base-03" ; + rdfs:comment "BASE without URI (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-base-03.trig> ; + . + +<#trig-syntax-bad-struct-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-02" ; + rdfs:comment "Turtle is not N3 (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-02.trig> ; + . + +<#trig-syntax-bad-struct-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-03" ; + rdfs:comment "Turtle is not NQuads (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-03.trig> ; + . + +<#trig-syntax-bad-struct-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-04" ; + rdfs:comment "Turtle does not allow literals-as-subjects (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-04.trig> ; + . + +<#trig-syntax-bad-struct-05> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-05" ; + rdfs:comment "Turtle does not allow literals-as-predicates (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-05.trig> ; + . + +<#trig-syntax-bad-struct-06> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-06" ; + rdfs:comment "Turtle does not allow bnodes-as-predicates (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-06.trig> ; + . + +<#trig-syntax-bad-struct-07> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-07" ; + rdfs:comment "Turtle does not allow labeled bnodes-as-predicates (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-07.trig> ; + . + +<#trig-syntax-bad-kw-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-kw-01" ; + rdfs:comment "'A' is not a keyword (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-kw-01.trig> ; + . + +<#trig-syntax-bad-kw-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-kw-02" ; + rdfs:comment "'a' cannot be used as subject (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-kw-02.trig> ; + . + +<#trig-syntax-bad-kw-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-kw-03" ; + rdfs:comment "'a' cannot be used as object (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-kw-03.trig> ; + . + +<#trig-syntax-bad-kw-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-kw-04" ; + rdfs:comment "'true' cannot be used as subject (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-kw-04.trig> ; + . + +<#trig-syntax-bad-kw-05> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-kw-05" ; + rdfs:comment "'true' cannot be used as object (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-kw-05.trig> ; + . + +<#trig-syntax-bad-n3-extras-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-01" ; + rdfs:comment "{} fomulae not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-01.trig> ; + . + +<#trig-syntax-bad-n3-extras-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-02" ; + rdfs:comment "= is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-02.trig> ; + . + +<#trig-syntax-bad-n3-extras-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-03" ; + rdfs:comment "N3 paths not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-03.trig> ; + . + +<#trig-syntax-bad-n3-extras-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-04" ; + rdfs:comment "N3 paths not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-04.trig> ; + . + +<#trig-syntax-bad-n3-extras-05> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-05" ; + rdfs:comment "N3 is...of not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-05.trig> ; + . + +<#trig-syntax-bad-n3-extras-06> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-06" ; + rdfs:comment "N3 paths not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-06.trig> ; + . + +<#trig-syntax-bad-n3-extras-07> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-07" ; + rdfs:comment "@keywords is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-07.trig> ; + . + +<#trig-syntax-bad-n3-extras-08> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-08" ; + rdfs:comment "@keywords is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-08.trig> ; + . + +<#trig-syntax-bad-n3-extras-09> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-09" ; + rdfs:comment "=> is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-09.trig> ; + . + +<#trig-syntax-bad-n3-extras-10> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-10" ; + rdfs:comment "<= is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-10.trig> ; + . + +<#trig-syntax-bad-n3-extras-11> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-11" ; + rdfs:comment "@forSome is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-11.trig> ; + . + +<#trig-syntax-bad-n3-extras-12> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-12" ; + rdfs:comment "@forAll is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-12.trig> ; + . + +<#trig-syntax-bad-n3-extras-13> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-n3-extras-13" ; + rdfs:comment "@keywords is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-n3-extras-13.trig> ; + . + +<#trig-syntax-bad-struct-09> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-09" ; + rdfs:comment "extra '.' (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-09.trig> ; + . + +<#trig-syntax-bad-struct-10> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-10" ; + rdfs:comment "extra '.' (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-10.trig> ; + . + +<#trig-syntax-bad-struct-12> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-12" ; + rdfs:comment "subject, predicate, no object (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-12.trig> ; + . + +<#trig-syntax-bad-struct-13> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-13" ; + rdfs:comment "subject, predicate, no object (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-13.trig> ; + . + +<#trig-syntax-bad-struct-14> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-14" ; + rdfs:comment "literal as subject (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-14.trig> ; + . + +<#trig-syntax-bad-struct-15> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-15" ; + rdfs:comment "literal as predicate (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-15.trig> ; + . + +<#trig-syntax-bad-struct-16> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-16" ; + rdfs:comment "bnode as predicate (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-16.trig> ; + . + +<#trig-syntax-bad-struct-17> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-struct-17" ; + rdfs:comment "labeled bnode as predicate (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-struct-17.trig> ; + . + +<#trig-syntax-bad-lang-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-lang-01" ; + rdfs:comment "langString with bad lang (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-lang-01.trig> ; + . + +<#trig-syntax-bad-esc-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-esc-01" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-esc-01.trig> ; + . + +<#trig-syntax-bad-esc-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-esc-02" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-esc-02.trig> ; + . + +<#trig-syntax-bad-esc-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-esc-03" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-esc-03.trig> ; + . + +<#trig-syntax-bad-esc-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-esc-04" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-esc-04.trig> ; + . + +<#trig-syntax-bad-pname-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-pname-01" ; + rdfs:comment "'~' must be escaped in pname (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-pname-01.trig> ; + . + +<#trig-syntax-bad-pname-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-pname-02" ; + rdfs:comment "Bad %-sequence in pname (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-pname-02.trig> ; + . + +<#trig-syntax-bad-pname-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-pname-03" ; + rdfs:comment "Bad unicode escape in pname (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-pname-03.trig> ; + . + +<#trig-syntax-bad-string-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-string-01" ; + rdfs:comment "mismatching string literal open/close (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-string-01.trig> ; + . + +<#trig-syntax-bad-string-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-string-02" ; + rdfs:comment "mismatching string literal open/close (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-string-02.trig> ; + . + +<#trig-syntax-bad-string-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-string-03" ; + rdfs:comment "mismatching string literal long/short (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-string-03.trig> ; + . + +<#trig-syntax-bad-string-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-string-04" ; + rdfs:comment "mismatching long string literal open/close (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-string-04.trig> ; + . + +<#trig-syntax-bad-string-05> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-string-05" ; + rdfs:comment "Long literal with missing end (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-string-05.trig> ; + . + +<#trig-syntax-bad-string-06> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-string-06" ; + rdfs:comment "Long literal with extra quote (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-string-06.trig> ; + . + +<#trig-syntax-bad-string-07> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-string-07" ; + rdfs:comment "Long literal with extra squote (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-string-07.trig> ; + . + +<#trig-syntax-bad-num-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-num-01" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-num-01.trig> ; + . + +<#trig-syntax-bad-num-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-num-02" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-num-02.trig> ; + . + +<#trig-syntax-bad-num-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-num-03" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-num-03.trig> ; + . + +<#trig-syntax-bad-num-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-num-04" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-num-04.trig> ; + . + +<#trig-syntax-bad-num-05> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-num-05" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-num-05.trig> ; + . + +<#trig-eval-struct-01> rdf:type rdft:TestTrigEval ; + mf:name "trig-eval-struct-01" ; + rdfs:comment "triple with IRIs" ; + rdft:approval rdft:Approved ; + mf:action <trig-eval-struct-01.trig> ; + mf:result <trig-eval-struct-01.nq> ; + . + +<#trig-eval-struct-02> rdf:type rdft:TestTrigEval ; + mf:name "trig-eval-struct-02" ; + rdfs:comment "triple with IRIs and embedded whitespace" ; + rdft:approval rdft:Approved ; + mf:action <trig-eval-struct-02.trig> ; + mf:result <trig-eval-struct-02.nq> ; + . + +<#trig-subm-01> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-01" ; + rdfs:comment "Blank subject" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-01.trig> ; + mf:result <trig-subm-01.nq> ; + . + +<#trig-subm-02> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-02" ; + rdfs:comment "@prefix and qnames" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-02.trig> ; + mf:result <trig-subm-02.nq> ; + . + +<#trig-subm-03> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-03" ; + rdfs:comment ", operator" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-03.trig> ; + mf:result <trig-subm-03.nq> ; + . + +<#trig-subm-04> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-04" ; + rdfs:comment "; operator" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-04.trig> ; + mf:result <trig-subm-04.nq> ; + . + +<#trig-subm-05> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-05" ; + rdfs:comment "empty [] as subject and object" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-05.trig> ; + mf:result <trig-subm-05.nq> ; + . + +<#trig-subm-06> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-06" ; + rdfs:comment "non-empty [] as subject and object" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-06.trig> ; + mf:result <trig-subm-06.nq> ; + . + +<#trig-subm-07> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-07" ; + rdfs:comment "'a' as predicate" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-07.trig> ; + mf:result <trig-subm-07.nq> ; + . + +<#trig-subm-08> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-08" ; + rdfs:comment "simple collection" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-08.trig> ; + mf:result <trig-subm-08.nq> ; + . + +<#trig-subm-09> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-09" ; + rdfs:comment "empty collection" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-09.trig> ; + mf:result <trig-subm-09.nq> ; + . + +<#trig-subm-10> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-10" ; + rdfs:comment "integer datatyped literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-10.trig> ; + mf:result <trig-subm-10.nq> ; + . + +<#trig-subm-11> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-11" ; + rdfs:comment "decimal integer canonicalization" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-11.trig> ; + mf:result <trig-subm-11.nq> ; + . + +<#trig-subm-12> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-12" ; + rdfs:comment "- and _ in names and qnames" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-12.trig> ; + mf:result <trig-subm-12.nq> ; + . + +<#trig-subm-13> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-13" ; + rdfs:comment "tests for rdf:_<numbers> and other qnames starting with _" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-13.trig> ; + mf:result <trig-subm-13.nq> ; + . + +<#trig-subm-14> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-14" ; + rdfs:comment "bare : allowed" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-14.trig> ; + mf:result <trig-subm-14.nq> ; + . + +<#trig-subm-15> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-15" ; + rdfs:comment "simple long literal" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-15.trig> ; + mf:result <trig-subm-15.nq> ; + . + +<#trig-subm-16> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-16" ; + rdfs:comment "long literals with escapes" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-16.trig> ; + mf:result <trig-subm-16.nq> ; + . + +<#trig-subm-17> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-17" ; + rdfs:comment "floating point number" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-17.trig> ; + mf:result <trig-subm-17.nq> ; + . + +<#trig-subm-18> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-18" ; + rdfs:comment "empty literals, normal and long variant" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-18.trig> ; + mf:result <trig-subm-18.nq> ; + . + +<#trig-subm-19> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-19" ; + rdfs:comment "positive integer, decimal and doubles" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-19.trig> ; + mf:result <trig-subm-19.nq> ; + . + +<#trig-subm-20> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-20" ; + rdfs:comment "negative integer, decimal and doubles" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-20.trig> ; + mf:result <trig-subm-20.nq> ; + . + +<#trig-subm-21> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-21" ; + rdfs:comment "long literal ending in double quote" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-21.trig> ; + mf:result <trig-subm-21.nq> ; + . + +<#trig-subm-22> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-22" ; + rdfs:comment "boolean literals" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-22.trig> ; + mf:result <trig-subm-22.nq> ; + . + +<#trig-subm-23> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-23" ; + rdfs:comment "comments" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-23.trig> ; + mf:result <trig-subm-23.nq> ; + . + +<#trig-subm-24> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-24" ; + rdfs:comment "no final mewline" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-24.trig> ; + mf:result <trig-subm-24.nq> ; + . + +<#trig-subm-25> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-25" ; + rdfs:comment "repeating a @prefix changes pname definition" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-25.trig> ; + mf:result <trig-subm-25.nq> ; + . + +<#trig-subm-26> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-26" ; + rdfs:comment "Variations on decimal canonicalization" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-26.trig> ; + mf:result <trig-subm-26.nq> ; + . + +<#trig-subm-27> rdf:type rdft:TestTrigEval ; + mf:name "trig-subm-27" ; + rdfs:comment "Repeating @base changes base for relative IRI lookup" ; + rdft:approval rdft:Approved ; + mf:action <trig-subm-27.trig> ; + mf:result <trig-subm-27.nq> ; + . + +<#trig-eval-bad-01> rdf:type rdft:TestTrigNegativeEval ; + mf:name "trig-eval-bad-01" ; + rdfs:comment "Bad IRI : good escape, bad charcater (negative evaluation test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-eval-bad-01.trig> ; + . + +<#trig-eval-bad-02> rdf:type rdft:TestTrigNegativeEval ; + mf:name "trig-eval-bad-02" ; + rdfs:comment "Bad IRI : hex 3C is < (negative evaluation test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-eval-bad-02.trig> ; + . + +<#trig-eval-bad-03> rdf:type rdft:TestTrigNegativeEval ; + mf:name "trig-eval-bad-03" ; + rdfs:comment "Bad IRI : hex 3E is (negative evaluation test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-eval-bad-03.trig> ; + . + +<#trig-eval-bad-04> rdf:type rdft:TestTrigNegativeEval ; + mf:name "trig-eval-bad-04" ; + rdfs:comment "Bad IRI : {abc} (negative evaluation test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-eval-bad-04.trig> ; + . + +# tests requested by Jeremy Carroll +# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c35 +<#comment_following_localName> rdf:type rdft:TestTrigEval ; + mf:name "comment_following_localName" ; + rdfs:comment "comment following localName" ; + rdft:approval rdft:Approved ; + mf:action <comment_following_localName.trig> ; + mf:result <IRI_spo.nq> ; + . + +<#number_sign_following_localName> rdf:type rdft:TestTrigEval ; + mf:name "number_sign_following_localName" ; + rdfs:comment "number sign following localName" ; + rdft:approval rdft:Approved ; + mf:action <number_sign_following_localName.trig> ; + mf:result <number_sign_following_localName.nq> ; + . + +<#comment_following_PNAME_NS> rdf:type rdft:TestTrigEval ; + mf:name "comment_following_PNAME_NS" ; + rdfs:comment "comment following PNAME_NS" ; + rdft:approval rdft:Approved ; + mf:action <comment_following_PNAME_NS.trig> ; + mf:result <comment_following_PNAME_NS.nq> ; + . + +<#number_sign_following_PNAME_NS> rdf:type rdft:TestTrigEval ; + mf:name "number_sign_following_PNAME_NS" ; + rdfs:comment "number sign following PNAME_NS" ; + rdft:approval rdft:Approved ; + mf:action <number_sign_following_PNAME_NS.trig> ; + mf:result <number_sign_following_PNAME_NS.nq> ; + . + +# tests from Dave Beckett +# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c28 +<#LITERAL_LONG2_with_REVERSE_SOLIDUS> rdf:type rdft:TestTrigEval ; + mf:name "LITERAL_LONG2_with_REVERSE_SOLIDUS" ; + rdfs:comment "REVERSE SOLIDUS at end of LITERAL_LONG2" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG2_with_REVERSE_SOLIDUS.trig> ; + mf:result <LITERAL_LONG2_with_REVERSE_SOLIDUS.nq> ; + . + +<#trig-syntax-bad-LITERAL2_with_langtag_and_datatype> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-syntax-bad-num-05" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-LITERAL2_with_langtag_and_datatype.trig> ; + . + +<#two_LITERAL_LONG2s> rdf:type rdft:TestTrigEval ; + mf:name "two_LITERAL_LONG2s" ; + rdfs:comment "two LITERAL_LONG2s testing quote delimiter overrun" ; + rdft:approval rdft:Approved ; + mf:action <two_LITERAL_LONG2s.trig> ; + mf:result <two_LITERAL_LONG2s.nq> ; + . + +<#langtagged_LONG_with_subtag> rdf:type rdft:TestTrigEval ; + mf:name "langtagged_LONG_with_subtag" ; + rdfs:comment "langtagged LONG with subtag \"\"\"Cheers\"\"\"@en-UK" ; + rdft:approval rdft:Approved ; + mf:action <langtagged_LONG_with_subtag.trig> ; + mf:result <langtagged_LONG_with_subtag.nq> ; + . + +# tests from David Robillard +# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c21 +<#trig-syntax-bad-blank-label-dot-end> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Blank node label must not end in dot" ; + mf:name "trig-syntax-bad-blank-label-dot-end" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-blank-label-dot-end.trig> . + +<#trig-syntax-bad-number-dot-in-anon> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Dot delimeter may not appear in anonymous nodes" ; + mf:name "trig-syntax-bad-number-dot-in-anon" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-number-dot-in-anon.trig> . + +<#trig-syntax-bad-ln-dash-start> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Local name must not begin with dash" ; + mf:name "trig-syntax-bad-ln-dash-start" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-ln-dash-start.trig> . + +<#trig-syntax-bad-ln-escape> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Bad hex escape in local name" ; + mf:name "trig-syntax-bad-ln-escape" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-ln-escape.trig> . + +<#trig-syntax-bad-ln-escape-start> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Bad hex escape at start of local name" ; + mf:name "trig-syntax-bad-ln-escape-start" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-ln-escape-start.trig> . + +<#trig-syntax-bad-ns-dot-end> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Prefix must not end in dot" ; + mf:name "trig-syntax-bad-ns-dot-end" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-ns-dot-end.trig> . + +<#trig-syntax-bad-ns-dot-start> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Prefix must not start with dot" ; + mf:name "trig-syntax-bad-ns-dot-start" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-ns-dot-start.trig> . + +<#trig-syntax-bad-missing-ns-dot-end> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Prefix must not end in dot (error in triple, not prefix directive like trig-syntax-bad-ns-dot-end)" ; + mf:name "trig-syntax-bad-missing-ns-dot-end" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-missing-ns-dot-end.trig> . + +<#trig-syntax-bad-missing-ns-dot-start> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Prefix must not start with dot (error in triple, not prefix directive like trig-syntax-bad-ns-dot-end)" ; + mf:name "trig-syntax-bad-missing-ns-dot-start" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-missing-ns-dot-start.trig> . + +<#trig-syntax-bad-list-01> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Free-standing list outside {} : bad syntax" ; + mf:name "trig-syntax-bad-list-01" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-list-01.trig> + . + +<#trig-syntax-bad-list-02> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Free-standing list of zero-elements outside {} : bad syntax" ; + mf:name "trig-syntax-bad-list-02" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-list-02.trig> + . + +<#trig-syntax-bad-list-03> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Free-standing list inside {} : bad syntax" ; + mf:name "trig-syntax-bad-list-03" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-list-03.trig> + . + +<#trig-syntax-bad-list-04> + rdf:type rdft:TestTrigNegativeSyntax ; + rdfs:comment "Free-standing list of zero elements : bad syntax" ; + mf:name "trig-syntax-bad-list-04" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-bad-list-04.trig> + . + +<#trig-syntax-ln-dots> + rdf:type rdft:TestTrigPositiveSyntax ; + rdfs:comment "Dots in pname local names" ; + mf:name "trig-syntax-ln-dots" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-ln-dots.trig> . + +<#trig-syntax-ln-colons> + rdf:type rdft:TestTrigPositiveSyntax ; + rdfs:comment "Colons in pname local names" ; + mf:name "trig-syntax-ln-colons" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-ln-colons.trig> . + +<#trig-syntax-ns-dots> + rdf:type rdft:TestTrigPositiveSyntax ; + rdfs:comment "Dots in namespace names" ; + mf:name "trig-syntax-ns-dots" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-ns-dots.trig> . + +<#trig-syntax-blank-label> + rdf:type rdft:TestTrigPositiveSyntax ; + rdfs:comment "Characters allowed in blank node labels" ; + mf:name "trig-syntax-blank-label" ; + rdft:approval rdft:Approved ; + mf:action <trig-syntax-blank-label.trig> . + +# tests for bnode graph names, optional GRAPH keyword and +# triples outside {} + +<#trig-kw-graph-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-01" ; + rdfs:comment "Named graphs can be proceeded by GRAPH" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-01.trig> ; + . + +<#trig-kw-graph-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-02" ; + rdfs:comment "Trailing . not necessary inside {}" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-02.trig> ; + . + +<#trig-kw-graph-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-03" ; + rdfs:comment "Named graph may be empty" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-03.trig> ; + . + +<#trig-kw-graph-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-04" ; + rdfs:comment "" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-04.trig> ; + . + +<#trig-kw-graph-05> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-05" ; + rdfs:comment "Use of empty prefix inside named graph" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-05.trig> ; + . + +<#trig-kw-graph-06> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-06" ; + rdfs:comment "" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-06.trig> ; + . + +<#trig-kw-graph-07> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-07" ; + rdfs:comment "Named graph may be named with BNode _:a" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-07.trig> ; + . + +<#trig-kw-graph-08> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-08" ; + rdfs:comment "Named graph may be named with BNode []" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-08.trig> ; + . + +<#trig-kw-graph-09> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-09" ; + rdfs:comment "Named graph may be named with PNAME" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-09.trig> ; + . + +<#trig-kw-graph-10> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-kw-graph-10" ; + rdfs:comment "Named graph with PNAME and empty graph" ; + rdft:approval rdft:Approved ; + mf:action <trig-kw-graph-10.trig> ; + . + +<#trig-graph-bad-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-01" ; + rdfs:comment "GRAPH but no name - GRAPH is not used with the default graph" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-01.trig> ; + . + +<#trig-graph-bad-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-02" ; + rdfs:comment "GRAPH not followed by DOT" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-02.trig> ; + . + +<#trig-graph-bad-03> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-03" ; + rdfs:comment "GRAPH needs {}" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-03.trig> ; + . + +<#trig-graph-bad-04> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-04" ; + rdfs:comment "GRAPH needs {}" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-04.trig> ; + . + +<#trig-graph-bad-05> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-05" ; + rdfs:comment "GRAPH and a name, not several" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-05.trig> ; + . + +<#trig-graph-bad-06> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-06" ; + rdfs:comment "GRAPH - Must close {}" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-06.trig> ; + . + +<#trig-graph-bad-07> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-07" ; + rdfs:comment "GRAPH may not include a GRAPH" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-07.trig> ; + . + +<#trig-graph-bad-08> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-08" ; + rdfs:comment "@graph is not a keyword" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-08.trig> ; + . + +<#trig-graph-bad-09> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-09" ; + rdfs:comment "Directives not allowed inside GRAPH" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-09.trig> ; + . + +<#trig-graph-bad-10> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-10" ; + rdfs:comment "A graph may not be named with an empty collection" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-10.trig> ; + . + +<#trig-graph-bad-11> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-graph-bad-11" ; + rdfs:comment "A graph may not be named with a collection" ; + rdft:approval rdft:Approved ; + mf:action <trig-graph-bad-11.trig> ; + . + +<#trig-bnodeplist-graph-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-bnodeplist-graph-bad-01" ; + rdfs:comment "A graph may not be named with a blankNodePropertyList" ; + rdft:approval rdft:Approved ; + mf:action <trig-bnodeplist-graph-bad-01.trig> ; + . + +<#trig-collection-graph-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-collection-graph-bad-01" ; + rdfs:comment "A graph may not be named with an empty collection" ; + rdft:approval rdft:Approved ; + mf:action <trig-collection-graph-bad-01.trig> ; + . + +<#trig-collection-graph-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-collection-graph-bad-02" ; + rdfs:comment "A graph may not be named with a collection" ; + rdft:approval rdft:Approved ; + mf:action <trig-collection-graph-bad-02.trig> ; + . + +<#trig-turtle-01> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-turtle-01" ; + rdfs:comment "TriG can parse Turtle" ; + rdft:approval rdft:Approved ; + mf:action <trig-turtle-01.trig> ; + . + +<#trig-turtle-02> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-turtle-02" ; + rdfs:comment "TriG can parse Turtle (repeated PREFIX)" ; + rdft:approval rdft:Approved ; + mf:action <trig-turtle-02.trig> ; + . + +<#trig-turtle-03> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-turtle-03" ; + rdfs:comment "TriG can parse Turtle (blankNodePropertyList subject)" ; + rdft:approval rdft:Approved ; + mf:action <trig-turtle-03.trig> ; + . + +<#trig-turtle-04> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-turtle-04" ; + rdfs:comment "TriG can parse Turtle (blankNodePropertyList subject)" ; + rdft:approval rdft:Approved ; + mf:action <trig-turtle-04.trig> ; + . + +<#trig-turtle-05> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-turtle-05" ; + rdfs:comment "TriG can parse Turtle (bare blankNodePropertyList)" ; + rdft:approval rdft:Approved ; + mf:action <trig-turtle-05.trig> ; + . + +<#trig-turtle-06> rdf:type rdft:TestTrigPositiveSyntax ; + mf:name "trig-turtle-06" ; + rdfs:comment "TriG can parse Turtle (collection subject and object)" ; + rdft:approval rdft:Approved ; + mf:action <trig-turtle-06.trig> ; + . + +<#trig-turtle-bad-01> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-turtle-bad-01" ; + rdfs:comment "Trailing dot required in Turtle block" ; + rdft:approval rdft:Approved ; + mf:action <trig-turtle-bad-01.trig> ; + . + +<#trig-turtle-bad-02> rdf:type rdft:TestTrigNegativeSyntax ; + mf:name "trig-turtle-bad-02" ; + rdfs:comment "TriG is not N-Quads" ; + rdft:approval rdft:Approved ; + mf:action <trig-turtle-bad-02.trig> ; + . diff --git a/test/w3c/TriGTests/negative_numeric.nq b/test/w3c/TriGTests/negative_numeric.nq new file mode 100644 index 00000000..9c7f8126 --- /dev/null +++ b/test/w3c/TriGTests/negative_numeric.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://a.example/s> <http://a.example/p> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . diff --git a/test/w3c/TriGTests/negative_numeric.trig b/test/w3c/TriGTests/negative_numeric.trig new file mode 100644 index 00000000..cbfe85f8 --- /dev/null +++ b/test/w3c/TriGTests/negative_numeric.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> -1 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> -1 .} diff --git a/test/w3c/TriGTests/nested_blankNodePropertyLists.nq b/test/w3c/TriGTests/nested_blankNodePropertyLists.nq new file mode 100644 index 00000000..541cd3b9 --- /dev/null +++ b/test/w3c/TriGTests/nested_blankNodePropertyLists.nq @@ -0,0 +1,6 @@ +_:b1 <http://a.example/p1> _:b2 . +_:b2 <http://a.example/p2> <http://a.example/o2> . +_:b1 <http://a.example/p> <http://a.example/o> . +_:b3 <http://a.example/p1> _:b4 <http://example/graph> . +_:b4 <http://a.example/p2> <http://a.example/o2> <http://example/graph> . +_:b3 <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/nested_blankNodePropertyLists.trig b/test/w3c/TriGTests/nested_blankNodePropertyLists.trig new file mode 100644 index 00000000..5b28195a --- /dev/null +++ b/test/w3c/TriGTests/nested_blankNodePropertyLists.trig @@ -0,0 +1,2 @@ +{[ <http://a.example/p1> [ <http://a.example/p2> <http://a.example/o2> ] ; <http://a.example/p> <http://a.example/o> ].} +<http://example/graph> {[ <http://a.example/p1> [ <http://a.example/p2> <http://a.example/o2> ] ; <http://a.example/p> <http://a.example/o> ].} diff --git a/test/w3c/TriGTests/nested_collection.nq b/test/w3c/TriGTests/nested_collection.nq new file mode 100644 index 00000000..f504b3aa --- /dev/null +++ b/test/w3c/TriGTests/nested_collection.nq @@ -0,0 +1,10 @@ +<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> . +<http://a.example/s> <http://a.example/p> _:b3 <http://example/graph> . +_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:b4 <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . +_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . diff --git a/test/w3c/TriGTests/nested_collection.trig b/test/w3c/TriGTests/nested_collection.trig new file mode 100644 index 00000000..5d4a3017 --- /dev/null +++ b/test/w3c/TriGTests/nested_collection.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> ((1)) .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> ((1)) .} diff --git a/test/w3c/TriGTests/number_sign_following_PNAME_NS.nq b/test/w3c/TriGTests/number_sign_following_PNAME_NS.nq new file mode 100644 index 00000000..82d9629a --- /dev/null +++ b/test/w3c/TriGTests/number_sign_following_PNAME_NS.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/#numbersign> . diff --git a/test/w3c/TriGTests/number_sign_following_PNAME_NS.trig b/test/w3c/TriGTests/number_sign_following_PNAME_NS.trig new file mode 100644 index 00000000..2003fa4d --- /dev/null +++ b/test/w3c/TriGTests/number_sign_following_PNAME_NS.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +<http://a.example/s> <http://a.example/p> p:\#numbersign +. diff --git a/test/w3c/TriGTests/number_sign_following_localName.nq b/test/w3c/TriGTests/number_sign_following_localName.nq new file mode 100644 index 00000000..5ae57b8d --- /dev/null +++ b/test/w3c/TriGTests/number_sign_following_localName.nq @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o#numbersign> . diff --git a/test/w3c/TriGTests/number_sign_following_localName.trig b/test/w3c/TriGTests/number_sign_following_localName.trig new file mode 100644 index 00000000..a0e39ecd --- /dev/null +++ b/test/w3c/TriGTests/number_sign_following_localName.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:o\#numbersign +. diff --git a/test/w3c/TriGTests/numeric_with_leading_0.nq b/test/w3c/TriGTests/numeric_with_leading_0.nq new file mode 100644 index 00000000..f028e790 --- /dev/null +++ b/test/w3c/TriGTests/numeric_with_leading_0.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "01"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://a.example/s> <http://a.example/p> "01"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . diff --git a/test/w3c/TriGTests/numeric_with_leading_0.trig b/test/w3c/TriGTests/numeric_with_leading_0.trig new file mode 100644 index 00000000..6da8ad89 --- /dev/null +++ b/test/w3c/TriGTests/numeric_with_leading_0.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> 01 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> 01 .} diff --git a/test/w3c/TriGTests/objectList_with_two_objects.nq b/test/w3c/TriGTests/objectList_with_two_objects.nq new file mode 100644 index 00000000..4b4e044b --- /dev/null +++ b/test/w3c/TriGTests/objectList_with_two_objects.nq @@ -0,0 +1,4 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o1> . +<http://a.example/s> <http://a.example/p> <http://a.example/o2> . +<http://a.example/s> <http://a.example/p> <http://a.example/o1> <http://example/graph> . +<http://a.example/s> <http://a.example/p> <http://a.example/o2> <http://example/graph> . diff --git a/test/w3c/TriGTests/objectList_with_two_objects.trig b/test/w3c/TriGTests/objectList_with_two_objects.trig new file mode 100644 index 00000000..6dbe9792 --- /dev/null +++ b/test/w3c/TriGTests/objectList_with_two_objects.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> <http://a.example/o1>, <http://a.example/o2> .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> <http://a.example/o1>, <http://a.example/o2> .} diff --git a/test/w3c/TriGTests/old_style_base.trig b/test/w3c/TriGTests/old_style_base.trig new file mode 100644 index 00000000..d1f5d4a2 --- /dev/null +++ b/test/w3c/TriGTests/old_style_base.trig @@ -0,0 +1,3 @@ +@base <http://a.example/>. +{<s> <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {<s> <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/old_style_prefix.trig b/test/w3c/TriGTests/old_style_prefix.trig new file mode 100644 index 00000000..014c1f0d --- /dev/null +++ b/test/w3c/TriGTests/old_style_prefix.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{p:s <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:s <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/percent_escaped_localName.nq b/test/w3c/TriGTests/percent_escaped_localName.nq new file mode 100644 index 00000000..85273e95 --- /dev/null +++ b/test/w3c/TriGTests/percent_escaped_localName.nq @@ -0,0 +1,2 @@ +<http://a.example/%25> <http://a.example/p> <http://a.example/o> . +<http://a.example/%25> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/percent_escaped_localName.trig b/test/w3c/TriGTests/percent_escaped_localName.trig new file mode 100644 index 00000000..a2b55c90 --- /dev/null +++ b/test/w3c/TriGTests/percent_escaped_localName.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{p:%25 <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:%25 <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/positive_numeric.nq b/test/w3c/TriGTests/positive_numeric.nq new file mode 100644 index 00000000..25337582 --- /dev/null +++ b/test/w3c/TriGTests/positive_numeric.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> "+1"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://a.example/s> <http://a.example/p> "+1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . diff --git a/test/w3c/TriGTests/positive_numeric.trig b/test/w3c/TriGTests/positive_numeric.trig new file mode 100644 index 00000000..5c7a166d --- /dev/null +++ b/test/w3c/TriGTests/positive_numeric.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p> +1 .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> +1 .} diff --git a/test/w3c/TriGTests/predicateObjectList_with_two_objectLists.nq b/test/w3c/TriGTests/predicateObjectList_with_two_objectLists.nq new file mode 100644 index 00000000..0c203403 --- /dev/null +++ b/test/w3c/TriGTests/predicateObjectList_with_two_objectLists.nq @@ -0,0 +1,4 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1> . +<http://a.example/s> <http://a.example/p2> <http://a.example/o2> . +<http://a.example/s> <http://a.example/p1> <http://a.example/o1> <http://example/graph> . +<http://a.example/s> <http://a.example/p2> <http://a.example/o2> <http://example/graph> . diff --git a/test/w3c/TriGTests/predicateObjectList_with_two_objectLists.trig b/test/w3c/TriGTests/predicateObjectList_with_two_objectLists.trig new file mode 100644 index 00000000..0513be26 --- /dev/null +++ b/test/w3c/TriGTests/predicateObjectList_with_two_objectLists.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p1> <http://a.example/o1>; <http://a.example/p2> <http://a.example/o2> .} +<http://example/graph> {<http://a.example/s> <http://a.example/p1> <http://a.example/o1>; <http://a.example/p2> <http://a.example/o2> .} diff --git a/test/w3c/TriGTests/prefix_only_IRI.trig b/test/w3c/TriGTests/prefix_only_IRI.trig new file mode 100644 index 00000000..c0f4d441 --- /dev/null +++ b/test/w3c/TriGTests/prefix_only_IRI.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/s>. +{p: <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p: <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/prefix_reassigned_and_used.nq b/test/w3c/TriGTests/prefix_reassigned_and_used.nq new file mode 100644 index 00000000..5e65c13f --- /dev/null +++ b/test/w3c/TriGTests/prefix_reassigned_and_used.nq @@ -0,0 +1,2 @@ +<http://b.example/s> <http://a.example/p> <http://a.example/o> . +<http://b.example/s> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/prefix_reassigned_and_used.trig b/test/w3c/TriGTests/prefix_reassigned_and_used.trig new file mode 100644 index 00000000..6abd7ea9 --- /dev/null +++ b/test/w3c/TriGTests/prefix_reassigned_and_used.trig @@ -0,0 +1,4 @@ +@prefix p: <http://a.example/>. +@prefix p: <http://b.example/>. +{p:s <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:s <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/prefix_with_PN_CHARS_BASE_character_boundaries.trig b/test/w3c/TriGTests/prefix_with_PN_CHARS_BASE_character_boundaries.trig new file mode 100644 index 00000000..30b7b8ab --- /dev/null +++ b/test/w3c/TriGTests/prefix_with_PN_CHARS_BASE_character_boundaries.trig @@ -0,0 +1,3 @@ +@prefix AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀: <http://a.example/> . +{<http://a.example/s> <http://a.example/p> AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀:o} +<http://example/graph> {<http://a.example/s> <http://a.example/p> AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀:o} diff --git a/test/w3c/TriGTests/prefix_with_non_leading_extras.trig b/test/w3c/TriGTests/prefix_with_non_leading_extras.trig new file mode 100644 index 00000000..64e86f37 --- /dev/null +++ b/test/w3c/TriGTests/prefix_with_non_leading_extras.trig @@ -0,0 +1,3 @@ +@prefix a·̀ͯ‿.⁀: <http://a.example/>. +{a·̀ͯ‿.⁀:s <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {a·̀ͯ‿.⁀:s <http://a.example/p> <http://a.example/o> .}
\ No newline at end of file diff --git a/test/w3c/TriGTests/prefixed_IRI_object.trig b/test/w3c/TriGTests/prefixed_IRI_object.trig new file mode 100644 index 00000000..2c04b80b --- /dev/null +++ b/test/w3c/TriGTests/prefixed_IRI_object.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{<http://a.example/s> <http://a.example/p> p:o .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> p:o .} diff --git a/test/w3c/TriGTests/prefixed_IRI_predicate.trig b/test/w3c/TriGTests/prefixed_IRI_predicate.trig new file mode 100644 index 00000000..f41e7a35 --- /dev/null +++ b/test/w3c/TriGTests/prefixed_IRI_predicate.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{<http://a.example/s> p:p <http://a.example/o> .} +<http://example/graph> {<http://a.example/s> p:p <http://a.example/o> .} diff --git a/test/w3c/TriGTests/prefixed_name_datatype.trig b/test/w3c/TriGTests/prefixed_name_datatype.trig new file mode 100644 index 00000000..45d53873 --- /dev/null +++ b/test/w3c/TriGTests/prefixed_name_datatype.trig @@ -0,0 +1,3 @@ +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +{<http://a.example/s> <http://a.example/p> "1"^^xsd:integer .} +<http://example/graph> {<http://a.example/s> <http://a.example/p> "1"^^xsd:integer .} diff --git a/test/w3c/TriGTests/repeated_semis_at_end.trig b/test/w3c/TriGTests/repeated_semis_at_end.trig new file mode 100644 index 00000000..e4131b94 --- /dev/null +++ b/test/w3c/TriGTests/repeated_semis_at_end.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; <http://a.example/p2> <http://a.example/o2> .} +<http://example/graph> {<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; <http://a.example/p2> <http://a.example/o2> .} diff --git a/test/w3c/TriGTests/repeated_semis_not_at_end.nq b/test/w3c/TriGTests/repeated_semis_not_at_end.nq new file mode 100644 index 00000000..81f01397 --- /dev/null +++ b/test/w3c/TriGTests/repeated_semis_not_at_end.nq @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1> . +<http://a.example/s> <http://a.example/p1> <http://a.example/o1> <http://example/graph> . diff --git a/test/w3c/TriGTests/repeated_semis_not_at_end.trig b/test/w3c/TriGTests/repeated_semis_not_at_end.trig new file mode 100644 index 00000000..270ac985 --- /dev/null +++ b/test/w3c/TriGTests/repeated_semis_not_at_end.trig @@ -0,0 +1,2 @@ +{<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; .} +<http://example/graph> {<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; .} diff --git a/test/w3c/TriGTests/reserved_escaped_localName.nq b/test/w3c/TriGTests/reserved_escaped_localName.nq new file mode 100644 index 00000000..d965ceb0 --- /dev/null +++ b/test/w3c/TriGTests/reserved_escaped_localName.nq @@ -0,0 +1,2 @@ +<http://a.example/_~.-!$&'()*+,;=/?#@%00> <http://a.example/p> <http://a.example/o> . +<http://a.example/_~.-!$&'()*+,;=/?#@%00> <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/reserved_escaped_localName.trig b/test/w3c/TriGTests/reserved_escaped_localName.trig new file mode 100644 index 00000000..991594ad --- /dev/null +++ b/test/w3c/TriGTests/reserved_escaped_localName.trig @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +{p:\_\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\%00 <http://a.example/p> <http://a.example/o> .} +<http://example/graph> {p:\_\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\%00 <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TriGTests/sole_blankNodePropertyList.nq b/test/w3c/TriGTests/sole_blankNodePropertyList.nq new file mode 100644 index 00000000..ae23b3de --- /dev/null +++ b/test/w3c/TriGTests/sole_blankNodePropertyList.nq @@ -0,0 +1,3 @@ +_:b1 <http://a.example/p> <http://a.example/o> . +_:b2 <http://a.example/p> <http://a.example/o> <http://example/graph> . +_:b3 <http://a.example/p> <http://a.example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/sole_blankNodePropertyList.trig b/test/w3c/TriGTests/sole_blankNodePropertyList.trig new file mode 100644 index 00000000..ae3765f5 --- /dev/null +++ b/test/w3c/TriGTests/sole_blankNodePropertyList.trig @@ -0,0 +1,3 @@ +{[ <http://a.example/p> <http://a.example/o> ] .} +<http://example/graph> { [ <http://a.example/p> <http://a.example/o> ] .} +<http://example/graph> { [ <http://a.example/p> <http://a.example/o> ] } diff --git a/test/w3c/TriGTests/trig-bnodeplist-graph-bad-01.trig b/test/w3c/TriGTests/trig-bnodeplist-graph-bad-01.trig new file mode 100644 index 00000000..2b9a8d36 --- /dev/null +++ b/test/w3c/TriGTests/trig-bnodeplist-graph-bad-01.trig @@ -0,0 +1,4 @@ +# BlankNodePropertyList as Graph Name +PREFIX : <http://example/> + +[:p1 :o1] {:s :p :o} diff --git a/test/w3c/TriGTests/trig-collection-graph-bad-01.trig b/test/w3c/TriGTests/trig-collection-graph-bad-01.trig new file mode 100644 index 00000000..e8a7eaeb --- /dev/null +++ b/test/w3c/TriGTests/trig-collection-graph-bad-01.trig @@ -0,0 +1,4 @@ +# Collection as Graph Name +PREFIX : <http://example/> + +() {:s :p :o} diff --git a/test/w3c/TriGTests/trig-collection-graph-bad-02.trig b/test/w3c/TriGTests/trig-collection-graph-bad-02.trig new file mode 100644 index 00000000..ba90bcfd --- /dev/null +++ b/test/w3c/TriGTests/trig-collection-graph-bad-02.trig @@ -0,0 +1,4 @@ +# Collection as Graph Name +PREFIX : <http://example/> + +(1 2) {:s :p :o} diff --git a/test/w3c/TriGTests/trig-eval-bad-01.trig b/test/w3c/TriGTests/trig-eval-bad-01.trig new file mode 100644 index 00000000..36f66252 --- /dev/null +++ b/test/w3c/TriGTests/trig-eval-bad-01.trig @@ -0,0 +1,2 @@ +# Bad IRI : good escape, bad charcater +{<http://example/\u0020> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-eval-bad-02.trig b/test/w3c/TriGTests/trig-eval-bad-02.trig new file mode 100644 index 00000000..2fc1aa3d --- /dev/null +++ b/test/w3c/TriGTests/trig-eval-bad-02.trig @@ -0,0 +1,2 @@ +# Bad IRI : hex 3C is < +{<http://example/\u003C> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-eval-bad-03.trig b/test/w3c/TriGTests/trig-eval-bad-03.trig new file mode 100644 index 00000000..4024af55 --- /dev/null +++ b/test/w3c/TriGTests/trig-eval-bad-03.trig @@ -0,0 +1,2 @@ +# Bad IRI : hex 3E is > +{<http://example/\u003E> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-eval-bad-04.trig b/test/w3c/TriGTests/trig-eval-bad-04.trig new file mode 100644 index 00000000..b43b6814 --- /dev/null +++ b/test/w3c/TriGTests/trig-eval-bad-04.trig @@ -0,0 +1,2 @@ +# Bad IRI +{<http://example/{abc}> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-eval-struct-01.nq b/test/w3c/TriGTests/trig-eval-struct-01.nq new file mode 100644 index 00000000..6106c139 --- /dev/null +++ b/test/w3c/TriGTests/trig-eval-struct-01.nq @@ -0,0 +1,2 @@ +<http://example/s> <http://example/p> <http://example/o> . +<http://example/s> <http://example/p> <http://example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-eval-struct-01.trig b/test/w3c/TriGTests/trig-eval-struct-01.trig new file mode 100644 index 00000000..c6003461 --- /dev/null +++ b/test/w3c/TriGTests/trig-eval-struct-01.trig @@ -0,0 +1,2 @@ +{<http://example/s> <http://example/p> <http://example/o> .} +<http://example/graph> {<http://example/s> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-eval-struct-02.nq b/test/w3c/TriGTests/trig-eval-struct-02.nq new file mode 100644 index 00000000..a4e416e9 --- /dev/null +++ b/test/w3c/TriGTests/trig-eval-struct-02.nq @@ -0,0 +1,4 @@ +<http://example/s> <http://example/p1> <http://example/o1> . +<http://example/s> <http://example/p2> <http://example/o2> . +<http://example/s> <http://example/p1> <http://example/o1> <http://example/graph> . +<http://example/s> <http://example/p2> <http://example/o2> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-eval-struct-02.trig b/test/w3c/TriGTests/trig-eval-struct-02.trig new file mode 100644 index 00000000..332af23c --- /dev/null +++ b/test/w3c/TriGTests/trig-eval-struct-02.trig @@ -0,0 +1,13 @@ +{ + <http://example/s> + <http://example/p1> <http://example/o1> ; + <http://example/p2> <http://example/o2> ; + . +} + +<http://example/graph> { + <http://example/s> + <http://example/p1> <http://example/o1> ; + <http://example/p2> <http://example/o2> ; + . +} diff --git a/test/w3c/TriGTests/trig-graph-bad-01.trig b/test/w3c/TriGTests/trig-graph-bad-01.trig new file mode 100644 index 00000000..a247a68c --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-01.trig @@ -0,0 +1,5 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH but no name - GRAPH is not used with the default graph +GRAPH { :s :p :o } diff --git a/test/w3c/TriGTests/trig-graph-bad-02.trig b/test/w3c/TriGTests/trig-graph-bad-02.trig new file mode 100644 index 00000000..47bbda62 --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-02.trig @@ -0,0 +1,6 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH not followed by DOT +GRAPH :g1 { :s :p :o } . +GRAPH :g2 { :s :p :o } . diff --git a/test/w3c/TriGTests/trig-graph-bad-03.trig b/test/w3c/TriGTests/trig-graph-bad-03.trig new file mode 100644 index 00000000..31af19f8 --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-03.trig @@ -0,0 +1,8 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH needs {} +GRAPH :g + :s :p :o . + + diff --git a/test/w3c/TriGTests/trig-graph-bad-04.trig b/test/w3c/TriGTests/trig-graph-bad-04.trig new file mode 100644 index 00000000..23e23a21 --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-04.trig @@ -0,0 +1,5 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH needs {} +GRAPH :s :p :o diff --git a/test/w3c/TriGTests/trig-graph-bad-05.trig b/test/w3c/TriGTests/trig-graph-bad-05.trig new file mode 100644 index 00000000..7bf470a6 --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-05.trig @@ -0,0 +1,5 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH and a name, not several. +GRAPH :g1 :g2 { :s :p :o } diff --git a/test/w3c/TriGTests/trig-graph-bad-06.trig b/test/w3c/TriGTests/trig-graph-bad-06.trig new file mode 100644 index 00000000..487ae9e0 --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-06.trig @@ -0,0 +1,6 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH - Must close {} +GRAPH :g { :s :p :o + diff --git a/test/w3c/TriGTests/trig-graph-bad-07.trig b/test/w3c/TriGTests/trig-graph-bad-07.trig new file mode 100644 index 00000000..de618384 --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-07.trig @@ -0,0 +1,9 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH and a triples block. +GRAPH :g { + :s :p :o . + GRAPH :g1 { :s1 :p1 :o1 } +} + diff --git a/test/w3c/TriGTests/trig-graph-bad-08.trig b/test/w3c/TriGTests/trig-graph-bad-08.trig new file mode 100644 index 00000000..190d2c0f --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-08.trig @@ -0,0 +1,5 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH and a triples block. +@graph :g { :s :p :o } diff --git a/test/w3c/TriGTests/trig-graph-bad-09.trig b/test/w3c/TriGTests/trig-graph-bad-09.trig new file mode 100644 index 00000000..3cfca535 --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-09.trig @@ -0,0 +1,12 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH - no directives +graph :g { + :s :p :o +prefix x: <http://example/x#> + x:s1 x:p1 x:o1 . +} + + + diff --git a/test/w3c/TriGTests/trig-graph-bad-10.trig b/test/w3c/TriGTests/trig-graph-bad-10.trig new file mode 100644 index 00000000..fc0531f8 --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-10.trig @@ -0,0 +1,8 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH - no lists +GRAPH () { :s :p :o } + + + diff --git a/test/w3c/TriGTests/trig-graph-bad-11.trig b/test/w3c/TriGTests/trig-graph-bad-11.trig new file mode 100644 index 00000000..c7b0ffd5 --- /dev/null +++ b/test/w3c/TriGTests/trig-graph-bad-11.trig @@ -0,0 +1,8 @@ +# GRAPH tests +PREFIX : <http://example/> + +# GRAPH - no lists +graph (1 2) { :s :p :o } + + + diff --git a/test/w3c/TriGTests/trig-kw-graph-01.trig b/test/w3c/TriGTests/trig-kw-graph-01.trig new file mode 100644 index 00000000..acf739bf --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-01.trig @@ -0,0 +1,4 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH :g { :s :p :o }
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-kw-graph-02.trig b/test/w3c/TriGTests/trig-kw-graph-02.trig new file mode 100644 index 00000000..6b4f904b --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-02.trig @@ -0,0 +1,4 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH :g { :s :p :o . } diff --git a/test/w3c/TriGTests/trig-kw-graph-03.trig b/test/w3c/TriGTests/trig-kw-graph-03.trig new file mode 100644 index 00000000..cfb67fe9 --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-03.trig @@ -0,0 +1,4 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH :g { }
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-kw-graph-04.trig b/test/w3c/TriGTests/trig-kw-graph-04.trig new file mode 100644 index 00000000..8a38e30e --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-04.trig @@ -0,0 +1,8 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH :g1 { :s :p :o } +GRAPH :g2 { :s :p :o } +:g3 { :s :p :o } +GRAPH :g4 { :s :p :o } +GRAPH :g5 { :s :p :o } diff --git a/test/w3c/TriGTests/trig-kw-graph-05.trig b/test/w3c/TriGTests/trig-kw-graph-05.trig new file mode 100644 index 00000000..acf739bf --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-05.trig @@ -0,0 +1,4 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH :g { :s :p :o }
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-kw-graph-06.trig b/test/w3c/TriGTests/trig-kw-graph-06.trig new file mode 100644 index 00000000..9c5ca1a6 --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-06.trig @@ -0,0 +1,4 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH _:a { :s :p :o }
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-kw-graph-07.trig b/test/w3c/TriGTests/trig-kw-graph-07.trig new file mode 100644 index 00000000..3cd8aeb7 --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-07.trig @@ -0,0 +1,6 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH [] { :s :p :o } +[] { :s :p :o } +GRAPH [] { :s :p :o } diff --git a/test/w3c/TriGTests/trig-kw-graph-08.trig b/test/w3c/TriGTests/trig-kw-graph-08.trig new file mode 100644 index 00000000..acf739bf --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-08.trig @@ -0,0 +1,4 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH :g { :s :p :o }
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-kw-graph-09.trig b/test/w3c/TriGTests/trig-kw-graph-09.trig new file mode 100644 index 00000000..acf739bf --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-09.trig @@ -0,0 +1,4 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH :g { :s :p :o }
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-kw-graph-10.trig b/test/w3c/TriGTests/trig-kw-graph-10.trig new file mode 100644 index 00000000..cfb67fe9 --- /dev/null +++ b/test/w3c/TriGTests/trig-kw-graph-10.trig @@ -0,0 +1,4 @@ +# GRAPH tests +PREFIX : <http://example/> + +GRAPH :g { }
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-subm-01.nq b/test/w3c/TriGTests/trig-subm-01.nq new file mode 100644 index 00000000..16f21cb9 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-01.nq @@ -0,0 +1,2 @@ +_:b1 <http://www.w3.org/2013/TriGTests/trig-subm-01.trig#x> <http://www.w3.org/2013/TriGTests/trig-subm-01.trig#y> . +_:b2 <http://www.w3.org/2013/TriGTests/trig-subm-01.trig#x> <http://www.w3.org/2013/TriGTests/trig-subm-01.trig#y> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-01.trig b/test/w3c/TriGTests/trig-subm-01.trig new file mode 100644 index 00000000..9a89c660 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-01.trig @@ -0,0 +1,3 @@ +@prefix : <#> . +{[] :x :y .} +<http://example/graph> {[] :x :y .} diff --git a/test/w3c/TriGTests/trig-subm-02.nq b/test/w3c/TriGTests/trig-subm-02.nq new file mode 100644 index 00000000..299f1cd6 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-02.nq @@ -0,0 +1,6 @@ +<http://example.org/base1#a> <http://example.org/base1#b> <http://example.org/base1#c> . +<http://example.org/base2#a> <http://example.org/base2#b> <http://example.org/base2#c> . +<http://example.org/base1#a> <http://example.org/base2#a> <http://example.org/base3#a> . +<http://example.org/base1#a> <http://example.org/base1#b> <http://example.org/base1#c> <http://example/graph> . +<http://example.org/base2#a> <http://example.org/base2#b> <http://example.org/base2#c> <http://example/graph> . +<http://example.org/base1#a> <http://example.org/base2#a> <http://example.org/base3#a> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-02.trig b/test/w3c/TriGTests/trig-subm-02.trig new file mode 100644 index 00000000..c94a8039 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-02.trig @@ -0,0 +1,16 @@ +# Test @prefix and qnames +@prefix : <http://example.org/base1#> . +@prefix a: <http://example.org/base2#> . +@prefix b: <http://example.org/base3#> . + +{ + :a :b :c . + a:a a:b a:c . + :a a:a b:a . +} + +<http://example/graph> { + :a :b :c . + a:a a:b a:c . + :a a:a b:a . +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-subm-03.nq b/test/w3c/TriGTests/trig-subm-03.nq new file mode 100644 index 00000000..aeb54197 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-03.nq @@ -0,0 +1,6 @@ +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#d> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#e> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> <http://example/graph> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#d> <http://example/graph> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#e> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-03.trig b/test/w3c/TriGTests/trig-subm-03.trig new file mode 100644 index 00000000..b52f7c9a --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-03.trig @@ -0,0 +1,14 @@ +# Test , operator +@prefix : <http://example.org/base#> . + +{ +:a :b :c, + :d, + :e . +} + +<http://example/graph> { +:a :b :c, + :d, + :e . +} diff --git a/test/w3c/TriGTests/trig-subm-04.nq b/test/w3c/TriGTests/trig-subm-04.nq new file mode 100644 index 00000000..acf2a1dd --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-04.nq @@ -0,0 +1,6 @@ +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> . +<http://example.org/base#a> <http://example.org/base#d> <http://example.org/base#e> . +<http://example.org/base#a> <http://example.org/base#f> <http://example.org/base#g> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> <http://example/graph> . +<http://example.org/base#a> <http://example.org/base#d> <http://example.org/base#e> <http://example/graph> . +<http://example.org/base#a> <http://example.org/base#f> <http://example.org/base#g> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-04.trig b/test/w3c/TriGTests/trig-subm-04.trig new file mode 100644 index 00000000..2f57b30b --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-04.trig @@ -0,0 +1,14 @@ +# Test ; operator +@prefix : <http://example.org/base#> . + +{ +:a :b :c ; + :d :e ; + :f :g . +} + +<http://example/graph> { +:a :b :c ; + :d :e ; + :f :g . +} diff --git a/test/w3c/TriGTests/trig-subm-05.nq b/test/w3c/TriGTests/trig-subm-05.nq new file mode 100644 index 00000000..cf4eb939 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-05.nq @@ -0,0 +1,4 @@ +_:b1 <http://example.org/base#a> <http://example.org/base#b> . +<http://example.org/base#c> <http://example.org/base#d> _:b2 . +_:b3 <http://example.org/base#a> <http://example.org/base#b> <http://example/graph> . +<http://example.org/base#c> <http://example.org/base#d> _:b4 <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-05.trig b/test/w3c/TriGTests/trig-subm-05.trig new file mode 100644 index 00000000..8c202b99 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-05.trig @@ -0,0 +1,12 @@ +# Test empty [] operator; not allowed as predicate +@prefix : <http://example.org/base#> . + +{ +[] :a :b . +:c :d [] . +} + +<http://example/graph> { +[] :a :b . +:c :d [] . +} diff --git a/test/w3c/TriGTests/trig-subm-06.nq b/test/w3c/TriGTests/trig-subm-06.nq new file mode 100644 index 00000000..4ede34b6 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-06.nq @@ -0,0 +1,8 @@ +_:b1 <http://example.org/base#a> <http://example.org/base#b> . +_:b1 <http://example.org/base#c> <http://example.org/base#d> . +<http://example.org/base#e> <http://example.org/base#f> _:b2 . +_:b2 <http://example.org/base#g> <http://example.org/base#h> . +_:b3 <http://example.org/base#a> <http://example.org/base#b> <http://example/graph> . +_:b3 <http://example.org/base#c> <http://example.org/base#d> <http://example/graph> . +<http://example.org/base#e> <http://example.org/base#f> _:b4 <http://example/graph> . +_:b4 <http://example.org/base#g> <http://example.org/base#h> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-06.trig b/test/w3c/TriGTests/trig-subm-06.trig new file mode 100644 index 00000000..280c48d5 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-06.trig @@ -0,0 +1,12 @@ +# Test non empty [] operator; not allowed as predicate +@prefix : <http://example.org/base#> . + +{ +[ :a :b ] :c :d . +:e :f [ :g :h ] . +} + +<http://example/graph> { +[ :a :b ] :c :d . +:e :f [ :g :h ] . +} diff --git a/test/w3c/TriGTests/trig-subm-07.nq b/test/w3c/TriGTests/trig-subm-07.nq new file mode 100644 index 00000000..7c96d3ba --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-07.nq @@ -0,0 +1,2 @@ +<http://example.org/base#a> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/base#b> . +<http://example.org/base#a> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/base#b> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-07.trig b/test/w3c/TriGTests/trig-subm-07.trig new file mode 100644 index 00000000..b5e254af --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-07.trig @@ -0,0 +1,4 @@ +# 'a' only allowed as a predicate +@prefix : <http://example.org/base#> . +{:a a :b .} +<http://example/graph> {:a a :b .} diff --git a/test/w3c/TriGTests/trig-subm-08.nq b/test/w3c/TriGTests/trig-subm-08.nq new file mode 100644 index 00000000..fbb430bd --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-08.nq @@ -0,0 +1,10 @@ +<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> _:b1 . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple" . +_: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> "banana" . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> _:b3 <http://example/graph> . +_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple" <http://example/graph> . +_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:b4 <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "banana" <http://example/graph> . +_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-08.trig b/test/w3c/TriGTests/trig-subm-08.trig new file mode 100644 index 00000000..7e88c18c --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-08.trig @@ -0,0 +1,4 @@ +@prefix : <http://example.org/stuff/1.0/> . +{:a :b ( "apple" "banana" ) .} +<http://example/graph> {:a :b ( "apple" "banana" ) .} + diff --git a/test/w3c/TriGTests/trig-subm-09.nq b/test/w3c/TriGTests/trig-subm-09.nq new file mode 100644 index 00000000..7c2c83b8 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-09.nq @@ -0,0 +1,2 @@ +<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . +<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-09.trig b/test/w3c/TriGTests/trig-subm-09.trig new file mode 100644 index 00000000..7cbd40a8 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-09.trig @@ -0,0 +1,4 @@ +@prefix : <http://example.org/stuff/1.0/> . +{:a :b ( ) .} +<http://example/graph> {:a :b ( ) .} + diff --git a/test/w3c/TriGTests/trig-subm-10.nq b/test/w3c/TriGTests/trig-subm-10.nq new file mode 100644 index 00000000..3a84a4c6 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-10.nq @@ -0,0 +1,8 @@ +_:hasParent <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:b1 <http://www.w3.org/2002/07/owl#onProperty> _:hasParent . +_:b1 <http://www.w3.org/2002/07/owl#maxCardinality> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . +_:hasParent <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> <http://example/graph> . +_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> <http://example/graph> . +_:b2 <http://www.w3.org/2002/07/owl#onProperty> _:hasParent <http://example/graph> . +_:b2 <http://www.w3.org/2002/07/owl#maxCardinality> "2"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-10.trig b/test/w3c/TriGTests/trig-subm-10.trig new file mode 100644 index 00000000..23bd02de --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-10.trig @@ -0,0 +1,20 @@ +# Test integer datatyped literals using an OWL cardinality constraint +@prefix owl: <http://www.w3.org/2002/07/owl#> . + +# based on examples in the OWL Reference + +{ +_:hasParent a owl:ObjectProperty . + +[] a owl:Restriction ; + owl:onProperty _:hasParent ; + owl:maxCardinality 2 . +} + +<http://example/graph> { +_:hasParent a owl:ObjectProperty . + +[] a owl:Restriction ; + owl:onProperty _:hasParent ; + owl:maxCardinality 2 . +} diff --git a/test/w3c/TriGTests/trig-subm-11.nq b/test/w3c/TriGTests/trig-subm-11.nq new file mode 100644 index 00000000..76147a3a --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-11.nq @@ -0,0 +1,10 @@ +<http://example.org/res1> <http://example.org/prop1> "000000"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res2> <http://example.org/prop2> "0"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res3> <http://example.org/prop3> "000001"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res4> <http://example.org/prop4> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res5> <http://example.org/prop5> "4"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res1> <http://example.org/prop1> "000000"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +<http://example.org/res2> <http://example.org/prop2> "0"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +<http://example.org/res3> <http://example.org/prop3> "000001"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +<http://example.org/res4> <http://example.org/prop4> "2"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +<http://example.org/res5> <http://example.org/prop5> "4"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-11.trig b/test/w3c/TriGTests/trig-subm-11.trig new file mode 100644 index 00000000..bb1c4991 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-11.trig @@ -0,0 +1,15 @@ +{ +<http://example.org/res1> <http://example.org/prop1> 000000 . +<http://example.org/res2> <http://example.org/prop2> 0 . +<http://example.org/res3> <http://example.org/prop3> 000001 . +<http://example.org/res4> <http://example.org/prop4> 2 . +<http://example.org/res5> <http://example.org/prop5> 4 . +} + +<http://example/graph> { +<http://example.org/res1> <http://example.org/prop1> 000000 . +<http://example.org/res2> <http://example.org/prop2> 0 . +<http://example.org/res3> <http://example.org/prop3> 000001 . +<http://example.org/res4> <http://example.org/prop4> 2 . +<http://example.org/res5> <http://example.org/prop5> 4 . +} diff --git a/test/w3c/TriGTests/trig-subm-12.nq b/test/w3c/TriGTests/trig-subm-12.nq new file mode 100644 index 00000000..32b15c50 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-12.nq @@ -0,0 +1,8 @@ +<http://example.org/ex1#foo-bar> <http://example.org/ex1#foo_bar> "a" . +<http://example.org/ex2#foo-bar> <http://example.org/ex2#foo_bar> "b" . +<http://example.org/ex3#foo-bar> <http://example.org/ex3#foo_bar> "c" . +<http://example.org/ex4#foo-bar> <http://example.org/ex4#foo_bar> "d" . +<http://example.org/ex1#foo-bar> <http://example.org/ex1#foo_bar> "a" <http://example/graph> . +<http://example.org/ex2#foo-bar> <http://example.org/ex2#foo_bar> "b" <http://example/graph> . +<http://example.org/ex3#foo-bar> <http://example.org/ex3#foo_bar> "c" <http://example/graph> . +<http://example.org/ex4#foo-bar> <http://example.org/ex4#foo_bar> "d" <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-12.trig b/test/w3c/TriGTests/trig-subm-12.trig new file mode 100644 index 00000000..b0f8ff83 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-12.trig @@ -0,0 +1,19 @@ +# Tests for - and _ in names, qnames +@prefix ex1: <http://example.org/ex1#> . +@prefix ex-2: <http://example.org/ex2#> . +@prefix ex3_: <http://example.org/ex3#> . +@prefix ex4-: <http://example.org/ex4#> . + +{ +ex1:foo-bar ex1:foo_bar "a" . +ex-2:foo-bar ex-2:foo_bar "b" . +ex3_:foo-bar ex3_:foo_bar "c" . +ex4-:foo-bar ex4-:foo_bar "d" . +} + +<http://example/graph> { +ex1:foo-bar ex1:foo_bar "a" . +ex-2:foo-bar ex-2:foo_bar "b" . +ex3_:foo-bar ex3_:foo_bar "c" . +ex4-:foo-bar ex4-:foo_bar "d" . +} diff --git a/test/w3c/TriGTests/trig-subm-13.nq b/test/w3c/TriGTests/trig-subm-13.nq new file mode 100644 index 00000000..84c2a2e5 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-13.nq @@ -0,0 +1,8 @@ +<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" . +<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" . +<http://example.org/ex#foo> <http://example.org/myprop#_abc> "def" . +<http://example.org/ex#foo> <http://example.org/myprop#_345> "678" . +<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" <http://example/graph> . +<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" <http://example/graph> . +<http://example.org/ex#foo> <http://example.org/myprop#_abc> "def" <http://example/graph> . +<http://example.org/ex#foo> <http://example.org/myprop#_345> "678" <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-13.trig b/test/w3c/TriGTests/trig-subm-13.trig new file mode 100644 index 00000000..8d1b44da --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-13.trig @@ -0,0 +1,18 @@ +# Tests for rdf:_<numbers> and other qnames starting with _ +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix ex: <http://example.org/ex#> . +@prefix : <http://example.org/myprop#> . + +{ +ex:foo rdf:_1 "1" . +ex:foo rdf:_2 "2" . +ex:foo :_abc "def" . +ex:foo :_345 "678" . +} + +<http://example/graph> { +ex:foo rdf:_1 "1" . +ex:foo rdf:_2 "2" . +ex:foo :_abc "def" . +ex:foo :_345 "678" . +} diff --git a/test/w3c/TriGTests/trig-subm-14.nq b/test/w3c/TriGTests/trig-subm-14.nq new file mode 100644 index 00000000..89f5b292 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-14.nq @@ -0,0 +1,4 @@ +_:b1 <http://example.org/ron> _:b2 . +<http://example.org/ron> <http://example.org/ron> <http://example.org/ron> . +_:b3 <http://example.org/ron> _:b4 <http://example/graph> . +<http://example.org/ron> <http://example.org/ron> <http://example.org/ron> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-14.trig b/test/w3c/TriGTests/trig-subm-14.trig new file mode 100644 index 00000000..c70300e1 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-14.trig @@ -0,0 +1,16 @@ +# Test for : allowed +@prefix : <http://example.org/ron> . + +{ +[] : [] . + +: : : . + +} + +<http://example/graph> { +[] : [] . + +: : : . + +} diff --git a/test/w3c/TriGTests/trig-subm-15.nq b/test/w3c/TriGTests/trig-subm-15.nq new file mode 100644 index 00000000..8d01c44f --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-15.nq @@ -0,0 +1,2 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "a long\n\tliteral\nwith\nnewlines" . +<http://example.org/ex#a> <http://example.org/ex#b> "a long\n\tliteral\nwith\nnewlines" <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-15.trig b/test/w3c/TriGTests/trig-subm-15.trig new file mode 100644 index 00000000..93fbc41a --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-15.trig @@ -0,0 +1,16 @@ +# Test long literal +@prefix : <http://example.org/ex#> . + +{ +:a :b """a long + literal +with +newlines""" . +} + +<http://example/graph> { +:a :b """a long + literal +with +newlines""" . +} diff --git a/test/w3c/TriGTests/trig-subm-16.nq b/test/w3c/TriGTests/trig-subm-16.nq new file mode 100644 index 00000000..2e5fac4e --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-16.nq @@ -0,0 +1,4 @@ +<http://example.org/foo#a> <http://example.org/foo#b> "\nthis \ris a \U00012451long\t\nliteral\uABCD\n" . +<http://example.org/foo#d> <http://example.org/foo#e> "\tThis \uABCDis\r \U00012451another\n\none\n" . +<http://example.org/foo#a> <http://example.org/foo#b> "\nthis \ris a \U00012451long\t\nliteral\uABCD\n" <http://example/graph> . +<http://example.org/foo#d> <http://example.org/foo#e> "\tThis \uABCDis\r \U00012451another\n\none\n" <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-16.trig b/test/w3c/TriGTests/trig-subm-16.trig new file mode 100644 index 00000000..86cb22d5 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-16.trig @@ -0,0 +1,43 @@ +@prefix : <http://example.org/foo#> . + +{ +## \U00015678 is a not a legal codepoint +## :a :b """\nthis \ris a \U00015678long\t +## literal\uABCD +## """ . +## +## :d :e """\tThis \uABCDis\r \U00015678another\n +## one +## """ . + +# \U00015678 is a not a legal codepoint +# \U00012451 in Cuneiform numeric ban 3 +:a :b """\nthis \ris a \U00012451long\t +literal\uABCD +""" . + +:d :e """\tThis \uABCDis\r \U00012451another\n +one +""" . +} + +<http://example/graph> { +## \U00015678 is a not a legal codepoint +## :a :b """\nthis \ris a \U00015678long\t +## literal\uABCD +## """ . +## +## :d :e """\tThis \uABCDis\r \U00015678another\n +## one +## """ . + +# \U00015678 is a not a legal codepoint +# \U00012451 in Cuneiform numeric ban 3 +:a :b """\nthis \ris a \U00012451long\t +literal\uABCD +""" . + +:d :e """\tThis \uABCDis\r \U00012451another\n +one +""" . +} diff --git a/test/w3c/TriGTests/trig-subm-17.nq b/test/w3c/TriGTests/trig-subm-17.nq new file mode 100644 index 00000000..7c5d273f --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-17.nq @@ -0,0 +1,2 @@ +<http://example.org/#a> <http://example.org/#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/#a> <http://example.org/#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-17.trig b/test/w3c/TriGTests/trig-subm-17.trig new file mode 100644 index 00000000..345ca231 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-17.trig @@ -0,0 +1,5 @@ +@prefix : <http://example.org/#> . + +{:a :b 1.0 .} +<http://example/graph> {:a :b 1.0 .} + diff --git a/test/w3c/TriGTests/trig-subm-18.nq b/test/w3c/TriGTests/trig-subm-18.nq new file mode 100644 index 00000000..58b0a4c4 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-18.nq @@ -0,0 +1,4 @@ +<http://example.org/#a> <http://example.org/#b> "" . +<http://example.org/#c> <http://example.org/#d> "" . +<http://example.org/#a> <http://example.org/#b> "" <http://example/graph> . +<http://example.org/#c> <http://example.org/#d> "" <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-18.trig b/test/w3c/TriGTests/trig-subm-18.trig new file mode 100644 index 00000000..f5b4a516 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-18.trig @@ -0,0 +1,15 @@ +@prefix : <http://example.org/#> . + +{ +:a :b "" . + +:c :d """""" . + +} + +<http://example/graph> { +:a :b "" . + +:c :d """""" . + +} diff --git a/test/w3c/TriGTests/trig-subm-19.nq b/test/w3c/TriGTests/trig-subm-19.nq new file mode 100644 index 00000000..b3cf8075 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-19.nq @@ -0,0 +1,6 @@ +<http://example.org#a> <http://example.org#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org#c> <http://example.org#d> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org#e> <http://example.org#f> "1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> . +<http://example.org#a> <http://example.org#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> <http://example/graph> . +<http://example.org#c> <http://example.org#d> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +<http://example.org#e> <http://example.org#f> "1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-19.trig b/test/w3c/TriGTests/trig-subm-19.trig new file mode 100644 index 00000000..7cd14eee --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-19.trig @@ -0,0 +1,13 @@ +@prefix : <http://example.org#> . + +{ +:a :b 1.0 . +:c :d 1 . +:e :f 1.0e0 . +} + +<http://example/graph> { +:a :b 1.0 . +:c :d 1 . +:e :f 1.0e0 . +} diff --git a/test/w3c/TriGTests/trig-subm-20.nq b/test/w3c/TriGTests/trig-subm-20.nq new file mode 100644 index 00000000..46f48c74 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-20.nq @@ -0,0 +1,6 @@ +<http://example.org#a> <http://example.org#b> "-1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org#c> <http://example.org#d> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org#e> <http://example.org#f> "-1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> . +<http://example.org#a> <http://example.org#b> "-1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> <http://example/graph> . +<http://example.org#c> <http://example.org#d> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> . +<http://example.org#e> <http://example.org#f> "-1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-20.trig b/test/w3c/TriGTests/trig-subm-20.trig new file mode 100644 index 00000000..6e3032e5 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-20.trig @@ -0,0 +1,13 @@ +@prefix : <http://example.org#> . + +{ +:a :b -1.0 . +:c :d -1 . +:e :f -1.0e0 . +} + +<http://example/graph> { +:a :b -1.0 . +:c :d -1 . +:e :f -1.0e0 . +} diff --git a/test/w3c/TriGTests/trig-subm-21.nq b/test/w3c/TriGTests/trig-subm-21.nq new file mode 100644 index 00000000..90aec6da --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-21.nq @@ -0,0 +1,2 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "John said: \"Hello World!\"" . +<http://example.org/ex#a> <http://example.org/ex#b> "John said: \"Hello World!\"" <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-21.trig b/test/w3c/TriGTests/trig-subm-21.trig new file mode 100644 index 00000000..05870fbd --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-21.trig @@ -0,0 +1,4 @@ +# Test long literal +@prefix : <http://example.org/ex#> . +{:a :b """John said: "Hello World!\"""" .} +<http://example/graph> {:a :b """John said: "Hello World!\"""" .} diff --git a/test/w3c/TriGTests/trig-subm-22.nq b/test/w3c/TriGTests/trig-subm-22.nq new file mode 100644 index 00000000..01ab3571 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-22.nq @@ -0,0 +1,4 @@ +<http://example.org#a> <http://example.org#b> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . +<http://example.org#c> <http://example.org#d> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . +<http://example.org#a> <http://example.org#b> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> <http://example/graph> . +<http://example.org#c> <http://example.org#d> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-22.trig b/test/w3c/TriGTests/trig-subm-22.trig new file mode 100644 index 00000000..2b546609 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-22.trig @@ -0,0 +1,11 @@ +@prefix : <http://example.org#> . + +{ +:a :b true . +:c :d false . +} + +<http://example/graph> { +:a :b true . +:c :d false . +} diff --git a/test/w3c/TriGTests/trig-subm-23.nq b/test/w3c/TriGTests/trig-subm-23.nq new file mode 100644 index 00000000..11328c97 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-23.nq @@ -0,0 +1,14 @@ +<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> . +<http://example.org/#d> <http://example.org/#e> <http://example.org/#f> . +<http://example.org/#g> <http://example.org/#h> <http://example.org/#i> . +<http://example.org/#g> <http://example.org/#h> <http://example.org/#j> . +<http://example.org/#k> <http://example.org/#l> <http://example.org/#m> . +<http://example.org/#k> <http://example.org/#n> <http://example.org/#o> . +<http://example.org/#k> <http://example.org/#p> <http://example.org/#q> . +<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> <http://example/graph> . +<http://example.org/#d> <http://example.org/#e> <http://example.org/#f> <http://example/graph> . +<http://example.org/#g> <http://example.org/#h> <http://example.org/#i> <http://example/graph> . +<http://example.org/#g> <http://example.org/#h> <http://example.org/#j> <http://example/graph> . +<http://example.org/#k> <http://example.org/#l> <http://example.org/#m> <http://example/graph> . +<http://example.org/#k> <http://example.org/#n> <http://example.org/#o> <http://example/graph> . +<http://example.org/#k> <http://example.org/#p> <http://example.org/#q> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-23.trig b/test/w3c/TriGTests/trig-subm-23.trig new file mode 100644 index 00000000..3cb24f50 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-23.trig @@ -0,0 +1,32 @@ +# comment test +@prefix : <http://example.org/#> . + +{ +:a :b :c . # end of line comment +:d # ignore me + :e # and me + :f # and me + . +:g :h #ignore me + :i, # and me + :j . # and me + +:k :l :m ; #ignore me + :n :o ; # and me + :p :q . # and me +} + +<http://example/graph> { +:a :b :c . # end of line comment +:d # ignore me + :e # and me + :f # and me + . +:g :h #ignore me + :i, # and me + :j . # and me + +:k :l :m ; #ignore me + :n :o ; # and me + :p :q . # and me +} diff --git a/test/w3c/TriGTests/trig-subm-24.nq b/test/w3c/TriGTests/trig-subm-24.nq new file mode 100644 index 00000000..9de4a324 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-24.nq @@ -0,0 +1,2 @@ +<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> . +<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-24.trig b/test/w3c/TriGTests/trig-subm-24.trig new file mode 100644 index 00000000..22ae97ca --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-24.trig @@ -0,0 +1,5 @@ +# comment line with no final newline test +@prefix : <http://example.org/#> . +{:a :b :c .} +<http://example/graph> {:a :b :c .} +#foo diff --git a/test/w3c/TriGTests/trig-subm-25.nq b/test/w3c/TriGTests/trig-subm-25.nq new file mode 100644 index 00000000..bcb4647a --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-25.nq @@ -0,0 +1,2 @@ +<http://example.org/bar#blah> <http://example.org/bar#blah> <http://example.org/bar#blah> . +<http://example.org/bar#blah> <http://example.org/bar#blah> <http://example.org/bar#blah> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-subm-25.trig b/test/w3c/TriGTests/trig-subm-25.trig new file mode 100644 index 00000000..7c3b9f2a --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-25.trig @@ -0,0 +1,5 @@ +@prefix foo: <http://example.org/foo#> . +@prefix foo: <http://example.org/bar#> . + +{foo:blah foo:blah foo:blah .} +<http://example/graph> {foo:blah foo:blah foo:blah .} diff --git a/test/w3c/TriGTests/trig-subm-26.nq b/test/w3c/TriGTests/trig-subm-26.nq new file mode 100644 index 00000000..7357dd40 --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-26.nq @@ -0,0 +1,22 @@ +<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1."^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.000000000"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.3"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.2345678901234567890123457890"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/test/w3c/TriGTests/trig-subm-26.trig b/test/w3c/TriGTests/trig-subm-26.trig new file mode 100644 index 00000000..c590800f --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-26.trig @@ -0,0 +1,24 @@ +{ +<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1."^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.000000000"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.3"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.2345678901234567890123457890"^^<http://www.w3.org/2001/XMLSchema#decimal> . +} diff --git a/test/w3c/TriGTests/trig-subm-27.nq b/test/w3c/TriGTests/trig-subm-27.nq new file mode 100644 index 00000000..95e9abbc --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-27.nq @@ -0,0 +1,5 @@ +<http://www.w3.org/2013/TriGTests/a1> <http://www.w3.org/2013/TriGTests/b1> <http://www.w3.org/2013/TriGTests/c1> . +<http://example.org/ns/a2> <http://example.org/ns/b2> <http://example.org/ns/c2> . +<http://example.org/ns/foo/a3> <http://example.org/ns/foo/b3> <http://example.org/ns/foo/c3> . +<http://example.org/ns/foo/bar#a4> <http://example.org/ns/foo/bar#b4> <http://example.org/ns/foo/bar#c4> . +<http://example.org/ns2#a5> <http://example.org/ns2#b5> <http://example.org/ns2#c5> . diff --git a/test/w3c/TriGTests/trig-subm-27.trig b/test/w3c/TriGTests/trig-subm-27.trig new file mode 100644 index 00000000..4bb98b8f --- /dev/null +++ b/test/w3c/TriGTests/trig-subm-27.trig @@ -0,0 +1,12 @@ +# In-scope base URI is <http://www.w3.org/2013/TriGTests/trig-subm-27.trig> at this point +{<a1> <b1> <c1> .} +@base <http://example.org/ns/> . +# In-scope base URI is http://example.org/ns/ at this point +{<a2> <http://example.org/ns/b2> <c2> .} +@base <foo/> . +# In-scope base URI is http://example.org/ns/foo/ at this point +{<a3> <b3> <c3> .} +@prefix : <bar#> . +{:a4 :b4 :c4 .} +@prefix : <http://example.org/ns2#> . +{:a5 :b5 :c5 .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-LITERAL2_with_langtag_and_datatype.trig b/test/w3c/TriGTests/trig-syntax-bad-LITERAL2_with_langtag_and_datatype.trig new file mode 100644 index 00000000..7748dd1e --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-LITERAL2_with_langtag_and_datatype.trig @@ -0,0 +1 @@ +{<http://example.org/resource> <http://example.org#pred> "value"@en^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-base-01.trig b/test/w3c/TriGTests/trig-syntax-bad-base-01.trig new file mode 100644 index 00000000..7b0412f8 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-base-01.trig @@ -0,0 +1,2 @@ +# @base without URI. +@base . diff --git a/test/w3c/TriGTests/trig-syntax-bad-base-02.trig b/test/w3c/TriGTests/trig-syntax-bad-base-02.trig new file mode 100644 index 00000000..1b2e4845 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-base-02.trig @@ -0,0 +1,2 @@ +# @base in wrong case. +@BASE <http://example/> . diff --git a/test/w3c/TriGTests/trig-syntax-bad-base-03.trig b/test/w3c/TriGTests/trig-syntax-bad-base-03.trig new file mode 100644 index 00000000..b8f587fa --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-base-03.trig @@ -0,0 +1,3 @@ +# FULL STOP used after SPARQL BASE +BASE <http://example/> . +{<s> <p> <o> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-base-04.trig b/test/w3c/TriGTests/trig-syntax-bad-base-04.trig new file mode 100644 index 00000000..83c5789b --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-base-04.trig @@ -0,0 +1,4 @@ +# @base inside graph +{ + @base <http://example/> . +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-syntax-bad-base-05.trig b/test/w3c/TriGTests/trig-syntax-bad-base-05.trig new file mode 100644 index 00000000..fa915d53 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-base-05.trig @@ -0,0 +1,4 @@ +# BASE inside graph +{ + BASE <http://example/> +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-syntax-bad-blank-label-dot-end.trig b/test/w3c/TriGTests/trig-syntax-bad-blank-label-dot-end.trig new file mode 100644 index 00000000..33d5edf2 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-blank-label-dot-end.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{_:b1. :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-esc-01.trig b/test/w3c/TriGTests/trig-syntax-bad-esc-01.trig new file mode 100644 index 00000000..abe7fde0 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-esc-01.trig @@ -0,0 +1,2 @@ +# Bad string escape +{<http://example/s> <http://example/p> "a\zb" .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-esc-02.trig b/test/w3c/TriGTests/trig-syntax-bad-esc-02.trig new file mode 100644 index 00000000..80f18c81 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-esc-02.trig @@ -0,0 +1,2 @@ +# Bad string escape +{<http://example/s> <http://example/p> "\uWXYZ" .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-esc-03.trig b/test/w3c/TriGTests/trig-syntax-bad-esc-03.trig new file mode 100644 index 00000000..b45f7044 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-esc-03.trig @@ -0,0 +1,2 @@ +# Bad string escape +{<http://example/s> <http://example/p> "\U0000WXYZ" .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-esc-04.trig b/test/w3c/TriGTests/trig-syntax-bad-esc-04.trig new file mode 100644 index 00000000..b45f7044 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-esc-04.trig @@ -0,0 +1,2 @@ +# Bad string escape +{<http://example/s> <http://example/p> "\U0000WXYZ" .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-kw-01.trig b/test/w3c/TriGTests/trig-syntax-bad-kw-01.trig new file mode 100644 index 00000000..75753b2d --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-kw-01.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s A :C .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-kw-02.trig b/test/w3c/TriGTests/trig-syntax-bad-kw-02.trig new file mode 100644 index 00000000..036179dd --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-kw-02.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{a :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-kw-03.trig b/test/w3c/TriGTests/trig-syntax-bad-kw-03.trig new file mode 100644 index 00000000..84f456e5 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-kw-03.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p a .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-kw-04.trig b/test/w3c/TriGTests/trig-syntax-bad-kw-04.trig new file mode 100644 index 00000000..28d864c4 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-kw-04.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{true :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-kw-05.trig b/test/w3c/TriGTests/trig-syntax-bad-kw-05.trig new file mode 100644 index 00000000..c12694bf --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-kw-05.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s true :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-lang-01.trig b/test/w3c/TriGTests/trig-syntax-bad-lang-01.trig new file mode 100644 index 00000000..a2032634 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-lang-01.trig @@ -0,0 +1,2 @@ +# Bad lang tag +{<http://example/s> <http://example/p> "string"@1 .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-list-01.trig b/test/w3c/TriGTests/trig-syntax-bad-list-01.trig new file mode 100644 index 00000000..15d82710 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-list-01.trig @@ -0,0 +1,2 @@ +# RDF collection without predicate-object-list +( 1 2 3 ) . diff --git a/test/w3c/TriGTests/trig-syntax-bad-list-02.trig b/test/w3c/TriGTests/trig-syntax-bad-list-02.trig new file mode 100644 index 00000000..15d82710 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-list-02.trig @@ -0,0 +1,2 @@ +# RDF collection without predicate-object-list +( 1 2 3 ) . diff --git a/test/w3c/TriGTests/trig-syntax-bad-list-03.trig b/test/w3c/TriGTests/trig-syntax-bad-list-03.trig new file mode 100644 index 00000000..6b5269dd --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-list-03.trig @@ -0,0 +1,3 @@ +# RDF collection without predicate-object-list +{ ( 1 2 3 ) } + diff --git a/test/w3c/TriGTests/trig-syntax-bad-list-04.trig b/test/w3c/TriGTests/trig-syntax-bad-list-04.trig new file mode 100644 index 00000000..377846a9 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-list-04.trig @@ -0,0 +1,3 @@ +# RDF collection without predicate-object-list +{ ( ) } + diff --git a/test/w3c/TriGTests/trig-syntax-bad-ln-dash-start.trig b/test/w3c/TriGTests/trig-syntax-bad-ln-dash-start.trig new file mode 100644 index 00000000..48f78eed --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-ln-dash-start.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p :-o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-ln-escape-start.trig b/test/w3c/TriGTests/trig-syntax-bad-ln-escape-start.trig new file mode 100644 index 00000000..d3e71e4e --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-ln-escape-start.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p :%2o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-ln-escape.trig b/test/w3c/TriGTests/trig-syntax-bad-ln-escape.trig new file mode 100644 index 00000000..dcdd0592 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-ln-escape.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p :o%2 .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-missing-ns-dot-end.trig b/test/w3c/TriGTests/trig-syntax-bad-missing-ns-dot-end.trig new file mode 100644 index 00000000..7fe09943 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-missing-ns-dot-end.trig @@ -0,0 +1 @@ +{valid:s valid:p invalid.:o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-missing-ns-dot-start.trig b/test/w3c/TriGTests/trig-syntax-bad-missing-ns-dot-start.trig new file mode 100644 index 00000000..3ae9b6bb --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-missing-ns-dot-start.trig @@ -0,0 +1 @@ +{.undefined:s .undefined:p .undefined:o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-01.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-01.trig new file mode 100644 index 00000000..9dbf21e2 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-01.trig @@ -0,0 +1,5 @@ +# {} formulae not in Turtle +@prefix : <http://example/> . + +{ :a :q :c . } :p :z . + diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-02.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-02.trig new file mode 100644 index 00000000..8edf2c2b --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-02.trig @@ -0,0 +1,4 @@ +# = is not Turtle +@prefix : <http://example/> . + +{:a = :b .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-03.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-03.trig new file mode 100644 index 00000000..bb21bf08 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-03.trig @@ -0,0 +1,9 @@ +# N3 paths +@prefix : <http://example/> . +@prefix ns: <http://example/p#> . + +{ +:x. + ns:p. + ns:q :p :z . +} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-04.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-04.trig new file mode 100644 index 00000000..adee6b55 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-04.trig @@ -0,0 +1,5 @@ +# N3 paths +@prefix : <http://example/> . +@prefix ns: <http://example/p#> . + +{:x^ns:p :p :z .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-05.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-05.trig new file mode 100644 index 00000000..2fbf0840 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-05.trig @@ -0,0 +1,4 @@ +# N3 is...of +@prefix : <http://example/> . + +{:z is :p of :x .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-06.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-06.trig new file mode 100644 index 00000000..d1945544 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-06.trig @@ -0,0 +1,4 @@ +# = is not Turtle +@prefix : <http://example/> . + +{:a.:b.:c .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-07.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-07.trig new file mode 100644 index 00000000..ece79325 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-07.trig @@ -0,0 +1,3 @@ +# @keywords is not Turtle +@keywords a . +{x a Item .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-08.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-08.trig new file mode 100644 index 00000000..ece79325 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-08.trig @@ -0,0 +1,3 @@ +# @keywords is not Turtle +@keywords a . +{x a Item .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-09.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-09.trig new file mode 100644 index 00000000..cc70bc12 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-09.trig @@ -0,0 +1,3 @@ +# => is not Turtle +@prefix : <http://example/> . +{:s => :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-10.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-10.trig new file mode 100644 index 00000000..7470dda3 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-10.trig @@ -0,0 +1,3 @@ +# <= is not Turtle +@prefix : <http://example/> . +{:s <= :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-11.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-11.trig new file mode 100644 index 00000000..dabadf02 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-11.trig @@ -0,0 +1,3 @@ +# @forSome is not Turtle +@prefix : <http://example/> . +@forSome :x . diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-12.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-12.trig new file mode 100644 index 00000000..5a6c3562 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-12.trig @@ -0,0 +1,3 @@ +# @forAll is not Turtle +@prefix : <http://example/> . +@forAll :x . diff --git a/test/w3c/TriGTests/trig-syntax-bad-n3-extras-13.trig b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-13.trig new file mode 100644 index 00000000..c4fe67a0 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-n3-extras-13.trig @@ -0,0 +1,3 @@ +# @keywords is not Turtle +@keywords . +{x @a Item .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-ns-dot-end.trig b/test/w3c/TriGTests/trig-syntax-bad-ns-dot-end.trig new file mode 100644 index 00000000..d2b53225 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-ns-dot-end.trig @@ -0,0 +1,2 @@ +@prefix eg. : <http://example/> . +{eg.:s eg.:p eg.:o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-ns-dot-start.trig b/test/w3c/TriGTests/trig-syntax-bad-ns-dot-start.trig new file mode 100644 index 00000000..9cebce12 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-ns-dot-start.trig @@ -0,0 +1,2 @@ +@prefix .eg : <http://example/> . +{.eg:s .eg:p .eg:o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-num-01.trig b/test/w3c/TriGTests/trig-syntax-bad-num-01.trig new file mode 100644 index 00000000..87fa61d4 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-num-01.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> 123.abc .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-num-02.trig b/test/w3c/TriGTests/trig-syntax-bad-num-02.trig new file mode 100644 index 00000000..4e257b08 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-num-02.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> 123e .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-num-03.trig b/test/w3c/TriGTests/trig-syntax-bad-num-03.trig new file mode 100644 index 00000000..72414507 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-num-03.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> 123abc .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-num-04.trig b/test/w3c/TriGTests/trig-syntax-bad-num-04.trig new file mode 100644 index 00000000..c5828732 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-num-04.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> 0x123 .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-num-05.trig b/test/w3c/TriGTests/trig-syntax-bad-num-05.trig new file mode 100644 index 00000000..7de52461 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-num-05.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> +-1 .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-number-dot-in-anon.trig b/test/w3c/TriGTests/trig-syntax-bad-number-dot-in-anon.trig new file mode 100644 index 00000000..3c4b8e45 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-number-dot-in-anon.trig @@ -0,0 +1,8 @@ +@prefix : <http://example/> . + +{ +:s + :p [ + :p1 27. + ] . +} diff --git a/test/w3c/TriGTests/trig-syntax-bad-pname-01.trig b/test/w3c/TriGTests/trig-syntax-bad-pname-01.trig new file mode 100644 index 00000000..a03be7af --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-pname-01.trig @@ -0,0 +1,3 @@ +# ~ must be escaped. +@prefix : <http://example/> . +{:a~b :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-pname-02.trig b/test/w3c/TriGTests/trig-syntax-bad-pname-02.trig new file mode 100644 index 00000000..39d14ee4 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-pname-02.trig @@ -0,0 +1,3 @@ +# Bad %-sequence +@prefix : <http://example/> . +{:a%2 :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-pname-03.trig b/test/w3c/TriGTests/trig-syntax-bad-pname-03.trig new file mode 100644 index 00000000..5ed44f65 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-pname-03.trig @@ -0,0 +1,3 @@ +# No \u (x39 is "9") +@prefix : <http://example/> . +{:a\u0039 :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-prefix-01.trig b/test/w3c/TriGTests/trig-syntax-bad-prefix-01.trig new file mode 100644 index 00000000..32d781d1 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-prefix-01.trig @@ -0,0 +1,2 @@ +# No prefix +{:s <http://example/p> "x" .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-prefix-02.trig b/test/w3c/TriGTests/trig-syntax-bad-prefix-02.trig new file mode 100644 index 00000000..6d03cf5f --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-prefix-02.trig @@ -0,0 +1,3 @@ +# No prefix +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +{<http://example/s> rdf:type :C .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-prefix-03.trig b/test/w3c/TriGTests/trig-syntax-bad-prefix-03.trig new file mode 100644 index 00000000..1ab01e7b --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-prefix-03.trig @@ -0,0 +1,2 @@ +# @prefix without URI. +@prefix ex: . diff --git a/test/w3c/TriGTests/trig-syntax-bad-prefix-04.trig b/test/w3c/TriGTests/trig-syntax-bad-prefix-04.trig new file mode 100644 index 00000000..dbbda05b --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-prefix-04.trig @@ -0,0 +1,2 @@ +# @prefix without prefix name . +@prefix <http://example/> . diff --git a/test/w3c/TriGTests/trig-syntax-bad-prefix-05.trig b/test/w3c/TriGTests/trig-syntax-bad-prefix-05.trig new file mode 100644 index 00000000..6d145e07 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-prefix-05.trig @@ -0,0 +1,2 @@ +# @prefix without : +@prefix x <http://example/> . diff --git a/test/w3c/TriGTests/trig-syntax-bad-prefix-06.trig b/test/w3c/TriGTests/trig-syntax-bad-prefix-06.trig new file mode 100644 index 00000000..52939065 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-prefix-06.trig @@ -0,0 +1,4 @@ +# @prefix inside graph +{ + @prefix ex: <http://example/> . +} diff --git a/test/w3c/TriGTests/trig-syntax-bad-prefix-07.trig b/test/w3c/TriGTests/trig-syntax-bad-prefix-07.trig new file mode 100644 index 00000000..1230063a --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-prefix-07.trig @@ -0,0 +1,4 @@ +# PREFIX inside graph +{ + PREFIX ex: <http://example/> +} diff --git a/test/w3c/TriGTests/trig-syntax-bad-string-01.trig b/test/w3c/TriGTests/trig-syntax-bad-string-01.trig new file mode 100644 index 00000000..9decfb3c --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-string-01.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p "abc' .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-string-02.trig b/test/w3c/TriGTests/trig-syntax-bad-string-02.trig new file mode 100644 index 00000000..95537104 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-string-02.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p 'abc" .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-string-03.trig b/test/w3c/TriGTests/trig-syntax-bad-string-03.trig new file mode 100644 index 00000000..b60d18b8 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-string-03.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p '''abc' .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-string-04.trig b/test/w3c/TriGTests/trig-syntax-bad-string-04.trig new file mode 100644 index 00000000..06173937 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-string-04.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p """abc''' .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-string-05.trig b/test/w3c/TriGTests/trig-syntax-bad-string-05.trig new file mode 100644 index 00000000..52e3fed4 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-string-05.trig @@ -0,0 +1,6 @@ +# Long literal with missing end +@prefix : <http://example/> . +{ +:s :p """abc +def +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-syntax-bad-string-06.trig b/test/w3c/TriGTests/trig-syntax-bad-string-06.trig new file mode 100644 index 00000000..e4c9d936 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-string-06.trig @@ -0,0 +1,3 @@ +# Long literal with 4" +@prefix : <http://example/> . +{:s :p """abc""""@en .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-string-07.trig b/test/w3c/TriGTests/trig-syntax-bad-string-07.trig new file mode 100644 index 00000000..de68cb4a --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-string-07.trig @@ -0,0 +1,3 @@ +# Long literal with 4' +@prefix : <http://example/> . +{:s :p '''abc''''@en .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-02.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-02.trig new file mode 100644 index 00000000..1f38c451 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-02.trig @@ -0,0 +1,2 @@ +# TriG is not N3 +<http://example/s> = <http://example/o> . diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-03.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-03.trig new file mode 100644 index 00000000..b7e97b81 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-03.trig @@ -0,0 +1,2 @@ +# TriG is not NQuads +<http://example/s> <http://example/p> <http://example/o> <http://example/graph> . diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-04.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-04.trig new file mode 100644 index 00000000..319d1067 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-04.trig @@ -0,0 +1,2 @@ +# TriG does not allow literals-as-subjects +{"hello" <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-05.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-05.trig new file mode 100644 index 00000000..317b6326 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-05.trig @@ -0,0 +1,2 @@ +# TriG does not allow literals-as-predicates +{<http://example/s> "hello" <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-06.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-06.trig new file mode 100644 index 00000000..8e6e7202 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-06.trig @@ -0,0 +1,2 @@ +# TriG does not allow bnodes-as-predicates +{<http://example/s> [] <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-07.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-07.trig new file mode 100644 index 00000000..91152ba3 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-07.trig @@ -0,0 +1,2 @@ +# TriG does not allow bnodes-as-predicates +{<http://example/s> _:p <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-09.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-09.trig new file mode 100644 index 00000000..abc20261 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-09.trig @@ -0,0 +1,2 @@ +# Too many DOTs +{<http://example/s> <http://example/p> <http://example/o> . .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-10.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-10.trig new file mode 100644 index 00000000..5d5c58fa --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-10.trig @@ -0,0 +1,5 @@ +# Too many DOTs +{ +<http://example/s> <http://example/p> <http://example/o> . . +<http://example/s1> <http://example/p1> <http://example/o1> . +} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-12.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-12.trig new file mode 100644 index 00000000..b7bdff6a --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-12.trig @@ -0,0 +1 @@ +{<http://example/s> } diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-13.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-13.trig new file mode 100644 index 00000000..0712e0f0 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-13.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> } diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-14.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-14.trig new file mode 100644 index 00000000..69bc9c21 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-14.trig @@ -0,0 +1,2 @@ +# Literal as subject +{"abc" <http://example/p> <http://example/p> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-15.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-15.trig new file mode 100644 index 00000000..27be5519 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-15.trig @@ -0,0 +1,2 @@ +# Literal as predicate +{<http://example/s> "abc" <http://example/p> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-16.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-16.trig new file mode 100644 index 00000000..b08748f4 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-16.trig @@ -0,0 +1,2 @@ +# BNode as predicate +{<http://example/s> [] <http://example/p> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-struct-17.trig b/test/w3c/TriGTests/trig-syntax-bad-struct-17.trig new file mode 100644 index 00000000..cdd301a1 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-struct-17.trig @@ -0,0 +1,2 @@ +# BNode as predicate +{<http://example/s> _:a <http://example/p> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-uri-01.trig b/test/w3c/TriGTests/trig-syntax-bad-uri-01.trig new file mode 100644 index 00000000..ed06b92d --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-uri-01.trig @@ -0,0 +1,2 @@ +# Bad IRI : space. +{<http://example/ space> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-uri-02.trig b/test/w3c/TriGTests/trig-syntax-bad-uri-02.trig new file mode 100644 index 00000000..fb862172 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-uri-02.trig @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +{<http://example/\u00ZZ11> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-uri-03.trig b/test/w3c/TriGTests/trig-syntax-bad-uri-03.trig new file mode 100644 index 00000000..7fa62dcc --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-uri-03.trig @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +{<http://example/\U00ZZ1111> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-uri-04.trig b/test/w3c/TriGTests/trig-syntax-bad-uri-04.trig new file mode 100644 index 00000000..ba9cd2d7 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-uri-04.trig @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +{<http://example/\n> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-bad-uri-05.trig b/test/w3c/TriGTests/trig-syntax-bad-uri-05.trig new file mode 100644 index 00000000..d332a6e6 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bad-uri-05.trig @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +{<http://example/\/> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-base-01.trig b/test/w3c/TriGTests/trig-syntax-base-01.trig new file mode 100644 index 00000000..dff1b3b4 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-base-01.trig @@ -0,0 +1 @@ +@base <http://example/> . diff --git a/test/w3c/TriGTests/trig-syntax-base-02.trig b/test/w3c/TriGTests/trig-syntax-base-02.trig new file mode 100644 index 00000000..04f1bfdb --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-base-02.trig @@ -0,0 +1 @@ +BASE <http://example/> diff --git a/test/w3c/TriGTests/trig-syntax-base-03.trig b/test/w3c/TriGTests/trig-syntax-base-03.trig new file mode 100644 index 00000000..2b7ae01d --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-base-03.trig @@ -0,0 +1,2 @@ +@base <http://example/> . +{<s> <p> <o> .} diff --git a/test/w3c/TriGTests/trig-syntax-base-04.trig b/test/w3c/TriGTests/trig-syntax-base-04.trig new file mode 100644 index 00000000..ad742cff --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-base-04.trig @@ -0,0 +1,2 @@ +base <http://example/> +{<s> <p> <o> .} diff --git a/test/w3c/TriGTests/trig-syntax-blank-label.trig b/test/w3c/TriGTests/trig-syntax-blank-label.trig new file mode 100644 index 00000000..2cebf8f5 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-blank-label.trig @@ -0,0 +1,6 @@ +@prefix : <http://example/> . +{ +_:0b :p :o . # Starts with digit +_:_b :p :o . # Starts with underscore +_:b.0 :p :o . # Contains dot, ends with digit +} diff --git a/test/w3c/TriGTests/trig-syntax-bnode-01.trig b/test/w3c/TriGTests/trig-syntax-bnode-01.trig new file mode 100644 index 00000000..50c66c4d --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-01.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{[] :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bnode-02.trig b/test/w3c/TriGTests/trig-syntax-bnode-02.trig new file mode 100644 index 00000000..745dc11c --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-02.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p [] .} diff --git a/test/w3c/TriGTests/trig-syntax-bnode-03.trig b/test/w3c/TriGTests/trig-syntax-bnode-03.trig new file mode 100644 index 00000000..292b2791 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-03.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p [ :q :o ] .} diff --git a/test/w3c/TriGTests/trig-syntax-bnode-04.trig b/test/w3c/TriGTests/trig-syntax-bnode-04.trig new file mode 100644 index 00000000..7bde07d6 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-04.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p [ :q1 :o1 ; :q2 :o2 ] .} diff --git a/test/w3c/TriGTests/trig-syntax-bnode-05.trig b/test/w3c/TriGTests/trig-syntax-bnode-05.trig new file mode 100644 index 00000000..86419083 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-05.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{[ :q1 :o1 ; :q2 :o2 ] :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bnode-06.trig b/test/w3c/TriGTests/trig-syntax-bnode-06.trig new file mode 100644 index 00000000..4f06e5fc --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-06.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{_:a :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bnode-07.trig b/test/w3c/TriGTests/trig-syntax-bnode-07.trig new file mode 100644 index 00000000..001e9ba0 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-07.trig @@ -0,0 +1,4 @@ +@prefix : <http://example/> . +{:s :p _:a . +_:a :p :o . +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-syntax-bnode-08.trig b/test/w3c/TriGTests/trig-syntax-bnode-08.trig new file mode 100644 index 00000000..853ab8af --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-08.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{[ :p :o ] .} diff --git a/test/w3c/TriGTests/trig-syntax-bnode-09.trig b/test/w3c/TriGTests/trig-syntax-bnode-09.trig new file mode 100644 index 00000000..36b1eca8 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-09.trig @@ -0,0 +1,3 @@ +@prefix : <http://example/> . +{[ :p :o1,:2 ] . +:s :p :o .} diff --git a/test/w3c/TriGTests/trig-syntax-bnode-10.trig b/test/w3c/TriGTests/trig-syntax-bnode-10.trig new file mode 100644 index 00000000..b6d308dd --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-bnode-10.trig @@ -0,0 +1,6 @@ +@prefix : <http://example/> . +{ +:s1 :p :o . +[ :p1 :o1 ; :p2 :o2 ] . +:s2 :p :o . +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-syntax-datatypes-01.trig b/test/w3c/TriGTests/trig-syntax-datatypes-01.trig new file mode 100644 index 00000000..304793af --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-datatypes-01.trig @@ -0,0 +1,2 @@ +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +{<s> <p> "123"^^xsd:byte .} diff --git a/test/w3c/TriGTests/trig-syntax-datatypes-02.trig b/test/w3c/TriGTests/trig-syntax-datatypes-02.trig new file mode 100644 index 00000000..7daeb166 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-datatypes-02.trig @@ -0,0 +1,3 @@ +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +{<s> <p> "123"^^xsd:string .} diff --git a/test/w3c/TriGTests/trig-syntax-file-01.trig b/test/w3c/TriGTests/trig-syntax-file-01.trig new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-file-01.trig diff --git a/test/w3c/TriGTests/trig-syntax-file-02.trig b/test/w3c/TriGTests/trig-syntax-file-02.trig new file mode 100644 index 00000000..e6d327d5 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-file-02.trig @@ -0,0 +1 @@ +#Empty file. diff --git a/test/w3c/TriGTests/trig-syntax-file-03.trig b/test/w3c/TriGTests/trig-syntax-file-03.trig new file mode 100644 index 00000000..a9ca0358 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-file-03.trig @@ -0,0 +1,2 @@ +#One comment, one empty line. + diff --git a/test/w3c/TriGTests/trig-syntax-kw-01.trig b/test/w3c/TriGTests/trig-syntax-kw-01.trig new file mode 100644 index 00000000..c1a426bb --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-kw-01.trig @@ -0,0 +1 @@ +{<s> <p> true .} diff --git a/test/w3c/TriGTests/trig-syntax-kw-02.trig b/test/w3c/TriGTests/trig-syntax-kw-02.trig new file mode 100644 index 00000000..7ceaee70 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-kw-02.trig @@ -0,0 +1 @@ +{<s> <p> false .} diff --git a/test/w3c/TriGTests/trig-syntax-kw-03.trig b/test/w3c/TriGTests/trig-syntax-kw-03.trig new file mode 100644 index 00000000..3c9e1405 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-kw-03.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s a :C .} diff --git a/test/w3c/TriGTests/trig-syntax-lists-01.trig b/test/w3c/TriGTests/trig-syntax-lists-01.trig new file mode 100644 index 00000000..ff2de971 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-lists-01.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p () .} diff --git a/test/w3c/TriGTests/trig-syntax-lists-02.trig b/test/w3c/TriGTests/trig-syntax-lists-02.trig new file mode 100644 index 00000000..cce118aa --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-lists-02.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p (1 "2" :o) .} diff --git a/test/w3c/TriGTests/trig-syntax-lists-03.trig b/test/w3c/TriGTests/trig-syntax-lists-03.trig new file mode 100644 index 00000000..ee59d4c1 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-lists-03.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{(1) :p (1) .} diff --git a/test/w3c/TriGTests/trig-syntax-lists-04.trig b/test/w3c/TriGTests/trig-syntax-lists-04.trig new file mode 100644 index 00000000..6b26b478 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-lists-04.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{(()) :p (()) .} diff --git a/test/w3c/TriGTests/trig-syntax-lists-05.trig b/test/w3c/TriGTests/trig-syntax-lists-05.trig new file mode 100644 index 00000000..9e103cdd --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-lists-05.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{(1 2 (1 2)) :p (( "a") "b" :o) .} diff --git a/test/w3c/TriGTests/trig-syntax-ln-colons.trig b/test/w3c/TriGTests/trig-syntax-ln-colons.trig new file mode 100644 index 00000000..d0fd5d45 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-ln-colons.trig @@ -0,0 +1,8 @@ +@prefix : <http://example/> . +{ +:s:1 :p:1 :o:1 . +:s::2 :p::2 :o::2 . +:3:s :3:p :3 . +::s ::p ::o . +::s: ::p: ::o: . +} diff --git a/test/w3c/TriGTests/trig-syntax-ln-dots.trig b/test/w3c/TriGTests/trig-syntax-ln-dots.trig new file mode 100644 index 00000000..f420e8a9 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-ln-dots.trig @@ -0,0 +1,6 @@ +@prefix : <http://example/> . +{ +:s.1 :p.1 :o.1 . +:s..2 :p..2 :o..2. +:3.s :3.p :3. +} diff --git a/test/w3c/TriGTests/trig-syntax-minimal-whitespace-01.trig b/test/w3c/TriGTests/trig-syntax-minimal-whitespace-01.trig new file mode 100644 index 00000000..f53451f8 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-minimal-whitespace-01.trig @@ -0,0 +1,21 @@ +BASE<http://example/base> +@base<http://example/base>. +PREFIX :<http://example/a/> +PREFIX b:<http://example/b/> +@prefix:<http://example/c/>. +@prefix +d:<http://example/d/>. + +{<http://example/s><http://example/p><http://example/o>.<http://example/s><http://example/p>"Alice".<http://example/s><http://example/p>_:o.} +{:s :p :o .:s :p"Alice".:s :p _:o.} +{b:s b:p b:o .b:s b:p"Alice".b:s b:p _:o.} +{_:s:p :o ._:s:p"Alice". _:s:p _:o .} +{[:p :o].[:p"Alice"].[:p _:o].} +{[:p(:o)].[:p(_:o)].[:p("Alice")].[:p(<http://example/o>)].} +{:s :p :o,:o2 .:s :p"Alice","Ted".:s :p _:o,_:o2.} +{:s :p :o;:p2 :o2 .:s :p"Alice";:p2 "Ted".:s :p _:o;:p2 _:o2.} +<http://example/g>{:s :p :o .:s :p"Alice".:s :p _:o.} +:s{:s :p :o .:s :p"Alice".:s :p _:o.} +_:s{:s :p :o .:s :p"Alice".:s :p _:o.} +:{: : :}{: : :}:{: : :} +:{():()}{():[]}:{[]:[]} diff --git a/test/w3c/TriGTests/trig-syntax-ns-dots.trig b/test/w3c/TriGTests/trig-syntax-ns-dots.trig new file mode 100644 index 00000000..7526a125 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-ns-dots.trig @@ -0,0 +1,2 @@ +@prefix e.g: <http://example/> . +{e.g:s e.g:p e.g:o .} diff --git a/test/w3c/TriGTests/trig-syntax-number-01.trig b/test/w3c/TriGTests/trig-syntax-number-01.trig new file mode 100644 index 00000000..45d9b177 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-01.trig @@ -0,0 +1 @@ +{<s> <p> 123 .} diff --git a/test/w3c/TriGTests/trig-syntax-number-02.trig b/test/w3c/TriGTests/trig-syntax-number-02.trig new file mode 100644 index 00000000..6cbb9b49 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-02.trig @@ -0,0 +1 @@ +{<s> <p> -123 .} diff --git a/test/w3c/TriGTests/trig-syntax-number-03.trig b/test/w3c/TriGTests/trig-syntax-number-03.trig new file mode 100644 index 00000000..69021b45 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-03.trig @@ -0,0 +1 @@ +{<s> <p> +123 .} diff --git a/test/w3c/TriGTests/trig-syntax-number-04.trig b/test/w3c/TriGTests/trig-syntax-number-04.trig new file mode 100644 index 00000000..f826907c --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-04.trig @@ -0,0 +1,2 @@ +# This is a decimal. +{<s> <p> 123.0 . } diff --git a/test/w3c/TriGTests/trig-syntax-number-05.trig b/test/w3c/TriGTests/trig-syntax-number-05.trig new file mode 100644 index 00000000..72d44600 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-05.trig @@ -0,0 +1,2 @@ +# This is a decimal. +{<s> <p> .1 . } diff --git a/test/w3c/TriGTests/trig-syntax-number-06.trig b/test/w3c/TriGTests/trig-syntax-number-06.trig new file mode 100644 index 00000000..adcbffd8 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-06.trig @@ -0,0 +1,2 @@ +# This is a decimal. +{<s> <p> -123.0 . } diff --git a/test/w3c/TriGTests/trig-syntax-number-07.trig b/test/w3c/TriGTests/trig-syntax-number-07.trig new file mode 100644 index 00000000..a4802735 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-07.trig @@ -0,0 +1,2 @@ +# This is a decimal. +{<s> <p> +123.0 . } diff --git a/test/w3c/TriGTests/trig-syntax-number-08.trig b/test/w3c/TriGTests/trig-syntax-number-08.trig new file mode 100644 index 00000000..b0093500 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-08.trig @@ -0,0 +1,2 @@ +# This is an integer +{<s> <p> 123.} diff --git a/test/w3c/TriGTests/trig-syntax-number-09.trig b/test/w3c/TriGTests/trig-syntax-number-09.trig new file mode 100644 index 00000000..157456d2 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-09.trig @@ -0,0 +1 @@ +{<s> <p> 123.0e1 .} diff --git a/test/w3c/TriGTests/trig-syntax-number-10.trig b/test/w3c/TriGTests/trig-syntax-number-10.trig new file mode 100644 index 00000000..1426fda6 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-10.trig @@ -0,0 +1 @@ +{<s> <p> -123e-1 .} diff --git a/test/w3c/TriGTests/trig-syntax-number-11.trig b/test/w3c/TriGTests/trig-syntax-number-11.trig new file mode 100644 index 00000000..6ec517dd --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-number-11.trig @@ -0,0 +1 @@ +{<s> <p> 123.E+1 .} diff --git a/test/w3c/TriGTests/trig-syntax-pname-esc-01.trig b/test/w3c/TriGTests/trig-syntax-pname-esc-01.trig new file mode 100644 index 00000000..4c7dd31d --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-pname-esc-01.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p :\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\_\%AA .} diff --git a/test/w3c/TriGTests/trig-syntax-pname-esc-02.trig b/test/w3c/TriGTests/trig-syntax-pname-esc-02.trig new file mode 100644 index 00000000..2e6bd389 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-pname-esc-02.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p :0123\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\_\%AA123 .} diff --git a/test/w3c/TriGTests/trig-syntax-pname-esc-03.trig b/test/w3c/TriGTests/trig-syntax-pname-esc-03.trig new file mode 100644 index 00000000..433b9955 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-pname-esc-03.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:xyz\~ :abc\.: : .} diff --git a/test/w3c/TriGTests/trig-syntax-prefix-01.trig b/test/w3c/TriGTests/trig-syntax-prefix-01.trig new file mode 100644 index 00000000..89e08cc7 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-prefix-01.trig @@ -0,0 +1 @@ +@prefix : <http://example/> . diff --git a/test/w3c/TriGTests/trig-syntax-prefix-02.trig b/test/w3c/TriGTests/trig-syntax-prefix-02.trig new file mode 100644 index 00000000..5869e8bd --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-prefix-02.trig @@ -0,0 +1 @@ +PreFIX : <http://example/> diff --git a/test/w3c/TriGTests/trig-syntax-prefix-03.trig b/test/w3c/TriGTests/trig-syntax-prefix-03.trig new file mode 100644 index 00000000..beb18c03 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-prefix-03.trig @@ -0,0 +1,2 @@ +PREFIX : <http://example/> +{:s :p :123 .} diff --git a/test/w3c/TriGTests/trig-syntax-prefix-04.trig b/test/w3c/TriGTests/trig-syntax-prefix-04.trig new file mode 100644 index 00000000..682cf0ae --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-prefix-04.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p :%20 .} diff --git a/test/w3c/TriGTests/trig-syntax-prefix-05.trig b/test/w3c/TriGTests/trig-syntax-prefix-05.trig new file mode 100644 index 00000000..7c463e7c --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-prefix-05.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{: : : .} diff --git a/test/w3c/TriGTests/trig-syntax-prefix-06.trig b/test/w3c/TriGTests/trig-syntax-prefix-06.trig new file mode 100644 index 00000000..b7a71c9a --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-prefix-06.trig @@ -0,0 +1,4 @@ +# colon is a legal pname character +@prefix : <http://example/> . +@prefix x: <http://example/> . +{:a:b:c x:d:e:f :::: .} diff --git a/test/w3c/TriGTests/trig-syntax-prefix-07.trig b/test/w3c/TriGTests/trig-syntax-prefix-07.trig new file mode 100644 index 00000000..3337f3eb --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-prefix-07.trig @@ -0,0 +1,3 @@ +# dash is a legal pname character +@prefix x: <http://example/> . +{x:a-b-c x:p x:o .} diff --git a/test/w3c/TriGTests/trig-syntax-prefix-08.trig b/test/w3c/TriGTests/trig-syntax-prefix-08.trig new file mode 100644 index 00000000..669573aa --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-prefix-08.trig @@ -0,0 +1,3 @@ +# underscore is a legal pname character +@prefix x: <http://example/> . +{x:_ x:p_1 x:o .} diff --git a/test/w3c/TriGTests/trig-syntax-prefix-09.trig b/test/w3c/TriGTests/trig-syntax-prefix-09.trig new file mode 100644 index 00000000..ba50306c --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-prefix-09.trig @@ -0,0 +1,4 @@ +# percents +@prefix : <http://example/> . +@prefix x: <http://example/> . +{:a%3E x:%25 :a%3Eb .} diff --git a/test/w3c/TriGTests/trig-syntax-str-esc-01.trig b/test/w3c/TriGTests/trig-syntax-str-esc-01.trig new file mode 100644 index 00000000..5db8be67 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-str-esc-01.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> "a\n" .} diff --git a/test/w3c/TriGTests/trig-syntax-str-esc-02.trig b/test/w3c/TriGTests/trig-syntax-str-esc-02.trig new file mode 100644 index 00000000..57cbdd6d --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-str-esc-02.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> "a\u0020b" .} diff --git a/test/w3c/TriGTests/trig-syntax-str-esc-03.trig b/test/w3c/TriGTests/trig-syntax-str-esc-03.trig new file mode 100644 index 00000000..55f9b26f --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-str-esc-03.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> "a\U00000020b" .} diff --git a/test/w3c/TriGTests/trig-syntax-string-01.trig b/test/w3c/TriGTests/trig-syntax-string-01.trig new file mode 100644 index 00000000..72230b7f --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-01.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> "string" .} diff --git a/test/w3c/TriGTests/trig-syntax-string-02.trig b/test/w3c/TriGTests/trig-syntax-string-02.trig new file mode 100644 index 00000000..a9ca8697 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-02.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> "string"@en .} diff --git a/test/w3c/TriGTests/trig-syntax-string-03.trig b/test/w3c/TriGTests/trig-syntax-string-03.trig new file mode 100644 index 00000000..9dc53ef6 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-03.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> "string"@en-uk .} diff --git a/test/w3c/TriGTests/trig-syntax-string-04.trig b/test/w3c/TriGTests/trig-syntax-string-04.trig new file mode 100644 index 00000000..d5859b22 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-04.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> 'string' .} diff --git a/test/w3c/TriGTests/trig-syntax-string-05.trig b/test/w3c/TriGTests/trig-syntax-string-05.trig new file mode 100644 index 00000000..10292cca --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-05.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> 'string'@en .} diff --git a/test/w3c/TriGTests/trig-syntax-string-06.trig b/test/w3c/TriGTests/trig-syntax-string-06.trig new file mode 100644 index 00000000..2ab1e863 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-06.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> 'string'@en-uk .} diff --git a/test/w3c/TriGTests/trig-syntax-string-07.trig b/test/w3c/TriGTests/trig-syntax-string-07.trig new file mode 100644 index 00000000..98edec55 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-07.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> """abc""def''ghi""" .} diff --git a/test/w3c/TriGTests/trig-syntax-string-08.trig b/test/w3c/TriGTests/trig-syntax-string-08.trig new file mode 100644 index 00000000..3612dec1 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-08.trig @@ -0,0 +1,2 @@ +{<http://example/s> <http://example/p> """abc +def""" .} diff --git a/test/w3c/TriGTests/trig-syntax-string-09.trig b/test/w3c/TriGTests/trig-syntax-string-09.trig new file mode 100644 index 00000000..5d98aea6 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-09.trig @@ -0,0 +1,2 @@ +{<http://example/s> <http://example/p> '''abc +def''' .} diff --git a/test/w3c/TriGTests/trig-syntax-string-10.trig b/test/w3c/TriGTests/trig-syntax-string-10.trig new file mode 100644 index 00000000..f6112a2e --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-10.trig @@ -0,0 +1,2 @@ +{<http://example/s> <http://example/p> """abc +def"""@en .} diff --git a/test/w3c/TriGTests/trig-syntax-string-11.trig b/test/w3c/TriGTests/trig-syntax-string-11.trig new file mode 100644 index 00000000..450dc549 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-string-11.trig @@ -0,0 +1,2 @@ +{<http://example/s> <http://example/p> '''abc +def'''@en .} diff --git a/test/w3c/TriGTests/trig-syntax-struct-01.trig b/test/w3c/TriGTests/trig-syntax-struct-01.trig new file mode 100644 index 00000000..52c26c1c --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-struct-01.trig @@ -0,0 +1,2 @@ +@prefix : <http://example/> . +{:s :p :o1 , :o2 .} diff --git a/test/w3c/TriGTests/trig-syntax-struct-02.trig b/test/w3c/TriGTests/trig-syntax-struct-02.trig new file mode 100644 index 00000000..24535fad --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-struct-02.trig @@ -0,0 +1,4 @@ +@prefix : <http://example/> . +{:s :p1 :o1 ; + :p2 :o2 . +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-syntax-struct-03.trig b/test/w3c/TriGTests/trig-syntax-struct-03.trig new file mode 100644 index 00000000..43d81074 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-struct-03.trig @@ -0,0 +1,5 @@ +@prefix : <http://example/> . +{:s :p1 :o1 ; + :p2 :o2 ; + . +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-syntax-struct-04.trig b/test/w3c/TriGTests/trig-syntax-struct-04.trig new file mode 100644 index 00000000..5a80fdf7 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-struct-04.trig @@ -0,0 +1,5 @@ +@prefix : <http://example/> . +{:s :p1 :o1 ;; + :p2 :o2 + . +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-syntax-struct-05.trig b/test/w3c/TriGTests/trig-syntax-struct-05.trig new file mode 100644 index 00000000..3a756523 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-struct-05.trig @@ -0,0 +1,5 @@ +@prefix : <http://example/> . +{:s :p1 :o1 ; + :p2 :o2 ;; + . +}
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-syntax-struct-06.trig b/test/w3c/TriGTests/trig-syntax-struct-06.trig new file mode 100644 index 00000000..81a5135c --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-struct-06.trig @@ -0,0 +1,2 @@ +# No DOT +{<http://example/s> <http://example/p> <http://example/o>} diff --git a/test/w3c/TriGTests/trig-syntax-struct-07.trig b/test/w3c/TriGTests/trig-syntax-struct-07.trig new file mode 100644 index 00000000..45f09d34 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-struct-07.trig @@ -0,0 +1,2 @@ +# Trailing ; +{<http://example/s> <http://example/p> <http://example/o> ;} diff --git a/test/w3c/TriGTests/trig-syntax-uri-01.trig b/test/w3c/TriGTests/trig-syntax-uri-01.trig new file mode 100644 index 00000000..2f634298 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-uri-01.trig @@ -0,0 +1 @@ +{<http://example/s> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-uri-02.trig b/test/w3c/TriGTests/trig-syntax-uri-02.trig new file mode 100644 index 00000000..2276868e --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-uri-02.trig @@ -0,0 +1,2 @@ +# x53 is capital S +{<http://example/\u0053> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-uri-03.trig b/test/w3c/TriGTests/trig-syntax-uri-03.trig new file mode 100644 index 00000000..6467687a --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-uri-03.trig @@ -0,0 +1,2 @@ +# x53 is capital S +{<http://example/\U00000053> <http://example/p> <http://example/o> .} diff --git a/test/w3c/TriGTests/trig-syntax-uri-04.trig b/test/w3c/TriGTests/trig-syntax-uri-04.trig new file mode 100644 index 00000000..d4a6ed29 --- /dev/null +++ b/test/w3c/TriGTests/trig-syntax-uri-04.trig @@ -0,0 +1,3 @@ +# IRI with all chars in it. +{<http://example/s> <http://example/p> +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> .} diff --git a/test/w3c/TriGTests/trig-turtle-01.trig b/test/w3c/TriGTests/trig-turtle-01.trig new file mode 100644 index 00000000..785f04cb --- /dev/null +++ b/test/w3c/TriGTests/trig-turtle-01.trig @@ -0,0 +1,8 @@ +# Turtle is TriG +PREFIX : <http://example/> + +:s :p :o ; + :q 123 , 456 . + +:s1 :p1 "more" . + diff --git a/test/w3c/TriGTests/trig-turtle-02.trig b/test/w3c/TriGTests/trig-turtle-02.trig new file mode 100644 index 00000000..4dd160b6 --- /dev/null +++ b/test/w3c/TriGTests/trig-turtle-02.trig @@ -0,0 +1,9 @@ +# Turtle is TriG +PREFIX : <http://example/> + +:s :p :o ; + :q 123 , 456 . + +PREFIX : <http://example/ns#> + +:s :p :o . diff --git a/test/w3c/TriGTests/trig-turtle-03.trig b/test/w3c/TriGTests/trig-turtle-03.trig new file mode 100644 index 00000000..b58574d1 --- /dev/null +++ b/test/w3c/TriGTests/trig-turtle-03.trig @@ -0,0 +1,5 @@ +# Turtle is TriG +prefix : <http://example/> + +[ :p 123 ; :q 456 ] :r 1 . + diff --git a/test/w3c/TriGTests/trig-turtle-04.trig b/test/w3c/TriGTests/trig-turtle-04.trig new file mode 100644 index 00000000..50ed5133 --- /dev/null +++ b/test/w3c/TriGTests/trig-turtle-04.trig @@ -0,0 +1,5 @@ +# Turtle is TriG +prefix : <http://example/> + +[] :p :o . + diff --git a/test/w3c/TriGTests/trig-turtle-05.trig b/test/w3c/TriGTests/trig-turtle-05.trig new file mode 100644 index 00000000..06aaf659 --- /dev/null +++ b/test/w3c/TriGTests/trig-turtle-05.trig @@ -0,0 +1,6 @@ +# Turtle is TriG +prefix : <http://example/> + +[ :p :o ] . + + diff --git a/test/w3c/TriGTests/trig-turtle-06.trig b/test/w3c/TriGTests/trig-turtle-06.trig new file mode 100644 index 00000000..b69fddeb --- /dev/null +++ b/test/w3c/TriGTests/trig-turtle-06.trig @@ -0,0 +1,4 @@ +# Turtle is TriG +prefix : <http://example/> + +( 1 2 3 ) :p ( 4 5 6 ) .
\ No newline at end of file diff --git a/test/w3c/TriGTests/trig-turtle-bad-01.trig b/test/w3c/TriGTests/trig-turtle-bad-01.trig new file mode 100644 index 00000000..1bad23f5 --- /dev/null +++ b/test/w3c/TriGTests/trig-turtle-bad-01.trig @@ -0,0 +1,5 @@ +# Turtle is TriG + +# Trailing dot required in Turtle block. + +:s :p :o diff --git a/test/w3c/TriGTests/trig-turtle-bad-02.trig b/test/w3c/TriGTests/trig-turtle-bad-02.trig new file mode 100644 index 00000000..f46fc1c5 --- /dev/null +++ b/test/w3c/TriGTests/trig-turtle-bad-02.trig @@ -0,0 +1,6 @@ +# Turtle is TriG + +# N-Quads. + +:s :p :o :g . + diff --git a/test/w3c/TriGTests/two_LITERAL_LONG2s.nq b/test/w3c/TriGTests/two_LITERAL_LONG2s.nq new file mode 100644 index 00000000..af94fe6a --- /dev/null +++ b/test/w3c/TriGTests/two_LITERAL_LONG2s.nq @@ -0,0 +1,2 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "first long literal" . +<http://example.org/ex#c> <http://example.org/ex#d> "second long literal" . diff --git a/test/w3c/TriGTests/two_LITERAL_LONG2s.trig b/test/w3c/TriGTests/two_LITERAL_LONG2s.trig new file mode 100644 index 00000000..93aea524 --- /dev/null +++ b/test/w3c/TriGTests/two_LITERAL_LONG2s.trig @@ -0,0 +1,6 @@ +# Test long literal twice to ensure it does not over-quote +@prefix : <http://example.org/ex#> . +{ +:a :b """first long literal""" . +:c :d """second long literal""" . +} diff --git a/test/w3c/TriGTests/underscore_in_localName.nq b/test/w3c/TriGTests/underscore_in_localName.nq new file mode 100644 index 00000000..f9d0c4f1 --- /dev/null +++ b/test/w3c/TriGTests/underscore_in_localName.nq @@ -0,0 +1 @@ +<http://a.example/s_> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TriGTests/underscore_in_localName.trig b/test/w3c/TriGTests/underscore_in_localName.trig new file mode 100644 index 00000000..e10726bd --- /dev/null +++ b/test/w3c/TriGTests/underscore_in_localName.trig @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +{p:s_ <http://a.example/p> <http://a.example/o> .} diff --git a/test/w3c/TurtleTests/HYPHEN_MINUS_in_localName.nt b/test/w3c/TurtleTests/HYPHEN_MINUS_in_localName.nt new file mode 100644 index 00000000..25546b38 --- /dev/null +++ b/test/w3c/TurtleTests/HYPHEN_MINUS_in_localName.nt @@ -0,0 +1 @@ +<http://a.example/s-> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/HYPHEN_MINUS_in_localName.ttl b/test/w3c/TurtleTests/HYPHEN_MINUS_in_localName.ttl new file mode 100644 index 00000000..0340b8c8 --- /dev/null +++ b/test/w3c/TurtleTests/HYPHEN_MINUS_in_localName.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s- <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/IRIREF_datatype.nt b/test/w3c/TurtleTests/IRIREF_datatype.nt new file mode 100644 index 00000000..c333a5f6 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/IRIREF_datatype.ttl b/test/w3c/TurtleTests/IRIREF_datatype.ttl new file mode 100644 index 00000000..c333a5f6 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/IRI_spo.nt b/test/w3c/TurtleTests/IRI_spo.nt new file mode 100644 index 00000000..01125e50 --- /dev/null +++ b/test/w3c/TurtleTests/IRI_spo.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/IRI_subject.ttl b/test/w3c/TurtleTests/IRI_subject.ttl new file mode 100644 index 00000000..01125e50 --- /dev/null +++ b/test/w3c/TurtleTests/IRI_subject.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/IRI_with_all_punctuation.nt b/test/w3c/TurtleTests/IRI_with_all_punctuation.nt new file mode 100644 index 00000000..94158773 --- /dev/null +++ b/test/w3c/TurtleTests/IRI_with_all_punctuation.nt @@ -0,0 +1 @@ +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/IRI_with_all_punctuation.ttl b/test/w3c/TurtleTests/IRI_with_all_punctuation.ttl new file mode 100644 index 00000000..94158773 --- /dev/null +++ b/test/w3c/TurtleTests/IRI_with_all_punctuation.ttl @@ -0,0 +1 @@ +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/IRI_with_eight_digit_numeric_escape.ttl b/test/w3c/TurtleTests/IRI_with_eight_digit_numeric_escape.ttl new file mode 100644 index 00000000..434034e7 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/IRI_with_four_digit_numeric_escape.ttl b/test/w3c/TurtleTests/IRI_with_four_digit_numeric_escape.ttl new file mode 100644 index 00000000..4163636e --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/LICENSE b/test/w3c/TurtleTests/LICENSE new file mode 100644 index 00000000..1ac8f4e1 --- /dev/null +++ b/test/w3c/TurtleTests/LICENSE @@ -0,0 +1,117 @@ +Summary +======= + +Distributed under both the W3C Test Suite License[1] and the W3C 3-clause BSD +License[2]. To contribute to a W3C Test Suite, see the policies and contribution +forms [3] + +1. http://www.w3.org/Consortium/Legal/2008/04-testsuite-license +2. http://www.w3.org/Consortium/Legal/2008/03-bsd-license +3. http://www.w3.org/2004/10/27-testcases + +DISCLAIMER + +UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS +AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT +HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, +BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE +SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT +INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. +COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE +OR IMPLEMENTATION OF THE CONTENTS THEREOF. + + +W3C Test Suite License +====================== + +This document, Test Suites and other documents that link to this statement are +provided by the copyright holders under the following license: By using and/or +copying this document, or the W3C document from which this statement is linked, +you (the licensee) agree that you have read, understood, and will comply with +the following terms and conditions: + +Permission to copy, and distribute the contents of this document, or the W3C +document from which this statement is linked, in any medium for any purpose and +without fee or royalty is hereby granted, provided that you include the +following on ALL copies of the document, or portions thereof, that you use: + +1 A link or URL to the original W3C document. + +2 The pre-existing copyright notice of the original author, or if it doesn't + exist, a notice (hypertext is preferred, but a textual representation is + permitted) of the form: "Copyright © [$date-of-document] World Wide Web + Consortium, (Massachusetts Institute of Technology, European Research + Consortium for Informatics and Mathematics, Keio University) and others. All + Rights + Reserved. http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html" + +3 If it exists, the STATUS of the W3C document. + +4 When space permits, inclusion of the full text of this NOTICE should be + provided. We request that authorship attribution be provided in any software, + documents, or other items or products that you create pursuant to the + implementation of the contents of this document, or any portion thereof. + + +No right to create modifications or derivatives of W3C documents is granted +pursuant to this license. However, if additional requirements (documented in the +Copyright FAQ) are satisfied, the right to create modifications or derivatives +is sometimes granted by the W3C to individuals complying with those +requirements. + +If a Test Suite distinguishes the test harness (or, framework for navigation) +and the actual tests, permission is given to remove or alter the harness or +navigation if the Test Suite in question allows to do so. The tests themselves +shall NOT be changed in any way. + +The name and trademarks of W3C and other copyright holders may NOT be used in +advertising or publicity pertaining to this document or other documents that +link to this statement without specific, written prior permission. Title to +copyright in this document will at all times remain with copyright +holders. Permission is given to use the trademarked string W3C within claims of +performance concerning W3C Specifications or features described therein, and +there only, if the test suite so authorizes. + +THIS WORK IS PROVIDED BY W3C, MIT, ERCIM, KEIO UNIVERSITY, THE COPYRIGHT HOLDERS +AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT +NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL W3C, MIT, ERCIM, KEIO +UNIVERSITY, THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +W3C 3-clause BSD License +======================== + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1 Redistributions of works must retain the original copyright notice, this list + of conditions and the following disclaimer. + +2 Redistributions in binary form must reproduce the original copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3 Neither the name of the W3C nor the names of its contributors may be used to + endorse or promote products derived from this work without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/test/w3c/TurtleTests/LITERAL1.nt b/test/w3c/TurtleTests/LITERAL1.nt new file mode 100644 index 00000000..3aba89e4 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL1.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x" . diff --git a/test/w3c/TurtleTests/LITERAL1.ttl b/test/w3c/TurtleTests/LITERAL1.ttl new file mode 100644 index 00000000..725a2403 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL1.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 'x' . diff --git a/test/w3c/TurtleTests/LITERAL1_all_controls.nt b/test/w3c/TurtleTests/LITERAL1_all_controls.nt new file mode 100644 index 00000000..91c8af14 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL1_all_controls.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" . diff --git a/test/w3c/TurtleTests/LITERAL1_all_controls.ttl b/test/w3c/TurtleTests/LITERAL1_all_controls.ttl Binary files differnew file mode 100644 index 00000000..dbf3721c --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL1_all_controls.ttl diff --git a/test/w3c/TurtleTests/LITERAL1_all_punctuation.nt b/test/w3c/TurtleTests/LITERAL1_all_punctuation.nt new file mode 100644 index 00000000..c25d818f --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL1_all_punctuation.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> " !\"#$%&():;<=>?@[]^_`{|}~" . diff --git a/test/w3c/TurtleTests/LITERAL1_all_punctuation.ttl b/test/w3c/TurtleTests/LITERAL1_all_punctuation.ttl new file mode 100644 index 00000000..7b1d9e54 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL1_all_punctuation.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ' !"#$%&():;<=>?@[]^_`{|}~' . diff --git a/test/w3c/TurtleTests/LITERAL1_ascii_boundaries.nt b/test/w3c/TurtleTests/LITERAL1_ascii_boundaries.nt new file mode 100644 index 00000000..69c41447 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL1_ascii_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E&([]\u007F" . diff --git a/test/w3c/TurtleTests/LITERAL1_ascii_boundaries.ttl b/test/w3c/TurtleTests/LITERAL1_ascii_boundaries.ttl Binary files differnew file mode 100644 index 00000000..7d65396f --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL1_ascii_boundaries.ttl diff --git a/test/w3c/TurtleTests/LITERAL1_with_UTF8_boundaries.ttl b/test/w3c/TurtleTests/LITERAL1_with_UTF8_boundaries.ttl new file mode 100644 index 00000000..b72eb040 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL1_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '߿ࠀက쿿퀀�𐀀' . diff --git a/test/w3c/TurtleTests/LITERAL2.ttl b/test/w3c/TurtleTests/LITERAL2.ttl new file mode 100644 index 00000000..3aba89e4 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL2.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x" . diff --git a/test/w3c/TurtleTests/LITERAL2_ascii_boundaries.nt b/test/w3c/TurtleTests/LITERAL2_ascii_boundaries.nt new file mode 100644 index 00000000..270a51e3 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL2_ascii_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000\t\u000B\u000C\u000E!#[]\u007F" . diff --git a/test/w3c/TurtleTests/LITERAL2_ascii_boundaries.ttl b/test/w3c/TurtleTests/LITERAL2_ascii_boundaries.ttl Binary files differnew file mode 100644 index 00000000..90b4cd69 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL2_ascii_boundaries.ttl diff --git a/test/w3c/TurtleTests/LITERAL2_with_UTF8_boundaries.ttl b/test/w3c/TurtleTests/LITERAL2_with_UTF8_boundaries.ttl new file mode 100644 index 00000000..0e1616db --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL2_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "߿ࠀက쿿퀀�𐀀" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG1.ttl b/test/w3c/TurtleTests/LITERAL_LONG1.ttl new file mode 100644 index 00000000..ab6baa93 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG1.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''x''' . diff --git a/test/w3c/TurtleTests/LITERAL_LONG1_ascii_boundaries.nt b/test/w3c/TurtleTests/LITERAL_LONG1_ascii_boundaries.nt new file mode 100644 index 00000000..a592b4a1 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG1_ascii_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000&([]\u007F" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG1_ascii_boundaries.ttl b/test/w3c/TurtleTests/LITERAL_LONG1_ascii_boundaries.ttl Binary files differnew file mode 100644 index 00000000..f943e249 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG1_ascii_boundaries.ttl diff --git a/test/w3c/TurtleTests/LITERAL_LONG1_with_1_squote.nt b/test/w3c/TurtleTests/LITERAL_LONG1_with_1_squote.nt new file mode 100644 index 00000000..acf7f58f --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG1_with_1_squote.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x'y" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG1_with_1_squote.ttl b/test/w3c/TurtleTests/LITERAL_LONG1_with_1_squote.ttl new file mode 100644 index 00000000..3b93046b --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG1_with_1_squote.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''x'y''' . diff --git a/test/w3c/TurtleTests/LITERAL_LONG1_with_2_squotes.nt b/test/w3c/TurtleTests/LITERAL_LONG1_with_2_squotes.nt new file mode 100644 index 00000000..8ddc52e8 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG1_with_2_squotes.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x''y" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG1_with_2_squotes.ttl b/test/w3c/TurtleTests/LITERAL_LONG1_with_2_squotes.ttl new file mode 100644 index 00000000..1219bad3 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG1_with_2_squotes.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''x''y''' . diff --git a/test/w3c/TurtleTests/LITERAL_LONG1_with_UTF8_boundaries.ttl b/test/w3c/TurtleTests/LITERAL_LONG1_with_UTF8_boundaries.ttl new file mode 100644 index 00000000..e04b675e --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG1_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''߿ࠀက쿿퀀�𐀀''' . diff --git a/test/w3c/TurtleTests/LITERAL_LONG2.ttl b/test/w3c/TurtleTests/LITERAL_LONG2.ttl new file mode 100644 index 00000000..e37bf4a3 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """x""" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG2_ascii_boundaries.nt b/test/w3c/TurtleTests/LITERAL_LONG2_ascii_boundaries.nt new file mode 100644 index 00000000..28785039 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2_ascii_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0000!#[]\u007F" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG2_ascii_boundaries.ttl b/test/w3c/TurtleTests/LITERAL_LONG2_ascii_boundaries.ttl Binary files differnew file mode 100644 index 00000000..e919865f --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2_ascii_boundaries.ttl diff --git a/test/w3c/TurtleTests/LITERAL_LONG2_with_1_squote.nt b/test/w3c/TurtleTests/LITERAL_LONG2_with_1_squote.nt new file mode 100644 index 00000000..05a1fd3a --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2_with_1_squote.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"y" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG2_with_1_squote.ttl b/test/w3c/TurtleTests/LITERAL_LONG2_with_1_squote.ttl new file mode 100644 index 00000000..80e389b8 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2_with_1_squote.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """x"y""" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG2_with_2_squotes.nt b/test/w3c/TurtleTests/LITERAL_LONG2_with_2_squotes.nt new file mode 100644 index 00000000..3e69dc10 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2_with_2_squotes.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "x\"\"y" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG2_with_2_squotes.ttl b/test/w3c/TurtleTests/LITERAL_LONG2_with_2_squotes.ttl new file mode 100644 index 00000000..2f14f5b3 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2_with_2_squotes.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """x""y""" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.nt b/test/w3c/TurtleTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.nt new file mode 100644 index 00000000..586e364d --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.nt @@ -0,0 +1 @@ +<http://example.org/ns#s> <http://example.org/ns#p1> "test-\\" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl b/test/w3c/TurtleTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl new file mode 100644 index 00000000..2206e33b --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org/ns#> . + +:s :p1 """test-\\""" . diff --git a/test/w3c/TurtleTests/LITERAL_LONG2_with_UTF8_boundaries.ttl b/test/w3c/TurtleTests/LITERAL_LONG2_with_UTF8_boundaries.ttl new file mode 100644 index 00000000..644b32d8 --- /dev/null +++ b/test/w3c/TurtleTests/LITERAL_LONG2_with_UTF8_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """߿ࠀက쿿퀀�𐀀""" . diff --git a/test/w3c/TurtleTests/LITERAL_with_UTF8_boundaries.nt b/test/w3c/TurtleTests/LITERAL_with_UTF8_boundaries.nt new file mode 100644 index 00000000..47a2527a --- /dev/null +++ b/test/w3c/TurtleTests/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\uFFFD\U00010000\U0003FFFD\U00040000\U000FFFFD\U00100000\U0010FFFD" . diff --git a/test/w3c/TurtleTests/README b/test/w3c/TurtleTests/README new file mode 100644 index 00000000..1b049b9c --- /dev/null +++ b/test/w3c/TurtleTests/README @@ -0,0 +1,65 @@ +This README is for the W3C RDF Working Group's Turtle test suite. +This test suite contains four kinds of tests: + + 132 Evaluation (rdft:TestTurtleEval) - a pair of an input turtle + file and reference ntriples file. + + 77 Positive syntax (rdft:TestTurtlePositiveSyntax) - an input turtle + file with no syntax errors. + + 78 Negative syntax (rdft:TestTurtleNegativeSyntax) - an input turtle + file with at least one syntax error. + + 4 Negative Evaluation (rdft:TestTurtleNegativeEval) - a pair of an + input turtle file and reference ntriples file. These tests have the + same properties as rdft:TestTurtleNegativeSyntax. + +The manifest.ttl file in this directory lists all of the tests in the +RDF WG's Turtle test suite. Each test is one of the above tests. All +tests have a name (mf:name) and an input (mf:action). The Evaluation +tests have an expected result (mf:result). + +• An implementation passes an Evaluation test if it parses the input + into a graph, parses the expecte result into another graph, and + those two graphs are isomorphic (see + <http://www.w3.org/TR/rdf11-concepts/#graph-isomorphism>). + +• An implementation passes a positive syntax test if it parses the + input. + +• An implementation passes a negative syntax test if it fails to parse + the input. + + +RELATIVE IRI RESOLUTION: + +The home of the test suite is <http://www.w3.org/2013/TurtleTests/>. +Per RFC 3986 section 5.1.3, the base IRI for parsing each file is the +retrieval IRI for that file. For example, the tests turtle-subm-01 and +turtle-subm-27 require relative IRI resolution against a base of +<http://www.w3.org/2013/TurtleTests/turtle-subm-01.ttl> and +<http://www.w3.org/2013/TurtleTests/turtle-subm-27.ttl> respectively. + + +CHARACTER ENCODING: + +The Turtle language uses UTF-8 encoding. The following tests include +non-ascii characters: + 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 * + labeled_blank_node_with_PN_CHARS_BASE_character_boundaries * + LITERAL1_with_UTF8_boundaries * + LITERAL_LONG1_with_UTF8_boundaries * + LITERAL2_with_UTF8_boundaries * + LITERAL_LONG2_with_UTF8_boundaries * + +Those marked with a * include characters with codepoints greater than +U+FFFD and are thus expressed as a pair of surrogate characters when +represented in UCS2. + + +See http://www.w3.org/2011/rdf-wg/wiki/Turtle_Test_Suite for more details. + + +Eric Prud'hommeaux <eric+turtle@w3.org> - 11 June 2013. diff --git a/test/w3c/TurtleTests/SPARQL_style_base.ttl b/test/w3c/TurtleTests/SPARQL_style_base.ttl new file mode 100644 index 00000000..d134ea81 --- /dev/null +++ b/test/w3c/TurtleTests/SPARQL_style_base.ttl @@ -0,0 +1,2 @@ +BASE <http://a.example/> +<s> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/SPARQL_style_prefix.ttl b/test/w3c/TurtleTests/SPARQL_style_prefix.ttl new file mode 100644 index 00000000..e7e4a3da --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/anonymous_blank_node_object.nt b/test/w3c/TurtleTests/anonymous_blank_node_object.nt new file mode 100644 index 00000000..89e88f63 --- /dev/null +++ b/test/w3c/TurtleTests/anonymous_blank_node_object.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:b1 . diff --git a/test/w3c/TurtleTests/anonymous_blank_node_object.ttl b/test/w3c/TurtleTests/anonymous_blank_node_object.ttl new file mode 100644 index 00000000..0b2ce436 --- /dev/null +++ b/test/w3c/TurtleTests/anonymous_blank_node_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> [] . diff --git a/test/w3c/TurtleTests/anonymous_blank_node_subject.nt b/test/w3c/TurtleTests/anonymous_blank_node_subject.nt new file mode 100644 index 00000000..b48df9a7 --- /dev/null +++ b/test/w3c/TurtleTests/anonymous_blank_node_subject.nt @@ -0,0 +1 @@ +_:b1 <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/anonymous_blank_node_subject.ttl b/test/w3c/TurtleTests/anonymous_blank_node_subject.ttl new file mode 100644 index 00000000..17b378c2 --- /dev/null +++ b/test/w3c/TurtleTests/anonymous_blank_node_subject.ttl @@ -0,0 +1 @@ +[] <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/bareword_a_predicate.nt b/test/w3c/TurtleTests/bareword_a_predicate.nt new file mode 100644 index 00000000..afe14252 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/bareword_a_predicate.ttl b/test/w3c/TurtleTests/bareword_a_predicate.ttl new file mode 100644 index 00000000..66fa0d0c --- /dev/null +++ b/test/w3c/TurtleTests/bareword_a_predicate.ttl @@ -0,0 +1 @@ +<http://a.example/s> a <http://a.example/o> . diff --git a/test/w3c/TurtleTests/bareword_decimal.nt b/test/w3c/TurtleTests/bareword_decimal.nt new file mode 100644 index 00000000..e177a9c6 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/bareword_decimal.ttl b/test/w3c/TurtleTests/bareword_decimal.ttl new file mode 100644 index 00000000..20955d51 --- /dev/null +++ b/test/w3c/TurtleTests/bareword_decimal.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1.0 . diff --git a/test/w3c/TurtleTests/bareword_double.nt b/test/w3c/TurtleTests/bareword_double.nt new file mode 100644 index 00000000..dd8be2fd --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/bareword_double.ttl b/test/w3c/TurtleTests/bareword_double.ttl new file mode 100644 index 00000000..7ce25b11 --- /dev/null +++ b/test/w3c/TurtleTests/bareword_double.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1E0 . diff --git a/test/w3c/TurtleTests/bareword_integer.ttl b/test/w3c/TurtleTests/bareword_integer.ttl new file mode 100644 index 00000000..087e71b6 --- /dev/null +++ b/test/w3c/TurtleTests/bareword_integer.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1 . diff --git a/test/w3c/TurtleTests/blankNodePropertyList_as_object.nt b/test/w3c/TurtleTests/blankNodePropertyList_as_object.nt new file mode 100644 index 00000000..528bd844 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/blankNodePropertyList_as_object.ttl b/test/w3c/TurtleTests/blankNodePropertyList_as_object.ttl new file mode 100644 index 00000000..aa85a746 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/blankNodePropertyList_as_subject.nt b/test/w3c/TurtleTests/blankNodePropertyList_as_subject.nt new file mode 100644 index 00000000..f0768879 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/blankNodePropertyList_as_subject.ttl b/test/w3c/TurtleTests/blankNodePropertyList_as_subject.ttl new file mode 100644 index 00000000..cb2e52aa --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/blankNodePropertyList_containing_collection.nt b/test/w3c/TurtleTests/blankNodePropertyList_containing_collection.nt new file mode 100644 index 00000000..e590826b --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/blankNodePropertyList_containing_collection.ttl b/test/w3c/TurtleTests/blankNodePropertyList_containing_collection.ttl new file mode 100644 index 00000000..bf164c83 --- /dev/null +++ b/test/w3c/TurtleTests/blankNodePropertyList_containing_collection.ttl @@ -0,0 +1 @@ +[ <http://a.example/p1> (1) ] . diff --git a/test/w3c/TurtleTests/blankNodePropertyList_with_multiple_triples.nt b/test/w3c/TurtleTests/blankNodePropertyList_with_multiple_triples.nt new file mode 100644 index 00000000..8f3fc507 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/blankNodePropertyList_with_multiple_triples.ttl b/test/w3c/TurtleTests/blankNodePropertyList_with_multiple_triples.ttl new file mode 100644 index 00000000..6153c13d --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/collection_object.nt b/test/w3c/TurtleTests/collection_object.nt new file mode 100644 index 00000000..391162e0 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/collection_object.ttl b/test/w3c/TurtleTests/collection_object.ttl new file mode 100644 index 00000000..6af34715 --- /dev/null +++ b/test/w3c/TurtleTests/collection_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> (1) . diff --git a/test/w3c/TurtleTests/collection_subject.nt b/test/w3c/TurtleTests/collection_subject.nt new file mode 100644 index 00000000..502768c8 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/collection_subject.ttl b/test/w3c/TurtleTests/collection_subject.ttl new file mode 100644 index 00000000..00a4c0bc --- /dev/null +++ b/test/w3c/TurtleTests/collection_subject.ttl @@ -0,0 +1 @@ +(1) <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/comment_following_PNAME_NS.nt b/test/w3c/TurtleTests/comment_following_PNAME_NS.nt new file mode 100644 index 00000000..a8ca81c5 --- /dev/null +++ b/test/w3c/TurtleTests/comment_following_PNAME_NS.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/> . diff --git a/test/w3c/TurtleTests/comment_following_PNAME_NS.ttl b/test/w3c/TurtleTests/comment_following_PNAME_NS.ttl new file mode 100644 index 00000000..c03124c4 --- /dev/null +++ b/test/w3c/TurtleTests/comment_following_PNAME_NS.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:#comment +. diff --git a/test/w3c/TurtleTests/comment_following_localName.ttl b/test/w3c/TurtleTests/comment_following_localName.ttl new file mode 100644 index 00000000..919f876b --- /dev/null +++ b/test/w3c/TurtleTests/comment_following_localName.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:o#comment +. diff --git a/test/w3c/TurtleTests/default_namespace_IRI.ttl b/test/w3c/TurtleTests/default_namespace_IRI.ttl new file mode 100644 index 00000000..f1f83fd5 --- /dev/null +++ b/test/w3c/TurtleTests/default_namespace_IRI.ttl @@ -0,0 +1,2 @@ +@prefix : <http://a.example/>. +:s <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/double_lower_case_e.nt b/test/w3c/TurtleTests/double_lower_case_e.nt new file mode 100644 index 00000000..49a792b9 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/double_lower_case_e.ttl b/test/w3c/TurtleTests/double_lower_case_e.ttl new file mode 100644 index 00000000..5f4552bf --- /dev/null +++ b/test/w3c/TurtleTests/double_lower_case_e.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 1e0 . diff --git a/test/w3c/TurtleTests/empty_collection.nt b/test/w3c/TurtleTests/empty_collection.nt new file mode 100644 index 00000000..82726a3f --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/empty_collection.ttl b/test/w3c/TurtleTests/empty_collection.ttl new file mode 100644 index 00000000..02f9cc07 --- /dev/null +++ b/test/w3c/TurtleTests/empty_collection.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> () . diff --git a/test/w3c/TurtleTests/first.nt b/test/w3c/TurtleTests/first.nt new file mode 100644 index 00000000..d50539f6 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/first.ttl b/test/w3c/TurtleTests/first.ttl new file mode 100644 index 00000000..44f496cb --- /dev/null +++ b/test/w3c/TurtleTests/first.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ((1) 2) . diff --git a/test/w3c/TurtleTests/labeled_blank_node_object.nt b/test/w3c/TurtleTests/labeled_blank_node_object.nt new file mode 100644 index 00000000..2645d4ee --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_object.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:o . diff --git a/test/w3c/TurtleTests/labeled_blank_node_object.ttl b/test/w3c/TurtleTests/labeled_blank_node_object.ttl new file mode 100644 index 00000000..2645d4ee --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_object.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:o . diff --git a/test/w3c/TurtleTests/labeled_blank_node_subject.nt b/test/w3c/TurtleTests/labeled_blank_node_subject.nt new file mode 100644 index 00000000..d0c7f458 --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_subject.nt @@ -0,0 +1 @@ +_:s <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/labeled_blank_node_subject.ttl b/test/w3c/TurtleTests/labeled_blank_node_subject.ttl new file mode 100644 index 00000000..d0c7f458 --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_subject.ttl @@ -0,0 +1 @@ +_:s <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.nt b/test/w3c/TurtleTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.nt new file mode 100644 index 00000000..50be8d6f --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀 . diff --git a/test/w3c/TurtleTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl b/test/w3c/TurtleTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 00000000..50be8d6f --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀 . diff --git a/test/w3c/TurtleTests/labeled_blank_node_with_leading_digit.nt b/test/w3c/TurtleTests/labeled_blank_node_with_leading_digit.nt new file mode 100644 index 00000000..7244d806 --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_with_leading_digit.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:0 . diff --git a/test/w3c/TurtleTests/labeled_blank_node_with_leading_digit.ttl b/test/w3c/TurtleTests/labeled_blank_node_with_leading_digit.ttl new file mode 100644 index 00000000..7244d806 --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_with_leading_digit.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:0 . diff --git a/test/w3c/TurtleTests/labeled_blank_node_with_leading_underscore.nt b/test/w3c/TurtleTests/labeled_blank_node_with_leading_underscore.nt new file mode 100644 index 00000000..15d9ffc8 --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_with_leading_underscore.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:_ . diff --git a/test/w3c/TurtleTests/labeled_blank_node_with_leading_underscore.ttl b/test/w3c/TurtleTests/labeled_blank_node_with_leading_underscore.ttl new file mode 100644 index 00000000..15d9ffc8 --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_with_leading_underscore.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:_ . diff --git a/test/w3c/TurtleTests/labeled_blank_node_with_non_leading_extras.nt b/test/w3c/TurtleTests/labeled_blank_node_with_non_leading_extras.nt new file mode 100644 index 00000000..5ae09b7c --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_with_non_leading_extras.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:a·̀ͯ‿.⁀ . diff --git a/test/w3c/TurtleTests/labeled_blank_node_with_non_leading_extras.ttl b/test/w3c/TurtleTests/labeled_blank_node_with_non_leading_extras.ttl new file mode 100644 index 00000000..5ae09b7c --- /dev/null +++ b/test/w3c/TurtleTests/labeled_blank_node_with_non_leading_extras.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> _:a·̀ͯ‿.⁀ . diff --git a/test/w3c/TurtleTests/langtagged_LONG.ttl b/test/w3c/TurtleTests/langtagged_LONG.ttl new file mode 100644 index 00000000..2baefe5d --- /dev/null +++ b/test/w3c/TurtleTests/langtagged_LONG.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> """chat"""@en . diff --git a/test/w3c/TurtleTests/langtagged_LONG_with_subtag.nt b/test/w3c/TurtleTests/langtagged_LONG_with_subtag.nt new file mode 100644 index 00000000..629cbf42 --- /dev/null +++ b/test/w3c/TurtleTests/langtagged_LONG_with_subtag.nt @@ -0,0 +1 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "Cheers"@en-UK . diff --git a/test/w3c/TurtleTests/langtagged_LONG_with_subtag.ttl b/test/w3c/TurtleTests/langtagged_LONG_with_subtag.ttl new file mode 100644 index 00000000..7fd527c4 --- /dev/null +++ b/test/w3c/TurtleTests/langtagged_LONG_with_subtag.ttl @@ -0,0 +1,3 @@ +# Test long literal with lang tag +@prefix : <http://example.org/ex#> . +:a :b """Cheers"""@en-UK . diff --git a/test/w3c/TurtleTests/langtagged_non_LONG.nt b/test/w3c/TurtleTests/langtagged_non_LONG.nt new file mode 100644 index 00000000..1bddb04e --- /dev/null +++ b/test/w3c/TurtleTests/langtagged_non_LONG.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en . diff --git a/test/w3c/TurtleTests/langtagged_non_LONG.ttl b/test/w3c/TurtleTests/langtagged_non_LONG.ttl new file mode 100644 index 00000000..1bddb04e --- /dev/null +++ b/test/w3c/TurtleTests/langtagged_non_LONG.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en . diff --git a/test/w3c/TurtleTests/lantag_with_subtag.nt b/test/w3c/TurtleTests/lantag_with_subtag.nt new file mode 100644 index 00000000..46c9d53a --- /dev/null +++ b/test/w3c/TurtleTests/lantag_with_subtag.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en-us . diff --git a/test/w3c/TurtleTests/lantag_with_subtag.ttl b/test/w3c/TurtleTests/lantag_with_subtag.ttl new file mode 100644 index 00000000..46c9d53a --- /dev/null +++ b/test/w3c/TurtleTests/lantag_with_subtag.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "chat"@en-us . diff --git a/test/w3c/TurtleTests/last.nt b/test/w3c/TurtleTests/last.nt new file mode 100644 index 00000000..27c21b3d --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/last.ttl b/test/w3c/TurtleTests/last.ttl new file mode 100644 index 00000000..1254c261 --- /dev/null +++ b/test/w3c/TurtleTests/last.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> (1 (2)) . diff --git a/test/w3c/TurtleTests/literal_false.nt b/test/w3c/TurtleTests/literal_false.nt new file mode 100644 index 00000000..5bbbae84 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/literal_false.ttl b/test/w3c/TurtleTests/literal_false.ttl new file mode 100644 index 00000000..6a32e362 --- /dev/null +++ b/test/w3c/TurtleTests/literal_false.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> false . diff --git a/test/w3c/TurtleTests/literal_true.nt b/test/w3c/TurtleTests/literal_true.nt new file mode 100644 index 00000000..054b229f --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/literal_true.ttl b/test/w3c/TurtleTests/literal_true.ttl new file mode 100644 index 00000000..6c5bb742 --- /dev/null +++ b/test/w3c/TurtleTests/literal_true.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> true . diff --git a/test/w3c/TurtleTests/literal_with_BACKSPACE.nt b/test/w3c/TurtleTests/literal_with_BACKSPACE.nt new file mode 100644 index 00000000..7dba113b --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_BACKSPACE.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u0008" . diff --git a/test/w3c/TurtleTests/literal_with_BACKSPACE.ttl b/test/w3c/TurtleTests/literal_with_BACKSPACE.ttl new file mode 100644 index 00000000..17b2880f --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_BACKSPACE.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '' . diff --git a/test/w3c/TurtleTests/literal_with_CARRIAGE_RETURN.nt b/test/w3c/TurtleTests/literal_with_CARRIAGE_RETURN.nt new file mode 100644 index 00000000..91b85c89 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_CARRIAGE_RETURN.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\r" . diff --git a/test/w3c/TurtleTests/literal_with_CARRIAGE_RETURN.ttl b/test/w3c/TurtleTests/literal_with_CARRIAGE_RETURN.ttl new file mode 100644 index 00000000..3cd1d89c --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_CARRIAGE_RETURN.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '''
''' . diff --git a/test/w3c/TurtleTests/literal_with_CHARACTER_TABULATION.nt b/test/w3c/TurtleTests/literal_with_CHARACTER_TABULATION.nt new file mode 100644 index 00000000..a6a9d9f0 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_CHARACTER_TABULATION.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\t" . diff --git a/test/w3c/TurtleTests/literal_with_CHARACTER_TABULATION.ttl b/test/w3c/TurtleTests/literal_with_CHARACTER_TABULATION.ttl new file mode 100644 index 00000000..37fbd9d1 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_CHARACTER_TABULATION.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ' ' . diff --git a/test/w3c/TurtleTests/literal_with_FORM_FEED.nt b/test/w3c/TurtleTests/literal_with_FORM_FEED.nt new file mode 100644 index 00000000..2a4490b3 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_FORM_FEED.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\u000C" . diff --git a/test/w3c/TurtleTests/literal_with_FORM_FEED.ttl b/test/w3c/TurtleTests/literal_with_FORM_FEED.ttl new file mode 100644 index 00000000..76d6ee77 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_FORM_FEED.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '' . diff --git a/test/w3c/TurtleTests/literal_with_LINE_FEED.nt b/test/w3c/TurtleTests/literal_with_LINE_FEED.nt new file mode 100644 index 00000000..462f97ac --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_LINE_FEED.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\n" . diff --git a/test/w3c/TurtleTests/literal_with_LINE_FEED.ttl b/test/w3c/TurtleTests/literal_with_LINE_FEED.ttl new file mode 100644 index 00000000..50cc8a8b --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_LINE_FEED.ttl @@ -0,0 +1,2 @@ +<http://a.example/s> <http://a.example/p> ''' +''' . diff --git a/test/w3c/TurtleTests/literal_with_REVERSE_SOLIDUS.nt b/test/w3c/TurtleTests/literal_with_REVERSE_SOLIDUS.nt new file mode 100644 index 00000000..ebc846ed --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_REVERSE_SOLIDUS.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "\\" . diff --git a/test/w3c/TurtleTests/literal_with_REVERSE_SOLIDUS.ttl b/test/w3c/TurtleTests/literal_with_REVERSE_SOLIDUS.ttl new file mode 100644 index 00000000..380a3d04 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_REVERSE_SOLIDUS.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\\' . diff --git a/test/w3c/TurtleTests/literal_with_escaped_BACKSPACE.ttl b/test/w3c/TurtleTests/literal_with_escaped_BACKSPACE.ttl new file mode 100644 index 00000000..5284b9b6 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_escaped_BACKSPACE.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\b' . diff --git a/test/w3c/TurtleTests/literal_with_escaped_CARRIAGE_RETURN.ttl b/test/w3c/TurtleTests/literal_with_escaped_CARRIAGE_RETURN.ttl new file mode 100644 index 00000000..a28e7c0b --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_escaped_CARRIAGE_RETURN.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\r' . diff --git a/test/w3c/TurtleTests/literal_with_escaped_CHARACTER_TABULATION.ttl b/test/w3c/TurtleTests/literal_with_escaped_CHARACTER_TABULATION.ttl new file mode 100644 index 00000000..67966f78 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_escaped_CHARACTER_TABULATION.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\t' . diff --git a/test/w3c/TurtleTests/literal_with_escaped_FORM_FEED.ttl b/test/w3c/TurtleTests/literal_with_escaped_FORM_FEED.ttl new file mode 100644 index 00000000..21acace9 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_escaped_FORM_FEED.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\f' . diff --git a/test/w3c/TurtleTests/literal_with_escaped_LINE_FEED.ttl b/test/w3c/TurtleTests/literal_with_escaped_LINE_FEED.ttl new file mode 100644 index 00000000..b53f49ec --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_escaped_LINE_FEED.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\n' . diff --git a/test/w3c/TurtleTests/literal_with_numeric_escape4.nt b/test/w3c/TurtleTests/literal_with_numeric_escape4.nt new file mode 100644 index 00000000..0b35a89a --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_numeric_escape4.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> "o" . diff --git a/test/w3c/TurtleTests/literal_with_numeric_escape4.ttl b/test/w3c/TurtleTests/literal_with_numeric_escape4.ttl new file mode 100644 index 00000000..2b4e0175 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_numeric_escape4.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\u006F' . diff --git a/test/w3c/TurtleTests/literal_with_numeric_escape8.ttl b/test/w3c/TurtleTests/literal_with_numeric_escape8.ttl new file mode 100644 index 00000000..8d0e4ef2 --- /dev/null +++ b/test/w3c/TurtleTests/literal_with_numeric_escape8.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> '\U0000006F' . diff --git a/test/w3c/TurtleTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt b/test/w3c/TurtleTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt new file mode 100644 index 00000000..4b60c9e1 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u0384\u1FFE\u200C\u200D\u2070\u2189\u2C00\u2FD5\u3001\uD7FB\uFA0E\uFDC7\uFDF0\uFFEF\U00010000\U000E01EF> . diff --git a/test/w3c/TurtleTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl b/test/w3c/TurtleTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 00000000..c532e3d0 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿Ͱͽ΄῾⁰↉Ⰰ⿕、ퟻ﨎ﷇﷰ𐀀󠇯 . diff --git a/test/w3c/TurtleTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt b/test/w3c/TurtleTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt new file mode 100644 index 00000000..78ef1086 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u0384\u1FFE\u200C\u200D\u2070\u2189\u2C00\u2FD5\u3001\uD7FB\uFA0E\uFDC7\uFDF0\uFFEF> . diff --git a/test/w3c/TurtleTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl b/test/w3c/TurtleTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 00000000..15b23dd8 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿Ͱͽ΄῾⁰↉Ⰰ⿕、ퟻ﨎ﷇﷰ . diff --git a/test/w3c/TurtleTests/localName_with_leading_digit.nt b/test/w3c/TurtleTests/localName_with_leading_digit.nt new file mode 100644 index 00000000..a9e101e5 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_leading_digit.nt @@ -0,0 +1 @@ +<http://a.example/0> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/localName_with_leading_digit.ttl b/test/w3c/TurtleTests/localName_with_leading_digit.ttl new file mode 100644 index 00000000..65da2499 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_leading_digit.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:0 <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/localName_with_leading_underscore.nt b/test/w3c/TurtleTests/localName_with_leading_underscore.nt new file mode 100644 index 00000000..e042a7b9 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_leading_underscore.nt @@ -0,0 +1 @@ +<http://a.example/_> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/localName_with_leading_underscore.ttl b/test/w3c/TurtleTests/localName_with_leading_underscore.ttl new file mode 100644 index 00000000..762ace98 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_leading_underscore.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:_ <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt b/test/w3c/TurtleTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt new file mode 100644 index 00000000..5b346919 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/AZaz\u00C0\u00D6\u00D8\u00F6\u00F8\u02FF\u0370\u037D\u037F\u1FFF\u200C\u200D\u2070\u218F\u2C00\u2FEF\u3001\uD7FF\uFA0E\uFDCF\uFDF0\uFFEF\U00010000\U000EFFFD> . diff --git a/test/w3c/TurtleTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl b/test/w3c/TurtleTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 00000000..0922d95d --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、﨎﷏ﷰ𐀀 . diff --git a/test/w3c/TurtleTests/localName_with_non_leading_extras.nt b/test/w3c/TurtleTests/localName_with_non_leading_extras.nt new file mode 100644 index 00000000..749b98cd --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_non_leading_extras.nt @@ -0,0 +1 @@ +<http://a.example/a\u00B7\u0300\u036F\u203F.\u2040> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/localName_with_non_leading_extras.ttl b/test/w3c/TurtleTests/localName_with_non_leading_extras.ttl new file mode 100644 index 00000000..db25a8a6 --- /dev/null +++ b/test/w3c/TurtleTests/localName_with_non_leading_extras.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:a·̀ͯ‿.⁀ <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/localname_with_COLON.nt b/test/w3c/TurtleTests/localname_with_COLON.nt new file mode 100644 index 00000000..eb966ca3 --- /dev/null +++ b/test/w3c/TurtleTests/localname_with_COLON.nt @@ -0,0 +1 @@ +<http://a.example/s:> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/localname_with_COLON.ttl b/test/w3c/TurtleTests/localname_with_COLON.ttl new file mode 100644 index 00000000..1d45f20f --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/manifest.ttl b/test/w3c/TurtleTests/manifest.ttl new file mode 100644 index 00000000..0a24655e --- /dev/null +++ b/test/w3c/TurtleTests/manifest.ttl @@ -0,0 +1,2503 @@ +## Distributed under both the W3C Test Suite License[1] and the W3C 3- +## clause BSD License[2]. To contribute to a W3C Test Suite, see the +## policies and contribution forms [3] +## +## 1. http://www.w3.org/Consortium/Legal/2008/04-testsuite-license +## 2. http://www.w3.org/Consortium/Legal/2008/03-bsd-license +## 3. http://www.w3.org/2004/10/27-testcases + +# Test named *subm* are (c) W3C and taken from the Turtle submission. + +@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 qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> . + +@prefix rdft: <http://www.w3.org/ns/rdftest#> . + +<> rdf:type mf:Manifest ; + rdfs:comment "Turtle tests" ; + mf:entries + ( + + # atomic tests + <#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> + <#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_leading_underscore> + <#localName_with_leading_digit> + <#localName_with_non_leading_extras> + <#old_style_base> + <#SPARQL_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> + <#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> + <#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> + <#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> + + # tests requested by Jeremy Carroll + # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c35 + <#comment_following_localName> + <#number_sign_following_localName> + <#comment_following_PNAME_NS> + <#number_sign_following_PNAME_NS> + + # tests from Dave Beckett + # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c28 + <#LITERAL_LONG2_with_REVERSE_SOLIDUS> + <#turtle-syntax-bad-LITERAL2_with_langtag_and_datatype> + <#two_LITERAL_LONG2s> + <#langtagged_LONG_with_subtag> + + # original tests-ttl + <#turtle-syntax-file-01> + <#turtle-syntax-file-02> + <#turtle-syntax-file-03> + <#turtle-syntax-uri-01> + <#turtle-syntax-uri-02> + <#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> + <#turtle-syntax-prefix-07> + <#turtle-syntax-prefix-08> + <#turtle-syntax-prefix-09> + <#turtle-syntax-string-01> + <#turtle-syntax-string-02> + <#turtle-syntax-string-03> + <#turtle-syntax-string-04> + <#turtle-syntax-string-05> + <#turtle-syntax-string-06> + <#turtle-syntax-string-07> + <#turtle-syntax-string-08> + <#turtle-syntax-string-09> + <#turtle-syntax-string-10> + <#turtle-syntax-string-11> + <#turtle-syntax-str-esc-01> + <#turtle-syntax-str-esc-02> + <#turtle-syntax-str-esc-03> + <#turtle-syntax-pname-esc-01> + <#turtle-syntax-pname-esc-02> + <#turtle-syntax-pname-esc-03> + <#turtle-syntax-bnode-01> + <#turtle-syntax-bnode-02> + <#turtle-syntax-bnode-03> + <#turtle-syntax-bnode-04> + <#turtle-syntax-bnode-05> + <#turtle-syntax-bnode-06> + <#turtle-syntax-bnode-07> + <#turtle-syntax-bnode-08> + <#turtle-syntax-bnode-09> + <#turtle-syntax-bnode-10> + <#turtle-syntax-number-01> + <#turtle-syntax-number-02> + <#turtle-syntax-number-03> + <#turtle-syntax-number-04> + <#turtle-syntax-number-05> + <#turtle-syntax-number-06> + <#turtle-syntax-number-07> + <#turtle-syntax-number-08> + <#turtle-syntax-number-09> + <#turtle-syntax-number-10> + <#turtle-syntax-number-11> + <#turtle-syntax-datatypes-01> + <#turtle-syntax-datatypes-02> + <#turtle-syntax-kw-01> + <#turtle-syntax-kw-02> + <#turtle-syntax-kw-03> + <#turtle-syntax-struct-01> + <#turtle-syntax-struct-02> + <#turtle-syntax-struct-03> + <#turtle-syntax-struct-04> + <#turtle-syntax-struct-05> + <#turtle-syntax-lists-01> + <#turtle-syntax-lists-02> + <#turtle-syntax-lists-03> + <#turtle-syntax-lists-04> + <#turtle-syntax-lists-05> + <#turtle-syntax-bad-uri-01> + <#turtle-syntax-bad-uri-02> + <#turtle-syntax-bad-uri-03> + <#turtle-syntax-bad-uri-04> + <#turtle-syntax-bad-uri-05> + <#turtle-syntax-bad-prefix-01> + <#turtle-syntax-bad-prefix-02> + <#turtle-syntax-bad-prefix-03> + <#turtle-syntax-bad-prefix-04> + <#turtle-syntax-bad-prefix-05> + <#turtle-syntax-bad-base-01> + <#turtle-syntax-bad-base-02> + <#turtle-syntax-bad-base-03> + <#turtle-syntax-bad-struct-01> + <#turtle-syntax-bad-struct-02> + <#turtle-syntax-bad-struct-03> + <#turtle-syntax-bad-struct-04> + <#turtle-syntax-bad-struct-05> + <#turtle-syntax-bad-struct-06> + <#turtle-syntax-bad-struct-07> + <#turtle-syntax-bad-kw-01> + <#turtle-syntax-bad-kw-02> + <#turtle-syntax-bad-kw-03> + <#turtle-syntax-bad-kw-04> + <#turtle-syntax-bad-kw-05> + <#turtle-syntax-bad-n3-extras-01> + <#turtle-syntax-bad-n3-extras-02> + <#turtle-syntax-bad-n3-extras-03> + <#turtle-syntax-bad-n3-extras-04> + <#turtle-syntax-bad-n3-extras-05> + <#turtle-syntax-bad-n3-extras-06> + <#turtle-syntax-bad-n3-extras-07> + <#turtle-syntax-bad-n3-extras-08> + <#turtle-syntax-bad-n3-extras-09> + <#turtle-syntax-bad-n3-extras-10> + <#turtle-syntax-bad-n3-extras-11> + <#turtle-syntax-bad-n3-extras-12> + <#turtle-syntax-bad-n3-extras-13> + <#turtle-syntax-bad-struct-08> + <#turtle-syntax-bad-struct-09> + <#turtle-syntax-bad-struct-10> + <#turtle-syntax-bad-struct-11> + <#turtle-syntax-bad-struct-12> + <#turtle-syntax-bad-struct-13> + <#turtle-syntax-bad-struct-14> + <#turtle-syntax-bad-struct-15> + <#turtle-syntax-bad-struct-16> + <#turtle-syntax-bad-struct-17> + <#turtle-syntax-bad-lang-01> + <#turtle-syntax-bad-esc-01> + <#turtle-syntax-bad-esc-02> + <#turtle-syntax-bad-esc-03> + <#turtle-syntax-bad-esc-04> + <#turtle-syntax-bad-pname-01> + <#turtle-syntax-bad-pname-02> + <#turtle-syntax-bad-pname-03> + <#turtle-syntax-bad-string-01> + <#turtle-syntax-bad-string-02> + <#turtle-syntax-bad-string-03> + <#turtle-syntax-bad-string-04> + <#turtle-syntax-bad-string-05> + <#turtle-syntax-bad-string-06> + <#turtle-syntax-bad-string-07> + <#turtle-syntax-bad-num-01> + <#turtle-syntax-bad-num-02> + <#turtle-syntax-bad-num-03> + <#turtle-syntax-bad-num-04> + <#turtle-syntax-bad-num-05> + <#turtle-eval-struct-01> + <#turtle-eval-struct-02> + <#turtle-subm-01> + <#turtle-subm-02> + <#turtle-subm-03> + <#turtle-subm-04> + <#turtle-subm-05> + <#turtle-subm-06> + <#turtle-subm-07> + <#turtle-subm-08> + <#turtle-subm-09> + <#turtle-subm-10> + <#turtle-subm-11> + <#turtle-subm-12> + <#turtle-subm-13> + <#turtle-subm-14> + <#turtle-subm-15> + <#turtle-subm-16> + <#turtle-subm-17> + <#turtle-subm-18> + <#turtle-subm-19> + <#turtle-subm-20> + <#turtle-subm-21> + <#turtle-subm-22> + <#turtle-subm-23> + <#turtle-subm-24> + <#turtle-subm-25> + <#turtle-subm-26> + <#turtle-subm-27> + <#turtle-eval-bad-01> + <#turtle-eval-bad-02> + <#turtle-eval-bad-03> + <#turtle-eval-bad-04> + + # tests from David Robillard + # http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c21 + <#turtle-syntax-bad-blank-label-dot-end> + <#turtle-syntax-bad-ln-dash-start> + <#turtle-syntax-bad-ln-escape-start> + <#turtle-syntax-bad-ln-escape> + <#turtle-syntax-bad-missing-ns-dot-end> + <#turtle-syntax-bad-missing-ns-dot-start> + <#turtle-syntax-bad-ns-dot-end> + <#turtle-syntax-bad-ns-dot-start> + <#turtle-syntax-bad-number-dot-in-anon> + <#turtle-syntax-blank-label> + <#turtle-syntax-ln-colons> + <#turtle-syntax-ln-dots> + <#turtle-syntax-ns-dots> + ) . + +# atomic tests +<#IRI_subject> rdf:type rdft:TestTurtleEval ; + mf:name "IRI_subject" ; + rdfs:comment "IRI subject" ; + rdft:approval rdft:Approved ; + mf:action <IRI_subject.ttl> ; + mf:result <IRI_spo.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)" ; + rdft:approval rdft:Approved ; + mf:action <IRI_with_four_digit_numeric_escape.ttl> ; + mf:result <IRI_spo.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)" ; + rdft:approval rdft:Approved ; + mf:action <IRI_with_eight_digit_numeric_escape.ttl> ; + mf:result <IRI_spo.nt> ; + . + +<#IRI_with_all_punctuation> rdf:type rdft:TestTurtleEval ; + mf:name "IRI_with_all_punctuation" ; + rdfs:comment "IRI with all punctuation" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + mf:action <old_style_prefix.ttl> ; + mf:result <IRI_spo.nt> ; + . + +<#SPARQL_style_prefix> rdf:type rdft:TestTurtleEval ; + mf:name "SPARQL_style_prefix" ; + rdfs:comment "SPARQL-style prefix" ; + rdft:approval rdft:Approved ; + mf:action <SPARQL_style_prefix.ttl> ; + mf:result <IRI_spo.nt> ; + . + +<#prefixed_IRI_predicate> rdf:type rdft:TestTurtleEval ; + mf:name "prefixed_IRI_predicate" ; + rdfs:comment "prefixed IRI predicate" ; + rdft:approval rdft:Approved ; + mf:action <prefixed_IRI_predicate.ttl> ; + mf:result <IRI_spo.nt> ; + . + +<#prefixed_IRI_object> rdf:type rdft:TestTurtleEval ; + mf:name "prefixed_IRI_object" ; + rdfs:comment "prefixed IRI object" ; + rdft:approval rdft:Approved ; + mf:action <prefixed_IRI_object.ttl> ; + mf:result <IRI_spo.nt> ; + . + +<#prefix_only_IRI> rdf:type rdft:TestTurtleEval ; + mf:name "prefix_only_IRI" ; + rdfs:comment "prefix-only IRI (p:)" ; + rdft:approval rdft:Approved ; + mf:action <prefix_only_IRI.ttl> ; + 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ÀÖØöø...:)" ; + rdft:approval rdft:Approved ; + 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·̀ͯ‿.⁀)" ; + rdft:approval rdft:Approved ; + 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ÀÖØöø...)" ; + rdft:approval rdft:Approved ; + 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ÀÖØöø...)" ; + rdft:approval rdft:Approved ; + 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ÀÖØöø...)" ; + rdft:approval rdft:Approved ; + mf:action <localName_with_nfc_PN_CHARS_BASE_character_boundaries.ttl> ; + mf:result <localName_with_nfc_PN_CHARS_BASE_character_boundaries.nt> ; + . + +<#default_namespace_IRI> rdf:type rdft:TestTurtleEval ; + mf:name "default_namespace_IRI" ; + rdfs:comment "default namespace IRI (:ln)" ; + rdft:approval rdft:Approved ; + mf:action <default_namespace_IRI.ttl> ; + mf:result <IRI_spo.nt> ; + . + +<#prefix_reassigned_and_used> rdf:type rdft:TestTurtleEval ; + mf:name "prefix_reassigned_and_used" ; + rdfs:comment "prefix reassigned and used" ; + rdft:approval rdft:Approved ; + mf:action <prefix_reassigned_and_used.ttl> ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + mf:action <percent_escaped_localName.ttl> ; + mf:result <percent_escaped_localName.nt> ; + . + +<#HYPHEN_MINUS_in_localName> rdf:type rdft:TestTurtleEval ; + mf:name "HYPHEN_MINUS_in_localName" ; + rdfs:comment "HYPHEN-MINUS in local name" ; + rdft:approval rdft:Approved ; + mf:action <HYPHEN_MINUS_in_localName.ttl> ; + mf:result <HYPHEN_MINUS_in_localName.nt> ; + . + +<#underscore_in_localName> rdf:type rdft:TestTurtleEval ; + mf:name "underscore_in_localName" ; + rdfs:comment "underscore in local name" ; + rdft:approval rdft:Approved ; + mf:action <underscore_in_localName.ttl> ; + mf:result <underscore_in_localName.nt> ; + . + +<#localname_with_COLON> rdf:type rdft:TestTurtleEval ; + mf:name "localname_with_COLON" ; + rdfs:comment "localname with COLON" ; + rdft:approval rdft:Approved ; + mf:action <localname_with_COLON.ttl> ; + mf:result <localname_with_COLON.nt> ; + . + +<#localName_with_leading_underscore> rdf:type rdft:TestTurtleEval ; + mf:name "localName_with_leading_underscore" ; + rdfs:comment "localName with leading underscore (p:_)" ; + rdft:approval rdft:Approved ; + mf:action <localName_with_leading_underscore.ttl> ; + mf:result <localName_with_leading_underscore.nt> ; + . + +<#localName_with_leading_digit> rdf:type rdft:TestTurtleEval ; + mf:name "localName_with_leading_digit" ; + rdfs:comment "localName with leading digit (p:_)" ; + rdft:approval rdft:Approved ; + mf:action <localName_with_leading_digit.ttl> ; + 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·̀ͯ‿.⁀)" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + mf:action <old_style_base.ttl> ; + mf:result <IRI_spo.nt> ; + . + +<#SPARQL_style_base> rdf:type rdft:TestTurtleEval ; + mf:name "SPARQL_style_base" ; + rdfs:comment "SPARQL-style base" ; + rdft:approval rdft:Approved ; + mf:action <SPARQL_style_base.ttl> ; + mf:result <IRI_spo.nt> ; + . + +<#labeled_blank_node_subject> rdf:type rdft:TestTurtleEval ; + mf:name "labeled_blank_node_subject" ; + rdfs:comment "labeled blank node subject" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_object.ttl> ; + 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ÀÖØöø...)" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.ttl> ; + mf:result <labeled_blank_node_with_PN_CHARS_BASE_character_boundaries.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 (_:_)" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_with_leading_underscore.ttl> ; + mf:result <labeled_blank_node_with_leading_underscore.nt> ; + . + +<#labeled_blank_node_with_leading_digit> rdf:type rdft:TestTurtleEval ; + mf:name "labeled_blank_node_with_leading_digit" ; + rdfs:comment "labeled blank node with_leading_digit (_:0)" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_with_leading_digit.ttl> ; + 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·̀ͯ‿.⁀)" ; + rdft:approval rdft:Approved ; + mf:action <labeled_blank_node_with_non_leading_extras.ttl> ; + mf:result <labeled_blank_node_with_non_leading_extras.nt> ; + . + +<#anonymous_blank_node_subject> rdf:type rdft:TestTurtleEval ; + mf:name "anonymous_blank_node_subject" ; + rdfs:comment "anonymous blank node subject" ; + rdft:approval rdft:Approved ; + mf:action <anonymous_blank_node_subject.ttl> ; + mf:result <anonymous_blank_node_subject.nt> ; + . + +<#anonymous_blank_node_object> rdf:type rdft:TestTurtleEval ; + mf:name "anonymous_blank_node_object" ; + rdfs:comment "anonymous blank node object" ; + rdft:approval rdft:Approved ; + 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> ] ." ; + rdft:approval rdft:Approved ; + 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> ." ; + rdft:approval rdft:Approved ; + 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> [ … ] ." ; + rdft:approval rdft:Approved ; + 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> ]" ; + rdft:approval rdft:Approved ; + 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> ]" ; + rdft:approval rdft:Approved ; + 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> ( … ) ]" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + mf:action <collection_subject.ttl> ; + mf:result <collection_subject.nt> ; + . + +<#collection_object> rdf:type rdft:TestTurtleEval ; + mf:name "collection_object" ; + rdfs:comment "collection object" ; + rdft:approval rdft:Approved ; + mf:action <collection_object.ttl> ; + mf:result <collection_object.nt> ; + . + +<#empty_collection> rdf:type rdft:TestTurtleEval ; + mf:name "empty_collection" ; + rdfs:comment "empty collection ()" ; + rdft:approval rdft:Approved ; + mf:action <empty_collection.ttl> ; + mf:result <empty_collection.nt> ; + . + +<#nested_collection> rdf:type rdft:TestTurtleEval ; + mf:name "nested_collection" ; + rdfs:comment "nested collection (())" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + mf:action <last.ttl> ; + mf:result <last.nt> ; + . + +<#LITERAL1> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL1" ; + rdfs:comment "LITERAL1 'x'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL1.ttl> ; + 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...'" ; + rdft:approval rdft:Approved ; + 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...'" ; + rdft:approval rdft:Approved ; + 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...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL1_all_controls.ttl> ; + mf:result <LITERAL1_all_controls.nt> ; + . + +<#LITERAL1_all_punctuation> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL1_all_punctuation" ; + rdfs:comment "LITERAL1_all_punctuation '!\"#$%&()...'" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL1_all_punctuation.ttl> ; + mf:result <LITERAL1_all_punctuation.nt> ; + . + +<#LITERAL_LONG1> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL_LONG1" ; + rdfs:comment "LITERAL_LONG1 '''x'''" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG1.ttl> ; + 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...'" ; + rdft:approval rdft:Approved ; + 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...'" ; + rdft:approval rdft:Approved ; + 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'''" ; + rdft:approval rdft:Approved ; + 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'''" ; + rdft:approval rdft:Approved ; + 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\"" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL2.ttl> ; + 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...'" ; + rdft:approval rdft:Approved ; + 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...'" ; + rdft:approval rdft:Approved ; + 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\"\"\"" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG2.ttl> ; + 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...'" ; + rdft:approval rdft:Approved ; + 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...'" ; + rdft:approval rdft:Approved ; + 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\"\"\"" ; + rdft:approval rdft:Approved ; + 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\"\"\"" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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>" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + mf:action <bareword_integer.ttl> ; + mf:result <IRIREF_datatype.nt> ; + . + +<#bareword_decimal> rdf:type rdft:TestTurtleEval ; + mf:name "bareword_decimal" ; + rdfs:comment "bareword decimal" ; + rdft:approval rdft:Approved ; + mf:action <bareword_decimal.ttl> ; + mf:result <bareword_decimal.nt> ; + . + +<#bareword_double> rdf:type rdft:TestTurtleEval ; + mf:name "bareword_double" ; + rdfs:comment "bareword double" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + mf:action <negative_numeric.ttl> ; + mf:result <negative_numeric.nt> ; + . + +<#positive_numeric> rdf:type rdft:TestTurtleEval ; + mf:name "positive_numeric" ; + rdfs:comment "positive numeric" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + mf:action <literal_true.ttl> ; + mf:result <literal_true.nt> ; + . + +<#literal_false> rdf:type rdft:TestTurtleEval ; + mf:name "literal_false" ; + rdfs:comment "literal false" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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" ; + rdft:approval rdft:Approved ; + 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>" ; + rdft:approval rdft:Approved ; + 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>" ; + rdft:approval rdft:Approved ; + 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> ." ; + rdft:approval rdft:Approved ; + 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> ;;." ; + rdft:approval rdft:Approved ; + mf:action <repeated_semis_not_at_end.ttl> ; + mf:result <repeated_semis_not_at_end.nt> ; + . + +# original tests-ttl +<#turtle-syntax-file-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-file-01" ; + rdfs:comment "Empty file" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-file-01.ttl> ; + . + +<#turtle-syntax-file-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-file-02" ; + rdfs:comment "Only comment" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-file-02.ttl> ; + . + +<#turtle-syntax-file-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-file-03" ; + rdfs:comment "One comment, one empty line" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-file-03.ttl> ; + . + +<#turtle-syntax-uri-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-uri-01" ; + rdfs:comment "Only IRIs" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-uri-01.ttl> ; + . + +<#turtle-syntax-uri-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-uri-02" ; + rdfs:comment "IRIs with Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-uri-02.ttl> ; + . + +<#turtle-syntax-uri-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-uri-03" ; + rdfs:comment "IRIs with long Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-uri-03.ttl> ; + . + +<#turtle-syntax-uri-04> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-uri-04" ; + rdfs:comment "Legal IRIs" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-uri-04.ttl> ; + . + +<#turtle-syntax-base-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-base-01" ; + rdfs:comment "@base" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-base-01.ttl> ; + . + +<#turtle-syntax-base-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-base-02" ; + rdfs:comment "BASE" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-base-02.ttl> ; + . + +<#turtle-syntax-base-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-base-03" ; + rdfs:comment "@base with relative IRIs" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-base-03.ttl> ; + . + +<#turtle-syntax-base-04> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-base-04" ; + rdfs:comment "base with relative IRIs" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-base-04.ttl> ; + . + +<#turtle-syntax-prefix-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-prefix-01" ; + rdfs:comment "@prefix" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-prefix-01.ttl> ; + . + +<#turtle-syntax-prefix-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-prefix-02" ; + rdfs:comment "PreFIX" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-prefix-02.ttl> ; + . + +<#turtle-syntax-prefix-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-prefix-03" ; + rdfs:comment "Empty PREFIX" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-prefix-03.ttl> ; + . + +<#turtle-syntax-prefix-04> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-prefix-04" ; + rdfs:comment "Empty @prefix with % escape" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-prefix-04.ttl> ; + . + +<#turtle-syntax-prefix-05> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-prefix-05" ; + rdfs:comment "@prefix with no suffix" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-prefix-05.ttl> ; + . + +<#turtle-syntax-prefix-06> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-prefix-06" ; + rdfs:comment "colon is a legal pname character" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-prefix-06.ttl> ; + . + +<#turtle-syntax-prefix-07> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-prefix-07" ; + rdfs:comment "dash is a legal pname character" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-prefix-07.ttl> ; + . + +<#turtle-syntax-prefix-08> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-prefix-08" ; + rdfs:comment "underscore is a legal pname character" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-prefix-08.ttl> ; + . + +<#turtle-syntax-prefix-09> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-prefix-09" ; + rdfs:comment "percents in pnames" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-prefix-09.ttl> ; + . + +<#turtle-syntax-string-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-01" ; + rdfs:comment "string literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-01.ttl> ; + . + +<#turtle-syntax-string-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-02" ; + rdfs:comment "langString literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-02.ttl> ; + . + +<#turtle-syntax-string-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-03" ; + rdfs:comment "langString literal with region" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-03.ttl> ; + . + +<#turtle-syntax-string-04> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-04" ; + rdfs:comment "squote string literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-04.ttl> ; + . + +<#turtle-syntax-string-05> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-05" ; + rdfs:comment "squote langString literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-05.ttl> ; + . + +<#turtle-syntax-string-06> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-06" ; + rdfs:comment "squote langString literal with region" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-06.ttl> ; + . + +<#turtle-syntax-string-07> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-07" ; + rdfs:comment "long string literal with embedded single- and double-quotes" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-07.ttl> ; + . + +<#turtle-syntax-string-08> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-08" ; + rdfs:comment "long string literal with embedded newline" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-08.ttl> ; + . + +<#turtle-syntax-string-09> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-09" ; + rdfs:comment "squote long string literal with embedded single- and double-quotes" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-09.ttl> ; + . + +<#turtle-syntax-string-10> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-10" ; + rdfs:comment "long langString literal with embedded newline" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-10.ttl> ; + . + +<#turtle-syntax-string-11> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-string-11" ; + rdfs:comment "squote long langString literal with embedded newline" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-string-11.ttl> ; + . + +<#turtle-syntax-str-esc-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-str-esc-01" ; + rdfs:comment "string literal with escaped newline" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-str-esc-01.ttl> ; + . + +<#turtle-syntax-str-esc-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-str-esc-02" ; + rdfs:comment "string literal with Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-str-esc-02.ttl> ; + . + +<#turtle-syntax-str-esc-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-str-esc-03" ; + rdfs:comment "string literal with long Unicode escape" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-str-esc-03.ttl> ; + . + +<#turtle-syntax-pname-esc-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-pname-esc-01" ; + rdfs:comment "pname with back-slash escapes" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-pname-esc-01.ttl> ; + . + +<#turtle-syntax-pname-esc-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-pname-esc-02" ; + rdfs:comment "pname with back-slash escapes (2)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-pname-esc-02.ttl> ; + . + +<#turtle-syntax-pname-esc-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-pname-esc-03" ; + rdfs:comment "pname with back-slash escapes (3)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-pname-esc-03.ttl> ; + . + +<#turtle-syntax-bnode-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-01" ; + rdfs:comment "bnode subject" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-01.ttl> ; + . + +<#turtle-syntax-bnode-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-02" ; + rdfs:comment "bnode object" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-02.ttl> ; + . + +<#turtle-syntax-bnode-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-03" ; + rdfs:comment "bnode property list object" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-03.ttl> ; + . + +<#turtle-syntax-bnode-04> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-04" ; + rdfs:comment "bnode property list object (2)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-04.ttl> ; + . + +<#turtle-syntax-bnode-05> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-05" ; + rdfs:comment "bnode property list subject" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-05.ttl> ; + . + +<#turtle-syntax-bnode-06> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-06" ; + rdfs:comment "labeled bnode subject" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-06.ttl> ; + . + +<#turtle-syntax-bnode-07> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-07" ; + rdfs:comment "labeled bnode subject and object" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-07.ttl> ; + . + +<#turtle-syntax-bnode-08> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-08" ; + rdfs:comment "bare bnode property list" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-08.ttl> ; + . + +<#turtle-syntax-bnode-09> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-09" ; + rdfs:comment "bnode property list" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-09.ttl> ; + . + +<#turtle-syntax-bnode-10> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-bnode-10" ; + rdfs:comment "mixed bnode property list and triple" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bnode-10.ttl> ; + . + +<#turtle-syntax-number-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-01" ; + rdfs:comment "integer literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-01.ttl> ; + . + +<#turtle-syntax-number-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-02" ; + rdfs:comment "negative integer literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-02.ttl> ; + . + +<#turtle-syntax-number-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-03" ; + rdfs:comment "positive integer literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-03.ttl> ; + . + +<#turtle-syntax-number-04> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-04" ; + rdfs:comment "decimal literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-04.ttl> ; + . + +<#turtle-syntax-number-05> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-05" ; + rdfs:comment "decimal literal (no leading digits)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-05.ttl> ; + . + +<#turtle-syntax-number-06> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-06" ; + rdfs:comment "negative decimal literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-06.ttl> ; + . + +<#turtle-syntax-number-07> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-07" ; + rdfs:comment "positive decimal literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-07.ttl> ; + . + +<#turtle-syntax-number-08> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-08" ; + rdfs:comment "integer literal with decimal lexical confusion" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-08.ttl> ; + . + +<#turtle-syntax-number-09> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-09" ; + rdfs:comment "double literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-09.ttl> ; + . + +<#turtle-syntax-number-10> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-10" ; + rdfs:comment "negative double literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-10.ttl> ; + . + +<#turtle-syntax-number-11> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-number-11" ; + rdfs:comment "double literal no fraction" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-number-11.ttl> ; + . + +<#turtle-syntax-datatypes-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-datatypes-01" ; + rdfs:comment "xsd:byte literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-datatypes-01.ttl> ; + . + +<#turtle-syntax-datatypes-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-datatypes-02" ; + rdfs:comment "integer as xsd:string" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-datatypes-02.ttl> ; + . + +<#turtle-syntax-kw-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-kw-01" ; + rdfs:comment "boolean literal (true)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-kw-01.ttl> ; + . + +<#turtle-syntax-kw-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-kw-02" ; + rdfs:comment "boolean literal (false)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-kw-02.ttl> ; + . + +<#turtle-syntax-kw-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-kw-03" ; + rdfs:comment "'a' as keyword" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-kw-03.ttl> ; + . + +<#turtle-syntax-struct-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-struct-01" ; + rdfs:comment "object list" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-struct-01.ttl> ; + . + +<#turtle-syntax-struct-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-struct-02" ; + rdfs:comment "predicate list with object list" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-struct-02.ttl> ; + . + +<#turtle-syntax-struct-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-struct-03" ; + rdfs:comment "predicate list with object list and dangling ';'" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-struct-03.ttl> ; + . + +<#turtle-syntax-struct-04> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-struct-04" ; + rdfs:comment "predicate list with multiple ;;" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-struct-04.ttl> ; + . + +<#turtle-syntax-struct-05> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-struct-05" ; + rdfs:comment "predicate list with multiple ;;" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-struct-05.ttl> ; + . + +<#turtle-syntax-lists-01> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-lists-01" ; + rdfs:comment "empty list" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-lists-01.ttl> ; + . + +<#turtle-syntax-lists-02> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-lists-02" ; + rdfs:comment "mixed list" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-lists-02.ttl> ; + . + +<#turtle-syntax-lists-03> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-lists-03" ; + rdfs:comment "isomorphic list as subject and object" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-lists-03.ttl> ; + . + +<#turtle-syntax-lists-04> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-lists-04" ; + rdfs:comment "lists of lists" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-lists-04.ttl> ; + . + +<#turtle-syntax-lists-05> rdf:type rdft:TestTurtlePositiveSyntax ; + mf:name "turtle-syntax-lists-05" ; + rdfs:comment "mixed lists with embedded lists" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-lists-05.ttl> ; + . + +<#turtle-syntax-bad-uri-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-uri-01" ; + rdfs:comment "Bad IRI : space (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-uri-01.ttl> ; + . + +<#turtle-syntax-bad-uri-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-uri-02" ; + rdfs:comment "Bad IRI : bad escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-uri-02.ttl> ; + . + +<#turtle-syntax-bad-uri-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-uri-03" ; + rdfs:comment "Bad IRI : bad long escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-uri-03.ttl> ; + . + +<#turtle-syntax-bad-uri-04> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-uri-04" ; + rdfs:comment "Bad IRI : character escapes not allowed (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-uri-04.ttl> ; + . + +<#turtle-syntax-bad-uri-05> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-uri-05" ; + rdfs:comment "Bad IRI : character escapes not allowed (2) (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-uri-05.ttl> ; + . + +<#turtle-syntax-bad-prefix-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-prefix-01" ; + rdfs:comment "No prefix (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-prefix-01.ttl> ; + . + +<#turtle-syntax-bad-prefix-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-prefix-02" ; + rdfs:comment "No prefix (2) (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-prefix-02.ttl> ; + . + +<#turtle-syntax-bad-prefix-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-prefix-03" ; + rdfs:comment "@prefix without URI (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-prefix-03.ttl> ; + . + +<#turtle-syntax-bad-prefix-04> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-prefix-04" ; + rdfs:comment "@prefix without prefix name (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-prefix-04.ttl> ; + . + +<#turtle-syntax-bad-prefix-05> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-prefix-05" ; + rdfs:comment "@prefix without ':' (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-prefix-05.ttl> ; + . + +<#turtle-syntax-bad-base-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-base-01" ; + rdfs:comment "@base without URI (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-base-01.ttl> ; + . + +<#turtle-syntax-bad-base-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-base-02" ; + rdfs:comment "@base in wrong case (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-base-02.ttl> ; + . + +<#turtle-syntax-bad-base-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-base-03" ; + rdfs:comment "BASE without URI (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-base-03.ttl> ; + . + +<#turtle-syntax-bad-struct-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-01" ; + rdfs:comment "Turtle is not TriG (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-01.ttl> ; + . + +<#turtle-syntax-bad-struct-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-02" ; + rdfs:comment "Turtle is not N3 (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-02.ttl> ; + . + +<#turtle-syntax-bad-struct-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-03" ; + rdfs:comment "Turtle is not NQuads (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-03.ttl> ; + . + +<#turtle-syntax-bad-struct-04> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-04" ; + rdfs:comment "Turtle does not allow literals-as-subjects (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-04.ttl> ; + . + +<#turtle-syntax-bad-struct-05> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-05" ; + rdfs:comment "Turtle does not allow literals-as-predicates (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-05.ttl> ; + . + +<#turtle-syntax-bad-struct-06> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-06" ; + rdfs:comment "Turtle does not allow bnodes-as-predicates (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-06.ttl> ; + . + +<#turtle-syntax-bad-struct-07> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-07" ; + rdfs:comment "Turtle does not allow labeled bnodes-as-predicates (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-07.ttl> ; + . + +<#turtle-syntax-bad-kw-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-kw-01" ; + rdfs:comment "'A' is not a keyword (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-kw-01.ttl> ; + . + +<#turtle-syntax-bad-kw-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-kw-02" ; + rdfs:comment "'a' cannot be used as subject (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-kw-02.ttl> ; + . + +<#turtle-syntax-bad-kw-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-kw-03" ; + rdfs:comment "'a' cannot be used as object (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-kw-03.ttl> ; + . + +<#turtle-syntax-bad-kw-04> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-kw-04" ; + rdfs:comment "'true' cannot be used as subject (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-kw-04.ttl> ; + . + +<#turtle-syntax-bad-kw-05> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-kw-05" ; + rdfs:comment "'true' cannot be used as object (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-kw-05.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-01" ; + rdfs:comment "{} fomulae not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-01.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-02" ; + rdfs:comment "= is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-02.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-03" ; + rdfs:comment "N3 paths not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-03.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-04> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-04" ; + rdfs:comment "N3 paths not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-04.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-05> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-05" ; + rdfs:comment "N3 is...of not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-05.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-06> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-06" ; + rdfs:comment "N3 paths not in Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-06.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-07> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-07" ; + rdfs:comment "@keywords is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-07.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-08> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-08" ; + rdfs:comment "@keywords is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-08.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-09> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-09" ; + rdfs:comment "=> is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-09.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-10> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-10" ; + rdfs:comment "<= is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-10.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-11> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-11" ; + rdfs:comment "@forSome is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-11.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-12> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-12" ; + rdfs:comment "@forAll is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-12.ttl> ; + . + +<#turtle-syntax-bad-n3-extras-13> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-n3-extras-13" ; + rdfs:comment "@keywords is not Turtle (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-n3-extras-13.ttl> ; + . + +<#turtle-syntax-bad-struct-08> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-08" ; + rdfs:comment "missing '.' (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-08.ttl> ; + . + +<#turtle-syntax-bad-struct-09> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-09" ; + rdfs:comment "extra '.' (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-09.ttl> ; + . + +<#turtle-syntax-bad-struct-10> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-10" ; + rdfs:comment "extra '.' (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-10.ttl> ; + . + +<#turtle-syntax-bad-struct-11> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-11" ; + rdfs:comment "trailing ';' no '.' (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-11.ttl> ; + . + +<#turtle-syntax-bad-struct-12> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-12" ; + rdfs:comment "subject, predicate, no object (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-12.ttl> ; + . + +<#turtle-syntax-bad-struct-13> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-13" ; + rdfs:comment "subject, predicate, no object (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-13.ttl> ; + . + +<#turtle-syntax-bad-struct-14> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-14" ; + rdfs:comment "literal as subject (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-14.ttl> ; + . + +<#turtle-syntax-bad-struct-15> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-15" ; + rdfs:comment "literal as predicate (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-15.ttl> ; + . + +<#turtle-syntax-bad-struct-16> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-16" ; + rdfs:comment "bnode as predicate (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-16.ttl> ; + . + +<#turtle-syntax-bad-struct-17> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-struct-17" ; + rdfs:comment "labeled bnode as predicate (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-struct-17.ttl> ; + . + +<#turtle-syntax-bad-lang-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-lang-01" ; + rdfs:comment "langString with bad lang (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-lang-01.ttl> ; + . + +<#turtle-syntax-bad-esc-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-esc-01" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-esc-01.ttl> ; + . + +<#turtle-syntax-bad-esc-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-esc-02" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-esc-02.ttl> ; + . + +<#turtle-syntax-bad-esc-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-esc-03" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-esc-03.ttl> ; + . + +<#turtle-syntax-bad-esc-04> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-esc-04" ; + rdfs:comment "Bad string escape (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-esc-04.ttl> ; + . + +<#turtle-syntax-bad-pname-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-pname-01" ; + rdfs:comment "'~' must be escaped in pname (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-pname-01.ttl> ; + . + +<#turtle-syntax-bad-pname-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-pname-02" ; + rdfs:comment "Bad %-sequence in pname (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-pname-02.ttl> ; + . + +<#turtle-syntax-bad-pname-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-pname-03" ; + rdfs:comment "Bad unicode escape in pname (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-pname-03.ttl> ; + . + +<#turtle-syntax-bad-string-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-string-01" ; + rdfs:comment "mismatching string literal open/close (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-string-01.ttl> ; + . + +<#turtle-syntax-bad-string-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-string-02" ; + rdfs:comment "mismatching string literal open/close (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-string-02.ttl> ; + . + +<#turtle-syntax-bad-string-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-string-03" ; + rdfs:comment "mismatching string literal long/short (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-string-03.ttl> ; + . + +<#turtle-syntax-bad-string-04> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-string-04" ; + rdfs:comment "mismatching long string literal open/close (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-string-04.ttl> ; + . + +<#turtle-syntax-bad-string-05> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-string-05" ; + rdfs:comment "Long literal with missing end (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-string-05.ttl> ; + . + +<#turtle-syntax-bad-string-06> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-string-06" ; + rdfs:comment "Long literal with extra quote (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-string-06.ttl> ; + . + +<#turtle-syntax-bad-string-07> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-string-07" ; + rdfs:comment "Long literal with extra squote (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-string-07.ttl> ; + . + +<#turtle-syntax-bad-num-01> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-num-01" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-num-01.ttl> ; + . + +<#turtle-syntax-bad-num-02> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-num-02" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-num-02.ttl> ; + . + +<#turtle-syntax-bad-num-03> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-num-03" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-num-03.ttl> ; + . + +<#turtle-syntax-bad-num-04> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-num-04" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-num-04.ttl> ; + . + +<#turtle-syntax-bad-num-05> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-num-05" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-num-05.ttl> ; + . + +<#turtle-eval-struct-01> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-eval-struct-01" ; + rdfs:comment "triple with IRIs" ; + rdft:approval rdft:Approved ; + mf:action <turtle-eval-struct-01.ttl> ; + mf:result <turtle-eval-struct-01.nt> ; + . + +<#turtle-eval-struct-02> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-eval-struct-02" ; + rdfs:comment "triple with IRIs and embedded whitespace" ; + rdft:approval rdft:Approved ; + mf:action <turtle-eval-struct-02.ttl> ; + mf:result <turtle-eval-struct-02.nt> ; + . + +<#turtle-subm-01> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-01" ; + rdfs:comment "Blank subject" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-01.ttl> ; + mf:result <turtle-subm-01.nt> ; + . + +<#turtle-subm-02> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-02" ; + rdfs:comment "@prefix and qnames" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-02.ttl> ; + mf:result <turtle-subm-02.nt> ; + . + +<#turtle-subm-03> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-03" ; + rdfs:comment ", operator" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-03.ttl> ; + mf:result <turtle-subm-03.nt> ; + . + +<#turtle-subm-04> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-04" ; + rdfs:comment "; operator" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-04.ttl> ; + mf:result <turtle-subm-04.nt> ; + . + +<#turtle-subm-05> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-05" ; + rdfs:comment "empty [] as subject and object" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-05.ttl> ; + mf:result <turtle-subm-05.nt> ; + . + +<#turtle-subm-06> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-06" ; + rdfs:comment "non-empty [] as subject and object" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-06.ttl> ; + mf:result <turtle-subm-06.nt> ; + . + +<#turtle-subm-07> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-07" ; + rdfs:comment "'a' as predicate" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-07.ttl> ; + mf:result <turtle-subm-07.nt> ; + . + +<#turtle-subm-08> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-08" ; + rdfs:comment "simple collection" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-08.ttl> ; + mf:result <turtle-subm-08.nt> ; + . + +<#turtle-subm-09> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-09" ; + rdfs:comment "empty collection" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-09.ttl> ; + mf:result <turtle-subm-09.nt> ; + . + +<#turtle-subm-10> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-10" ; + rdfs:comment "integer datatyped literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-10.ttl> ; + mf:result <turtle-subm-10.nt> ; + . + +<#turtle-subm-11> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-11" ; + rdfs:comment "decimal integer canonicalization" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-11.ttl> ; + mf:result <turtle-subm-11.nt> ; + . + +<#turtle-subm-12> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-12" ; + rdfs:comment "- and _ in names and qnames" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-12.ttl> ; + mf:result <turtle-subm-12.nt> ; + . + +<#turtle-subm-13> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-13" ; + rdfs:comment "tests for rdf:_<numbers> and other qnames starting with _" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-13.ttl> ; + mf:result <turtle-subm-13.nt> ; + . + +<#turtle-subm-14> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-14" ; + rdfs:comment "bare : allowed" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-14.ttl> ; + mf:result <turtle-subm-14.nt> ; + . + +<#turtle-subm-15> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-15" ; + rdfs:comment "simple long literal" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-15.ttl> ; + mf:result <turtle-subm-15.nt> ; + . + +<#turtle-subm-16> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-16" ; + rdfs:comment "long literals with escapes" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-16.ttl> ; + mf:result <turtle-subm-16.nt> ; + . + +<#turtle-subm-17> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-17" ; + rdfs:comment "floating point number" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-17.ttl> ; + mf:result <turtle-subm-17.nt> ; + . + +<#turtle-subm-18> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-18" ; + rdfs:comment "empty literals, normal and long variant" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-18.ttl> ; + mf:result <turtle-subm-18.nt> ; + . + +<#turtle-subm-19> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-19" ; + rdfs:comment "positive integer, decimal and doubles" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-19.ttl> ; + mf:result <turtle-subm-19.nt> ; + . + +<#turtle-subm-20> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-20" ; + rdfs:comment "negative integer, decimal and doubles" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-20.ttl> ; + mf:result <turtle-subm-20.nt> ; + . + +<#turtle-subm-21> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-21" ; + rdfs:comment "long literal ending in double quote" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-21.ttl> ; + mf:result <turtle-subm-21.nt> ; + . + +<#turtle-subm-22> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-22" ; + rdfs:comment "boolean literals" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-22.ttl> ; + mf:result <turtle-subm-22.nt> ; + . + +<#turtle-subm-23> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-23" ; + rdfs:comment "comments" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-23.ttl> ; + mf:result <turtle-subm-23.nt> ; + . + +<#turtle-subm-24> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-24" ; + rdfs:comment "no final mewline" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-24.ttl> ; + mf:result <turtle-subm-24.nt> ; + . + +<#turtle-subm-25> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-25" ; + rdfs:comment "repeating a @prefix changes pname definition" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-25.ttl> ; + mf:result <turtle-subm-25.nt> ; + . + +<#turtle-subm-26> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-26" ; + rdfs:comment "Variations on decimal canonicalization" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-26.ttl> ; + mf:result <turtle-subm-26.nt> ; + . + +<#turtle-subm-27> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-subm-27" ; + rdfs:comment "Repeating @base changes base for relative IRI lookup" ; + rdft:approval rdft:Approved ; + mf:action <turtle-subm-27.ttl> ; + mf:result <turtle-subm-27.nt> ; + . + +<#turtle-eval-bad-01> rdf:type rdft:TestTurtleNegativeEval ; + mf:name "turtle-eval-bad-01" ; + rdfs:comment "Bad IRI : good escape, bad charcater (negative evaluation test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-eval-bad-01.ttl> ; + . + +<#turtle-eval-bad-02> rdf:type rdft:TestTurtleNegativeEval ; + mf:name "turtle-eval-bad-02" ; + rdfs:comment "Bad IRI : hex 3C is < (negative evaluation test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-eval-bad-02.ttl> ; + . + +<#turtle-eval-bad-03> rdf:type rdft:TestTurtleNegativeEval ; + mf:name "turtle-eval-bad-03" ; + rdfs:comment "Bad IRI : hex 3E is (negative evaluation test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-eval-bad-03.ttl> ; + . + +<#turtle-eval-bad-04> rdf:type rdft:TestTurtleNegativeEval ; + mf:name "turtle-eval-bad-04" ; + rdfs:comment "Bad IRI : {abc} (negative evaluation test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-eval-bad-04.ttl> ; + . + +# tests requested by Jeremy Carroll +# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c35 +<#comment_following_localName> rdf:type rdft:TestTurtleEval ; + mf:name "comment_following_localName" ; + rdfs:comment "comment following localName" ; + rdft:approval rdft:Proposed ; + mf:action <comment_following_localName.ttl> ; + mf:result <IRI_spo.nt> ; + . + +<#number_sign_following_localName> rdf:type rdft:TestTurtleEval ; + mf:name "number_sign_following_localName" ; + rdfs:comment "number sign following localName" ; + rdft:approval rdft:Proposed ; + mf:action <number_sign_following_localName.ttl> ; + mf:result <number_sign_following_localName.nt> ; + . + +<#comment_following_PNAME_NS> rdf:type rdft:TestTurtleEval ; + mf:name "comment_following_PNAME_NS" ; + rdfs:comment "comment following PNAME_NS" ; + rdft:approval rdft:Proposed ; + mf:action <comment_following_PNAME_NS.ttl> ; + mf:result <comment_following_PNAME_NS.nt> ; + . + +<#number_sign_following_PNAME_NS> rdf:type rdft:TestTurtleEval ; + mf:name "number_sign_following_PNAME_NS" ; + rdfs:comment "number sign following PNAME_NS" ; + rdft:approval rdft:Proposed ; + mf:action <number_sign_following_PNAME_NS.ttl> ; + mf:result <number_sign_following_PNAME_NS.nt> ; + . + +# tests from Dave Beckett +# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c28 +<#LITERAL_LONG2_with_REVERSE_SOLIDUS> rdf:type rdft:TestTurtleEval ; + mf:name "LITERAL_LONG2_with_REVERSE_SOLIDUS" ; + rdfs:comment "REVERSE SOLIDUS at end of LITERAL_LONG2" ; + rdft:approval rdft:Approved ; + mf:action <LITERAL_LONG2_with_REVERSE_SOLIDUS.ttl> ; + mf:result <LITERAL_LONG2_with_REVERSE_SOLIDUS.nt> ; + . + +<#turtle-syntax-bad-LITERAL2_with_langtag_and_datatype> rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "turtle-syntax-bad-num-05" ; + rdfs:comment "Bad number format (negative test)" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl> ; + . + +<#two_LITERAL_LONG2s> rdf:type rdft:TestTurtleEval ; + mf:name "two_LITERAL_LONG2s" ; + rdfs:comment "two LITERAL_LONG2s testing quote delimiter overrun" ; + rdft:approval rdft:Approved ; + mf:action <two_LITERAL_LONG2s.ttl> ; + mf:result <two_LITERAL_LONG2s.nt> ; + . + +<#langtagged_LONG_with_subtag> rdf:type rdft:TestTurtleEval ; + mf:name "langtagged_LONG_with_subtag" ; + rdfs:comment "langtagged LONG with subtag \"\"\"Cheers\"\"\"@en-UK" ; + rdft:approval rdft:Approved ; + mf:action <langtagged_LONG_with_subtag.ttl> ; + mf:result <langtagged_LONG_with_subtag.nt> ; + . + +# tests from David Robillard +# http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c21 +<#turtle-syntax-bad-blank-label-dot-end> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Blank node label must not end in dot" ; + mf:name "turtle-syntax-bad-blank-label-dot-end" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-blank-label-dot-end.ttl> . + +<#turtle-syntax-bad-number-dot-in-anon> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Dot delimeter may not appear in anonymous nodes" ; + mf:name "turtle-syntax-bad-number-dot-in-anon" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-number-dot-in-anon.ttl> . + +<#turtle-syntax-bad-ln-dash-start> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Local name must not begin with dash" ; + mf:name "turtle-syntax-bad-ln-dash-start" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-ln-dash-start.ttl> . + +<#turtle-syntax-bad-ln-escape> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Bad hex escape in local name" ; + mf:name "turtle-syntax-bad-ln-escape" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-ln-escape.ttl> . + +<#turtle-syntax-bad-ln-escape-start> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Bad hex escape at start of local name" ; + mf:name "turtle-syntax-bad-ln-escape-start" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-ln-escape-start.ttl> . + +<#turtle-syntax-bad-ns-dot-end> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Prefix must not end in dot" ; + mf:name "turtle-syntax-bad-ns-dot-end" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-ns-dot-end.ttl> . + +<#turtle-syntax-bad-ns-dot-start> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Prefix must not start with dot" ; + mf:name "turtle-syntax-bad-ns-dot-start" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-ns-dot-start.ttl> . + +<#turtle-syntax-bad-missing-ns-dot-end> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Prefix must not end in dot (error in triple, not prefix directive like turtle-syntax-bad-ns-dot-end)" ; + mf:name "turtle-syntax-bad-missing-ns-dot-end" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-missing-ns-dot-end.ttl> . + +<#turtle-syntax-bad-missing-ns-dot-start> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Prefix must not start with dot (error in triple, not prefix directive like turtle-syntax-bad-ns-dot-end)" ; + mf:name "turtle-syntax-bad-missing-ns-dot-start" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-bad-missing-ns-dot-start.ttl> . + +<#turtle-syntax-ln-dots> + rdf:type rdft:TestTurtlePositiveSyntax ; + rdfs:comment "Dots in pname local names" ; + mf:name "turtle-syntax-ln-dots" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-ln-dots.ttl> . + +<#turtle-syntax-ln-colons> + rdf:type rdft:TestTurtlePositiveSyntax ; + rdfs:comment "Colons in pname local names" ; + mf:name "turtle-syntax-ln-colons" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-ln-colons.ttl> . + +<#turtle-syntax-ns-dots> + rdf:type rdft:TestTurtlePositiveSyntax ; + rdfs:comment "Dots in namespace names" ; + mf:name "turtle-syntax-ns-dots" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-ns-dots.ttl> . + +<#turtle-syntax-blank-label> + rdf:type rdft:TestTurtlePositiveSyntax ; + rdfs:comment "Characters allowed in blank node labels" ; + mf:name "turtle-syntax-blank-label" ; + rdft:approval rdft:Approved ; + mf:action <turtle-syntax-blank-label.ttl> . diff --git a/test/w3c/TurtleTests/negative_numeric.nt b/test/w3c/TurtleTests/negative_numeric.nt new file mode 100644 index 00000000..4baf628d --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/negative_numeric.ttl b/test/w3c/TurtleTests/negative_numeric.ttl new file mode 100644 index 00000000..a6a7f57b --- /dev/null +++ b/test/w3c/TurtleTests/negative_numeric.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> -1 . diff --git a/test/w3c/TurtleTests/nested_blankNodePropertyLists.nt b/test/w3c/TurtleTests/nested_blankNodePropertyLists.nt new file mode 100644 index 00000000..5284c007 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/nested_blankNodePropertyLists.ttl b/test/w3c/TurtleTests/nested_blankNodePropertyLists.ttl new file mode 100644 index 00000000..a3e4681c --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/nested_collection.nt b/test/w3c/TurtleTests/nested_collection.nt new file mode 100644 index 00000000..eaea2847 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/nested_collection.ttl b/test/w3c/TurtleTests/nested_collection.ttl new file mode 100644 index 00000000..944e7c6b --- /dev/null +++ b/test/w3c/TurtleTests/nested_collection.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> ((1)) . diff --git a/test/w3c/TurtleTests/number_sign_following_PNAME_NS.nt b/test/w3c/TurtleTests/number_sign_following_PNAME_NS.nt new file mode 100644 index 00000000..82d9629a --- /dev/null +++ b/test/w3c/TurtleTests/number_sign_following_PNAME_NS.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/#numbersign> . diff --git a/test/w3c/TurtleTests/number_sign_following_PNAME_NS.ttl b/test/w3c/TurtleTests/number_sign_following_PNAME_NS.ttl new file mode 100644 index 00000000..2003fa4d --- /dev/null +++ b/test/w3c/TurtleTests/number_sign_following_PNAME_NS.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/>. +<http://a.example/s> <http://a.example/p> p:\#numbersign +. diff --git a/test/w3c/TurtleTests/number_sign_following_localName.nt b/test/w3c/TurtleTests/number_sign_following_localName.nt new file mode 100644 index 00000000..5ae57b8d --- /dev/null +++ b/test/w3c/TurtleTests/number_sign_following_localName.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> <http://a.example/o#numbersign> . diff --git a/test/w3c/TurtleTests/number_sign_following_localName.ttl b/test/w3c/TurtleTests/number_sign_following_localName.ttl new file mode 100644 index 00000000..a0e39ecd --- /dev/null +++ b/test/w3c/TurtleTests/number_sign_following_localName.ttl @@ -0,0 +1,3 @@ +@prefix p: <http://a.example/> . +<http://a.example/s> <http://a.example/p> p:o\#numbersign +. diff --git a/test/w3c/TurtleTests/numeric_with_leading_0.nt b/test/w3c/TurtleTests/numeric_with_leading_0.nt new file mode 100644 index 00000000..1df5c472 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/numeric_with_leading_0.ttl b/test/w3c/TurtleTests/numeric_with_leading_0.ttl new file mode 100644 index 00000000..a5eac209 --- /dev/null +++ b/test/w3c/TurtleTests/numeric_with_leading_0.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> 01 . diff --git a/test/w3c/TurtleTests/objectList_with_two_objects.nt b/test/w3c/TurtleTests/objectList_with_two_objects.nt new file mode 100644 index 00000000..7f8e9c0f --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/objectList_with_two_objects.ttl b/test/w3c/TurtleTests/objectList_with_two_objects.ttl new file mode 100644 index 00000000..b12f02d1 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/old_style_base.ttl b/test/w3c/TurtleTests/old_style_base.ttl new file mode 100644 index 00000000..f0f4c03c --- /dev/null +++ b/test/w3c/TurtleTests/old_style_base.ttl @@ -0,0 +1,2 @@ +@base <http://a.example/>. +<s> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/old_style_prefix.ttl b/test/w3c/TurtleTests/old_style_prefix.ttl new file mode 100644 index 00000000..59595672 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/percent_escaped_localName.nt b/test/w3c/TurtleTests/percent_escaped_localName.nt new file mode 100644 index 00000000..e0af4b62 --- /dev/null +++ b/test/w3c/TurtleTests/percent_escaped_localName.nt @@ -0,0 +1 @@ +<http://a.example/%25> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/percent_escaped_localName.ttl b/test/w3c/TurtleTests/percent_escaped_localName.ttl new file mode 100644 index 00000000..0564ccab --- /dev/null +++ b/test/w3c/TurtleTests/percent_escaped_localName.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:%25 <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/positive_numeric.nt b/test/w3c/TurtleTests/positive_numeric.nt new file mode 100644 index 00000000..96e6086a --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/positive_numeric.ttl b/test/w3c/TurtleTests/positive_numeric.ttl new file mode 100644 index 00000000..606691d9 --- /dev/null +++ b/test/w3c/TurtleTests/positive_numeric.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p> +1 . diff --git a/test/w3c/TurtleTests/predicateObjectList_with_two_objectLists.nt b/test/w3c/TurtleTests/predicateObjectList_with_two_objectLists.nt new file mode 100644 index 00000000..274182c7 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/predicateObjectList_with_two_objectLists.ttl b/test/w3c/TurtleTests/predicateObjectList_with_two_objectLists.ttl new file mode 100644 index 00000000..337b132f --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/prefix_only_IRI.ttl b/test/w3c/TurtleTests/prefix_only_IRI.ttl new file mode 100644 index 00000000..9ff66603 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/prefix_reassigned_and_used.nt b/test/w3c/TurtleTests/prefix_reassigned_and_used.nt new file mode 100644 index 00000000..68bc9efe --- /dev/null +++ b/test/w3c/TurtleTests/prefix_reassigned_and_used.nt @@ -0,0 +1 @@ +<http://b.example/s> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/prefix_reassigned_and_used.ttl b/test/w3c/TurtleTests/prefix_reassigned_and_used.ttl new file mode 100644 index 00000000..1f948597 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/prefix_with_PN_CHARS_BASE_character_boundaries.ttl b/test/w3c/TurtleTests/prefix_with_PN_CHARS_BASE_character_boundaries.ttl new file mode 100644 index 00000000..bc436bd2 --- /dev/null +++ b/test/w3c/TurtleTests/prefix_with_PN_CHARS_BASE_character_boundaries.ttl @@ -0,0 +1,2 @@ +@prefix AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀: <http://a.example/> . +<http://a.example/s> <http://a.example/p> AZazÀÖØöø˿ͰͽͿ⁰Ⰰ、豈﷏ﷰ�𐀀:o . diff --git a/test/w3c/TurtleTests/prefix_with_non_leading_extras.ttl b/test/w3c/TurtleTests/prefix_with_non_leading_extras.ttl new file mode 100644 index 00000000..193460a8 --- /dev/null +++ b/test/w3c/TurtleTests/prefix_with_non_leading_extras.ttl @@ -0,0 +1,2 @@ +@prefix a·̀ͯ‿.⁀: <http://a.example/>. +a·̀ͯ‿.⁀:s <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/prefixed_IRI_object.ttl b/test/w3c/TurtleTests/prefixed_IRI_object.ttl new file mode 100644 index 00000000..c2d50362 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/prefixed_IRI_predicate.ttl b/test/w3c/TurtleTests/prefixed_IRI_predicate.ttl new file mode 100644 index 00000000..2c1e5cc7 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/prefixed_name_datatype.ttl b/test/w3c/TurtleTests/prefixed_name_datatype.ttl new file mode 100644 index 00000000..4a526073 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/repeated_semis_at_end.ttl b/test/w3c/TurtleTests/repeated_semis_at_end.ttl new file mode 100644 index 00000000..8a4d9356 --- /dev/null +++ b/test/w3c/TurtleTests/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/test/w3c/TurtleTests/repeated_semis_not_at_end.nt b/test/w3c/TurtleTests/repeated_semis_not_at_end.nt new file mode 100644 index 00000000..9ac6005f --- /dev/null +++ b/test/w3c/TurtleTests/repeated_semis_not_at_end.nt @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1> . diff --git a/test/w3c/TurtleTests/repeated_semis_not_at_end.ttl b/test/w3c/TurtleTests/repeated_semis_not_at_end.ttl new file mode 100644 index 00000000..3c8144f3 --- /dev/null +++ b/test/w3c/TurtleTests/repeated_semis_not_at_end.ttl @@ -0,0 +1 @@ +<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; . diff --git a/test/w3c/TurtleTests/reserved_escaped_localName.nt b/test/w3c/TurtleTests/reserved_escaped_localName.nt new file mode 100644 index 00000000..1ee4f32e --- /dev/null +++ b/test/w3c/TurtleTests/reserved_escaped_localName.nt @@ -0,0 +1 @@ +<http://a.example/_~.-!$&'()*+,;=/?#@%00> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/reserved_escaped_localName.ttl b/test/w3c/TurtleTests/reserved_escaped_localName.ttl new file mode 100644 index 00000000..ae97f8af --- /dev/null +++ b/test/w3c/TurtleTests/reserved_escaped_localName.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:\_\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\%00 <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/sole_blankNodePropertyList.nt b/test/w3c/TurtleTests/sole_blankNodePropertyList.nt new file mode 100644 index 00000000..b48df9a7 --- /dev/null +++ b/test/w3c/TurtleTests/sole_blankNodePropertyList.nt @@ -0,0 +1 @@ +_:b1 <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/sole_blankNodePropertyList.ttl b/test/w3c/TurtleTests/sole_blankNodePropertyList.ttl new file mode 100644 index 00000000..5cc300f3 --- /dev/null +++ b/test/w3c/TurtleTests/sole_blankNodePropertyList.ttl @@ -0,0 +1 @@ +[ <http://a.example/p> <http://a.example/o> ] . diff --git a/test/w3c/TurtleTests/turtle-eval-bad-01.ttl b/test/w3c/TurtleTests/turtle-eval-bad-01.ttl new file mode 100644 index 00000000..c9c458e8 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-bad-01.ttl @@ -0,0 +1,2 @@ +# Bad IRI : good escape, bad charcater +<http://www.w3.org/2013/TurtleTests/\u0020> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-eval-bad-02.ttl b/test/w3c/TurtleTests/turtle-eval-bad-02.ttl new file mode 100644 index 00000000..f2be6ea5 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-bad-02.ttl @@ -0,0 +1,2 @@ +# Bad IRI : hex 3C is < +<http://www.w3.org/2013/TurtleTests/\u003C> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-eval-bad-03.ttl b/test/w3c/TurtleTests/turtle-eval-bad-03.ttl new file mode 100644 index 00000000..1aec7ff9 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-bad-03.ttl @@ -0,0 +1,2 @@ +# Bad IRI : hex 3E is > +<http://www.w3.org/2013/TurtleTests/\u003E> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-eval-bad-04.ttl b/test/w3c/TurtleTests/turtle-eval-bad-04.ttl new file mode 100644 index 00000000..4b7601b3 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-bad-04.ttl @@ -0,0 +1,2 @@ +# Bad IRI +<http://www.w3.org/2013/TurtleTests/{abc}> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-eval-struct-01.nt b/test/w3c/TurtleTests/turtle-eval-struct-01.nt new file mode 100644 index 00000000..2e2d5baf --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-struct-01.nt @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-eval-struct-01.ttl b/test/w3c/TurtleTests/turtle-eval-struct-01.ttl new file mode 100644 index 00000000..2e2d5baf --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-struct-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-eval-struct-02.nt b/test/w3c/TurtleTests/turtle-eval-struct-02.nt new file mode 100644 index 00000000..6cdc856a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-struct-02.nt @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p1> <http://www.w3.org/2013/TurtleTests/o1> . +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p2> <http://www.w3.org/2013/TurtleTests/o2> . diff --git a/test/w3c/TurtleTests/turtle-eval-struct-02.ttl b/test/w3c/TurtleTests/turtle-eval-struct-02.ttl new file mode 100644 index 00000000..45b9ea05 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-struct-02.ttl @@ -0,0 +1,4 @@ +<http://www.w3.org/2013/TurtleTests/s> + <http://www.w3.org/2013/TurtleTests/p1> <http://www.w3.org/2013/TurtleTests/o1> ; + <http://www.w3.org/2013/TurtleTests/p2> <http://www.w3.org/2013/TurtleTests/o2> ; + . diff --git a/test/w3c/TurtleTests/turtle-subm-01.nt b/test/w3c/TurtleTests/turtle-subm-01.nt new file mode 100644 index 00000000..9efa50de --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-01.nt @@ -0,0 +1 @@ +_:b1 <http://www.w3.org/2013/TurtleTests/turtle-subm-01.ttl#x> <http://www.w3.org/2013/TurtleTests/turtle-subm-01.ttl#y> . diff --git a/test/w3c/TurtleTests/turtle-subm-01.ttl b/test/w3c/TurtleTests/turtle-subm-01.ttl new file mode 100644 index 00000000..78da35e6 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-01.ttl @@ -0,0 +1,2 @@ +@prefix : <#> . +[] :x :y . diff --git a/test/w3c/TurtleTests/turtle-subm-02.nt b/test/w3c/TurtleTests/turtle-subm-02.nt new file mode 100644 index 00000000..5ccb5bd2 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-02.nt @@ -0,0 +1,3 @@ +<http://example.org/base1#a> <http://example.org/base1#b> <http://example.org/base1#c> . +<http://example.org/base2#a> <http://example.org/base2#b> <http://example.org/base2#c> . +<http://example.org/base1#a> <http://example.org/base2#a> <http://example.org/base3#a> . diff --git a/test/w3c/TurtleTests/turtle-subm-02.ttl b/test/w3c/TurtleTests/turtle-subm-02.ttl new file mode 100644 index 00000000..9070d2c4 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-02.ttl @@ -0,0 +1,7 @@ +# Test @prefix and qnames +@prefix : <http://example.org/base1#> . +@prefix a: <http://example.org/base2#> . +@prefix b: <http://example.org/base3#> . +:a :b :c . +a:a a:b a:c . +:a a:a b:a . diff --git a/test/w3c/TurtleTests/turtle-subm-03.nt b/test/w3c/TurtleTests/turtle-subm-03.nt new file mode 100644 index 00000000..99732ab3 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-03.nt @@ -0,0 +1,3 @@ +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#d> . +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#e> . diff --git a/test/w3c/TurtleTests/turtle-subm-03.ttl b/test/w3c/TurtleTests/turtle-subm-03.ttl new file mode 100644 index 00000000..a623f3c1 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-03.ttl @@ -0,0 +1,5 @@ +# Test , operator +@prefix : <http://example.org/base#> . +:a :b :c, + :d, + :e . diff --git a/test/w3c/TurtleTests/turtle-subm-04.nt b/test/w3c/TurtleTests/turtle-subm-04.nt new file mode 100644 index 00000000..d6ce9e8f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-04.nt @@ -0,0 +1,3 @@ +<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> . +<http://example.org/base#a> <http://example.org/base#d> <http://example.org/base#e> . +<http://example.org/base#a> <http://example.org/base#f> <http://example.org/base#g> . diff --git a/test/w3c/TurtleTests/turtle-subm-04.ttl b/test/w3c/TurtleTests/turtle-subm-04.ttl new file mode 100644 index 00000000..9179fa50 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-04.ttl @@ -0,0 +1,5 @@ +# Test ; operator +@prefix : <http://example.org/base#> . +:a :b :c ; + :d :e ; + :f :g . diff --git a/test/w3c/TurtleTests/turtle-subm-05.nt b/test/w3c/TurtleTests/turtle-subm-05.nt new file mode 100644 index 00000000..d5d01526 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-05.nt @@ -0,0 +1,2 @@ +_:b1 <http://example.org/base#a> <http://example.org/base#b> . +<http://example.org/base#c> <http://example.org/base#d> _:b2 . diff --git a/test/w3c/TurtleTests/turtle-subm-05.ttl b/test/w3c/TurtleTests/turtle-subm-05.ttl new file mode 100644 index 00000000..c5181479 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-05.ttl @@ -0,0 +1,4 @@ +# Test empty [] operator; not allowed as predicate +@prefix : <http://example.org/base#> . +[] :a :b . +:c :d [] . diff --git a/test/w3c/TurtleTests/turtle-subm-06.nt b/test/w3c/TurtleTests/turtle-subm-06.nt new file mode 100644 index 00000000..d440197f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-06.nt @@ -0,0 +1,4 @@ +_:b1 <http://example.org/base#a> <http://example.org/base#b> . +_:b1 <http://example.org/base#c> <http://example.org/base#d> . +<http://example.org/base#e> <http://example.org/base#f> _:b2 . +_:b2 <http://example.org/base#g> <http://example.org/base#h> . diff --git a/test/w3c/TurtleTests/turtle-subm-06.ttl b/test/w3c/TurtleTests/turtle-subm-06.ttl new file mode 100644 index 00000000..adcbcabd --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-06.ttl @@ -0,0 +1,4 @@ +# Test non empty [] operator; not allowed as predicate +@prefix : <http://example.org/base#> . +[ :a :b ] :c :d . +:e :f [ :g :h ] . diff --git a/test/w3c/TurtleTests/turtle-subm-07.nt b/test/w3c/TurtleTests/turtle-subm-07.nt new file mode 100644 index 00000000..49961ea6 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-07.nt @@ -0,0 +1 @@ +<http://example.org/base#a> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/base#b> . diff --git a/test/w3c/TurtleTests/turtle-subm-07.ttl b/test/w3c/TurtleTests/turtle-subm-07.ttl new file mode 100644 index 00000000..9c1005cc --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-07.ttl @@ -0,0 +1,3 @@ +# 'a' only allowed as a predicate +@prefix : <http://example.org/base#> . +:a a :b . diff --git a/test/w3c/TurtleTests/turtle-subm-08.nt b/test/w3c/TurtleTests/turtle-subm-08.nt new file mode 100644 index 00000000..e62cede5 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-08.nt @@ -0,0 +1,5 @@ +<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> _:b1 . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple" . +_: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> "banana" . +_: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/test/w3c/TurtleTests/turtle-subm-08.ttl b/test/w3c/TurtleTests/turtle-subm-08.ttl new file mode 100644 index 00000000..84559403 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-08.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org/stuff/1.0/> . +:a :b ( "apple" "banana" ) . + diff --git a/test/w3c/TurtleTests/turtle-subm-09.nt b/test/w3c/TurtleTests/turtle-subm-09.nt new file mode 100644 index 00000000..a77939cd --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-09.nt @@ -0,0 +1 @@ +<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> . diff --git a/test/w3c/TurtleTests/turtle-subm-09.ttl b/test/w3c/TurtleTests/turtle-subm-09.ttl new file mode 100644 index 00000000..adce0a20 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-09.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org/stuff/1.0/> . +:a :b ( ) . + diff --git a/test/w3c/TurtleTests/turtle-subm-10.nt b/test/w3c/TurtleTests/turtle-subm-10.nt new file mode 100644 index 00000000..c7164085 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-10.nt @@ -0,0 +1,4 @@ +_:hasParent <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> . +_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:b1 <http://www.w3.org/2002/07/owl#onProperty> _:hasParent . +_:b1 <http://www.w3.org/2002/07/owl#maxCardinality> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/test/w3c/TurtleTests/turtle-subm-10.ttl b/test/w3c/TurtleTests/turtle-subm-10.ttl new file mode 100644 index 00000000..0afe1b0a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-10.ttl @@ -0,0 +1,10 @@ +# Test integer datatyped literals using an OWL cardinality constraint +@prefix owl: <http://www.w3.org/2002/07/owl#> . + +# based on examples in the OWL Reference + +_:hasParent a owl:ObjectProperty . + +[] a owl:Restriction ; + owl:onProperty _:hasParent ; + owl:maxCardinality 2 . diff --git a/test/w3c/TurtleTests/turtle-subm-11.nt b/test/w3c/TurtleTests/turtle-subm-11.nt new file mode 100644 index 00000000..ff88aa6f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-11.nt @@ -0,0 +1,5 @@ +<http://example.org/res1> <http://example.org/prop1> "000000"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res2> <http://example.org/prop2> "0"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res3> <http://example.org/prop3> "000001"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res4> <http://example.org/prop4> "2"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org/res5> <http://example.org/prop5> "4"^^<http://www.w3.org/2001/XMLSchema#integer> . diff --git a/test/w3c/TurtleTests/turtle-subm-11.ttl b/test/w3c/TurtleTests/turtle-subm-11.ttl new file mode 100644 index 00000000..5d36360e --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-11.ttl @@ -0,0 +1,5 @@ +<http://example.org/res1> <http://example.org/prop1> 000000 . +<http://example.org/res2> <http://example.org/prop2> 0 . +<http://example.org/res3> <http://example.org/prop3> 000001 . +<http://example.org/res4> <http://example.org/prop4> 2 . +<http://example.org/res5> <http://example.org/prop5> 4 . diff --git a/test/w3c/TurtleTests/turtle-subm-12.nt b/test/w3c/TurtleTests/turtle-subm-12.nt new file mode 100644 index 00000000..f936a5b6 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-12.nt @@ -0,0 +1,4 @@ +<http://example.org/ex1#foo-bar> <http://example.org/ex1#foo_bar> "a" . +<http://example.org/ex2#foo-bar> <http://example.org/ex2#foo_bar> "b" . +<http://example.org/ex3#foo-bar> <http://example.org/ex3#foo_bar> "c" . +<http://example.org/ex4#foo-bar> <http://example.org/ex4#foo_bar> "d" . diff --git a/test/w3c/TurtleTests/turtle-subm-12.ttl b/test/w3c/TurtleTests/turtle-subm-12.ttl new file mode 100644 index 00000000..3de1a43f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-12.ttl @@ -0,0 +1,10 @@ +# Tests for - and _ in names, qnames +@prefix ex1: <http://example.org/ex1#> . +@prefix ex-2: <http://example.org/ex2#> . +@prefix ex3_: <http://example.org/ex3#> . +@prefix ex4-: <http://example.org/ex4#> . + +ex1:foo-bar ex1:foo_bar "a" . +ex-2:foo-bar ex-2:foo_bar "b" . +ex3_:foo-bar ex3_:foo_bar "c" . +ex4-:foo-bar ex4-:foo_bar "d" . diff --git a/test/w3c/TurtleTests/turtle-subm-13.nt b/test/w3c/TurtleTests/turtle-subm-13.nt new file mode 100644 index 00000000..67404a59 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-13.nt @@ -0,0 +1,4 @@ +<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" . +<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" . +<http://example.org/ex#foo> <http://example.org/myprop#_abc> "def" . +<http://example.org/ex#foo> <http://example.org/myprop#_345> "678" . diff --git a/test/w3c/TurtleTests/turtle-subm-13.ttl b/test/w3c/TurtleTests/turtle-subm-13.ttl new file mode 100644 index 00000000..1fed9f5e --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-13.ttl @@ -0,0 +1,9 @@ +# Tests for rdf:_<numbers> and other qnames starting with _ +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix ex: <http://example.org/ex#> . +@prefix : <http://example.org/myprop#> . + +ex:foo rdf:_1 "1" . +ex:foo rdf:_2 "2" . +ex:foo :_abc "def" . +ex:foo :_345 "678" . diff --git a/test/w3c/TurtleTests/turtle-subm-14.nt b/test/w3c/TurtleTests/turtle-subm-14.nt new file mode 100644 index 00000000..195a1af7 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-14.nt @@ -0,0 +1,2 @@ +_:b1 <http://example.org/ron> _:b2 . +<http://example.org/ron> <http://example.org/ron> <http://example.org/ron> . diff --git a/test/w3c/TurtleTests/turtle-subm-14.ttl b/test/w3c/TurtleTests/turtle-subm-14.ttl new file mode 100644 index 00000000..a8be95be --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-14.ttl @@ -0,0 +1,7 @@ +# Test for : allowed +@prefix : <http://example.org/ron> . + +[] : [] . + +: : : . + diff --git a/test/w3c/TurtleTests/turtle-subm-15.nt b/test/w3c/TurtleTests/turtle-subm-15.nt new file mode 100644 index 00000000..466edbb2 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-15.nt @@ -0,0 +1 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "a long\n\tliteral\nwith\nnewlines" . diff --git a/test/w3c/TurtleTests/turtle-subm-15.ttl b/test/w3c/TurtleTests/turtle-subm-15.ttl new file mode 100644 index 00000000..86c453bd --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-15.ttl @@ -0,0 +1,6 @@ +# Test long literal +@prefix : <http://example.org/ex#> . +:a :b """a long + literal +with +newlines""" . diff --git a/test/w3c/TurtleTests/turtle-subm-16.nt b/test/w3c/TurtleTests/turtle-subm-16.nt new file mode 100644 index 00000000..7726bbfc --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-16.nt @@ -0,0 +1,2 @@ +<http://example.org/foo#a> <http://example.org/foo#b> "\nthis \ris a \U00012451long\t\nliteral\uABCD\n" . +<http://example.org/foo#d> <http://example.org/foo#e> "\tThis \uABCDis\r \U00012451another\n\none\n" . diff --git a/test/w3c/TurtleTests/turtle-subm-16.ttl b/test/w3c/TurtleTests/turtle-subm-16.ttl new file mode 100644 index 00000000..f5482d4a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-16.ttl @@ -0,0 +1,20 @@ +@prefix : <http://example.org/foo#> . + +## \U00015678 is a not a legal codepoint +## :a :b """\nthis \ris a \U00015678long\t +## literal\uABCD +## """ . +## +## :d :e """\tThis \uABCDis\r \U00015678another\n +## one +## """ . + +# \U00015678 is a not a legal codepoint +# \U00012451 in Cuneiform numeric ban 3 +:a :b """\nthis \ris a \U00012451long\t +literal\uABCD +""" . + +:d :e """\tThis \uABCDis\r \U00012451another\n +one +""" . diff --git a/test/w3c/TurtleTests/turtle-subm-17.nt b/test/w3c/TurtleTests/turtle-subm-17.nt new file mode 100644 index 00000000..2e2dbe40 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-17.nt @@ -0,0 +1 @@ +<http://example.org/#a> <http://example.org/#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/test/w3c/TurtleTests/turtle-subm-17.ttl b/test/w3c/TurtleTests/turtle-subm-17.ttl new file mode 100644 index 00000000..9de0c07b --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-17.ttl @@ -0,0 +1,4 @@ +@prefix : <http://example.org/#> . + +:a :b 1.0 . + diff --git a/test/w3c/TurtleTests/turtle-subm-18.nt b/test/w3c/TurtleTests/turtle-subm-18.nt new file mode 100644 index 00000000..fff2da56 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-18.nt @@ -0,0 +1,2 @@ +<http://example.org/#a> <http://example.org/#b> "" . +<http://example.org/#c> <http://example.org/#d> "" . diff --git a/test/w3c/TurtleTests/turtle-subm-18.ttl b/test/w3c/TurtleTests/turtle-subm-18.ttl new file mode 100644 index 00000000..37a9a4f3 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-18.ttl @@ -0,0 +1,6 @@ +@prefix : <http://example.org/#> . + +:a :b "" . + +:c :d """""" . + diff --git a/test/w3c/TurtleTests/turtle-subm-19.nt b/test/w3c/TurtleTests/turtle-subm-19.nt new file mode 100644 index 00000000..d5dca690 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-19.nt @@ -0,0 +1,3 @@ +<http://example.org#a> <http://example.org#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org#c> <http://example.org#d> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org#e> <http://example.org#f> "1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> . diff --git a/test/w3c/TurtleTests/turtle-subm-19.ttl b/test/w3c/TurtleTests/turtle-subm-19.ttl new file mode 100644 index 00000000..a8e8dc15 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-19.ttl @@ -0,0 +1,4 @@ +@prefix : <http://example.org#> . +:a :b 1.0 . +:c :d 1 . +:e :f 1.0e0 . diff --git a/test/w3c/TurtleTests/turtle-subm-20.nt b/test/w3c/TurtleTests/turtle-subm-20.nt new file mode 100644 index 00000000..3d0f970e --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-20.nt @@ -0,0 +1,3 @@ +<http://example.org#a> <http://example.org#b> "-1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org#c> <http://example.org#d> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> . +<http://example.org#e> <http://example.org#f> "-1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> . diff --git a/test/w3c/TurtleTests/turtle-subm-20.ttl b/test/w3c/TurtleTests/turtle-subm-20.ttl new file mode 100644 index 00000000..9b1a725a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-20.ttl @@ -0,0 +1,4 @@ +@prefix : <http://example.org#> . +:a :b -1.0 . +:c :d -1 . +:e :f -1.0e0 . diff --git a/test/w3c/TurtleTests/turtle-subm-21.nt b/test/w3c/TurtleTests/turtle-subm-21.nt new file mode 100644 index 00000000..fde31312 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-21.nt @@ -0,0 +1 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "John said: \"Hello World!\"" . diff --git a/test/w3c/TurtleTests/turtle-subm-21.ttl b/test/w3c/TurtleTests/turtle-subm-21.ttl new file mode 100644 index 00000000..9f5360af --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-21.ttl @@ -0,0 +1,3 @@ +# Test long literal +@prefix : <http://example.org/ex#> . +:a :b """John said: "Hello World!\"""" . diff --git a/test/w3c/TurtleTests/turtle-subm-22.nt b/test/w3c/TurtleTests/turtle-subm-22.nt new file mode 100644 index 00000000..5a70bff1 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-22.nt @@ -0,0 +1,2 @@ +<http://example.org#a> <http://example.org#b> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . +<http://example.org#c> <http://example.org#d> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> . diff --git a/test/w3c/TurtleTests/turtle-subm-22.ttl b/test/w3c/TurtleTests/turtle-subm-22.ttl new file mode 100644 index 00000000..25f3b757 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-22.ttl @@ -0,0 +1,3 @@ +@prefix : <http://example.org#> . +:a :b true . +:c :d false . diff --git a/test/w3c/TurtleTests/turtle-subm-23.nt b/test/w3c/TurtleTests/turtle-subm-23.nt new file mode 100644 index 00000000..1a38415f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-23.nt @@ -0,0 +1,7 @@ +<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> . +<http://example.org/#d> <http://example.org/#e> <http://example.org/#f> . +<http://example.org/#g> <http://example.org/#h> <http://example.org/#i> . +<http://example.org/#g> <http://example.org/#h> <http://example.org/#j> . +<http://example.org/#k> <http://example.org/#l> <http://example.org/#m> . +<http://example.org/#k> <http://example.org/#n> <http://example.org/#o> . +<http://example.org/#k> <http://example.org/#p> <http://example.org/#q> . diff --git a/test/w3c/TurtleTests/turtle-subm-23.ttl b/test/w3c/TurtleTests/turtle-subm-23.ttl new file mode 100644 index 00000000..310349da --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-23.ttl @@ -0,0 +1,14 @@ +# comment test +@prefix : <http://example.org/#> . +:a :b :c . # end of line comment +:d # ignore me + :e # and me + :f # and me + . +:g :h #ignore me + :i, # and me + :j . # and me + +:k :l :m ; #ignore me + :n :o ; # and me + :p :q . # and me diff --git a/test/w3c/TurtleTests/turtle-subm-24.nt b/test/w3c/TurtleTests/turtle-subm-24.nt new file mode 100644 index 00000000..ad105cf4 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-24.nt @@ -0,0 +1 @@ +<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> . diff --git a/test/w3c/TurtleTests/turtle-subm-24.ttl b/test/w3c/TurtleTests/turtle-subm-24.ttl new file mode 100644 index 00000000..0667c6b4 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-24.ttl @@ -0,0 +1,4 @@ +# comment line with no final newline test +@prefix : <http://example.org/#> . +:a :b :c . +#foo diff --git a/test/w3c/TurtleTests/turtle-subm-25.nt b/test/w3c/TurtleTests/turtle-subm-25.nt new file mode 100644 index 00000000..7da0635b --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-25.nt @@ -0,0 +1 @@ +<http://example.org/bar#blah> <http://example.org/bar#blah> <http://example.org/bar#blah> . diff --git a/test/w3c/TurtleTests/turtle-subm-25.ttl b/test/w3c/TurtleTests/turtle-subm-25.ttl new file mode 100644 index 00000000..569023c8 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-25.ttl @@ -0,0 +1,5 @@ +@prefix foo: <http://example.org/foo#> . +@prefix foo: <http://example.org/bar#> . + +foo:blah foo:blah foo:blah . + diff --git a/test/w3c/TurtleTests/turtle-subm-26.nt b/test/w3c/TurtleTests/turtle-subm-26.nt new file mode 100644 index 00000000..7357dd40 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-26.nt @@ -0,0 +1,22 @@ +<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1."^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.000000000"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.3"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.2345678901234567890123457890"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/test/w3c/TurtleTests/turtle-subm-26.ttl b/test/w3c/TurtleTests/turtle-subm-26.ttl new file mode 100644 index 00000000..7357dd40 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-26.ttl @@ -0,0 +1,22 @@ +<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1."^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.000000000"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.3"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.234000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.2340000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "2.23400000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> . +<http://example.org/foo> <http://example.org/bar> "1.2345678901234567890123457890"^^<http://www.w3.org/2001/XMLSchema#decimal> . diff --git a/test/w3c/TurtleTests/turtle-subm-27.nt b/test/w3c/TurtleTests/turtle-subm-27.nt new file mode 100644 index 00000000..f9ebfef1 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-27.nt @@ -0,0 +1,5 @@ +<http://www.w3.org/2013/TurtleTests/a1> <http://www.w3.org/2013/TurtleTests/b1> <http://www.w3.org/2013/TurtleTests/c1> . +<http://example.org/ns/a2> <http://example.org/ns/b2> <http://example.org/ns/c2> . +<http://example.org/ns/foo/a3> <http://example.org/ns/foo/b3> <http://example.org/ns/foo/c3> . +<http://example.org/ns/foo/bar#a4> <http://example.org/ns/foo/bar#b4> <http://example.org/ns/foo/bar#c4> . +<http://example.org/ns2#a5> <http://example.org/ns2#b5> <http://example.org/ns2#c5> . diff --git a/test/w3c/TurtleTests/turtle-subm-27.ttl b/test/w3c/TurtleTests/turtle-subm-27.ttl new file mode 100644 index 00000000..ad39c024 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-subm-27.ttl @@ -0,0 +1,12 @@ +# In-scope base URI is <http://www.w3.org/2013/TurtleTests/turtle-subm-27.ttl> at this point +<a1> <b1> <c1> . +@base <http://example.org/ns/> . +# In-scope base URI is http://example.org/ns/ at this point +<a2> <http://example.org/ns/b2> <c2> . +@base <foo/> . +# In-scope base URI is http://example.org/ns/foo/ at this point +<a3> <b3> <c3> . +@prefix : <bar#> . +:a4 :b4 :c4 . +@prefix : <http://example.org/ns2#> . +:a5 :b5 :c5 . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl new file mode 100644 index 00000000..56180417 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-LITERAL2_with_langtag_and_datatype.ttl @@ -0,0 +1 @@ +<http://example.org/resource> <http://example.org#pred> "value"@en^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-base-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-base-01.ttl new file mode 100644 index 00000000..7b0412f8 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-base-01.ttl @@ -0,0 +1,2 @@ +# @base without URI. +@base . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-base-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-base-02.ttl new file mode 100644 index 00000000..8893b652 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-base-02.ttl @@ -0,0 +1,2 @@ +# @base in wrong case. +@BASE <http://www.w3.org/2013/TurtleTests/> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-base-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-base-03.ttl new file mode 100644 index 00000000..013f9f2b --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-base-03.ttl @@ -0,0 +1,3 @@ +# FULL STOP used after SPARQL BASE +BASE <http://www.w3.org/2013/TurtleTests/> . +<s> <p> <o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-blank-label-dot-end.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-blank-label-dot-end.ttl new file mode 100644 index 00000000..58c0aa20 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-blank-label-dot-end.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +_:b1. :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-esc-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-esc-01.ttl new file mode 100644 index 00000000..6daa1b58 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-esc-01.ttl @@ -0,0 +1,2 @@ +# Bad string escape +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "a\zb" . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-esc-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-esc-02.ttl new file mode 100644 index 00000000..62457ebf --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-esc-02.ttl @@ -0,0 +1,2 @@ +# Bad string escape +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "\uWXYZ" . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-esc-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-esc-03.ttl new file mode 100644 index 00000000..a9b9f1c0 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-esc-03.ttl @@ -0,0 +1,2 @@ +# Bad string escape +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "\U0000WXYZ" . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-esc-04.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-esc-04.ttl new file mode 100644 index 00000000..a9b9f1c0 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-esc-04.ttl @@ -0,0 +1,2 @@ +# Bad string escape +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "\U0000WXYZ" . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-kw-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-kw-01.ttl new file mode 100644 index 00000000..f85448d6 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-kw-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s A :C . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-kw-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-kw-02.ttl new file mode 100644 index 00000000..d25986cd --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-kw-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +a :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-kw-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-kw-03.ttl new file mode 100644 index 00000000..3d54b929 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-kw-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p a . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-kw-04.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-kw-04.ttl new file mode 100644 index 00000000..229491ed --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-kw-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +true :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-kw-05.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-kw-05.ttl new file mode 100644 index 00000000..c2420af5 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-kw-05.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s true :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-lang-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-lang-01.ttl new file mode 100644 index 00000000..80685aae --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-lang-01.ttl @@ -0,0 +1,2 @@ +# Bad lang tag +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "string"@1 . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-ln-dash-start.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-ln-dash-start.ttl new file mode 100644 index 00000000..9af36a1e --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-ln-dash-start.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :-o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-ln-escape-start.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-ln-escape-start.ttl new file mode 100644 index 00000000..9c7a4352 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-ln-escape-start.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :%2o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-ln-escape.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-ln-escape.ttl new file mode 100644 index 00000000..212d43a0 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-ln-escape.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :o%2 . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-missing-ns-dot-end.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-missing-ns-dot-end.ttl new file mode 100644 index 00000000..d06f4e69 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-missing-ns-dot-end.ttl @@ -0,0 +1 @@ +valid:s valid:p invalid.:o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-missing-ns-dot-start.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-missing-ns-dot-start.ttl new file mode 100644 index 00000000..23514bcc --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-missing-ns-dot-start.ttl @@ -0,0 +1 @@ +.undefined:s .undefined:p .undefined:o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-01.ttl new file mode 100644 index 00000000..f7b19b72 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-01.ttl @@ -0,0 +1,5 @@ +# {} fomulae not in Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +{ :a :q :c . } :p :z . + diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-02.ttl new file mode 100644 index 00000000..e834f15f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-02.ttl @@ -0,0 +1,4 @@ +# = is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:a = :b . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-03.ttl new file mode 100644 index 00000000..ad5d6ad4 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-03.ttl @@ -0,0 +1,7 @@ +# N3 paths +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@prefix ns: <http://www.w3.org/2013/TurtleTests/p#> . + +:x. + ns:p. + ns:q :p :z . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-04.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-04.ttl new file mode 100644 index 00000000..895f9ec6 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-04.ttl @@ -0,0 +1,5 @@ +# N3 paths +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@prefix ns: <http://www.w3.org/2013/TurtleTests/p#> . + +:x^ns:p :p :z . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-05.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-05.ttl new file mode 100644 index 00000000..de879b15 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-05.ttl @@ -0,0 +1,4 @@ +# N3 is...of +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:z is :p of :x . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-06.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-06.ttl new file mode 100644 index 00000000..56610f67 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-06.ttl @@ -0,0 +1,4 @@ +# = is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:a.:b.:c . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-07.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-07.ttl new file mode 100644 index 00000000..419f7cad --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-07.ttl @@ -0,0 +1,3 @@ +# @keywords is not Turtle +@keywords a . +x a Item . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-08.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-08.ttl new file mode 100644 index 00000000..419f7cad --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-08.ttl @@ -0,0 +1,3 @@ +# @keywords is not Turtle +@keywords a . +x a Item . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-09.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-09.ttl new file mode 100644 index 00000000..f093b588 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-09.ttl @@ -0,0 +1,3 @@ +# => is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s => :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-10.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-10.ttl new file mode 100644 index 00000000..974252f0 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-10.ttl @@ -0,0 +1,3 @@ +# <= is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s <= :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-11.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-11.ttl new file mode 100644 index 00000000..b74d74a3 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-11.ttl @@ -0,0 +1,3 @@ +# @forSome is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@forSome :x . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-12.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-12.ttl new file mode 100644 index 00000000..dc2c5b03 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-12.ttl @@ -0,0 +1,3 @@ +# @forAll is not Turtle +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@forAll :x . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-13.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-13.ttl new file mode 100644 index 00000000..5f719a24 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-n3-extras-13.ttl @@ -0,0 +1,3 @@ +# @keywords is not Turtle +@keywords . +x @a Item . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-ns-dot-end.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-ns-dot-end.ttl new file mode 100644 index 00000000..fa67031e --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-ns-dot-end.ttl @@ -0,0 +1,2 @@ +@prefix eg. : <http://www.w3.org/2013/TurtleTests/> . +eg.:s eg.:p eg.:o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-ns-dot-start.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-ns-dot-start.ttl new file mode 100644 index 00000000..e09d5954 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-ns-dot-start.ttl @@ -0,0 +1,2 @@ +@prefix .eg : <http://www.w3.org/2013/TurtleTests/> . +.eg:s .eg:p .eg:o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-num-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-num-01.ttl new file mode 100644 index 00000000..cb4730cb --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-num-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 123.abc . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-num-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-num-02.ttl new file mode 100644 index 00000000..1c8cbb25 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-num-02.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 123e . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-num-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-num-03.ttl new file mode 100644 index 00000000..7c8fa2cf --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-num-03.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 123abc . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-num-04.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-num-04.ttl new file mode 100644 index 00000000..ad8e0cfd --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-num-04.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 0x123 . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-num-05.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-num-05.ttl new file mode 100644 index 00000000..2ee461a0 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-num-05.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> +-1 . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-number-dot-in-anon.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-number-dot-in-anon.ttl new file mode 100644 index 00000000..779cbece --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-number-dot-in-anon.ttl @@ -0,0 +1,6 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:s + :p [ + :p1 27. + ] . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-pname-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-pname-01.ttl new file mode 100644 index 00000000..5f3098da --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-pname-01.ttl @@ -0,0 +1,3 @@ +# ~ must be escaped. +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:a~b :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-pname-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-pname-02.ttl new file mode 100644 index 00000000..fb30823c --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-pname-02.ttl @@ -0,0 +1,3 @@ +# Bad %-sequence +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:a%2 :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-pname-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-pname-03.ttl new file mode 100644 index 00000000..b9af59e5 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-pname-03.ttl @@ -0,0 +1,3 @@ +# No \u (x39 is "9") +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:a\u0039 :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-prefix-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-01.ttl new file mode 100644 index 00000000..b1b80df1 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-01.ttl @@ -0,0 +1,2 @@ +# No prefix +:s <http://www.w3.org/2013/TurtleTests/p> "x" . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-prefix-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-02.ttl new file mode 100644 index 00000000..6e7269f2 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-02.ttl @@ -0,0 +1,3 @@ +# No prefix +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +<http://www.w3.org/2013/TurtleTests/s> rdf:type :C . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-prefix-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-03.ttl new file mode 100644 index 00000000..1ab01e7b --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-03.ttl @@ -0,0 +1,2 @@ +# @prefix without URI. +@prefix ex: . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-prefix-04.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-04.ttl new file mode 100644 index 00000000..5f338f33 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-04.ttl @@ -0,0 +1,2 @@ +# @prefix without prefix name . +@prefix <http://www.w3.org/2013/TurtleTests/> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-prefix-05.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-05.ttl new file mode 100644 index 00000000..efb86c59 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-prefix-05.ttl @@ -0,0 +1,2 @@ +# @prefix without : +@prefix x <http://www.w3.org/2013/TurtleTests/> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-string-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-string-01.ttl new file mode 100644 index 00000000..ef62a6c0 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-string-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p "abc' . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-string-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-string-02.ttl new file mode 100644 index 00000000..2335d529 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-string-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p 'abc" . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-string-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-string-03.ttl new file mode 100644 index 00000000..8a9e7ffe --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-string-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p '''abc' . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-string-04.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-string-04.ttl new file mode 100644 index 00000000..9911defe --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-string-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p """abc''' . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-string-05.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-string-05.ttl new file mode 100644 index 00000000..f5de7403 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-string-05.ttl @@ -0,0 +1,4 @@ +# Long literal with missing end +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p """abc +def diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-string-06.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-string-06.ttl new file mode 100644 index 00000000..6bcbc936 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-string-06.ttl @@ -0,0 +1,3 @@ +# Long literal with 4" +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p """abc""""@en . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-string-07.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-string-07.ttl new file mode 100644 index 00000000..534614d4 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-string-07.ttl @@ -0,0 +1,3 @@ +# Long literal with 4' +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p '''abc''''@en . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-01.ttl new file mode 100644 index 00000000..7b8b8529 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-01.ttl @@ -0,0 +1,2 @@ +# Turtle is not TriG +{ <http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> } diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-02.ttl new file mode 100644 index 00000000..cb86b9dd --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-02.ttl @@ -0,0 +1,2 @@ +# Turtle is not N3 +<http://www.w3.org/2013/TurtleTests/s> = <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-03.ttl new file mode 100644 index 00000000..98d9c7ec --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-03.ttl @@ -0,0 +1,2 @@ +# Turtle is not NQuads +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> <http://www.w3.org/2013/TurtleTests/g> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-04.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-04.ttl new file mode 100644 index 00000000..40cd7b71 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-04.ttl @@ -0,0 +1,2 @@ +# Turtle does not allow literals-as-subjects +"hello" <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-05.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-05.ttl new file mode 100644 index 00000000..e1a3afbc --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-05.ttl @@ -0,0 +1,2 @@ +# Turtle does not allow literals-as-predicates +<http://www.w3.org/2013/TurtleTests/s> "hello" <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-06.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-06.ttl new file mode 100644 index 00000000..2680229a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-06.ttl @@ -0,0 +1,2 @@ +# Turtle does not allow bnodes-as-predicates +<http://www.w3.org/2013/TurtleTests/s> [] <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-07.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-07.ttl new file mode 100644 index 00000000..5f74a8b7 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-07.ttl @@ -0,0 +1,2 @@ +# Turtle does not allow bnodes-as-predicates +<http://www.w3.org/2013/TurtleTests/s> _:p <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-08.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-08.ttl new file mode 100644 index 00000000..86aaf4be --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-08.ttl @@ -0,0 +1,2 @@ +# No DOT +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-09.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-09.ttl new file mode 100644 index 00000000..92aae4c2 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-09.ttl @@ -0,0 +1,2 @@ +# Too many DOT +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-10.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-10.ttl new file mode 100644 index 00000000..eb893b24 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-10.ttl @@ -0,0 +1,3 @@ +# Too many DOT +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . . +<http://www.w3.org/2013/TurtleTests/s1> <http://www.w3.org/2013/TurtleTests/p1> <http://www.w3.org/2013/TurtleTests/o1> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-11.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-11.ttl new file mode 100644 index 00000000..fc6bb993 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-11.ttl @@ -0,0 +1,2 @@ +# Trailing ; +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> ; diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-12.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-12.ttl new file mode 100644 index 00000000..1038da86 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-12.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-13.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-13.ttl new file mode 100644 index 00000000..1038da86 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-13.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-14.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-14.ttl new file mode 100644 index 00000000..44db7be2 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-14.ttl @@ -0,0 +1,2 @@ +# Literal as subject +"abc" <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/p> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-15.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-15.ttl new file mode 100644 index 00000000..788cfd67 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-15.ttl @@ -0,0 +1,2 @@ +# Literal as predicate +<http://www.w3.org/2013/TurtleTests/s> "abc" <http://www.w3.org/2013/TurtleTests/p> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-16.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-16.ttl new file mode 100644 index 00000000..d30a80be --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-16.ttl @@ -0,0 +1,2 @@ +# BNode as predicate +<http://www.w3.org/2013/TurtleTests/s> [] <http://www.w3.org/2013/TurtleTests/p> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-struct-17.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-struct-17.ttl new file mode 100644 index 00000000..50ea2656 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-struct-17.ttl @@ -0,0 +1,2 @@ +# BNode as predicate +<http://www.w3.org/2013/TurtleTests/s> _:a <http://www.w3.org/2013/TurtleTests/p> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-uri-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-uri-01.ttl new file mode 100644 index 00000000..ebea3f25 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-uri-01.ttl @@ -0,0 +1,2 @@ +# Bad IRI : space. +<http://www.w3.org/2013/TurtleTests/ space> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-uri-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-uri-02.ttl new file mode 100644 index 00000000..e9096bc7 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-uri-02.ttl @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +<http://www.w3.org/2013/TurtleTests/\u00ZZ11> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-uri-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-uri-03.ttl new file mode 100644 index 00000000..7fe2bf03 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-uri-03.ttl @@ -0,0 +1,2 @@ +# Bad IRI : bad escape +<http://www.w3.org/2013/TurtleTests/\U00ZZ1111> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-uri-04.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-uri-04.ttl new file mode 100644 index 00000000..258997cb --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-uri-04.ttl @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +<http://www.w3.org/2013/TurtleTests/\n> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-uri-05.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-uri-05.ttl new file mode 100644 index 00000000..542b2b64 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-uri-05.ttl @@ -0,0 +1,2 @@ +# Bad IRI : character escapes not allowed. +<http://www.w3.org/2013/TurtleTests/\/> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-base-01.ttl b/test/w3c/TurtleTests/turtle-syntax-base-01.ttl new file mode 100644 index 00000000..108ceaf5 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-base-01.ttl @@ -0,0 +1 @@ +@base <http://www.w3.org/2013/TurtleTests/> . diff --git a/test/w3c/TurtleTests/turtle-syntax-base-02.ttl b/test/w3c/TurtleTests/turtle-syntax-base-02.ttl new file mode 100644 index 00000000..7a2724f7 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-base-02.ttl @@ -0,0 +1 @@ +BASE <http://www.w3.org/2013/TurtleTests/> diff --git a/test/w3c/TurtleTests/turtle-syntax-base-03.ttl b/test/w3c/TurtleTests/turtle-syntax-base-03.ttl new file mode 100644 index 00000000..e90dc14a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-base-03.ttl @@ -0,0 +1,2 @@ +@base <http://www.w3.org/2013/TurtleTests/> . +<s> <p> <o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-base-04.ttl b/test/w3c/TurtleTests/turtle-syntax-base-04.ttl new file mode 100644 index 00000000..b0bb4226 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-base-04.ttl @@ -0,0 +1,2 @@ +base <http://www.w3.org/2013/TurtleTests/> +<s> <p> <o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-blank-label.ttl b/test/w3c/TurtleTests/turtle-syntax-blank-label.ttl new file mode 100644 index 00000000..b7fae10d --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-blank-label.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +_:0b :p :o . # Starts with digit +_:_b :p :o . # Starts with underscore +_:b.0 :p :o . # Contains dot, ends with digit diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-01.ttl new file mode 100644 index 00000000..274a478c --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +[] :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-02.ttl new file mode 100644 index 00000000..91b9c16e --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p [] . diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-03.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-03.ttl new file mode 100644 index 00000000..36c8450f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p [ :q :o ] . diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-04.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-04.ttl new file mode 100644 index 00000000..942dedd7 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p [ :q1 :o1 ; :q2 :o2 ] . diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-05.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-05.ttl new file mode 100644 index 00000000..c2f4169c --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-05.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +[ :q1 :o1 ; :q2 :o2 ] :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-06.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-06.ttl new file mode 100644 index 00000000..f9ffec8c --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-06.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +_:a :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-07.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-07.ttl new file mode 100644 index 00000000..c0dba051 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-07.ttl @@ -0,0 +1,3 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p _:a . +_:a :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-08.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-08.ttl new file mode 100644 index 00000000..630843b0 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-08.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +[ :p :o ] . diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-09.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-09.ttl new file mode 100644 index 00000000..cd75e3a3 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-09.ttl @@ -0,0 +1,3 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +[ :p :o1,:2 ] . +:s :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-bnode-10.ttl b/test/w3c/TurtleTests/turtle-syntax-bnode-10.ttl new file mode 100644 index 00000000..03fa67ca --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bnode-10.ttl @@ -0,0 +1,5 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . + +:s1 :p :o . +[ :p1 :o1 ; :p2 :o2 ] . +:s2 :p :o . diff --git a/test/w3c/TurtleTests/turtle-syntax-datatypes-01.ttl b/test/w3c/TurtleTests/turtle-syntax-datatypes-01.ttl new file mode 100644 index 00000000..9e273c51 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-datatypes-01.ttl @@ -0,0 +1,2 @@ +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +<s> <p> "123"^^xsd:byte . diff --git a/test/w3c/TurtleTests/turtle-syntax-datatypes-02.ttl b/test/w3c/TurtleTests/turtle-syntax-datatypes-02.ttl new file mode 100644 index 00000000..477bd73c --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-datatypes-02.ttl @@ -0,0 +1,3 @@ +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . +<s> <p> "123"^^xsd:string . diff --git a/test/w3c/TurtleTests/turtle-syntax-file-01.ttl b/test/w3c/TurtleTests/turtle-syntax-file-01.ttl new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-file-01.ttl diff --git a/test/w3c/TurtleTests/turtle-syntax-file-02.ttl b/test/w3c/TurtleTests/turtle-syntax-file-02.ttl new file mode 100644 index 00000000..e6d327d5 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-file-02.ttl @@ -0,0 +1 @@ +#Empty file. diff --git a/test/w3c/TurtleTests/turtle-syntax-file-03.ttl b/test/w3c/TurtleTests/turtle-syntax-file-03.ttl new file mode 100644 index 00000000..a9ca0358 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-file-03.ttl @@ -0,0 +1,2 @@ +#One comment, one empty line. + diff --git a/test/w3c/TurtleTests/turtle-syntax-kw-01.ttl b/test/w3c/TurtleTests/turtle-syntax-kw-01.ttl new file mode 100644 index 00000000..854c7568 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-kw-01.ttl @@ -0,0 +1 @@ +<s> <p> true . diff --git a/test/w3c/TurtleTests/turtle-syntax-kw-02.ttl b/test/w3c/TurtleTests/turtle-syntax-kw-02.ttl new file mode 100644 index 00000000..c948160b --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-kw-02.ttl @@ -0,0 +1 @@ +<s> <p> false . diff --git a/test/w3c/TurtleTests/turtle-syntax-kw-03.ttl b/test/w3c/TurtleTests/turtle-syntax-kw-03.ttl new file mode 100644 index 00000000..bb479bfa --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-kw-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s a :C . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-01.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-01.ttl new file mode 100644 index 00000000..c6ee0fbe --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-lists-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p () . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-02.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-02.ttl new file mode 100644 index 00000000..06a0cd1e --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-lists-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p (1 "2" :o) . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-03.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-03.ttl new file mode 100644 index 00000000..e71f0273 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-lists-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +(1) :p (1) . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-04.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-04.ttl new file mode 100644 index 00000000..a9885389 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-lists-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +(()) :p (()) . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-05.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-05.ttl new file mode 100644 index 00000000..43e68a44 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-lists-05.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +(1 2 (1 2)) :p (( "a") "b" :o) . diff --git a/test/w3c/TurtleTests/turtle-syntax-ln-colons.ttl b/test/w3c/TurtleTests/turtle-syntax-ln-colons.ttl new file mode 100644 index 00000000..80a2e3df --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-ln-colons.ttl @@ -0,0 +1,6 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s:1 :p:1 :o:1 . +:s::2 :p::2 :o::2 . +:3:s :3:p :3 . +::s ::p ::o . +::s: ::p: ::o: . diff --git a/test/w3c/TurtleTests/turtle-syntax-ln-dots.ttl b/test/w3c/TurtleTests/turtle-syntax-ln-dots.ttl new file mode 100644 index 00000000..ca5bba97 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-ln-dots.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s.1 :p.1 :o.1 . +:s..2 :p..2 :o..2. +:3.s :3.p :3. diff --git a/test/w3c/TurtleTests/turtle-syntax-ns-dots.ttl b/test/w3c/TurtleTests/turtle-syntax-ns-dots.ttl new file mode 100644 index 00000000..1059b576 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-ns-dots.ttl @@ -0,0 +1,2 @@ +@prefix e.g: <http://www.w3.org/2013/TurtleTests/> . +e.g:s e.g:p e.g:o . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-01.ttl b/test/w3c/TurtleTests/turtle-syntax-number-01.ttl new file mode 100644 index 00000000..016fa8f2 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-01.ttl @@ -0,0 +1 @@ +<s> <p> 123 . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-02.ttl b/test/w3c/TurtleTests/turtle-syntax-number-02.ttl new file mode 100644 index 00000000..66d1b389 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-02.ttl @@ -0,0 +1 @@ +<s> <p> -123 . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-03.ttl b/test/w3c/TurtleTests/turtle-syntax-number-03.ttl new file mode 100644 index 00000000..44142857 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-03.ttl @@ -0,0 +1 @@ +<s> <p> +123 . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-04.ttl b/test/w3c/TurtleTests/turtle-syntax-number-04.ttl new file mode 100644 index 00000000..ab48cbc6 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-04.ttl @@ -0,0 +1,2 @@ +# This is a decimal. +<s> <p> 123.0 . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-05.ttl b/test/w3c/TurtleTests/turtle-syntax-number-05.ttl new file mode 100644 index 00000000..a8d5845a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-05.ttl @@ -0,0 +1,2 @@ +# This is a decimal. +<s> <p> .1 . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-06.ttl b/test/w3c/TurtleTests/turtle-syntax-number-06.ttl new file mode 100644 index 00000000..cb3a2b06 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-06.ttl @@ -0,0 +1,2 @@ +# This is a decimal. +<s> <p> -123.0 . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-07.ttl b/test/w3c/TurtleTests/turtle-syntax-number-07.ttl new file mode 100644 index 00000000..8b0050e6 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-07.ttl @@ -0,0 +1,2 @@ +# This is a decimal. +<s> <p> +123.0 . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-08.ttl b/test/w3c/TurtleTests/turtle-syntax-number-08.ttl new file mode 100644 index 00000000..70ddeed3 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-08.ttl @@ -0,0 +1,2 @@ +# This is an integer +<s> <p> 123. diff --git a/test/w3c/TurtleTests/turtle-syntax-number-09.ttl b/test/w3c/TurtleTests/turtle-syntax-number-09.ttl new file mode 100644 index 00000000..386b819f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-09.ttl @@ -0,0 +1 @@ +<s> <p> 123.0e1 . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-10.ttl b/test/w3c/TurtleTests/turtle-syntax-number-10.ttl new file mode 100644 index 00000000..46875e94 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-10.ttl @@ -0,0 +1 @@ +<s> <p> -123e-1 . diff --git a/test/w3c/TurtleTests/turtle-syntax-number-11.ttl b/test/w3c/TurtleTests/turtle-syntax-number-11.ttl new file mode 100644 index 00000000..1d8c367e --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-number-11.ttl @@ -0,0 +1 @@ +<s> <p> 123.E+1 . diff --git a/test/w3c/TurtleTests/turtle-syntax-pname-esc-01.ttl b/test/w3c/TurtleTests/turtle-syntax-pname-esc-01.ttl new file mode 100644 index 00000000..5a3a5fd7 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-pname-esc-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\_\%AA . diff --git a/test/w3c/TurtleTests/turtle-syntax-pname-esc-02.ttl b/test/w3c/TurtleTests/turtle-syntax-pname-esc-02.ttl new file mode 100644 index 00000000..5d806cf4 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-pname-esc-02.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :0123\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\_\%AA123 . diff --git a/test/w3c/TurtleTests/turtle-syntax-pname-esc-03.ttl b/test/w3c/TurtleTests/turtle-syntax-pname-esc-03.ttl new file mode 100644 index 00000000..9949c52b --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-pname-esc-03.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:xyz\~ :abc\.: : . diff --git a/test/w3c/TurtleTests/turtle-syntax-prefix-01.ttl b/test/w3c/TurtleTests/turtle-syntax-prefix-01.ttl new file mode 100644 index 00000000..7fd69327 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-prefix-01.ttl @@ -0,0 +1 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . diff --git a/test/w3c/TurtleTests/turtle-syntax-prefix-02.ttl b/test/w3c/TurtleTests/turtle-syntax-prefix-02.ttl new file mode 100644 index 00000000..99d4ae45 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-prefix-02.ttl @@ -0,0 +1 @@ +PreFIX : <http://www.w3.org/2013/TurtleTests/> diff --git a/test/w3c/TurtleTests/turtle-syntax-prefix-03.ttl b/test/w3c/TurtleTests/turtle-syntax-prefix-03.ttl new file mode 100644 index 00000000..c834d10f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-prefix-03.ttl @@ -0,0 +1,2 @@ +PREFIX : <http://www.w3.org/2013/TurtleTests/> +:s :p :123 . diff --git a/test/w3c/TurtleTests/turtle-syntax-prefix-04.ttl b/test/w3c/TurtleTests/turtle-syntax-prefix-04.ttl new file mode 100644 index 00000000..4ff94dc0 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-prefix-04.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :%20 . diff --git a/test/w3c/TurtleTests/turtle-syntax-prefix-05.ttl b/test/w3c/TurtleTests/turtle-syntax-prefix-05.ttl new file mode 100644 index 00000000..30441026 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-prefix-05.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +: : : . diff --git a/test/w3c/TurtleTests/turtle-syntax-prefix-06.ttl b/test/w3c/TurtleTests/turtle-syntax-prefix-06.ttl new file mode 100644 index 00000000..7044be5a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-prefix-06.ttl @@ -0,0 +1,4 @@ +# colon is a legal pname character +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@prefix x: <http://www.w3.org/2013/TurtleTests/> . +:a:b:c x:d:e:f :::: . diff --git a/test/w3c/TurtleTests/turtle-syntax-prefix-07.ttl b/test/w3c/TurtleTests/turtle-syntax-prefix-07.ttl new file mode 100644 index 00000000..1db61e8a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-prefix-07.ttl @@ -0,0 +1,3 @@ +# dash is a legal pname character +@prefix x: <http://www.w3.org/2013/TurtleTests/> . +x:a-b-c x:p x:o . diff --git a/test/w3c/TurtleTests/turtle-syntax-prefix-08.ttl b/test/w3c/TurtleTests/turtle-syntax-prefix-08.ttl new file mode 100644 index 00000000..f969a4af --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-prefix-08.ttl @@ -0,0 +1,3 @@ +# underscore is a legal pname character +@prefix x: <http://www.w3.org/2013/TurtleTests/> . +x:_ x:p_1 x:o . diff --git a/test/w3c/TurtleTests/turtle-syntax-prefix-09.ttl b/test/w3c/TurtleTests/turtle-syntax-prefix-09.ttl new file mode 100644 index 00000000..5c57ebea --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-prefix-09.ttl @@ -0,0 +1,4 @@ +# percents +@prefix : <http://www.w3.org/2013/TurtleTests/> . +@prefix x: <http://www.w3.org/2013/TurtleTests/> . +:a%3E x:%25 :a%3Eb . diff --git a/test/w3c/TurtleTests/turtle-syntax-str-esc-01.ttl b/test/w3c/TurtleTests/turtle-syntax-str-esc-01.ttl new file mode 100644 index 00000000..f11f2827 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-str-esc-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "a\n" . diff --git a/test/w3c/TurtleTests/turtle-syntax-str-esc-02.ttl b/test/w3c/TurtleTests/turtle-syntax-str-esc-02.ttl new file mode 100644 index 00000000..0b77f95a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-str-esc-02.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "a\u0020b" . diff --git a/test/w3c/TurtleTests/turtle-syntax-str-esc-03.ttl b/test/w3c/TurtleTests/turtle-syntax-str-esc-03.ttl new file mode 100644 index 00000000..af1e3281 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-str-esc-03.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "a\U00000020b" . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-01.ttl b/test/w3c/TurtleTests/turtle-syntax-string-01.ttl new file mode 100644 index 00000000..7bf8a6d4 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "string" . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-02.ttl b/test/w3c/TurtleTests/turtle-syntax-string-02.ttl new file mode 100644 index 00000000..8cb89e98 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-02.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "string"@en . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-03.ttl b/test/w3c/TurtleTests/turtle-syntax-string-03.ttl new file mode 100644 index 00000000..312d1d67 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-03.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "string"@en-uk . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-04.ttl b/test/w3c/TurtleTests/turtle-syntax-string-04.ttl new file mode 100644 index 00000000..3ecdea3a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-04.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 'string' . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-05.ttl b/test/w3c/TurtleTests/turtle-syntax-string-05.ttl new file mode 100644 index 00000000..f32b6d02 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-05.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 'string'@en . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-06.ttl b/test/w3c/TurtleTests/turtle-syntax-string-06.ttl new file mode 100644 index 00000000..77399380 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-06.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> 'string'@en-uk . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-07.ttl b/test/w3c/TurtleTests/turtle-syntax-string-07.ttl new file mode 100644 index 00000000..6c3e6a44 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-07.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> """abc""def''ghi""" . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-08.ttl b/test/w3c/TurtleTests/turtle-syntax-string-08.ttl new file mode 100644 index 00000000..2fb0227b --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-08.ttl @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> """abc +def""" . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-09.ttl b/test/w3c/TurtleTests/turtle-syntax-string-09.ttl new file mode 100644 index 00000000..390c8af9 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-09.ttl @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> '''abc +def''' . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-10.ttl b/test/w3c/TurtleTests/turtle-syntax-string-10.ttl new file mode 100644 index 00000000..5b6e5c35 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-10.ttl @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> """abc +def"""@en . diff --git a/test/w3c/TurtleTests/turtle-syntax-string-11.ttl b/test/w3c/TurtleTests/turtle-syntax-string-11.ttl new file mode 100644 index 00000000..7b78abf1 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-string-11.ttl @@ -0,0 +1,2 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> '''abc +def'''@en . diff --git a/test/w3c/TurtleTests/turtle-syntax-struct-01.ttl b/test/w3c/TurtleTests/turtle-syntax-struct-01.ttl new file mode 100644 index 00000000..990e5160 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-struct-01.ttl @@ -0,0 +1,2 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p :o1 , :o2 . diff --git a/test/w3c/TurtleTests/turtle-syntax-struct-02.ttl b/test/w3c/TurtleTests/turtle-syntax-struct-02.ttl new file mode 100644 index 00000000..0684b2fe --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-struct-02.ttl @@ -0,0 +1,3 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p1 :o1 ; + :p2 :o2 . diff --git a/test/w3c/TurtleTests/turtle-syntax-struct-03.ttl b/test/w3c/TurtleTests/turtle-syntax-struct-03.ttl new file mode 100644 index 00000000..1e303515 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-struct-03.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p1 :o1 ; + :p2 :o2 ; + . diff --git a/test/w3c/TurtleTests/turtle-syntax-struct-04.ttl b/test/w3c/TurtleTests/turtle-syntax-struct-04.ttl new file mode 100644 index 00000000..3d1bf3b0 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-struct-04.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p1 :o1 ;; + :p2 :o2 + . diff --git a/test/w3c/TurtleTests/turtle-syntax-struct-05.ttl b/test/w3c/TurtleTests/turtle-syntax-struct-05.ttl new file mode 100644 index 00000000..c39e0411 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-struct-05.ttl @@ -0,0 +1,4 @@ +@prefix : <http://www.w3.org/2013/TurtleTests/> . +:s :p1 :o1 ; + :p2 :o2 ;; + . diff --git a/test/w3c/TurtleTests/turtle-syntax-uri-01.ttl b/test/w3c/TurtleTests/turtle-syntax-uri-01.ttl new file mode 100644 index 00000000..2e2d5baf --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-uri-01.ttl @@ -0,0 +1 @@ +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-uri-02.ttl b/test/w3c/TurtleTests/turtle-syntax-uri-02.ttl new file mode 100644 index 00000000..f355d38c --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-uri-02.ttl @@ -0,0 +1,2 @@ +# x53 is capital S +<http://www.w3.org/2013/TurtleTests/\u0053> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-uri-03.ttl b/test/w3c/TurtleTests/turtle-syntax-uri-03.ttl new file mode 100644 index 00000000..0ea581af --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-uri-03.ttl @@ -0,0 +1,2 @@ +# x53 is capital S +<http://www.w3.org/2013/TurtleTests/\U00000053> <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> . diff --git a/test/w3c/TurtleTests/turtle-syntax-uri-04.ttl b/test/w3c/TurtleTests/turtle-syntax-uri-04.ttl new file mode 100644 index 00000000..db805c8f --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-uri-04.ttl @@ -0,0 +1,3 @@ +# IRI with all chars in it. +<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> +<scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> . diff --git a/test/w3c/TurtleTests/two_LITERAL_LONG2s.nt b/test/w3c/TurtleTests/two_LITERAL_LONG2s.nt new file mode 100644 index 00000000..af94fe6a --- /dev/null +++ b/test/w3c/TurtleTests/two_LITERAL_LONG2s.nt @@ -0,0 +1,2 @@ +<http://example.org/ex#a> <http://example.org/ex#b> "first long literal" . +<http://example.org/ex#c> <http://example.org/ex#d> "second long literal" . diff --git a/test/w3c/TurtleTests/two_LITERAL_LONG2s.ttl b/test/w3c/TurtleTests/two_LITERAL_LONG2s.ttl new file mode 100644 index 00000000..ceaad3d4 --- /dev/null +++ b/test/w3c/TurtleTests/two_LITERAL_LONG2s.ttl @@ -0,0 +1,4 @@ +# Test long literal twice to ensure it does not over-quote +@prefix : <http://example.org/ex#> . +:a :b """first long literal""" . +:c :d """second long literal""" . diff --git a/test/w3c/TurtleTests/underscore_in_localName.nt b/test/w3c/TurtleTests/underscore_in_localName.nt new file mode 100644 index 00000000..f9d0c4f1 --- /dev/null +++ b/test/w3c/TurtleTests/underscore_in_localName.nt @@ -0,0 +1 @@ +<http://a.example/s_> <http://a.example/p> <http://a.example/o> . diff --git a/test/w3c/TurtleTests/underscore_in_localName.ttl b/test/w3c/TurtleTests/underscore_in_localName.ttl new file mode 100644 index 00000000..34596fdf --- /dev/null +++ b/test/w3c/TurtleTests/underscore_in_localName.ttl @@ -0,0 +1,2 @@ +@prefix p: <http://a.example/>. +p:s_ <http://a.example/p> <http://a.example/o> . |