aboutsummaryrefslogtreecommitdiffstats
path: root/tests/rdfq-results.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-19 07:24:09 +0000
committerDavid Robillard <d@drobilla.net>2011-01-19 07:24:09 +0000
commit05f3e795bebbf51c1a5a859cd015d5dbd74c21f9 (patch)
tree1be491847f560c520f3077497b739221635d42ce /tests/rdfq-results.ttl
parent281c57610c95e1f80fd42b3729da1d3da90c43b6 (diff)
downloadserd-05f3e795bebbf51c1a5a859cd015d5dbd74c21f9.tar.gz
serd-05f3e795bebbf51c1a5a859cd015d5dbd74c21f9.tar.bz2
serd-05f3e795bebbf51c1a5a859cd015d5dbd74c21f9.zip
Initial import.
git-svn-id: http://svn.drobilla.net/serd/trunk@2 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/rdfq-results.ttl')
-rw-r--r--tests/rdfq-results.ttl39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/rdfq-results.ttl b/tests/rdfq-results.ttl
new file mode 100644
index 00000000..c6e72aa7
--- /dev/null
+++ b/tests/rdfq-results.ttl
@@ -0,0 +1,39 @@
+# from http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html
+
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rs: <http://jena.hpl.hp.com/2003/03/result-set#> .
+
+
+<> rdf:type rs:ResultSet ;
+ rs:size 4 ;
+ rs:resultVariable "x" ; rs:resultVariable "y" ;
+ rs:solution
+ [ rdf:type rs:ResultSolution ;
+ rs:binding [ rs:variable "x" ; rs:value 123 ] ;
+ rs:binding [ rs:variable "y" ; rs:value <http://example.com/resource1> ]
+ ] ;
+
+ rs:solution
+ [ rdf:type rs:ResultSolution ;
+ rs:binding [ rs:variable "x" ;
+ rs:value "2003-01-21" ] ;
+ rs:binding [ rs:variable "y" ;
+ rs:value <http://example.com/resource2> ]
+ ] ;
+
+ rs:solution
+ [ rdf:type rs:ResultSolution ;
+ rs:binding [ rs:variable "x" ;
+ rs:value "anon1" ] ;
+ rs:binding [ rs:variable "y" ;
+ rs:value _:a ]
+ ] ;
+
+ rs:solution
+ [ rdf:type rs:ResultSolution ;
+ rs:binding [ rs:variable "x" ;
+ rs:value "anon2" ] ;
+ rs:binding [ rs:variable "y" ;
+ rs:value _:a ]
+ ] ;
+ .