aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pattern/test-pattern.ttl
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/pattern/test-pattern.ttl
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/pattern/test-pattern.ttl')
-rw-r--r--tests/pattern/test-pattern.ttl10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pattern/test-pattern.ttl b/tests/pattern/test-pattern.ttl
new file mode 100644
index 00000000..3742e5ed
--- /dev/null
+++ b/tests/pattern/test-pattern.ttl
@@ -0,0 +1,10 @@
+?s
+ <http://example.org/p1> <http://example.org/o1> .
+
+<http://example.org/s>
+ ?p <http://example.org/o1> ;
+ <http://example.org/p1> ?o ;
+ <http://example.org/p2> [
+ ?2p <http://example.org/o2> ;
+ <http://example.org/p3> ?_o
+ ] .