aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bad
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-18 19:09:49 -0500
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:59 +0100
commit7f508b89230b339684a4013dbbad741d9e16e40a (patch)
tree1c366ec60c6fcac68f96e01df06e4dc3c142f1ab /tests/bad
parentb6b777a0c0145449bce9855bc3851ad1b5edf409 (diff)
downloadserd-7f508b89230b339684a4013dbbad741d9e16e40a.tar.gz
serd-7f508b89230b339684a4013dbbad741d9e16e40a.tar.bz2
serd-7f508b89230b339684a4013dbbad741d9e16e40a.zip
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.
Diffstat (limited to 'tests/bad')
-rw-r--r--tests/bad/bad-var.ttl2
-rw-r--r--tests/bad/manifest.ttl6
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/bad/bad-var.ttl b/tests/bad/bad-var.ttl
new file mode 100644
index 00000000..29b5b008
--- /dev/null
+++ b/tests/bad/bad-var.ttl
@@ -0,0 +1,2 @@
+?s
+ <http://example.org/p> <http://example.org/o> .
diff --git a/tests/bad/manifest.ttl b/tests/bad/manifest.ttl
index e8ecb396..1bcf6611 100644
--- a/tests/bad/manifest.ttl
+++ b/tests/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-uri-escape.ttl> .
+<#bad-var>
+ rdf:type rdft:TestTurtleNegativeSyntax ;
+ mf:name "bad-var" ;
+ mf:action <bad-var.ttl> .
+
<#bad-verb>
rdf:type rdft:TestTurtleNegativeSyntax ;
mf:name "bad-verb" ;