Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, and document use rules apply.
This page describes W3C SPARQL Working Group's SPARQL1.0 test suite.
The test manifests and entries are built automatically from manifest.ttl using a Rake task. Tests may be contributed via pull request to https://github.com/w3c/rdf-tests with suitable changes to the manifest.ttl and referenced files.
Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License. To contribute to a W3C Test Suite, see the policies and contribution forms.
UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS 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 DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
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
OPTIONALs parse in a left-associative manner
A FILTER inside an OPTIONAL can reference a variable bound in the required part of the OPTIONAL
FILTERs inside an OPTIONAL can refer to variables from both the required and optional parts of the construct.
FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(…) operation
FILTER placed after the triple pattern that contains the variable tested
FILTERs are scoped to the nearest enclosing group - placement within that group does not matter
FILTERs are scoped to the nearest enclosing group - placement within that group does not matter
A FILTER is in scope for variables bound at the same level of the query tree
A FILTER in a group { … } cannot see variables bound outside that group
FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(…) operation
Variables have query scope.
Tests nested combination of Join with a BGP / OPT and a BGP / UNION
Tests combination of Join operator with Graph on LHS and Union on RHS