Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, and document use rules apply.
This manifest encodes tests for the SPARQL Protocol. Each test record has one or more ht:Requests that must be run in order to produce the expected results. Expected results are encoded in the ht:Response using one of four new terms: * `mf:expectedStatus` - Expected HTTP status code (pointing to values like `hts:StatusCode2xx`); * `mf:expectedBoolean` - Expected results for ASK queries. * `mf:expectedFormat` - Expected serialization format of the results; the range here is one of the literals: `"boolean"`, `"tabular"`, or `"RDF"` Each request has a ht:absolutePath value that starts with `/sparql/`. A program using this manifest data to run the tests must replace this value with whatever path prefix is appropriate for the endpoint being tested. Every ht:absolutePath value in this manifest starts with `/sparql/`, but and endpoint being tested may require different endpoints to be used for Query and Update requests.
This page describes W3C SPARQL Working Group's SPARQL 1.0 test suite.
When accessed without any query parameters, the CGI provides an HTML form that may be used to validate a Protocol implementation. The parameters are:
The following parameters should also be accounted for (in a future version):
It is assumed that the Protocol implementation provides support for all of SPARQL (1.0) and also SPARQL 1.1 Query/Update support for:
The following RDF files are loaded as appropriate to properly setup the graphstore/dataset for some tests:
Finally, it is assumed that implementations can produce application/rdf+xml and application/sparql-results+xml when requested using conneg.
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.