From 35fa3c20769fc1debf44f2afd01eed382200d967 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Apr 2023 09:00:26 -0400 Subject: Update NTriples test suite --- test/w3c/NTriplesTests/manifest.ttl | 18 ++++++++++++++++-- test/w3c/NTriplesTests/nt-syntax-bad-bnode-01.nt | 1 + test/w3c/NTriplesTests/nt-syntax-bad-bnode-02.nt | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 test/w3c/NTriplesTests/nt-syntax-bad-bnode-01.nt create mode 100644 test/w3c/NTriplesTests/nt-syntax-bad-bnode-02.nt diff --git a/test/w3c/NTriplesTests/manifest.ttl b/test/w3c/NTriplesTests/manifest.ttl index 246561cb..a90da4f7 100644 --- a/test/w3c/NTriplesTests/manifest.ttl +++ b/test/w3c/NTriplesTests/manifest.ttl @@ -8,7 +8,7 @@ @prefix rdft: . <> rdf:type mf:Manifest ; - mf:name "N-Triples tests" ; + rdfs:label "N-Triples tests" ; mf:entries ( <#nt-syntax-file-01> @@ -40,6 +40,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> @@ -255,6 +257,18 @@ mf:action ; . +<#nt-syntax-bad-bnode-01> rdf:type 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> rdf:type 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> rdf:type rdft:TestNTriplesNegativeSyntax ; mf:name "nt-syntax-bad-struct-01" ; rdfs:comment "N-Triples does not have objectList (negative test)" ; @@ -415,7 +429,7 @@ <#literal_with_dquote> rdf:type rdft:TestNTriplesPositiveSyntax ; mf:name "literal_with_dquote" ; - rdfs:comment "literal with dquote \"x\"y\"" ; + rdfs:comment 'literal with dquote "x\"y"' ; rdft:approval rdft:Proposed ; mf:action ; . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-bnode-01.nt b/test/w3c/NTriplesTests/nt-syntax-bad-bnode-01.nt new file mode 100644 index 00000000..a776d20d --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-bnode-01.nt @@ -0,0 +1 @@ +_::a . diff --git a/test/w3c/NTriplesTests/nt-syntax-bad-bnode-02.nt b/test/w3c/NTriplesTests/nt-syntax-bad-bnode-02.nt new file mode 100644 index 00000000..093b8700 --- /dev/null +++ b/test/w3c/NTriplesTests/nt-syntax-bad-bnode-02.nt @@ -0,0 +1 @@ +_:abc:def . -- cgit v1.2.1