# 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 SPARQL 1.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

base-prefix-1: Basic - Prefix/Base 1
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    base-prefix-1.srx
base-prefix-2: Basic - Prefix/Base 2
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    base-prefix-2.srx
base-prefix-3: Basic - Prefix/Base 3
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    base-prefix-3.srx
base-prefix-4: Basic - Prefix/Base 4
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    base-prefix-4.srx
base-prefix-5: Basic - Prefix/Base 5
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    base-prefix-5.srx
list-1: Basic - List 1
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    list-1.srx
list-2: Basic - List 2
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    list-2.srx
list-3: Basic - List 3
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    list-3.srx
list-4: Basic - List 4
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    list-4.srx
quotes-1: Basic - Quotes 1
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    quotes-1.srx
quotes-2: Basic - Quotes 2
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    quotes-2.srx
quotes-3: Basic - Quotes 3
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    quotes-3.srx
quotes-4: Basic - Quotes 4
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    quotes-4.srx
term-1: Basic - Term 1
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    term-1.srx
term-2: Basic - Term 2
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    term-2.srx
term-3: Basic - Term 3
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    term-3.srx
term-4: Basic - Term 4
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    term-4.srx
term-5: Basic - Term 5
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    term-5.srx
term-6: Basic - Term 6
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    term-6.srx
term-7: Basic - Term 7
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    term-7.srx
term-8: Basic - Term 8
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    term-8.srx
term-9: Basic - Term 9
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    term-9.srx
var-1: Basic - Var 1
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    var-1.srx
var-2: Basic - Var 2
  type
    mf:QueryEvaluationTest
  approval
  action
  result
    var-2.srx
bgp-no-match: Non-matching triple pattern

  Patterns not in data don't match

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    bgp-no-match.srx
spoo-1: Basic graph pattern - spoo

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

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    spoo-1.srx
prefix-name-1: Prefix name 1

  No local name - foo:

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    prefix-name-1.srx