# Syntax Query

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

## Abstract

Syntax tests Syntax SPARQL 1.1

This page describes W3C SPARQL Working Group's SPARQL 1.1 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

test_1: syntax-select-expr-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-select-expr-01.rq
test_2: syntax-select-expr-02.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-select-expr-02.rq
test_3: syntax-select-expr-03.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-select-expr-03.rq
test_4: syntax-select-expr-04.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-select-expr-04.rq
test_5: syntax-select-expr-05.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-select-expr-05.rq
test_6: syntax-aggregate-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-01.rq
test_7: syntax-aggregate-02.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-02.rq
test_8: syntax-aggregate-03.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-03.rq
test_9: syntax-aggregate-04.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-04.rq
test_10: syntax-aggregate-05.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-05.rq
test_11: syntax-aggregate-06.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-06.rq
test_12: syntax-aggregate-07.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-07.rq
test_13: syntax-aggregate-08.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-08.rq
test_14: syntax-aggregate-09.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-09.rq
test_15: syntax-aggregate-10.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-10.rq
test_16: syntax-aggregate-11.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-11.rq
test_17: syntax-aggregate-12.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-12.rq
test_18: syntax-aggregate-13.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-13.rq
test_19: syntax-aggregate-14.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-14.rq
test_20: syntax-aggregate-15.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-aggregate-15.rq
test_21: syntax-subquery-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-subquery-01.rq
test_22: syntax-subquery-02.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-subquery-02.rq
test_23: syntax-subquery-03.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-subquery-03.rq
test_24: syntax-not-exists-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-not-exists-01.rq
test_25: syntax-not-exists-02.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-not-exists-02.rq
test_26: syntax-not-exists-03.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-not-exists-03.rq
test_27: syntax-exists-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-exists-01.rq
test_28: syntax-exists-02.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-exists-02.rq
test_29: syntax-exists-03.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-exists-03.rq
test_30: syntax-minus-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-minus-01.rq
test_31: syntax-oneof-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-oneof-01.rq
test_32: syntax-oneof-02.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-oneof-02.rq
test_33: syntax-oneof-03.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-oneof-03.rq
test_34: syntax-bindingBINDscopes-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-bindings-01.rq
test_35a: syntax-bindings-02a.rq with VALUES clause
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-bindings-02a.rq
test_36a: syntax-bindings-03a.rq with VALUES clause
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-bindings-03a.rq
test_38a: syntax-bindings-05a.rq with VALUES clause
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-bindings-05a.rq
test_40: syntax-bind-02.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-bind-02.rq
test_41: syntax-construct-where-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-construct-where-01.rq
test_42: syntax-construct-where-02.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-construct-where-02.rq
test_43: syn-bad-01.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-01.rq
test_44: syn-bad-02.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-02.rq
test_45: syn-bad-03.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-03.rq
test_46: syn-bad-04.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-04.rq
test_47: syn-bad-05.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-05.rq
test_48: syn-bad-06.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-06.rq
test_49: syn-bad-07.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-07.rq
test_50: syn-bad-08.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-08.rq
test_51: syntax-bindings-09.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syntax-bindings-09.rq
test_53: PrefixName with hex-encoded colons
  type
    mf:PositiveSyntaxTest11
  approval
  action
    qname-escape-02.rq
test_54: PrefixName with unescaped colons
  type
    mf:PositiveSyntaxTest11
  approval
  action
    qname-escape-03.rq
test_55: syntax-BINDscope1.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-BINDscope1.rq
test_56: syntax-BINDscope2.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-BINDscope2.rq
test_57: syntax-BINDscope3.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-BINDscope3.rq
test_58: syntax-BINDscope4.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-BINDscope4.rq
test_59: syntax-BINDscope5.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-BINDscope5.rq
test_60: syntax-BINDscope6.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syntax-BINDscope6.rq
test_61a: syntax-BINDscope7.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syntax-BINDscope7.rq
test_62a: syntax-BINDscope8.rq
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syntax-BINDscope8.rq
test_63: syntax-propertyPaths-01.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-propertyPaths-01.rq
test_64: syntax-SELECTscope1.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-SELECTscope1.rq
test_65: syntax-SELECTscope2
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syntax-SELECTscope2.rq
test_66: syntax-SELECTscope3.rq
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syntax-SELECTscope3.rq
test_pn_01: syn-pname-01
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pname-01.rq
test_pn_02: syn-pname-02
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pname-02.rq
test_pn_03: syn-pname-03
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pname-03.rq
test_pn_04: syn-pname-04
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pname-04.rq
test_pn_05: syn-pname-05
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pname-05.rq
test_pn_06: syn-pname-06
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pname-06.rq
test_pn_07: syn-pname-07
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pname-07.rq
test_pn_08: syn-pname-08
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pname-08.rq
test_pn_09: syn-pname-09
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pname-09.rq
test_pn_bad_01: syn-bad-pname-01
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-01.rq
test_pn_bad_02: syn-bad-pname-02
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-02.rq
test_pn_bad_03: syn-bad-pname-03
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-03.rq
test_pn_bad_04: syn-bad-pname-04
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-04.rq
test_pn_bad_05: syn-bad-pname-05
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-05.rq
test_pn_bad_06: syn-bad-pname-06
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-06.rq
test_pn_bad_07: syn-bad-pname-07
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-07.rq
test_pn_bad_08: syn-bad-pname-08
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-08.rq
test_pn_bad_09: syn-bad-pname-09
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-09.rq
test_pn_bad_10: syn-bad-pname-10
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-10.rq
test_pn_bad_11: syn-bad-pname-11
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-11.rq
test_pn_bad_12: syn-bad-pname-12
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-12.rq
test_pn_bad_13: syn-bad-pname-13
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-pname-13.rq
test_pp_coll: syn-pp-in-collection
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-pp-in-collection.rq
test_codepoint_escape_01: \U unicode codepoint escaping in literal
  type
    mf:PositiveSyntaxTest11
  approval
  action
    syn-codepoint-escape-01.rq
test_codepoint_escape_bad_02: Invalid multi-pass codepoint escaping (\u then \U)
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-codepoint-escape-bad-04.rq
test_codepoint_escape_bad_03: Invalid multi-pass codepoint escaping (\U then \u)
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-codepoint-escape-bad-05.rq
test_codepoint_boundaries_04: utf8 literal using codepoints at notable unicode boundaries
  type
    mf:PositiveSyntaxTest11
  approval
  action
    1val1STRING_LITERAL1_with_UTF8_boundaries.rq
test_codepoint_boundaries_escaped_05: \U and \u unicode codepoint escaping in literal using codepoints at notable unicode boundaries
  type
    mf:PositiveSyntaxTest11
  approval
  action
    1val1STRING_LITERAL1_with_UTF8_boundaries_escaped.rq
test_codepoint_invalid_escaped_bad_06: \u unicode codepoint escaping in literal using partial surrogate pair
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-invalid-codepoint-escaped-bad-01.rq
test_bad_values_too_few: Too few values in a VALUE clause compared to the number of variables
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-values-too-few.rq
test_bad_values_too_many: Too many values in a VALUE clause compared to the number of variables
  type
    mf:NegativeSyntaxTest11
  approval
  action
    syn-bad-values-too-many.rq