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.1 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.
Simple count
Count with grouping
Count with grouping and HAVING clause
Count(*)
Count(*) with grouping
Count() with HAVING Count()
Count() with grouping and HAVING Count()
grouping by expression, done wrong
grouping by expression, done correctly
Projection of an ungrouped variable (not appearing in the GROUP BY expression)
Projection of an ungrouped variable (no GROUP BY expression at all)
Use of an ungrouped variable in a project expression
Use of an ungrouped variable in a project expression, where the variable appears in a GROUP BY expression
Error in AVG return no binding
Protect from error in AVG using IF and COALESCE
aggregating empty results returns no rows, as there are no grouped results.
aggregating empty results with no group-by always returns a single result.
counting no results with grouping returns no results.
counting no results without grouping always returns a single result.