diff options
author | David Robillard <d@drobilla.net> | 2023-04-03 09:00:27 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-06 07:19:10 -0400 |
commit | dc2b18576712fd2071ec5fd356a1c0134b24a5d5 (patch) | |
tree | 533a656aa1e99a6fa85c7965cb1e240e82908931 /test/w3c | |
parent | 35fa3c20769fc1debf44f2afd01eed382200d967 (diff) | |
download | serd-dc2b18576712fd2071ec5fd356a1c0134b24a5d5.tar.gz serd-dc2b18576712fd2071ec5fd356a1c0134b24a5d5.tar.bz2 serd-dc2b18576712fd2071ec5fd356a1c0134b24a5d5.zip |
Update NQuads test suite
Diffstat (limited to 'test/w3c')
-rw-r--r-- | test/w3c/NQuadsTests/manifest.ttl | 32 | ||||
-rw-r--r-- | test/w3c/NQuadsTests/nt-syntax-bad-bnode-01.nq | 1 | ||||
-rw-r--r-- | test/w3c/NQuadsTests/nt-syntax-bad-bnode-02.nq | 1 | ||||
-rw-r--r-- | test/w3c/NQuadsTests/nt-syntax-bad-uri-06.nq | 2 | ||||
-rw-r--r-- | test/w3c/NQuadsTests/nt-syntax-bad-uri-07.nq | 2 | ||||
-rw-r--r-- | test/w3c/NQuadsTests/nt-syntax-bad-uri-08.nq | 2 | ||||
-rw-r--r-- | test/w3c/NQuadsTests/nt-syntax-bad-uri-09.nq | 2 |
7 files changed, 29 insertions, 13 deletions
diff --git a/test/w3c/NQuadsTests/manifest.ttl b/test/w3c/NQuadsTests/manifest.ttl index eb5f5508..b4b54037 100644 --- a/test/w3c/NQuadsTests/manifest.ttl +++ b/test/w3c/NQuadsTests/manifest.ttl @@ -7,7 +7,7 @@ @prefix rdft: <http://www.w3.org/ns/rdftest#> . <> a mf:Manifest ; - mf:name "N-Quads tests" ; + rdfs:label "N-Quads tests" ; mf:entries ( <#nq-syntax-uri-01> @@ -56,6 +56,8 @@ <#nt-syntax-bad-uri-09> <#nt-syntax-bad-prefix-01> <#nt-syntax-bad-base-01> + <#nt-syntax-bad-bnode-01> + <#nt-syntax-bad-bnode-02> <#nt-syntax-bad-struct-01> <#nt-syntax-bad-struct-02> <#nt-syntax-bad-lang-01> @@ -407,28 +409,40 @@ <#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)" ; + rdfs:comment "@prefix not allowed in N-Quads (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)" ; + rdfs:comment "@base not allowed in N-Quads (negative test)" ; rdft:approval rdft:Approved ; mf:action <nt-syntax-bad-base-01.nq> ; . +<#nt-syntax-bad-bnode-01> a rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-bnode-01" ; + rdfs:comment "Colon in bnode label not allowed (negative test)" ; + mf:action <nt-syntax-bad-bnode-01.nq> ; + . + +<#nt-syntax-bad-bnode-02> a rdft:TestNTriplesNegativeSyntax ; + mf:name "nt-syntax-bad-bnode-02" ; + rdfs:comment "Colon in bnode label not allowed (negative test)" ; + mf:action <nt-syntax-bad-bnode-02.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)" ; + rdfs:comment "N-Quads 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)" ; + rdfs:comment "N-Quads does not have predicateObjectList (negative test)" ; rdft:approval rdft:Approved ; mf:action <nt-syntax-bad-struct-02.nq> ; . @@ -512,21 +526,21 @@ <#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)" ; + rdfs:comment "no numbers in N-Quads (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)" ; + rdfs:comment "no numbers in N-Quads (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)" ; + rdfs:comment "no numbers in N-Quads (float) (negative test)" ; rdft:approval rdft:Approved ; mf:action <nt-syntax-bad-num-03.nq> ; . @@ -598,7 +612,7 @@ <#literal_with_dquote> a rdft:TestNQuadsPositiveSyntax ; mf:name "literal_with_dquote" ; - rdfs:comment "literal with dquote \"x\"y\"" ; + rdfs:comment 'literal with dquote "x\"y"' ; rdft:approval rdft:Approved ; mf:action <literal_with_dquote.nq> ; . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-bnode-01.nq b/test/w3c/NQuadsTests/nt-syntax-bad-bnode-01.nq new file mode 100644 index 00000000..a776d20d --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-bnode-01.nq @@ -0,0 +1 @@ +_::a <http://example/p> <http://example/o> . diff --git a/test/w3c/NQuadsTests/nt-syntax-bad-bnode-02.nq b/test/w3c/NQuadsTests/nt-syntax-bad-bnode-02.nq new file mode 100644 index 00000000..093b8700 --- /dev/null +++ b/test/w3c/NQuadsTests/nt-syntax-bad-bnode-02.nq @@ -0,0 +1 @@ +_:abc:def <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 index b4e64592..acd3779b 100644 --- a/test/w3c/NQuadsTests/nt-syntax-bad-uri-06.nq +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-06.nq @@ -1,2 +1,2 @@ -# No relative IRIs in N-Triples +# No relative IRIs in N-Quads <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 index 74534dde..c1d0875b 100644 --- a/test/w3c/NQuadsTests/nt-syntax-bad-uri-07.nq +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-07.nq @@ -1,2 +1,2 @@ -# No relative IRIs in N-Triples +# No relative IRIs in N-Quads <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 index 41a953d4..da475a4f 100644 --- a/test/w3c/NQuadsTests/nt-syntax-bad-uri-08.nq +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-08.nq @@ -1,2 +1,2 @@ -# No relative IRIs in N-Triples +# No relative IRIs in N-Quads <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 index 58821da8..812f1824 100644 --- a/test/w3c/NQuadsTests/nt-syntax-bad-uri-09.nq +++ b/test/w3c/NQuadsTests/nt-syntax-bad-uri-09.nq @@ -1,2 +1,2 @@ -# No relative IRIs in N-Triples +# No relative IRIs in N-Quads <http://example/s> <http://example/p> "foo"^^<dt> . |