From 5d43cb36087292a397992aa1b59326fc355d5247 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 Dec 2019 19:09:49 -0500 Subject: Add support for parsing variables This adds a reader flag and serdi option for extending a syntax with support for SPARQL-like variables, for storing things like patterns or simple queries. --- test/bad/bad-var.ttl | 2 ++ test/bad/manifest.ttl | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 test/bad/bad-var.ttl (limited to 'test/bad') diff --git a/test/bad/bad-var.ttl b/test/bad/bad-var.ttl new file mode 100644 index 00000000..29b5b008 --- /dev/null +++ b/test/bad/bad-var.ttl @@ -0,0 +1,2 @@ +?s + . diff --git a/test/bad/manifest.ttl b/test/bad/manifest.ttl index 96a0b593..466a4435 100644 --- a/test/bad/manifest.ttl +++ b/test/bad/manifest.ttl @@ -70,6 +70,7 @@ <#bad-string> <#bad-subject> <#bad-uri-escape> + <#bad-var> <#bad-verb> <#invalid-char-in-local> <#invalid-char-in-prefix> @@ -394,6 +395,11 @@ mf:name "bad-uri-escape" ; mf:action . +<#bad-var> + rdf:type rdft:TestTurtleNegativeSyntax ; + mf:name "bad-var" ; + mf:action . + <#bad-verb> rdf:type rdft:TestTurtleNegativeSyntax ; mf:name "bad-verb" ; -- cgit v1.2.1