From 22f5f5c7e32b043433103edb404bfbe43effa15d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 May 2011 22:50:07 +0000 Subject: Add base_uri parameter to sord_read_file. Add sord_write_writer. Use command line base URI in sordi if given. Use correct output style options for output syntax in sordi. Use sord_write_writer in sordi instead of manual writing code. Abbreviate serialised model output for Turtle. Preserve UTF-8 length information for nodes from Serd. Use string lengths not including terminator (match new Serd). Add test suite. git-svn-id: http://svn.drobilla.net/sord/trunk@111 3d64ff67-21c5-427c-a301-fe4f08042e5a --- tests/rdfq-results.ttl | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/rdfq-results.ttl (limited to 'tests/rdfq-results.ttl') diff --git a/tests/rdfq-results.ttl b/tests/rdfq-results.ttl new file mode 100644 index 0000000..c6e72aa --- /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: . +@prefix rs: . + + +<> 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 ] + ] ; + + rs:solution + [ rdf:type rs:ResultSolution ; + rs:binding [ rs:variable "x" ; + rs:value "2003-01-21" ] ; + rs:binding [ rs:variable "y" ; + rs:value ] + ] ; + + 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 ] + ] ; + . -- cgit v1.2.1