W3C

Basic

Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, and document use rules apply.


Abstract

Basic test cases

This page describes W3C SPARQL Working Group's SPARQL1.0 test suite.

Contributing Tests

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.

Distribution

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.

Disclaimer

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.

Test Descriptions

http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#base-prefix-1: Basic - Prefix/Base 1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
base-prefix-1.rq
data
data-1.ttl
result
base-prefix-1.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#base-prefix-2: Basic - Prefix/Base 2
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
base-prefix-2.rq
data
data-1.ttl
result
base-prefix-2.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#base-prefix-3: Basic - Prefix/Base 3
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
base-prefix-3.rq
data
data-1.ttl
result
base-prefix-3.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#base-prefix-4: Basic - Prefix/Base 4
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
base-prefix-4.rq
data
data-1.ttl
result
base-prefix-4.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#base-prefix-5: Basic - Prefix/Base 5
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
base-prefix-5.rq
data
data-1.ttl
result
base-prefix-5.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#list-1: Basic - List 1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
list-1.rq
data
data-2.ttl
result
list-1.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#list-2: Basic - List 2
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
list-2.rq
data
data-2.ttl
result
list-2.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#list-3: Basic - List 3
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
list-3.rq
data
data-2.ttl
result
list-3.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#list-4: Basic - List 4
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
list-4.rq
data
data-2.ttl
result
list-4.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#quotes-1: Basic - Quotes 1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
quotes-1.rq
data
data-3.ttl
result
quotes-1.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#quotes-2: Basic - Quotes 2
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
quotes-2.rq
data
data-3.ttl
result
quotes-2.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#quotes-3: Basic - Quotes 3
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
quotes-3.rq
data
data-3.ttl
result
quotes-3.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#quotes-4: Basic - Quotes 4
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
quotes-4.rq
data
data-3.ttl
result
quotes-4.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-1: Basic - Term 1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
term-1.rq
data
data-4.ttl
result
term-1.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-2: Basic - Term 2
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
term-2.rq
data
data-4.ttl
result
term-2.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-3: Basic - Term 3
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
term-3.rq
data
data-4.ttl
result
term-3.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-4: Basic - Term 4
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
term-4.rq
data
data-4.ttl
result
term-4.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-5: Basic - Term 5
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
term-5.rq
data
data-4.ttl
result
term-5.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-6: Basic - Term 6
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
term-6.rq
data
data-4.ttl
result
term-6.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-7: Basic - Term 7
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
term-7.rq
data
data-4.ttl
result
term-7.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-8: Basic - Term 8
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
term-8.rq
data
data-4.ttl
result
term-8.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#term-9: Basic - Term 9
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
term-9.rq
data
data-4.ttl
result
term-9.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#var-1: Basic - Var 1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
var-1.rq
data
data-5.ttl
result
var-1.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#var-2: Basic - Var 2
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
var-2.rq
data
data-5.ttl
result
var-2.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#bgp-no-match: Non-matching triple pattern

Patterns not in data don't match

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html
action
query
bgp-no-match.rq
data
data-7.ttl
result
bgp-no-match.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#spoo-1: Basic graph pattern - spoo

Test the :x :y :o1, :o2 construct

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html
action
query
spoo-1.rq
data
data-6.ttl
result
spoo-1.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest#prefix-name-1: Prefix name 1

No local name - foo:

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html
action
query
prefix-name-1.rq
data
data-6.ttl
result
prefix-name-1.srx