+Tests are divided into collections (corresponding to directories) for manageability. Each collection
+of tests has a manifest file within its directory (usually named
+manifest.ttl, but sometimes manifest.n3).
+There is also a pair of overall manifests containing entries pointing to the
+individual test collection manifests: One is a manifest
+of syntax-only tests (positive and negative tests); the other is a manifest
+of query-evaluation tests.
+
+
Reorganization
+
+The Working Group recently completed reorganizing the test suite. The
+output of this reorganization process can be found in the data-r2 directory. The tests here are restructured
+copies of tests from the previous test suite along with new tests aimed at
+covering as much of the SPARQL Query Language as possible. The purpose of this
+restructuring is to enhance usability, clear away obsolete tests and
+provide an up-to-date, consistent, and easy-to-use suite of test cases that
+SPARQL query language implementors can use to evaluate and report on their
+implementation.
+
+
+The Working Group decided on 21
+Aug 2007 that the tests as-is constitute a test suite that the group will
+use to generate an implementation report for the SPARQL Query Language for
+RDF.
+
+
Manifest Vocabularies
+
+
The DAWG's test manifest files define three vocabularies to express
+ tests:
+A manifest is a list (RDF Collection) of tests. Every test has
+a name (mf:name); many tests also have a comment
+(rdfs:comment) explaining the purpose of the test. The dawgt:approval predicate relates a test
+to its official Working Group status (e.g. dawgt:Approved). Tests are
+grouped (via their rdf:type) as syntax tests (an rdf:type of
+either mf:PositiveSyntaxTest or mf:NegativeSyntaxTest) or
+query-evaluation test (an rdf:type of
+mf:QueryEvaluationTest).
+
+
Syntax Tests
+
+
+Each syntax test has an mf:action, the object of which is a
+resource identifying a (possible) query string. An example definition of a
+syntax test is:
+
+A SPARQL implementation passes a mf:PositiveSyntaxTest if it parses
+the query string without error. A SPARQL implementation passes a
+mf:NegativeSyntaxTest if it raises an error while attempting to parse
+the query string.
+
+
+
Query-Evaluation Tests
+
+
Each query-evaluation test has an mf:action and an
+ mf:result. The object of mf:action is a resource with
+ properties taken from the query-evaluation test vocabulary. At a minimum, a
+ test's action includes a qt:data relation and a qt:query
+ relation. The qt:data predicate points to a URI
+ that can be dereferenced to yield the default graph for the test. The
+ qt:query prediate points to a URI that can be dereferenced to yield
+ the query string for the test. Query-evaluation tests may also use the
+ qt:graphData predicate to indicate the named graph components of
+ the test's RDF dataset.
+
+
Query evaluation tests also contain an mf:result which points to
+ a URI that can be dereferenced to yield the
+ expected results of the test query. These results are expressed in one of
+ several possible ways:
A SPARQL implementation passes a query-evaluation test if the graph
+produced by evaluating the query against the RDF dataset (and encoding in the
+DAWG result set vocabulary, if necessary) is
+href="http://www.w3.org/TR/rdf-concepts/#section-graph-equality">equivalent [RDF-CONCEPTS]
+to the graph named in the result (after encoding in the DAWG result set
+vocabulary, if necessary). Equivalence can be tested by
+checking that the graphs are isomorphic and have identical IRI and
+literal nodes. Note that testing whether two result sets are isomorphic is simpler than full graph isomorphism. Iterating over rows in one set, finding a match with the other set, removing this pair, then making sure all rows are accounted for, achieves the same effect.
+
+
An example definition of a query-evaluation test is:
A number of tests in the open-world directory illustrate features of SPARQL
+ by depending on how a SPARQL query processor can extend the set of core types
+ and operations as defined by the operator table [http://www.w3.org/TR/rdf-sparql-query/#OperatorMapping].
+
These tests are marked by property mf:requires and an object value from one
+ of the URIs described below.
+
+
mf:XsdDateOperations
+
Requires the processor to understand comparisons of
+ literal of type xsd:date. Without proivding operations on the xsd:date datatype, a
+ processor would raise an error on the operations of "=" and "!="
+ etc. With
+ an understanding of xsd:date, a processor can perform value-based operations
+ and provide the operations described in "XQuery 1.0 and XPath 2.0 Functions
+ and Operators" (e.g.
+ date-equals
+ date-less-than)
+
+
mf:StringSimpleLiteralCmp
+
This indicates that the test uses the fact that plain literals, without
+ language tags test are the same value as an xsd;string with the same
+ lexicial form. This is covered by rules "xsd 1a" and "xsd 1b" from RDF
+ Semantics [http://www.w3.org/TR/rdf-mt/#DtypeRules].
+
+
mf:KnownTypesDefault2Neq
+
This indicates that a processor extends the SPARQL operator model by
+ using the fact that values of literals can be in disjoint value spaces and
+ hence can not be equal by value. For example, an xsd:integer can not be the
+ same value as an xsd:boolean because these two datatypes define disjoint
+ value spaces.
+
+
mf:LangTagAwareness
+
This indicates that the test assumes the SPARQL query processor has support
+for plain literals with language tags. The minimum set of operators in the
+ SPARQL operator table
+does not include language tag handling, only plain literals without language
+tag (simple literals) and certain XSD datatypes.
+
+
+
+
mf:notable
+
This annotation indicates a feature of SPARQL that implementers might note:
+
+
mf:IllFormedLiteral
+
The test involves handling of ill-formed literals.
+
+
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/LICENSE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/LICENSE Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,21 @@
+All tests materials are licensed under the W3C Software Notice and License, as follows:
+____________________________________
+W3C SOFTWARE NOTICE AND LICENSE
+http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
+
+Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
+
+ 1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
+ 2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code.
+ 3. Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
+
+THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
+
+The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
+
+____________________________________
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/README Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,16 @@
+Data Access Working Group SPARQL Query Language test suite reorganization
+
+This directory contains restructured copies of tests from
+the DAWG test suite (available at
+http://www.w3.org/2001/sw/DataAccess/tests/data/). The purpose of this
+restructuring is to enhance usability, clear away obsolete tests and
+provide an up-to-date, consistent and easy to use suite of test cases
+that SPARQL query language implementors can use to evaluate their
+implementation.
+
+
+The Working Group decided
+(http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html#item05)
+on 21 Aug 2007 that the tests as-is constitute a test suite that the group will
+use to generate an implementation report for the SPARQL Query Language for
+RDF.
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra-expressions.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra-expressions.txt Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,112 @@
+ I. LeftJoin(BGP(..),{..})
+ II. Join(BGP(..),Graph(varOrIRI,{..}))
+ III. Join(BGP(..),Union(..,..))
+ IV. Graph(varOrIRI,{..})
+ V. LeftJoin({},{..})
+ VI. Union(..,..)
+ VII. BGP(..)
+ Join(I.,I.) => Join(LeftJoin(BGP(..),{..}),LeftJoin(BGP(..),{..}))
+ Union(I.,I.) => Union(LeftJoin(BGP(..),{..}),LeftJoin(BGP(..),{..}))
+LeftJoin(I.,I.) => LeftJoin(LeftJoin(BGP(..),{..}),LeftJoin(BGP(..),{..}))
+ Join(I.,II.) => Join(LeftJoin(BGP(..),{..}),Join(BGP(..),Graph(varOrIRI,{..})))
+ Union(I.,II.) => Union(LeftJoin(BGP(..),{..}),Join(BGP(..),Graph(varOrIRI,{..})))
+LeftJoin(I.,II.) => LeftJoin(LeftJoin(BGP(..),{..}),Join(BGP(..),Graph(varOrIRI,{..})))
+ Join(I.,III.) => Join(LeftJoin(BGP(..),{..}),Join(BGP(..),Union(..,..)))
+ Union(I.,III.) => Union(LeftJoin(BGP(..),{..}),Join(BGP(..),Union(..,..)))
+LeftJoin(I.,III.) => LeftJoin(LeftJoin(BGP(..),{..}),Join(BGP(..),Union(..,..)))
+ Join(I.,IV.) => Join(LeftJoin(BGP(..),{..}),Graph(varOrIRI,{..}))
+ Union(I.,IV.) => Union(LeftJoin(BGP(..),{..}),Graph(varOrIRI,{..}))
+LeftJoin(I.,IV.) => LeftJoin(LeftJoin(BGP(..),{..}),Graph(varOrIRI,{..}))
+ Join(I.,V.) => Join(LeftJoin(BGP(..),{..}),LeftJoin({},{..}))
+ Union(I.,V.) => Union(LeftJoin(BGP(..),{..}),LeftJoin({},{..}))
+LeftJoin(I.,V.) => LeftJoin(LeftJoin(BGP(..),{..}),LeftJoin({},{..}))
+ Join(I.,VI.) => Join(LeftJoin(BGP(..),{..}),Union(..,..))
+ Union(I.,VI.) => Union(LeftJoin(BGP(..),{..}),Union(..,..))
+LeftJoin(I.,VI.) => LeftJoin(LeftJoin(BGP(..),{..}),Union(..,..))
+ Join(I.,VII.) => Join(LeftJoin(BGP(..),{..}),BGP(..))
+ Union(I.,VII.) => Union(LeftJoin(BGP(..),{..}),BGP(..))
+LeftJoin(I.,VII.) => LeftJoin(LeftJoin(BGP(..),{..}),BGP(..))
+LeftJoin(II.,I.) => LeftJoin(Join(BGP(..),Graph(varOrIRI,{..})),LeftJoin(BGP(..),{..}))
+ Join(II.,II.) => Join(Join(BGP(..),Graph(varOrIRI,{..})),Join(BGP(..),Graph(varOrIRI,{..})))
+ Union(II.,II.) => Union(Join(BGP(..),Graph(varOrIRI,{..})),Join(BGP(..),Graph(varOrIRI,{..})))
+LeftJoin(II.,II.) => LeftJoin(Join(BGP(..),Graph(varOrIRI,{..})),Join(BGP(..),Graph(varOrIRI,{..})))
+ Join(II.,III.) => Join(Join(BGP(..),Graph(varOrIRI,{..})),Join(BGP(..),Union(..,..)))
+ Union(II.,III.) => Union(Join(BGP(..),Graph(varOrIRI,{..})),Join(BGP(..),Union(..,..)))
+LeftJoin(II.,III.) => LeftJoin(Join(BGP(..),Graph(varOrIRI,{..})),Join(BGP(..),Union(..,..)))
+ Join(II.,IV.) => Join(Join(BGP(..),Graph(varOrIRI,{..})),Graph(varOrIRI,{..}))
+ Union(II.,IV.) => Union(Join(BGP(..),Graph(varOrIRI,{..})),Graph(varOrIRI,{..}))
+LeftJoin(II.,IV.) => LeftJoin(Join(BGP(..),Graph(varOrIRI,{..})),Graph(varOrIRI,{..}))
+ Join(II.,V.) => Join(Join(BGP(..),Graph(varOrIRI,{..})),LeftJoin({},{..}))
+ Union(II.,V.) => Union(Join(BGP(..),Graph(varOrIRI,{..})),LeftJoin({},{..}))
+LeftJoin(II.,V.) => LeftJoin(Join(BGP(..),Graph(varOrIRI,{..})),LeftJoin({},{..}))
+ Join(II.,VI.) => Join(Join(BGP(..),Graph(varOrIRI,{..})),Union(..,..))
+ Union(II.,VI.) => Union(Join(BGP(..),Graph(varOrIRI,{..})),Union(..,..))
+LeftJoin(II.,VI.) => LeftJoin(Join(BGP(..),Graph(varOrIRI,{..})),Union(..,..))
+ Join(II.,VII.) => Join(Join(BGP(..),Graph(varOrIRI,{..})),BGP(..))
+ Union(II.,VII.) => Union(Join(BGP(..),Graph(varOrIRI,{..})),BGP(..))
+LeftJoin(II.,VII.) => LeftJoin(Join(BGP(..),Graph(varOrIRI,{..})),BGP(..))
+LeftJoin(III.,I.) => LeftJoin(Join(BGP(..),Union(..,..)),LeftJoin(BGP(..),{..}))
+LeftJoin(III.,II.) => LeftJoin(Join(BGP(..),Union(..,..)),Join(BGP(..),Graph(varOrIRI,{..})))
+ Join(III.,III.) => Join(Join(BGP(..),Union(..,..)),Join(BGP(..),Union(..,..)))
+ Union(III.,III.) => Union(Join(BGP(..),Union(..,..)),Join(BGP(..),Union(..,..)))
+LeftJoin(III.,III.) => LeftJoin(Join(BGP(..),Union(..,..)),Join(BGP(..),Union(..,..)))
+ Join(III.,IV.) => Join(Join(BGP(..),Union(..,..)),Graph(varOrIRI,{..}))
+ Union(III.,IV.) => Union(Join(BGP(..),Union(..,..)),Graph(varOrIRI,{..}))
+LeftJoin(III.,IV.) => LeftJoin(Join(BGP(..),Union(..,..)),Graph(varOrIRI,{..}))
+ Join(III.,V.) => Join(Join(BGP(..),Union(..,..)),LeftJoin({},{..}))
+ Union(III.,V.) => Union(Join(BGP(..),Union(..,..)),LeftJoin({},{..}))
+LeftJoin(III.,V.) => LeftJoin(Join(BGP(..),Union(..,..)),LeftJoin({},{..}))
+ Join(III.,VI.) => Join(Join(BGP(..),Union(..,..)),Union(..,..))
+ Union(III.,VI.) => Union(Join(BGP(..),Union(..,..)),Union(..,..))
+LeftJoin(III.,VI.) => LeftJoin(Join(BGP(..),Union(..,..)),Union(..,..))
+ Join(III.,VII.) => Join(Join(BGP(..),Union(..,..)),BGP(..))
+ Union(III.,VII.) => Union(Join(BGP(..),Union(..,..)),BGP(..))
+LeftJoin(III.,VII.) => LeftJoin(Join(BGP(..),Union(..,..)),BGP(..))
+LeftJoin(IV.,I.) => LeftJoin(Graph(varOrIRI,{..}),LeftJoin(BGP(..),{..}))
+LeftJoin(IV.,II.) => LeftJoin(Graph(varOrIRI,{..}),Join(BGP(..),Graph(varOrIRI,{..})))
+LeftJoin(IV.,III.) => LeftJoin(Graph(varOrIRI,{..}),Join(BGP(..),Union(..,..)))
+ Join(IV.,IV.) => Join(Graph(varOrIRI,{..}),Graph(varOrIRI,{..}))
+ Union(IV.,IV.) => Union(Graph(varOrIRI,{..}),Graph(varOrIRI,{..}))
+LeftJoin(IV.,IV.) => LeftJoin(Graph(varOrIRI,{..}),Graph(varOrIRI,{..}))
+ Join(IV.,V.) => Join(Graph(varOrIRI,{..}),LeftJoin({},{..}))
+ Union(IV.,V.) => Union(Graph(varOrIRI,{..}),LeftJoin({},{..}))
+LeftJoin(IV.,V.) => LeftJoin(Graph(varOrIRI,{..}),LeftJoin({},{..}))
+ Join(IV.,VI.) => Join(Graph(varOrIRI,{..}),Union(..,..))
+ Union(IV.,VI.) => Union(Graph(varOrIRI,{..}),Union(..,..))
+LeftJoin(IV.,VI.) => LeftJoin(Graph(varOrIRI,{..}),Union(..,..))
+ Join(IV.,VII.) => Join(Graph(varOrIRI,{..}),BGP(..))
+ Union(IV.,VII.) => Union(Graph(varOrIRI,{..}),BGP(..))
+LeftJoin(IV.,VII.) => LeftJoin(Graph(varOrIRI,{..}),BGP(..))
+LeftJoin(V.,I.) => LeftJoin(LeftJoin({},{..}),LeftJoin(BGP(..),{..}))
+LeftJoin(V.,II.) => LeftJoin(LeftJoin({},{..}),Join(BGP(..),Graph(varOrIRI,{..})))
+LeftJoin(V.,III.) => LeftJoin(LeftJoin({},{..}),Join(BGP(..),Union(..,..)))
+LeftJoin(V.,IV.) => LeftJoin(LeftJoin({},{..}),Graph(varOrIRI,{..}))
+ Join(V.,V.) => Join(LeftJoin({},{..}),LeftJoin({},{..}))
+ Union(V.,V.) => Union(LeftJoin({},{..}),LeftJoin({},{..}))
+LeftJoin(V.,V.) => LeftJoin(LeftJoin({},{..}),LeftJoin({},{..}))
+ Join(V.,VI.) => Join(LeftJoin({},{..}),Union(..,..))
+ Union(V.,VI.) => Union(LeftJoin({},{..}),Union(..,..))
+LeftJoin(V.,VI.) => LeftJoin(LeftJoin({},{..}),Union(..,..))
+ Join(V.,VII.) => Join(LeftJoin({},{..}),BGP(..))
+ Union(V.,VII.) => Union(LeftJoin({},{..}),BGP(..))
+LeftJoin(V.,VII.) => LeftJoin(LeftJoin({},{..}),BGP(..))
+LeftJoin(VI.,I.) => LeftJoin(Union(..,..),LeftJoin(BGP(..),{..}))
+LeftJoin(VI.,II.) => LeftJoin(Union(..,..),Join(BGP(..),Graph(varOrIRI,{..})))
+LeftJoin(VI.,III.) => LeftJoin(Union(..,..),Join(BGP(..),Union(..,..)))
+LeftJoin(VI.,IV.) => LeftJoin(Union(..,..),Graph(varOrIRI,{..}))
+LeftJoin(VI.,V.) => LeftJoin(Union(..,..),LeftJoin({},{..}))
+ Join(VI.,VI.) => Join(Union(..,..),Union(..,..))
+ Union(VI.,VI.) => Union(Union(..,..),Union(..,..))
+LeftJoin(VI.,VI.) => LeftJoin(Union(..,..),Union(..,..))
+ Join(VI.,VII.) => Join(Union(..,..),BGP(..))
+ Union(VI.,VII.) => Union(Union(..,..),BGP(..))
+LeftJoin(VI.,VII.) => LeftJoin(Union(..,..),BGP(..))
+LeftJoin(VII.,I.) => LeftJoin(BGP(..),LeftJoin(BGP(..),{..}))
+LeftJoin(VII.,II.) => LeftJoin(BGP(..),Join(BGP(..),Graph(varOrIRI,{..})))
+LeftJoin(VII.,III.) => LeftJoin(BGP(..),Join(BGP(..),Union(..,..)))
+LeftJoin(VII.,IV.) => LeftJoin(BGP(..),Graph(varOrIRI,{..}))
+LeftJoin(VII.,V.) => LeftJoin(BGP(..),LeftJoin({},{..}))
+LeftJoin(VII.,VI.) => LeftJoin(BGP(..),Union(..,..))
+ Join(VII.,VII.) => Join(BGP(..),BGP(..))
+ Union(VII.,VII.) => Union(BGP(..),BGP(..))
+LeftJoin(VII.,VII.) => LeftJoin(BGP(..),BGP(..))
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/data-1.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/data-1.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,5 @@
+@prefix : .
+@prefix xsd: .
+
+:x :p "1"^^xsd:integer .
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/data-2.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/data-2.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,11 @@
+@prefix : .
+@prefix xsd: .
+
+:x :p "1"^^xsd:integer .
+:x :p "2"^^xsd:integer .
+:x :p "3"^^xsd:integer .
+:x :p "4"^^xsd:integer .
+
+:x :q "1"^^xsd:integer .
+:x :q "2"^^xsd:integer .
+:x :q "3"^^xsd:integer .
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-nested-1.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-nested-1.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,4 @@
+PREFIX :
+
+SELECT ?v
+{ :x :p ?v . FILTER(?v = 1) }
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-nested-1.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-nested-1.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-nested-2.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-nested-2.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,4 @@
+PREFIX :
+
+SELECT ?v
+{ :x :p ?v . { FILTER(?v = 1) } }
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-nested-2.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-nested-2.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-1.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-1.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,7 @@
+PREFIX :
+
+SELECT ?v
+{
+ ?s :p ?v .
+ FILTER (?v = 2)
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-1.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-1.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+ 2
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-2.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-2.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,7 @@
+PREFIX :
+
+SELECT ?v
+{
+ FILTER (?v = 2)
+ ?s :p ?v .
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-2.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-2.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+ 2
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-3.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-3.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,9 @@
+PREFIX :
+
+SELECT ?v ?w
+{
+ FILTER (?v = 2)
+ FILTER (?w = 3)
+ ?s :p ?v .
+ ?s :q ?w .
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-3.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-placement-3.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+ 2
+
+
+ 3
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-scope-1.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-scope-1.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,9 @@
+PREFIX :
+
+SELECT *
+{
+ :x :p ?v .
+ { :x :q ?w
+ OPTIONAL { :x :p ?v2 FILTER(?v = 1) }
+ }
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-scope-1.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/filter-scope-1.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
+
+
+ 4
+
+
+ 3
+
+
+
+
+ 4
+
+
+ 2
+
+
+
+
+ 4
+
+
+ 1
+
+
+
+
+ 3
+
+
+ 3
+
+
+
+
+ 3
+
+
+ 2
+
+
+
+
+ 3
+
+
+ 1
+
+
+
+
+ 2
+
+
+ 3
+
+
+
+
+ 2
+
+
+ 2
+
+
+
+
+ 2
+
+
+ 1
+
+
+
+
+ 1
+
+
+ 3
+
+
+
+
+ 1
+
+
+ 2
+
+
+
+
+ 1
+
+
+ 1
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-1.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-1.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,7 @@
+PREFIX :
+
+SELECT ?a ?y ?d ?z
+{
+ ?a :p ?c OPTIONAL { ?a :r ?d }.
+ ?a ?p 1 { ?p a ?y } UNION { ?a ?z ?p }
+}
\ No newline at end of file
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-1.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-1.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+ http://example/x1
+
+
+ http://www.w3.org/1999/02/22-rdf-syntax-ns#Property
+
+
+ 4
+
+
+
+
+ http://example/x1
+
+
+ http://example/z
+
+
+ 4
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-2.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-2.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,6 @@
+PREFIX :
+
+SELECT ?x ?y ?z
+{
+ GRAPH ?g { ?x ?p 1 } { ?x :p ?y } UNION { ?p a ?z }
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-2.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-2.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+ http://example/b
+
+
+ http://www.w3.org/1999/02/22-rdf-syntax-ns#Property
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-graph-1.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-graph-1.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,5 @@
+@prefix : .
+@prefix xsd: .
+
+ :b :p "1"^^xsd:integer .
+_:a :p "9"^^xsd:integer .
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-graph-2.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/join-combo-graph-2.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,15 @@
+@prefix : .
+@prefix rdf: .
+@prefix xsd: .
+
+:x1 :p "1"^^xsd:integer .
+:x1 :r "4"^^xsd:integer .
+:x2 :p "2"^^xsd:integer .
+:x2 :r "10"^^xsd:integer .
+:x2 :x "1"^^xsd:integer .
+:x3 :q "3"^^xsd:integer .
+:x3 :q "4"^^xsd:integer .
+:x3 :s "1"^^xsd:integer .
+:x3 :t :s .
+:p a rdf:Property .
+:x1 :z :p .
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/manifest.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/manifest.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,175 @@
+@prefix rdf: .
+@prefix : .
+@prefix rdfs: .
+@prefix mf: .
+@prefix qt: .
+@prefix dawgt: .
+
+<> rdf:type mf:Manifest ;
+ rdfs:label "Algebra" ;
+ mf:entries
+ ( :nested-opt-1
+ :nested-opt-2
+ :opt-filter-1
+ :opt-filter-2
+ :opt-filter-3
+ :filter-place-1
+ :filter-place-2
+ :filter-place-3
+ :filter-nested-1
+ :filter-nested-2
+ :filter-scope-1
+ :join-scope-1
+ :join-combo-1
+ :join-combo-2
+ ) .
+
+:join-combo-1 a mf:QueryEvaluationTest ;
+ mf:name "Join operator with OPTs, BGPs, and UNIONs" ;
+ rdfs:comment """Tests nested combination of Join with a BGP / OPT and a BGP / UNION""" ;
+ dawgt:approvedBy ;
+ dawgt:approval dawgt:Approved ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+:join-combo-2 a mf:QueryEvaluationTest ;
+ mf:name "Join operator with Graph and Union" ;
+ rdfs:comment """Tests combination of Join operator with Graph on LHS and Union on RHS""" ;
+ dawgt:approvedBy ;
+ dawgt:approval dawgt:Approved ;
+ mf:action
+ [ qt:query ;
+ qt:graphData ;
+ qt:data ] ;
+ mf:result .
+
+:nested-opt-1 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Nested Optionals - 1" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ rdfs:comment """Nested-optionals with a shared variable that does not appear in the middle pattern (a not well-formed query pattern as per "Semantics and Complexity" of SPARQL""" ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+:nested-opt-2 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Nested Optionals - 2" ;
+ rdfs:comment "OPTIONALs parse in a left-associative manner" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+
+:opt-filter-1 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Optional-filter - 1" ;
+ rdfs:comment "A FILTER inside an OPTIONAL can reference a variable bound in the required part of the OPTIONAL" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+
+:opt-filter-2 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Optional-filter - 2 filters" ;
+ rdfs:comment "FILTERs inside an OPTIONAL can refer to variables from both the required and optional parts of the construct." ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+:opt-filter-3 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Optional-filter - scope of variable" ;
+ rdfs:comment "FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+
+:filter-place-1 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Filter-placement - 1" ;
+ rdfs:comment "FILTER placed after the triple pattern that contains the variable tested" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+
+:filter-place-2 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Filter-placement - 2" ;
+ rdfs:comment "FILTERs are scoped to the nearest enclosing group - placement within that group does not matter" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+
+:filter-place-3 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Filter-placement - 3" ;
+ rdfs:comment "FILTERs are scoped to the nearest enclosing group - placement within that group does not matter" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+
+:filter-nested-1 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Filter-nested - 1" ;
+ rdfs:comment "A FILTER is in scope for variables bound at the same level of the query tree" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+
+:filter-nested-2 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Filter-nested - 2" ;
+ rdfs:comment "A FILTER in a group { ... } cannot see variables bound outside that group" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+
+:filter-scope-1 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Filter-scope - 1" ;
+ rdfs:comment "FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
+
+
+:join-scope-1 rdf:type mf:QueryEvaluationTest ;
+ mf:name "Join scope - 1" ;
+ rdfs:comment "Variables have query scope." ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result .
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-1.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-1.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,11 @@
+PREFIX :
+
+SELECT *
+{
+ ?x :p ?v .
+ OPTIONAL
+ {
+ ?y :q ?w .
+ FILTER(?v=2)
+ }
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-1.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-1.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+ http://example/x2
+
+
+ 2
+
+
+ http://example/x3
+
+
+ 4
+
+
+
+
+ http://example/x2
+
+
+ 2
+
+
+ http://example/x3
+
+
+ 3
+
+
+
+
+ http://example/x1
+
+
+ 1
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-1.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-1.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,9 @@
+@prefix : .
+@prefix xsd: .
+
+:x1 :p "1"^^xsd:integer .
+:x2 :p "2"^^xsd:integer .
+
+:x3 :q "3"^^xsd:integer .
+:x3 :q "4"^^xsd:integer .
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-2.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-2.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,12 @@
+PREFIX :
+
+SELECT *
+{
+ ?x :p ?v .
+ OPTIONAL
+ {
+ ?y :q ?w .
+ FILTER(?v=2)
+ FILTER(?w=3)
+ }
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-2.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-2.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+ http://example/x2
+
+
+ 2
+
+
+ http://example/x3
+
+
+ 3
+
+
+
+
+ http://example/x1
+
+
+ 1
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-2.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-2.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,9 @@
+@prefix : .
+@prefix xsd: .
+
+:x1 :p "1"^^xsd:integer .
+:x2 :p "2"^^xsd:integer .
+
+:x3 :q "3"^^xsd:integer .
+:x3 :q "4"^^xsd:integer .
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-3.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-3.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,10 @@
+PREFIX :
+
+SELECT *
+{
+ :x :p ?v .
+ { :x :q ?w
+ # ?v is not in scope so ?v2 never set
+ OPTIONAL { :x :p ?v2 FILTER(?v = 1) }
+ }
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-3.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-3.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-3.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/opt-filter-3.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,9 @@
+@prefix : .
+@prefix xsd: .
+
+:x1 :p "1"^^xsd:integer .
+:x2 :p "2"^^xsd:integer .
+
+:x3 :q "3"^^xsd:integer .
+:x3 :q "4"^^xsd:integer .
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt-alt.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt-alt.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,10 @@
+PREFIX :
+
+## The nested optional example, rewritten to a form that is the same
+## for the SPARQL algebra and the declarative semantics.
+SELECT *
+{
+ :x1 :p ?v .
+ OPTIONAL { :x3 :q ?w }
+ OPTIONAL { :x3 :q ?w . :x2 :p ?v }
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt-alt.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt-alt.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+ 1
+
+
+ 4
+
+
+
+
+ 1
+
+
+ 3
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,11 @@
+PREFIX :
+
+SELECT *
+{
+ :x1 :p ?v .
+ OPTIONAL
+ {
+ :x3 :q ?w .
+ OPTIONAL { :x2 :p ?v }
+ }
+}
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/two-nested-opt.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,7 @@
+@prefix : .
+@prefix xsd: .
+
+:x1 :p "1"^^xsd:integer .
+:x2 :p "2"^^xsd:integer .
+:x3 :q "3"^^xsd:integer .
+:x3 :q "4"^^xsd:integer .
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/var-scope-join-1.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/var-scope-join-1.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,8 @@
+PREFIX :
+
+SELECT *
+{
+ ?X :name "paul"
+ {?Y :name "george" . OPTIONAL { ?X :email ?Z } }
+}
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/var-scope-join-1.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/var-scope-join-1.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/var-scope-join-1.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/algebra/var-scope-join-1.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,15 @@
+@prefix : .
+
+_:B1 :name "paul" .
+_:B1 :phone "777-3426".
+
+_:B2 :name "john" .
+_:B2 :email .
+
+_:B3 :name "george".
+_:B3 :webPage .
+
+_:B4 :name "ringo".
+_:B4 :email .
+_:B4 :webPage .
+_:B4 :phone "888-4537".
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-1.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-1.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,3 @@
+PREFIX :
+
+ASK { :x :p 1 }
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-1.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-1.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,6 @@
+
+
+
+
+ true
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-4.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-4.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,3 @@
+PREFIX :
+
+ASK { :x :p 99 }
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-4.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-4.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,6 @@
+
+
+
+
+ false
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-7.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-7.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,3 @@
+PREFIX :
+
+ASK { :x :p ?x }
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-7.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-7.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,6 @@
+
+
+
+
+ true
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-8.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-8.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,3 @@
+PREFIX :
+
+ASK { :x :p ?x . FILTER(?x = 99) }
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-8.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/ask-8.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,6 @@
+
+
+
+
+ false
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/data.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/data.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,9 @@
+@prefix : .
+@prefix xsd: .
+
+:x :p "1"^^xsd:integer .
+:x :p "2"^^xsd:integer .
+:x :p "3"^^xsd:integer .
+
+:y :p :a .
+:a :q :r .
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/manifest.ttl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/ask/manifest.ttl Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,61 @@
+@prefix rdf: .
+@prefix : .
+@prefix rdfs: .
+@prefix mf: .
+@prefix qt: .
+@prefix dawgt: .
+
+<> rdf:type mf:Manifest ;
+ rdfs:label "ASK" ;
+ mf:entries
+ (
+ :ask-1
+ :ask-4
+ :ask-7
+ :ask-8
+ ) .
+
+
+:ask-1 rdf:type mf:QueryEvaluationTest ;
+ qt:queryForm qt:QueryAsk ;
+ mf:name "ASK-1 (SPARQL XML results)" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result
+ .
+
+:ask-4 rdf:type mf:QueryEvaluationTest ;
+ qt:queryForm qt:QueryAsk ;
+ mf:name "ASK-4 (SPARQL XML results)" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result
+ .
+
+:ask-7 rdf:type mf:QueryEvaluationTest ;
+ qt:queryForm qt:QueryAsk ;
+ mf:name "ASK-7 (SPARQL XML results)" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result
+ .
+
+:ask-8 rdf:type mf:QueryEvaluationTest ;
+ qt:queryForm qt:QueryAsk ;
+ mf:name "ASK-8 (SPARQL XML results)" ;
+ dawgt:approval dawgt:Approved ;
+ dawgt:approvedBy ;
+ mf:action
+ [ qt:query ;
+ qt:data ] ;
+ mf:result
+ .
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-1.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-1.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,4 @@
+BASE
+PREFIX : <>
+
+SELECT * WHERE { :x ?p ?v }
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-1.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-1.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+ d:x ns:p
+
+
+ http://example.org/ns#p
+
+
+
+
+ x:x x:p
+
+
+ http://example.org/x/p
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-2.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-2.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,4 @@
+BASE
+PREFIX : <#>
+
+SELECT * WHERE { :x ?p ?v }
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-2.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-2.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+ z:x z:p
+
+
+ http://example.org/x/#p
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-3.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-3.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,4 @@
+PREFIX ns:
+PREFIX x:
+
+SELECT * WHERE { x:x ns:p ?v }
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-3.srx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-3.srx Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+ d:x ns:p
+
+
+
+
diff -r 000000000000 -r 46996d3b1cfb sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-4.rq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sparql-7785ad38967f/sparql/sparql/test/dawg/data-r2/basic/base-prefix-4.rq Tue Mar 13 16:29:09 2012 -0400
@@ -0,0 +1,3 @@
+BASE
+
+SELECT * WHERE {