From dc2b18576712fd2071ec5fd356a1c0134b24a5d5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Apr 2023 09:00:27 -0400 Subject: Update NQuads test suite --- test/w3c/NQuadsTests/manifest.ttl | 32 ++++++++++++++++++-------- test/w3c/NQuadsTests/nt-syntax-bad-bnode-01.nq | 1 + test/w3c/NQuadsTests/nt-syntax-bad-bnode-02.nq | 1 + test/w3c/NQuadsTests/nt-syntax-bad-uri-06.nq | 2 +- test/w3c/NQuadsTests/nt-syntax-bad-uri-07.nq | 2 +- test/w3c/NQuadsTests/nt-syntax-bad-uri-08.nq | 2 +- test/w3c/NQuadsTests/nt-syntax-bad-uri-09.nq | 2 +- 7 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 test/w3c/NQuadsTests/nt-syntax-bad-bnode-01.nq create mode 100644 test/w3c/NQuadsTests/nt-syntax-bad-bnode-02.nq (limited to 'test/w3c') 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: . <> 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-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-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-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-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-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 ; . @@ -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-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-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 ; . @@ -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 ; . 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 . 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 . 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 . 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

. 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 . 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 "foo"^^

. -- cgit v1.2.1