/* * Copyright 2007 the original author or authors. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following * conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of conditions and the following * disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided with the distribution. * * Neither the name of the author or authors nor the names of its contributors may be used to endorse or promote * products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * @author Simone Tripodi (simone.tripodi) * @author Michele Mostarda (michele.mostarda) * @author Juergen Pfundt (Juergen.Pfundt) * @version $Id: Sparql.testsuite 25 2007-12-03 17:05:59Z simone.tripodi $ */ gunit Sparql; /* DAWG Testcases Document Editor Lee Feigenbaum – invited expert Version: $Revision: 1.6 1008/code> Copyright © 2004 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, and document use rules apply. -------------------------------------------------------------------------------- Abstract. This document will list the tests used to clarify the SPARQL Query Language for RDF. This document is a product of the Data Access Working Group. All test materials are licensed under the W3C Software License, reproduced below. -------------------------------------------------------------------------------- Status Note: This document updates the original tests page. Please see the README for information on the test reorganization. All new tests are in the data-r2/ subdirectory, and an overview is available on this page. Tests in the data/ subdirectory should not be considered up-to-date, even if marked as approved. -------------------------------------------------------------------------------- Source files This document is automatically built from the manifest files. Relevant files are: Schema and documentation README result-set.n3 test-dawg.n3 test-manifest.n3 test-query.n3 Archive of all test materials data-r2.tar.gz data-r2.zip Syntax-test Manifests data-r2/syntax-sparql1/manifest.ttl data-r2/syntax-sparql2/manifest.ttl data-r2/syntax-sparql3/manifest.ttl data-r2/syntax-sparql4/manifest.ttl data-r2/syntax-sparql5/manifest.ttl Evaluation-test Manifests data-r2/algebra/manifest.ttl data-r2/ask/manifest.ttl data-r2/basic/manifest.ttl data-r2/bnode-coreference/manifest.ttl data-r2/boolean-effective-value/manifest.ttl data-r2/bound/manifest.ttl data-r2/cast/manifest.ttl data-r2/construct/manifest.ttl data-r2/dataset/manifest.ttl data-r2/distinct/manifest.ttl data-r2/expr-builtin/manifest.ttl data-r2/expr-equals/manifest.ttl data-r2/expr-ops/manifest.ttl data-r2/graph/manifest.ttl data-r2/i18n/manifest.ttl data-r2/open-world/manifest.ttl data-r2/optional-filter/manifest.ttl data-r2/optional/manifest.ttl data-r2/reduced/manifest.ttl data-r2/regex/manifest.ttl data-r2/solution-seq/manifest.ttl data-r2/sort/manifest.ttl data-r2/triple-match/manifest.ttl data-r2/type-promotion/manifest.ttl Source Archives Not yet available -------------------------------------------------------------------------------- Contents Syntax Tests syntax-basic-01.rq Approved syntax-basic-02.rq Approved syntax-basic-03.rq Approved syntax-basic-04.rq Approved syntax-basic-05.rq Approved syntax-basic-06.rq Approved syntax-bnodes-01.rq Approved syntax-bnodes-02.rq Approved syntax-bnodes-03.rq Approved syntax-bnodes-04.rq Approved syntax-bnodes-05.rq Approved syntax-expr-01.rq Approved syntax-expr-02.rq Approved syntax-expr-03.rq Approved syntax-expr-04.rq Approved syntax-expr-05.rq Approved syntax-forms-01.rq Approved syntax-forms-02.rq Approved syntax-limit-offset-01.rq Approved syntax-limit-offset-02.rq Approved syntax-limit-offset-03.rq Approved syntax-limit-offset-04.rq Approved syntax-lists-01.rq Approved syntax-lists-02.rq Approved syntax-lists-03.rq Approved syntax-lists-04.rq Approved syntax-lists-05.rq Approved syntax-lit-01.rq Approved syntax-lit-02.rq Approved syntax-lit-03.rq Approved syntax-lit-04.rq Approved syntax-lit-05.rq Approved syntax-lit-06.rq Approved syntax-lit-07.rq Approved syntax-lit-08.rq Approved syntax-lit-09.rq Approved syntax-lit-10.rq Approved syntax-lit-11.rq Approved syntax-lit-12.rq Approved syntax-lit-13.rq Approved syntax-lit-14.rq Approved syntax-lit-15.rq Approved syntax-lit-16.rq Approved syntax-lit-17.rq Approved syntax-lit-18.rq Approved syntax-lit-19.rq Approved syntax-lit-20.rq Approved syntax-order-01.rq Approved syntax-order-02.rq Approved syntax-order-03.rq Approved syntax-order-04.rq Approved syntax-order-05.rq Approved syntax-order-06.rq Approved syntax-order-07.rq Approved syntax-pat-01.rq Approved syntax-pat-02.rq Approved syntax-pat-03.rq Approved syntax-pat-04.rq Approved syntax-qname-01.rq Approved syntax-qname-02.rq Approved syntax-qname-03.rq Approved syntax-qname-04.rq Approved syntax-qname-05.rq Approved syntax-qname-06.rq Approved syntax-qname-07.rq Approved syntax-qname-08.rq Approved syntax-struct-01.rq Approved syntax-struct-02.rq Approved syntax-struct-03.rq Approved syntax-struct-05.rq Approved syntax-struct-06.rq Approved syntax-struct-07.rq Approved syntax-struct-08.rq Approved syntax-struct-09.rq Approved syntax-struct-10.rq Approved syntax-struct-11.rq Approved syntax-struct-12.rq Approved syntax-struct-13.rq Approved syntax-struct-14.rq Approved syntax-union-01.rq Approved syntax-union-02.rq Approved syntax-bnode-01.rq Approved syntax-bnode-02.rq Approved syntax-bnode-03.rq Approved syntax-dataset-01.rq Approved syntax-dataset-02.rq Approved syntax-dataset-03.rq Approved syntax-dataset-04.rq Approved syntax-esc-01.rq Approved syntax-esc-02.rq Approved syntax-esc-03.rq Approved syntax-esc-04.rq Approved syntax-esc-05.rq Approved syntax-form-ask-02.rq Approved syntax-form-construct01.rq Approved syntax-form-construct02.rq Approved syntax-form-construct03.rq Approved syntax-form-construct04.rq Approved syntax-form-construct06.rq Approved syntax-form-describe01.rq Approved syntax-form-describe02.rq Approved syntax-form-select-01.rq Approved syntax-form-select-02.rq Approved syntax-function-01.rq Approved syntax-function-02.rq Approved syntax-function-03.rq Approved syntax-function-04.rq Approved syntax-general-01.rq Approved syntax-general-02.rq Approved syntax-general-03.rq Approved syntax-general-04.rq Approved syntax-general-05.rq Approved syntax-general-06.rq Approved syntax-general-07.rq Approved syntax-general-08.rq Approved syntax-general-09.rq Approved syntax-general-10.rq Approved syntax-general-11.rq Approved syntax-general-12.rq Approved syntax-general-13.rq Approved syntax-general-14.rq Approved syntax-graph-01.rq Approved syntax-graph-02.rq Approved syntax-graph-03.rq Approved syntax-graph-04.rq Approved syntax-graph-05.rq Approved syntax-keywords-01.rq Approved syntax-keywords-02.rq Approved syntax-keywords-03.rq Approved syntax-lists-01.rq Approved syntax-lists-02.rq Approved syntax-lists-03.rq Approved syntax-lists-04.rq Approved syntax-lists-05.rq Approved syn-blabel-cross-filter Approved syn-blabel-cross-graph-bad - negative syntax test, should fail to parse Approved syn-blabel-cross-optional-bad - negative syntax test, should fail to parse Approved syn-blabel-cross-union-bad - negative syntax test, should fail to parse Approved syn-bad-bnode-dot.rq - negative syntax test, should fail to parse Approved syn-bad-bnodes-missing-pvalues-01.rq - negative syntax test, should fail to parse Approved syn-bad-bnodes-missing-pvalues-02.rq - negative syntax test, should fail to parse Approved syn-bad-empty-optional-01.rq - negative syntax test, should fail to parse Approved syn-bad-empty-optional-02.rq - negative syntax test, should fail to parse Approved syn-bad-filter-missing-parens.rq - negative syntax test, should fail to parse Approved syn-bad-lone-list.rq - negative syntax test, should fail to parse Approved syn-bad-lone-node.rq - negative syntax test, should fail to parse Approved syn-01.rq Approved syn-02.rq Approved syn-03.rq Approved syn-04.rq Approved syn-05.rq Approved syn-06.rq Approved syn-07.rq Approved syn-08.rq Approved syn-bad-01.rq - negative syntax test, should fail to parse Approved syn-bad-02.rq - negative syntax test, should fail to parse Approved syn-bad-03.rq - negative syntax test, should fail to parse Approved syn-bad-04.rq - negative syntax test, should fail to parse Approved syn-bad-05.rq - negative syntax test, should fail to parse Approved syn-bad-06.rq - negative syntax test, should fail to parse Approved syn-bad-07.rq - negative syntax test, should fail to parse Approved syn-bad-08.rq - negative syntax test, should fail to parse Approved syn-bad-09.rq - negative syntax test, should fail to parse Approved syn-bad-10.rq - negative syntax test, should fail to parse Approved syn-bad-11.rq - negative syntax test, should fail to parse Approved syn-bad-12.rq - negative syntax test, should fail to parse Approved syn-bad-13.rq - negative syntax test, should fail to parse Approved syn-bad-14.rq - negative syntax test, should fail to parse Approved syn-bad-15.rq - negative syntax test, should fail to parse Approved syn-bad-16.rq - negative syntax test, should fail to parse Approved syn-bad-17.rq - negative syntax test, should fail to parse Approved syn-bad-18.rq - negative syntax test, should fail to parse Approved syn-bad-19.rq - negative syntax test, should fail to parse Approved syn-bad-20.rq - negative syntax test, should fail to parse Approved syn-bad-21.rq - negative syntax test, should fail to parse Approved syn-bad-22.rq - negative syntax test, should fail to parse Approved syn-bad-23.rq - negative syntax test, should fail to parse Approved syn-bad-24.rq - negative syntax test, should fail to parse Approved syn-bad-25.rq - negative syntax test, should fail to parse Approved syn-bad-26.rq - negative syntax test, should fail to parse Approved syn-bad-27.rq - negative syntax test, should fail to parse Approved syn-bad-28.rq - negative syntax test, should fail to parse Approved syn-bad-29.rq - negative syntax test, should fail to parse Approved syn-bad-30.rq - negative syntax test, should fail to parse Approved syn-bad-31.rq - negative syntax test, should fail to parse Approved syn-09.rq Approved syn-10.rq Approved syn-11.rq Approved syn-bad-34.rq - negative syntax test, should fail to parse Approved syn-bad-35.rq - negative syntax test, should fail to parse Approved syn-bad-36.rq - negative syntax test, should fail to parse Approved syn-bad-37.rq - negative syntax test, should fail to parse Approved syn-bad-38.rq - negative syntax test, should fail to parse Approved syn-bad-GRAPH-breaks-BGP - negative syntax test, should fail to parse Approved bad: re-used BNode label after GRAPH syn-bad-OPT-breaks-BGP - negative syntax test, should fail to parse Approved bad: re-used BNode label after OPTIONAL syn-bad-UNION-breaks-BGP - negative syntax test, should fail to parse Approved bad: re-used BNode label after UNION syn-leading-digits-in-prefixed-names.rq Approved syntax-reduced-01.rq Approved syntax-reduced-02.rq Approved Evaluation Tests Filter-nested - 1 Approved A FILTER is in scope for variables bound at the same level of the query tree Filter-nested - 2 Approved A FILTER in a group { ... } cannot see variables bound outside that group Filter-placement - 1 Approved FILTER placed after the triple pattern that contains the variable tested Filter-placement - 2 Approved FILTERs are scoped to the nearest enclosing group - placement within that group does not matter Filter-placement - 3 Approved FILTERs are scoped to the nearest enclosing group - placement within that group does not matter Filter-scope - 1 Approved FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation Join operator with OPTs, BGPs, and UNIONs Approved Tests nested combination of Join with a BGP / OPT and a BGP / UNION Join operator with Graph and Union Approved Tests combination of Join operator with Graph on LHS and Union on RHS Join scope - 1 Approved Variables have query scope. Nested Optionals - 1 Approved Nested-optionals with a shared variable that does not appear in the middle pattern (a not well-formed query pattern as per "Semantics and Complexity" of SPARQL Nested Optionals - 2 Approved OPTIONALs parse in a left-associative manner Optional-filter - 1 Approved A FILTER inside an OPTIONAL can reference a variable bound in the required part of the OPTIONAL Optional-filter - 2 filters Approved FILTERs inside an OPTIONAL can refer to variables from both the required and optional parts of the construct. Optional-filter - scope of variable Approved FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation ASK-1 (SPARQL XML results) Approved ASK-4 (SPARQL XML results) Approved ASK-7 (SPARQL XML results) Approved ASK-8 (SPARQL XML results) Approved Basic - Prefix/Base 1 Approved Basic - Prefix/Base 2 Approved Basic - Prefix/Base 3 Approved Basic - Prefix/Base 4 Approved Basic - Prefix/Base 5 Approved Non-matching triple pattern Approved Patterns not in data don't match Basic - List 1 Approved Basic - List 2 Approved Basic - List 3 Approved Basic - List 4 Approved Prefix name 1 Approved No local name - foo: Basic - Quotes 1 Approved Basic - Quotes 2 Approved Basic - Quotes 3 Approved Basic - Quotes 4 Approved Basic graph pattern - spoo Approved Test the :x :y :o1, :o2 construct Basic - Term 1 Approved Basic - Term 2 Approved Basic - Term 3 Approved Basic - Term 4 Approved Basic - Term 5 Approved Basic - Term 6 Approved Basic - Term 7 Approved Basic - Term 8 Approved Basic - Term 9 Approved Basic - Var 1 Approved Basic - Var 2 Approved dawg-bnode-coreference Approved Query results must maintain bnode co-references in the dataset Test 'boolean effective value' - true Approved Non-zero numerics, non-empty strings, and the true boolean have an EBV of true Test 'boolean effective value' - false Approved Zero-valued numerics, the empty string, and the false boolean have an EBV of false Test 'boolean effective value' - && Approved The && operator takes the EBV of its operands Test 'boolean effective value' - || Approved The || operator takes the EBV of its operands Test 'boolean effective value' - optional Approved The EBV of an unbound value or a literal with an unknown datatype is a type error, which eliminates the solution in question Test 'boolean effective value' - unknown types Approved Negating a type error is still a type error Test literal 'true' Approved dawg-bound-query-001 Approved BOUND test case. Cast to xsd:boolean Approved Cast to xsd:dateTime Approved Cast to xsd:double Approved Cast to xsd:decimal Approved Cast to xsd:float Approved Cast to xsd:integer Approved Cast to xsd:string Approved dawg-construct-identity Approved Graph equivalent result graph dawg-construct-subgraph Approved Result subgraph of original graph dawg-construct-reification-1 Approved Reification of the default graph dawg-construct-reification-2 Approved Reification of the default graph dawg-construct-optional Approved Reification of the default graph dataset-01 Approved Data: default dataset / Query: default dataset dataset-02 Approved Data: named dataset / Query: default dataset dataset-03 Approved Data: named dataset / Query: named dataset dataset dataset-04 Approved Data: named dataset / Query: default dataset dataset-05 Approved Data: default and named / Query: default dataset dataset-06 Approved Data: default and named / Query: named dataset dataset-07 Approved Data: default and named / Query: all data by UNION dataset-08 Approved Data: default and named / Query: common subjects dataset-09 Data: default and named (bnodes) / Query: common subjects dataset-09b Approved Data: default and named (bnodes) / Query: common subjects dataset-10 Data: default and named (same data, with bnodes) / Query: common subjects dataset-10b Approved Data: default and named (same data, with bnodes) / Query: common subjects dataset-11 Approved Data: default and named (several) / Query: get everything dataset-12 Data: default (several) and named (several) / Query: get everything dataset-12b Approved Data: default (several) and named (several) / Query: get everything Numbers: Distinct Approved Strings: Distinct Approved Nodes: Distinct Approved Opt: Distinct Approved All: Distinct Approved SELECT DISTINCT * Approved Numbers: No distinct Approved Strings: No distinct Approved Nodes: No distinct Approved Opt: No distinct Approved All: No distinct Approved datatype-1 Approved datatype-2 : Literals with a datatype Approved updated from original test case: eliminated ordering from test datatype-3 : Literals with a datatype of xsd:string Approved updated from original test case: eliminated ordering from test isBlank-1 Approved isIRI-1 Approved isLiteral Approved isURI-1 Approved lang-1 : Literals with a lang tag of some kind Approved updated from original test case: eliminated ordering from test lang-2 : Literals with a lang tag of '' Approved updated from original test case: eliminated ordering from test lang-3 : Graph matching with lang tag being a different case Approved updated from original test case: eliminated ordering from test LangMatches-1 Approved langMatches(lang(?v), 'en-GB') matches 'abc'@en-gb LangMatches-2 Approved langMatches(lang(?v), 'en') matches 'abc'@en, 'abc'@en-gb LangMatches-3 Approved langMatches(lang(?v), '*') matches 'abc'@en, 'abc'@en-gb, 'abc'@fr LangMatches-4 Approved ! langMatches(lang(?v), '*') matches 'abc' LangMatches-basic Approved the basic range 'de-de' does not match 'de-Latn-de' str-1 Approved str-2 Approved str-3 Approved str-4 Approved lang-case-insensitive-eq Approved 'xyz'@en = 'xyz'@EN lang-case-insensitive-ne Approved 'xyz'@en != 'xyz'@EN sameTerm-eq Approved sameTerm(?v1, ?v2) && ?v1 = ?v2 sameTerm-not-eq Approved !sameTerm(?v1, ?v2) && ?v1 = ?v2 sameTerm-simple Approved sameTerm(?v1, ?v2) Equality 1-1 Approved = in FILTER expressions is value equality Equality 1-2 Approved = in FILTER expressions is value equality Equality - 2 var - test equals Approved = in FILTER is value equality Equality - 2 var - test not equals Approved != in FILTER is value inequality Equality 1-3 Approved Numerics are not value-equivalent to plain literals Equality 1-4 Approved = compares plain literals and unknown types with the same lexical form as false Equality 1-5 Approved = on IRI terms Equality 1-1 -- graph Approved Graph pattern matching matches exact terms, not values Equality 1-2 -- graph Approved Graph pattern matching matches exact terms, not values Equality 1-3 -- graph Approved Graph pattern matching matches exact terms, not values Equality 1-4 -- graph Approved Graph pattern matching matches exact terms, not values Equality 1-5 -- graph Approved Graph pattern matching matches exact terms, not values Greater-than or equals Approved >= in FILTER expressions Less-than or equals Approved <= in FILTER expressions Subtraction Approved A - B in FILTER expressions Multiplication Approved A * B in FILTER expressions Addition Approved A + B in FILTER expressions Unary Minus Approved -A in FILTER expressions Unary Plusn Approved +A in FILTER expressions graph-01 Approved Data: default graph / Query: default graph graph-02 Approved Data: named graph / Query: default graph graph-03 Approved Data: named graph / Query: named graph graph graph-04 Approved Data: named graph / Query: default graph graph-05 Approved Data: default and named / Query: default graph graph-06 Approved Data: default and named / Query: named graph graph-07 Approved Data: default and named / Query: all data by UNION graph-08 Approved Data: default and named / Query: common subjects graph-09 Approved Data: default and named (bnodes) / Query: common subjects graph-10 Data: default and named (same data, with bnodes) / Query: common subjects graph-10b Approved Data: default and named (same data, with bnodes) / Query: common subjects graph-11 Approved Data: default and named (several) / Query: get everything kanji-01 Approved kanji-02 Approved normalization-01 Approved normalization-02 Approved Example 1 from http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 normalization-03 Approved Example 2 from http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 date-1 Added type : xsd:date '=' date-2 Approved Added type : xsd:date '!=' date-3 Approved Added type : xsd:date '>' date-4 Approved xsd:date ORDER BY open-cmp-01 Approved Find things that compare with < or > open-cmp-02 Approved Find things that compare with <= and > open-eq-01 Approved graph match - no lexical form in data (assumes no value matching) open-eq-02 Approved graph match - unknown type open-eq-03 Approved Filter(?v=1) open-eq-04 Approved Filter(?v!=1) open-eq-05 Approved FILTER(?v = unknown type) open-eq-06 Approved FILTER(?v != unknown type) open-eq-07 Approved Test of '=' open-eq-08 Approved Test of '!=' open-eq-09 Approved Test of '=' open-eq-10 Approved Test of '!=' open-eq-11 Approved test of '=' || '!=' open-eq-12 Approved find pairs that don't value-compare OPTIONAL-FILTER Approved FILTER inside an OPTIONAL does not block an entire solution OPTIONAL - Outer FILTER Approved FILTER outside an OPTIONAL tests bound and unbound variables OPTIONAL - Outer FILTER with BOUND Approved Use !bound to only run outer FILTERs against variables bound in an OPTIONAL OPTIONAL - Inner FILTER with negative EBV for outer variables Approved FILTER inside an OPTIONAL does not corrupt the entire solution dawg-optional-filter-005-not-simplified Double curly braces do NOT get simplified to single curly braces early on, before filters are scoped dawg-optional-filter-005-simplified Double curly braces get simplified to single curly braces early on, before filters are scoped One optional clause Approved One optional clause Two optional clauses Approved One optional clause Complex optional semantics: 1 Approved Complex optional: LeftJoin(LeftJoin(BGP(..),{..}),Join(BGP(..),Union(..,..))) Complex optional semantics: 2 Approved Complex optional: LeftJoin(Join(BGP(..),Graph(var,{..})),Union(..,..)) Complex optional semantics: 3 Approved Complex optional: LeftJoin(Join(BGP(..),Graph(var,{..})),LeftJoin(BGP(..),{..})) Complex optional semantics: 4 Approved Complex optional: LeftJoin(Join(BGP(..),Union(..,..)),Join(BGP(..),Graph(varOrIRI,{..}))) Union is not optional Approved Union is not optional SELECT REDUCED * Approved SELECT REDUCED ?x with strings Approved regex-query-001 Approved Simple unanchored match test regex-query-002 Approved Case insensitive unanchored match test regex-query-003 Approved Use/mention test regex-query-004 Approved str()+URI test Limit 1 Approved Limit 2 Approved Limit 3 Approved Limit 4 Approved Offset 1 Approved Offset 2 Approved Offset 3 Approved Offset 4 Approved Slice 1 Approved Slice 2 Approved Slice 3 Approved Slice 4 Approved Slice 5 Approved sort-1 Approved Alphabetic sort (ascending) on untyped literals sort-10 Approved Alphabetic sort (descending) on datatyped (string) literals sort-2 Approved Alphabetic sort (descending) on untyped literals sort-3 Approved Sort on (possibly unbound) URIs sort-4 Approved Sort on datatyped (integer) literals sort-5 Approved Sort first on untyped literals (ascending), then on datatyped (integer) literals (descending sort-6 Approved Sort on mixed result of uris and literals. sort-7 Approved Sort on comparable mixed typed literals (integer and float) sort-8 Approved Sort on several mixed values (bnode, uri, literal) sort-9 Approved Alphabetic sort (ascending) on datatyped (string) literals Builtin sort Approved Sort by a builtin operator Function sort Approved Sort by function invocation Expression sort Approved Sort by a bracketted expression dawg-triple-pattern-001 Approved Simple triple match dawg-triple-pattern-002 Approved Simple triple match dawg-triple-pattern-003 Approved Simple triple match - repeated variable dawg-triple-pattern-004 Approved Simple triple match - two triples, common variable tP-double-double Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-double-float Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-double-decimal Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-float-float Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-float-decimal Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-decimal-decimal Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-integer-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-nonPositiveInteger-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-negativeInteger-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-long-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-int-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-short-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-byte-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-nonNegativeInteger-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-unsignedLong-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-unsignedInt-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-unsignedShort-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-unsignedByte-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-positiveInteger-short Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-short-double Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-short-float Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-short-decimal Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-short-short-fail Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-byte-short-fail Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-short-long-fail Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-short-int-fail Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-short-byte-fail Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-double-float-fail Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-double-decimal-fail Approved Positive test: product of type promotion within the xsd:decimal type tree. tP-float-decimal-fail Approved Positive test: product of type promotion within the xsd:decimal type tree. */ /* -------------------------------------------------------------------------------- syntax-basic-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-basic-01.rq */ /* Testcase 1 */ query: << SELECT * WHERE { } >> OK /* -------------------------------------------------------------------------------- syntax-basic-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-basic-02.rq */ /* Testcase 2 */ query: << SELECT * {} >> OK /* -------------------------------------------------------------------------------- syntax-basic-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-basic-03.rq */ /* Testcase 3 */ query: << # No trailing dot PREFIX : SELECT * WHERE { ?x ?y ?z } >> OK /* -------------------------------------------------------- syntax-basic-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-basic-04.rq */ /* Testcase 4 */ query: << # With trailing dot SELECT * WHERE { ?x ?y ?z . } >> OK /* -------------------------------------------------------- syntax-basic-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-basic-05.rq */ /* Testcase 5 */ query: << # Two triples : no trailing dot SELECT * WHERE { ?x ?y ?z . ?a ?b ?c } >> OK /* -------------------------------------------------------- syntax-basic-06.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-basic-06.rq */ /* Testcase 6 */ query: << # Two triples : with trailing dot SELECT * WHERE { ?x ?y ?z . ?a ?b ?c . } >> OK /* -------------------------------------------------------- syntax-bnodes-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-bnodes-01.rq */ /* Testcase 7 */ query: << PREFIX : SELECT * WHERE { [:p :q ] } >> OK /* -------------------------------------------------------- syntax-bnodes-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-bnodes-02.rq */ /* Testcase 8 */ query: << PREFIX : SELECT * WHERE { [] :p :q } >> OK /* -------------------------------------------------------- syntax-bnodes-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-bnodes-03.rq */ /* Testcase 9 */ query: << PREFIX : SELECT * WHERE { [ ?x ?y ] :p [ ?pa ?b ] } >> OK /* -------------------------------------------------------- syntax-bnodes-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-bnodes-04.rq */ /* Testcase 10 */ query: << PREFIX : SELECT * WHERE { [ :p :q ; ] } >> OK /* -------------------------------------------------------- syntax-bnodes-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-bnodes-05.rq */ /* Testcase 11 */ query: << PREFIX : SELECT * WHERE { _:a :p1 :q1 . _:a :p2 :q2 . } >> OK /* -------------------------------------------------------- syntax-expr-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-expr-01.rq */ /* Testcase 12 */ query: << SELECT * WHERE { ?s ?p ?o . FILTER (?o) } >> OK /* -------------------------------------------------------- syntax-expr-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-expr-02.rq */ /* Testcase 13 */ query: << SELECT * WHERE { ?s ?p ?o . FILTER REGEX(?o, "foo") } >> OK /* -------------------------------------------------------- syntax-expr-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-expr-03.rq */ /* Testcase 14 */ query: << SELECT * WHERE { ?s ?p ?o . FILTER REGEX(?o, "foo", "i") } >> OK /* -------------------------------------------------------- syntax-expr-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-expr-04.rq */ /* Testcase 15 */ query: << PREFIX xsd: SELECT * WHERE { ?s ?p ?o . FILTER xsd:integer(?o) } >> OK /* -------------------------------------------------------- syntax-expr-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-expr-05.rq */ /* Testcase 16 */ query: << PREFIX : PREFIX xsd: SELECT * WHERE { ?s ?p ?o . FILTER :myFunc(?s,?o) } >> OK /* -------------------------------------------------------- syntax-forms-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-forms-01.rq */ /* Testcase 17 */ query: << PREFIX : SELECT * WHERE { ( [ ?x ?y ] ) :p ( [ ?pa ?b ] 57 ) } >> OK /* -------------------------------------------------------- syntax-forms-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-forms-02.rq */ /* Testcase 18 */ query: << PREFIX : SELECT * WHERE { ( [] [] ) } >> OK /* -------------------------------------------------------- syntax-limit-offset-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-limit-offset-01.rq */ /* Testcase 19 */ query: << PREFIX : SELECT * { ?s ?p ?o } ORDER BY ?o LIMIT 5 >> OK /* -------------------------------------------------------- syntax-limit-offset-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-limit-offset-02.rq */ /* Testcase 20 */ query: << # LIMIT and OFFSET can be in either order PREFIX : SELECT * { ?s ?p ?o } ORDER BY ?o LIMIT 5 OFFSET 3 >> OK /* -------------------------------------------------------- syntax-limit-offset-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-limit-offset-03.rq */ /* Testcase 21 */ query: << # LIMIT and OFFSET can be in either order PREFIX : SELECT * { ?s ?p ?o } ORDER BY ?o OFFSET 3 LIMIT 5 >> OK /* -------------------------------------------------------- syntax-limit-offset-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-limit-offset-04.rq */ /* Testcase 22 */ query: << PREFIX : SELECT * { ?s ?p ?o } ORDER BY ?o OFFSET 3 >> OK /* -------------------------------------------------------- syntax-lists-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lists-01.rq */ /* Testcase 23 */ query: << PREFIX : SELECT * WHERE { ( ?x ) :p ?z } >> OK /* -------------------------------------------------------- syntax-lists-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lists-02.rq */ /* Testcase 24 */ query: << PREFIX : SELECT * WHERE { ?x :p ( ?z ) } >> OK /* -------------------------------------------------------- syntax-lists-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lists-03.rq */ /* Testcase 25 */ query: << SELECT * WHERE { ( ?z ) } >> OK /* -------------------------------------------------------- syntax-lists-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lists-04.rq */ /* Testcase 26 */ query: << SELECT * WHERE { ( ( ?z ) ) } >> OK /* -------------------------------------------------------- syntax-lists-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lists-05.rq */ /* Testcase 27 */ query: << SELECT * WHERE { ( ( ) ) } >> OK /* -------------------------------------------------------- syntax-lit-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-01.rq */ /* Testcase 28 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p "x" } >> OK /* -------------------------------------------------------- syntax-lit-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-02.rq */ /* Testcase 29 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p 'x' } >> OK /* -------------------------------------------------------- syntax-lit-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-03.rq */ /* Testcase 30 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p "x\"y'z" } >> OK /* -------------------------------------------------------- syntax-lit-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-04.rq */ /* Testcase 31 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p 'x"y\'z' } >> OK /* -------------------------------------------------------- syntax-lit-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-05.rq */ /* Testcase 32 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p "x\"" } >> OK /* -------------------------------------------------------- syntax-lit-06.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-06.rq */ /* Testcase 33 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p 'x\'' } >> OK /* -------------------------------------------------------- syntax-lit-07.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-07.rq */ /* Testcase 34 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p 123 } >> OK /* -------------------------------------------------------- syntax-lit-08.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-08.rq */ /* Testcase 35 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p 123. . } >> OK /* -------------------------------------------------------- syntax-lit-09.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-09.rq */ /* Testcase 36 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p """Long "" Literal """ } >> OK /* -------------------------------------------------------- syntax-lit-10.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-10.rq */ /* Testcase 37 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p '''Long '' """ Literal''' } >> OK /* -------------------------------------------------------- syntax-lit-11.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-11.rq */ /* Testcase 38 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p """Long""\"Literal""" } >> OK /* -------------------------------------------------------- syntax-lit-12.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-12.rq */ /* Testcase 39 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p '''Long''\'Literal''' } >> OK /* -------------------------------------------------------- syntax-lit-13.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-13.rq */ /* Testcase 40 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p """Long\"""Literal""" } >> OK /* -------------------------------------------------------- syntax-lit-14.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-14.rq */ /* Testcase 41 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p '''Long\'''Literal''' } >> OK /* -------------------------------------------------------- syntax-lit-15.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-15.rq */ /* Testcase 42 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p '''Long '' Literal''' } >> OK /* -------------------------------------------------------- syntax-lit-16.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-16.rq */ /* Testcase 43 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p '''Long ' Literal''' } >> OK /* -------------------------------------------------------- syntax-lit-17.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-17.rq */ /* Testcase 44 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p '''Long''\\Literal with '\\ single quotes ''' } >> OK /* -------------------------------------------------------- syntax-lit-18.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-18.rq */ /* Testcase 45 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p """Long "" Literal""" } >> OK /* -------------------------------------------------------- syntax-lit-19.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-19.rq */ /* Testcase 46 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p """Long " Literal""" } >> OK /* -------------------------------------------------------- syntax-lit-20.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-lit-20.rq */ /* Testcase 47 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x :p """Long""\\Literal with "\\ single quotes""" } >> OK /* -------------------------------------------------------- syntax-order-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-order-01.rq */ /* Testcase 48 */ query: << PREFIX : SELECT * { ?s ?p ?o } ORDER BY ?o >> OK /* -------------------------------------------------------- syntax-order-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-order-02.rq */ /* Testcase 49 */ query: << PREFIX : SELECT * { ?s ?p ?o } ORDER BY (?o+5) >> OK /* -------------------------------------------------------- syntax-order-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-order-03.rq */ /* Testcase 50 */ query: << PREFIX : SELECT * { ?s ?p ?o } ORDER BY ASC(?o) >> OK /* -------------------------------------------------------- syntax-order-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-order-04.rq */ /* Testcase 51 */ query: << PREFIX : SELECT * { ?s ?p ?o } ORDER BY DESC(?o) >> OK /* -------------------------------------------------------- syntax-order-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-order-05.rq */ /* Testcase 52 */ query: << PREFIX : SELECT * { ?s ?p ?o } ORDER BY DESC(:func(?s, ?o)) >> OK /* -------------------------------------------------------- syntax-order-06.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-order-06.rq */ /* Testcase 53 */ query: << PREFIX : SELECT * { ?s ?p ?o } ORDER BY DESC(?o+57) :func2(?o) ASC(?s) >> OK /* -------------------------------------------------------- syntax-order-07.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-order-07.rq */ /* Testcase 54 */ query: << PREFIX : SELECT * { ?s ?p ?o } ORDER BY str(?o) >> OK /* -------------------------------------------------------- syntax-pat-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Query data-r2/syntax-sparql1/syntax-pat-01.rq */ /* Testcase 55 */ query: << PREFIX : SELECT * { } >> OK /* -------------------------------------------------------- syntax-pat-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Query data-r2/syntax-sparql1/syntax-pat-02.rq */ /* Testcase 56 */ query: << # No DOT after optional PREFIX : SELECT * { ?a :b :c OPTIONAL{:x :y :z} :x ?y ?z } >> OK /* -------------------------------------------------------- syntax-pat-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Query data-r2/syntax-sparql1/syntax-pat-03.rq */ /* Testcase 57 */ query: << # No DOT between non-triples patterns PREFIX : SELECT * { ?a :b :c OPTIONAL{:x :y :z} { :x1 :y1 :z1 } UNION { :x2 :y2 :z2 } } >> OK /* -------------------------------------------------------- syntax-pat-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Query data-r2/syntax-sparql1/syntax-pat-04.rq */ /* Testcase 58 */ query: << # No DOT between non-triples patterns PREFIX : SELECT * { OPTIONAL{:x :y :z} ?a :b :c { :x1 :y1 :z1 } UNION { :x2 :y2 :z2 } } >> OK /* -------------------------------------------------------- syntax-qname-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-qname-01.rq */ /* Testcase 59 */ query: << PREFIX : SELECT * { ?x :p ?z } >> OK /* -------------------------------------------------------- syntax-qname-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-qname-02.rq */ /* Testcase 60 */ query: << PREFIX : SELECT * WHERE { :x :p :z . } >> OK /* -------------------------------------------------------- syntax-qname-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-qname-03.rq */ /* Testcase 61 */ query: << PREFIX : SELECT * WHERE { :_1 :p.rdf :z.z . } >> OK /* -------------------------------------------------------- syntax-qname-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-qname-04.rq */ /* Testcase 62 */ query: << PREFIX : PREFIX a: SELECT * WHERE { : a: :a . : : : . } >> OK /* -------------------------------------------------------- syntax-qname-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-qname-05.rq */ /* Testcase 63 */ query: << PREFIX : <> SELECT * WHERE { : : : . } >> OK /* -------------------------------------------------------- syntax-qname-06.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-qname-06.rq */ /* Testcase 64 */ query: << PREFIX : <#> SELECT * WHERE { : : : . } >> OK /* -------------------------------------------------------- syntax-qname-07.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-qname-07.rq */ /* Testcase 65 */ query: << BASE PREFIX : <#> SELECT * WHERE { : : : . } >> OK /* -------------------------------------------------------- syntax-qname-08.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-qname-08.rq */ /* Testcase 66 */ query: << BASE PREFIX : <#> PREFIX x.y: SELECT * WHERE { :a.b x.y: : . } >> OK /* -------------------------------------------------------- syntax-struct-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-01.rq */ /* Testcase 67 */ query: << # Operator PREFIX : SELECT * { OPTIONAL { } } >> OK /* -------------------------------------------------------- syntax-struct-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-02.rq */ /* Testcase 68 */ query: << # Operator PREFIX : SELECT * { OPTIONAL { :a :b :c } } >> OK /* -------------------------------------------------------- syntax-struct-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-03.rq */ /* Testcase 69 */ query: << # Triple, no DOT, operator PREFIX : SELECT * { :p :q :r OPTIONAL { :a :b :c } } >> OK /* -------------------------------------------------------- syntax-struct-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-05.rq */ /* Testcase 70 */ query: << # Triple, DOT, operator PREFIX : SELECT * { :p :q :r . OPTIONAL { :a :b :c } } >> OK /* -------------------------------------------------------- syntax-struct-06.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-06.rq */ /* Testcase 71 */ query: << # Triple, DOT, operator, DOT PREFIX : SELECT * { :p :q :r . OPTIONAL { :a :b :c } . } >> OK /* -------------------------------------------------------- syntax-struct-07.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-07.rq */ /* Testcase 72 */ query: << # Operator, no DOT PREFIX : SELECT * { OPTIONAL { :a :b :c } } >> OK /* -------------------------------------------------------- syntax-struct-08.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-08.rq */ /* Testcase 73 */ query: << # Operator, DOT PREFIX : SELECT * { OPTIONAL { :a :b :c } . } >> OK /* -------------------------------------------------------- syntax-struct-09.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-09.rq */ /* Testcase 74 */ query: << # Operator, triple PREFIX : SELECT * { OPTIONAL { :a :b :c } ?x ?y ?z } >> OK /* -------------------------------------------------------- syntax-struct-10.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-10.rq */ /* Testcase 75 */ query: << # Operator, DOT triple PREFIX : SELECT * { OPTIONAL { :a :b :c } . ?x ?y ?z } >> OK /* -------------------------------------------------------- syntax-struct-11.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-11.rq */ /* Testcase 76 */ query: << # Triple, semi, operator PREFIX : SELECT * { :p :q :r ; OPTIONAL { :a :b :c } } >> OK /* -------------------------------------------------------- syntax-struct-12.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-12.rq */ /* Testcase 77 */ query: << # Triple, semi, DOT, operator PREFIX : SELECT * { :p :q :r ; . OPTIONAL { :a :b :c } } >> OK /* -------------------------------------------------------- syntax-struct-13.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-13.rq */ /* Testcase 78 */ query: << # Two elements in the group PREFIX : SELECT * { :p :q :r . OPTIONAL { :a :b :c } :p :q :r . OPTIONAL { :a :b :c } } >> OK /* -------------------------------------------------------- syntax-struct-14.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-struct-14.rq */ /* Testcase 79 */ query: << # Two elements in the group PREFIX : SELECT * { :p :q :r OPTIONAL { :a :b :c } :p :q :r OPTIONAL { :a :b :c } } >> OK /* -------------------------------------------------------- syntax-union-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-union-01.rq */ /* Testcase 80 */ query: << PREFIX : SELECT * { { ?s ?p ?o } UNION { ?a ?b ?c } } >> OK /* -------------------------------------------------------- syntax-union-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql1/syntax-union-02.rq */ /* Testcase 81 */ query: << PREFIX : SELECT * { { ?s ?p ?o } UNION { ?a ?b ?c } UNION { ?r ?s ?t } } >> OK /* -------------------------------------------------------- syntax-bnode-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-bnode-01.rq */ /* Testcase 82 */ query: << PREFIX : SELECT * WHERE { [] :p [] } >> OK /* -------------------------------------------------------- syntax-bnode-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-bnode-02.rq */ /* Testcase 83 */ query: << PREFIX : # Tab SELECT * WHERE { [ ] :p [ ] } >> OK /* -------------------------------------------------------- syntax-bnode-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-bnode-03.rq */ /* Testcase 84 */ query: << PREFIX : SELECT * WHERE { [ :p :q ] } >> OK /* -------------------------------------------------------- syntax-dataset-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-dataset-01.rq */ /* Testcase 85 */ query: << PREFIX : SELECT ?x FROM WHERE {} >> OK /* -------------------------------------------------------- syntax-dataset-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-dataset-02.rq */ /* Testcase 86 */ query: << PREFIX : SELECT ?x FROM NAMED WHERE {} >> OK /* -------------------------------------------------------- syntax-dataset-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-dataset-03.rq */ /* Testcase 87 */ query: << PREFIX : SELECT ?x FROM NAMED :graph1 FROM NAMED :graph2 WHERE {} >> OK /* -------------------------------------------------------- syntax-dataset-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-dataset-04.rq */ /* Testcase 88 */ query: << PREFIX : SELECT ?x FROM :g1 FROM :g2 FROM NAMED :graph1 FROM NAMED :graph2 WHERE {} >> OK /* -------------------------------------------------------- syntax-esc-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-esc-01.rq */ /* Testcase 89 */ query: << SELECT * WHERE {

"\t" } >> OK /* -------------------------------------------------------- syntax-esc-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-esc-02.rq */ /* Testcase 90 */ query: << SELECT * WHERE {

"x\t" } >> OK /* -------------------------------------------------------- syntax-esc-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-esc-03.rq */ /* Testcase 91 */ query: << SELECT * WHERE {

"\tx" } >> OK /* -------------------------------------------------------- syntax-esc-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-esc-04.rq */ /* Testcase 92 */ query: << PREFIX : SELECT * WHERE { <\u0078> :\u0070 ?xx\u0078 } >> OK /* -------------------------------------------------------- syntax-esc-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-esc-05.rq */ /* Testcase 93 */ query: << PREFIX : SELECT * # Comments can contain \ u # <\u0078> :\u0070 ?xx\u0078 WHERE { <\u0078> :\u0070 ?xx\u0078 } >> OK /* -------------------------------------------------------- syntax-form-ask-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-ask-02.rq */ /* Testcase 94 */ query: << ASK {} >> OK /* -------------------------------------------------------- syntax-form-construct01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-construct01.rq */ /* Testcase 95 */ query: << CONSTRUCT { ?s . ?s ?o } WHERE {?s ?p ?o} >> OK /* -------------------------------------------------------- syntax-form-construct02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-construct02.rq */ /* Testcase 96 */ query: << CONSTRUCT { ?s . ?s ?o .} WHERE {?s ?p ?o} >> OK /* -------------------------------------------------------- syntax-form-construct03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-construct03.rq */ /* Testcase 97 */ query: << PREFIX rdf: CONSTRUCT { [] rdf:subject ?s ; rdf:predicate ?p ; rdf:object ?o } WHERE {?s ?p ?o} >> OK /* -------------------------------------------------------- syntax-form-construct04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-construct04.rq */ /* Testcase 98 */ query: << PREFIX rdf: CONSTRUCT { [] rdf:subject ?s ; rdf:predicate ?p ; rdf:object ?o . } WHERE {?s ?p ?o} >> OK /* -------------------------------------------------------- syntax-form-construct06.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-construct06.rq */ /* Testcase 99 */ query: << CONSTRUCT {} WHERE {} >> OK /* -------------------------------------------------------- syntax-form-describe01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-describe01.rq */ /* Testcase 100 */ query: << DESCRIBE >> OK /* -------------------------------------------------------- syntax-form-describe02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-describe02.rq */ /* Testcase 101 */ query: << DESCRIBE ?u WHERE { ?u . } >> OK /* -------------------------------------------------------- syntax-form-select-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-select-01.rq */ /* Testcase 102 */ query: << SELECT * WHERE { } >> OK /* -------------------------------------------------------- syntax-form-select-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-form-select-02.rq */ /* Testcase 103 */ query: << SELECT * { } >> OK /* -------------------------------------------------------- syntax-function-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-function-01.rq */ /* Testcase 104 */ query: << PREFIX q: SELECT * WHERE { FILTER (q:name()) } >> OK /* -------------------------------------------------------- syntax-function-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-function-02.rq */ /* Testcase 105 */ query: << PREFIX q: SELECT * WHERE { FILTER (q:name( )) } >> OK /* -------------------------------------------------------- syntax-function-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-function-03.rq */ /* Testcase 106 */ query: << PREFIX q: SELECT * WHERE { FILTER (q:name( )) } >> OK /* -------------------------------------------------------- syntax-function-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-function-04.rq */ /* Testcase 107 */ query: << PREFIX q: SELECT * WHERE { FILTER (q:name(1 )) . FILTER (q:name(1,2)) . FILTER (q:name(1 ,2))} >> OK /* -------------------------------------------------------- syntax-general-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-01.rq */ /* Testcase 108 */ query: << SELECT * WHERE { } >> OK /* -------------------------------------------------------- syntax-general-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-02.rq */ /* Testcase 109 */ query: << SELECT * WHERE { _:x } >> OK /* -------------------------------------------------------- syntax-general-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-03.rq */ /* Testcase 110 */ query: << SELECT * WHERE { 1 } >> OK /* -------------------------------------------------------- syntax-general-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-04.rq */ /* Testcase 111 */ query: << SELECT * WHERE { +11 } >> OK /* -------------------------------------------------------- syntax-general-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-05.rq */ /* Testcase 112 */ query: << SELECT * WHERE { -1 } >> OK /* -------------------------------------------------------- syntax-general-06.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-06.rq */ /* Testcase 113 */ query: << SELECT * WHERE { 1.0 } >> OK /* -------------------------------------------------------- syntax-general-07.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-07.rq */ /* Testcase 114 */ query: << SELECT * WHERE { +1.0 } >> OK /* -------------------------------------------------------- syntax-general-08.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-08.rq */ /* Testcase 115 */ query: << SELECT * WHERE { -1.0 } >> OK /* -------------------------------------------------------- syntax-general-09.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-09.rq */ /* Testcase 116 */ query: << SELECT * WHERE { 1.0e0 } >> OK /* -------------------------------------------------------- syntax-general-10.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-10.rq */ /* Testcase 117 */ query: << SELECT * WHERE { +1.0e+1 } >> OK /* -------------------------------------------------------- syntax-general-11.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-11.rq */ /* Testcase 118 */ query: << SELECT * WHERE { -1.0e-1 } >> OK /* -------------------------------------------------------- syntax-general-12.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-12.rq */ /* Testcase 119 */ query: << # Legal, if unusual, IRIs SELECT * WHERE { } >> OK /* -------------------------------------------------------- syntax-general-13.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-13.rq */ /* Testcase 120 */ query: << # Legal, if unusual, IRIs BASE SELECT * WHERE { <#x> } >> OK /* -------------------------------------------------------- syntax-general-14.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-general-14.rq */ /* Testcase 121 */ query: << # Legal, if unusual, IRIs BASE SELECT * WHERE { <¶m=value> } >> OK /* -------------------------------------------------------- syntax-graph-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-graph-01.rq */ /* Testcase 122 */ query: << PREFIX : SELECT * WHERE { GRAPH ?g { } } >> OK /* -------------------------------------------------------- syntax-graph-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-graph-02.rq */ /* Testcase 123 */ query: << PREFIX : SELECT * WHERE { GRAPH :a { } } >> OK /* -------------------------------------------------------- syntax-graph-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-graph-03.rq */ /* Testcase 124 */ query: << PREFIX : SELECT * WHERE { GRAPH ?g { :x :b ?a } } >> OK /* -------------------------------------------------------- syntax-graph-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-graph-04.rq */ /* Testcase 125 */ query: << PREFIX : SELECT * WHERE { :x :p :z GRAPH ?g { :x :b ?a } } >> OK /* -------------------------------------------------------- syntax-graph-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-graph-05.rq */ /* Testcase 126 */ query: << PREFIX : SELECT * WHERE { :x :p :z GRAPH ?g { :x :b ?a . GRAPH ?g2 { :x :p ?x } } } >> OK /* -------------------------------------------------------- syntax-keywords-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-keywords-01.rq */ /* Testcase 127 */ query: << # use keyword FILTER as a namespace prefix PREFIX FILTER: SELECT * WHERE { ?x FILTER:foo ?z FILTER (?z) } >> OK /* -------------------------------------------------------- syntax-keywords-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-keywords-02.rq */ /* Testcase 128 */ query: << # use keyword FILTER as a local name PREFIX : SELECT * WHERE { ?x :FILTER ?z FILTER (?z) } >> OK /* -------------------------------------------------------- syntax-keywords-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-keywords-03.rq */ /* Testcase 129 */ query: << # use keyword UNION as a namespace prefix PREFIX UNION: SELECT * WHERE { ?x UNION:foo ?z } >> OK /* -------------------------------------------------------- syntax-lists-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-lists-01.rq */ /* Testcase 130 */ query: << PREFIX : SELECT * WHERE { () :p 1 } >> OK /* -------------------------------------------------------- syntax-lists-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-lists-02.rq */ /* Testcase 131 */ query: << PREFIX : SELECT * WHERE { ( ) :p 1 } >> OK /* -------------------------------------------------------- syntax-lists-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-lists-03.rq */ /* Testcase 132 */ query: << PREFIX : SELECT * WHERE { ( ) :p 1 } >> OK /* -------------------------------------------------------- syntax-lists-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-lists-04.rq */ /* Testcase 133 */ query: << PREFIX : SELECT * WHERE { ( 1 2 ) :p 1 } >> OK /* -------------------------------------------------------- syntax-lists-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql2/syntax-lists-05.rq */ /* Testcase 134 */ query: << PREFIX : SELECT * WHERE { ( 1 2 ) } >> OK /* -------------------------------------------------------- syn-blabel-cross-filter Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0012/2007-04-10-dawg-minutes.html#item06 Query data-r2/syntax-sparql3/syn-blabel-cross-filter.rq */ /* Testcase 135 */ query: << # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ # BNode label used across a FILTER. PREFIX : ASK { _:who :homepage ?homepage FILTER REGEX(?homepage, "^http://example.org/") _:who :schoolHomepage ?schoolPage } >> OK /* -------------------------------------------------------- syn-blabel-cross-graph-bad Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0012/2007-04-10-dawg-minutes.html#item06 Query data-r2/syntax-sparql3/syn-blabel-cross-graph-bad.rq */ /* Testcase 136 */ query: << # $Id: syn-blabel-cross-graph-bad.rq,v 1.2 2007/04/18 23:11:57 eric Exp $ # BNode label used across a GRAPH. PREFIX : ASK { _:who :homepage ?homepage GRAPH ?g { ?someone :made ?homepage } _:who :schoolHomepage ?schoolPage } >> FAIL /* -------------------------------------------------------- syn-blabel-cross-optional-bad Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Query data-r2/syntax-sparql3/syn-blabel-cross-optional-bad.rq */ /* Testcase 137 */ query: << # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ # BNode label used across an OPTIONAL. # This isn't necessarily a *syntax* test, but references to bnode labels # may not span basic graph patterns. PREFIX foaf: ASK { _:who foaf:homepage ?homepage OPTIONAL { ?someone foaf:made ?homepage } _:who foaf:schoolHomepage ?schoolPage } >> FAIL /* -------------------------------------------------------- syn-blabel-cross-union-bad Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Query data-r2/syntax-sparql3/syn-blabel-cross-union-bad.rq */ /* Testcase 138 */ query: << # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ # BNode label used across a UNION. # This isn't necessarily a *syntax* test, but references to bnode labels # may not span basic graph patterns. PREFIX foaf: ASK { _:who foaf:homepage ?homepage { ?someone foaf:made ?homepage } UNION { ?homepage foaf:maker ?someone } _:who foaf:schoolHomepage ?schoolPage } >> FAIL /* -------------------------------------------------------- syn-bad-bnode-dot.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-bnode-dot.rq */ /* Testcase 139 */ query: << # NegativeSyntax/bnode-dot.rq SELECT * WHERE {[] . } >> FAIL /* -------------------------------------------------------- syn-bad-bnodes-missing-pvalues-01.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-bnodes-missing-pvalues-01.rq */ /* Testcase 140 */ query: << # NegativeSyntax/bnodes-missing-pvalues.rq PREFIX : SELECT * WHERE { [,] :p [;] . } >> FAIL /* -------------------------------------------------------- syn-bad-bnodes-missing-pvalues-02.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-bnodes-missing-pvalues-02.rq */ /* Testcase 141 */ query: << # NegativeSyntax/bnodes-missing-pvalues-02.rq SELECT * WHERE {() . [,] . [,;] } >> FAIL /* -------------------------------------------------------- syn-bad-empty-optional-01.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-empty-optional-01.rq */ /* Testcase 142 */ query: << # NegativeSyntax/empty-optional.rq SELECT * { OPTIONAL FILTER (?x) } >> FAIL /* -------------------------------------------------------- syn-bad-empty-optional-02.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-empty-optional-02.rq */ /* Testcase 143 */ query: << # NegativeSyntax/empty-optional-02.rq SELECT * { OPTIONAL GRAPH ?v OPTIONAL FILTER (?x) } >> FAIL /* -------------------------------------------------------- syn-bad-filter-missing-parens.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-filter-missing-parens.rq */ /* Testcase 144 */ query: << # NegativeSyntax/filter-missing-parens.rq SELECT * { ?s ?p ?o FILTER ?x } >> FAIL /* -------------------------------------------------------- syn-bad-lone-list.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-lone-list.rq */ /* Testcase 145 */ query: << # NegativeSyntax/lone-list.rq SELECT * WHERE { () } >> FAIL /* -------------------------------------------------------- syn-bad-lone-node.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-lone-node.rq */ /* Testcase 146 */ query: << # NegativeSyntax/lone-node.rq SELECT * WHERE {} >> FAIL /* -------------------------------------------------------- syn-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-01.rq */ /* Testcase 147 */ query: << # Dot after triple SELECT * WHERE { ?s ?p ?o . } >> OK /* -------------------------------------------------------- syn-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-02.rq */ /* Testcase 148 */ query: << # No dot after triple SELECT * WHERE { ?s ?p ?o } >> OK /* -------------------------------------------------------- syn-03.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-03.rq */ /* Testcase 149 */ query: << SELECT * WHERE { ?s ?p ?o . ?s ?p ?o . } >> OK /* -------------------------------------------------------- syn-04.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-04.rq */ /* Testcase 150 */ query: << # No dot SELECT * WHERE { ?s ?p ?o . ?s ?p ?o } >> OK /* -------------------------------------------------------- syn-05.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-05.rq */ /* Testcase 151 */ query: << # DOT after non-triples SELECT * WHERE { FILTER (?o>5) . } >> OK /* -------------------------------------------------------- syn-06.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-06.rq */ /* Testcase 152 */ query: << # DOT after non-triples SELECT * WHERE { FILTER (?o>5) . ?s ?p ?o } >> OK /* -------------------------------------------------------- syn-07.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-07.rq */ /* Testcase 153 */ query: << # Trailing ; PREFIX : SELECT * WHERE { :s :p :o ; FILTER(?x) } >> OK /* -------------------------------------------------------- syn-08.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-08.rq */ /* Testcase 154 */ query: << # Broken ; PREFIX : SELECT * WHERE { :s :p :o ; . } >> OK /* -------------------------------------------------------- syn-bad-01.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-01.rq */ /* Testcase 155 */ query: << # More a test that bad syntax tests work! PREFIX ex: SELECT * >> FAIL /* -------------------------------------------------------- syn-bad-02.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-02.rq */ /* Testcase 156 */ query: << # Missing DOT, 2 triples PREFIX : SELECT * { :s1 :p1 :o1 :s2 :p2 :o2 . } >> FAIL /* -------------------------------------------------------- syn-bad-03.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-03.rq */ /* Testcase 157 */ query: << # Missing DOT between triples PREFIX : SELECT * { :s1 :p1 :o1 :s2 :p2 :o2 . } >> FAIL /* -------------------------------------------------------- syn-bad-04.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-04.rq */ /* Testcase 158 */ query: << # Missing DOT after ; between triples PREFIX : SELECT * { :s1 :p1 :o1 ; :s2 :p2 :o2 . } >> FAIL /* -------------------------------------------------------- syn-bad-05.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-05.rq */ /* Testcase 159 */ query: << # DOT, no triples SELECT * WHERE { . } >> FAIL /* -------------------------------------------------------- syn-bad-06.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-06.rq */ /* Testcase 160 */ query: << # DOT, no triples SELECT * WHERE { . . } >> FAIL /* -------------------------------------------------------- syn-bad-07.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-07.rq */ /* Testcase 161 */ query: << # DOT, then triples SELECT * WHERE { . ?s ?p ?o } >> FAIL /* -------------------------------------------------------- syn-bad-08.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-08.rq */ /* Testcase 162 */ query: << # Multiple DOTs SELECT * WHERE { ?s ?p ?o . . } >> FAIL /* -------------------------------------------------------- syn-bad-09.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-09.rq */ /* Testcase 163 */ query: << # Multiple DOTs SELECT * WHERE { ?s ?p ?o .. } >> FAIL /* -------------------------------------------------------- syn-bad-10.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-10.rq */ /* Testcase 164 */ query: << # Multiple DOTs SELECT * WHERE { ?s ?p ?o . . ?s1 ?p1 ?o1 } >> FAIL /* -------------------------------------------------------- syn-bad-11.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-11.rq */ /* Testcase 165 */ query: << # Multiple DOTs SELECT * WHERE { ?s ?p ?o .. ?s1 ?p1 ?o1 } >> FAIL /* -------------------------------------------------------- syn-bad-12.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-12.rq */ /* Testcase 166 */ query: << # Multiple DOTs SELECT * WHERE { ?s ?p ?o . . ?s1 ?p1 ?o1 } >> FAIL /* -------------------------------------------------------- syn-bad-13.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-13.rq */ /* Testcase 167 */ query: << # Multiple DOTs SELECT * WHERE { ?s ?p ?o . ?s1 ?p1 ?o1 .. } >> FAIL /* -------------------------------------------------------- syn-bad-14.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-14.rq */ /* Testcase 168 */ query: << # DOT, no triples SELECT * WHERE { . FILTER(?x) } >> FAIL /* -------------------------------------------------------- syn-bad-15.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-15.rq */ /* Testcase 169 */ query: << # Broken ; SELECT * WHERE { ; FILTER(?x) } >> FAIL /* -------------------------------------------------------- syn-bad-16.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-16.rq */ /* Testcase 170 */ query: << # Broken ; PREFIX : SELECT * WHERE { :s ; :p :o } >> FAIL /* -------------------------------------------------------- syn-bad-17.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-17.rq */ /* Testcase 171 */ query: << # Broken ; PREFIX : SELECT * WHERE { :s :p ; } >> FAIL /* -------------------------------------------------------- syn-bad-18.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-18.rq */ /* Testcase 172 */ query: << # Broken ; PREFIX : SELECT * WHERE { :s :p ; FILTER(?x) } >> FAIL /* -------------------------------------------------------- syn-bad-19.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-19.rq */ /* Testcase 173 */ query: << # Broken ; PREFIX : SELECT * WHERE { :s :p :o . ; } >> FAIL /* -------------------------------------------------------- syn-bad-20.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-20.rq */ /* Testcase 174 */ query: << # Broken , PREFIX : SELECT * WHERE { :s , :p :o } >> FAIL /* -------------------------------------------------------- syn-bad-21.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-21.rq */ /* Testcase 175 */ query: << # Broken , PREFIX : SELECT * WHERE { :s :p , :o } >> FAIL /* -------------------------------------------------------- syn-bad-22.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-22.rq */ /* Testcase 176 */ query: << # Broken , PREFIX : SELECT * WHERE { :s :p , } >> FAIL /* -------------------------------------------------------- syn-bad-23.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-23.rq */ /* Testcase 177 */ query: << # Broken , can't trail PREFIX : SELECT * WHERE { :s :p :o , } >> FAIL /* -------------------------------------------------------- syn-bad-24.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-24.rq */ /* Testcase 178 */ query: << # Broken , (should be ;) PREFIX : SELECT * WHERE { :s :p1 :o1 , :p2 :o2} >> FAIL /* -------------------------------------------------------- syn-bad-25.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-25.rq */ /* Testcase 179 */ query: << CONSTRUCT >> FAIL /* -------------------------------------------------------- syn-bad-26.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Query data-r2/syntax-sparql3/syn-bad-26.rq */ /* Testcase 180 */ query: << # Tokenizing matters. # "longest token rule" means this isn't a "<" and "&&" PREFIX : SELECT * WHERE { FILTER (?x?y) } >> FAIL /* -------------------------------------------------------- syn-bad-27.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-27.rq */ /* Testcase 181 */ query: << PREFIX : SELECT * WHERE { :x [] :q } >> FAIL /* -------------------------------------------------------- syn-bad-28.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-28.rq */ /* Testcase 182 */ query: << PREFIX : SELECT * WHERE { :x _:a :q } >> FAIL /* -------------------------------------------------------- syn-bad-29.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-29.rq */ /* Testcase 183 */ query: << # Syntactic blank node in a filter. SELECT * WHERE { _:x FILTER(_:x) } >> FAIL /* -------------------------------------------------------- syn-bad-30.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-30.rq */ /* Testcase 184 */ query: << # Syntactic blank node in a filter. SELECT * WHERE { _:x FILTER(_:x < 3) } >> FAIL /* -------------------------------------------------------- syn-bad-31.rq Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047 Query data-r2/syntax-sparql3/syn-bad-31.rq */ /* Testcase 185 */ query: << PREFIX : SELECT * WHERE { GRAPH [] { } } >> FAIL /* -------------------------------------------------------- syn-09.rq Syntax test Approved by http://www.w3.org/2007/02/13-dawg-minutes.html Query data-r2/syntax-sparql4/syn-09.rq */ /* Testcase 186 */ query: << PREFIX : SELECT * WHERE { _:a ?p ?v . _:a ?q 1 } >> OK /* -------------------------------------------------------- syn-10.rq Syntax test Approved by http://www.w3.org/2007/02/13-dawg-minutes.html Query data-r2/syntax-sparql4/syn-10.rq */ /* Testcase 187 */ query: << PREFIX : SELECT * WHERE { { _:a ?p ?v . _:a ?q _:a } UNION { _:b ?q _:c } } >> OK /* -------------------------------------------------------- syn-11.rq Syntax test Approved by http://www.w3.org/2007/02/13-dawg-minutes.html Query data-r2/syntax-sparql4/syn-11.rq */ /* Testcase 188 */ query: << PREFIX : SELECT * WHERE { _:a ?p ?v . FILTER(true) . [] ?q _:a } >> OK /* -------------------------------------------------------- syn-bad-34.rq Negative syntax test Approved by http://www.w3.org/2007/02/13-dawg-minutes.html Query data-r2/syntax-sparql4/syn-bad-34.rq */ /* Testcase 189 */ query: << PREFIX : SELECT * WHERE { _:a ?p ?v . _:a ?q 1 } >> FAIL /* -------------------------------------------------------- syn-bad-35.rq Negative syntax test Approved by http://www.w3.org/2007/02/13-dawg-minutes.html Query data-r2/syntax-sparql4/syn-bad-35.rq */ /* Testcase 190 */ query: << PREFIX : SELECT * WHERE { { _:a ?p ?v . } _:a ?q 1 } >> FAIL /* -------------------------------------------------------- syn-bad-36.rq Negative syntax test Approved by http://www.w3.org/2007/02/13-dawg-minutes.html Query data-r2/syntax-sparql4/syn-bad-36.rq */ /* Testcase 191 */ query: << PREFIX : SELECT * WHERE { { _:a ?p ?v . } UNION { _:a ?q 1 } } >> FAIL /* -------------------------------------------------------- syn-bad-37.rq Negative syntax test Approved by http://www.w3.org/2007/02/13-dawg-minutes.html Query data-r2/syntax-sparql4/syn-bad-37.rq */ /* Testcase 192 */ query: << PREFIX : SELECT * WHERE { { _:a ?p ?v . } _:a ?q 1 } >> FAIL /* -------------------------------------------------------- syn-bad-38.rq Negative syntax test Approved by http://www.w3.org/2007/02/13-dawg-minutes.html Query data-r2/syntax-sparql4/syn-bad-38.rq */ /* Testcase 193 */ query: << PREFIX : SELECT * WHERE { _:a ?p ?v . OPTIONAL {_:a ?q 1 } } >> FAIL /* -------------------------------------------------------- syn-bad-GRAPH-breaks-BGP Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm bad: re-used BNode label after GRAPH Query data-r2/syntax-sparql4/syn-bad-GRAPH-breaks-BGP.rq */ /* Testcase 194 */ query: << # bad: re-used BNode label after GRAPH # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX : SELECT * WHERE { _:a ?p ?v . GRAPH ?g { ?s ?p ?v } _:a ?q 1 } >> FAIL /* -------------------------------------------------------- syn-bad-OPT-breaks-BGP Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm bad: re-used BNode label after OPTIONAL Query data-r2/syntax-sparql4/syn-bad-OPT-breaks-BGP.rq */ /* Testcase 195 */ query: << # bad: re-used BNode label after OPTIONAL # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX : SELECT * WHERE { _:a ?p ?v . OPTIONAL { ?s ?p ?v } _:a ?q 1 } >> FAIL /* -------------------------------------------------------- syn-bad-UNION-breaks-BGP Negative syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html bad: re-used BNode label after UNION Query data-r2/syntax-sparql4/syn-bad-UNION-breaks-BGP.rq */ /* Testcase 196 */ query: << # bad: re-used BNode label after UNION # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ # This isn't necessarily a *syntax* test, but references to bnode labels # may not span basic graph patterns. PREFIX : SELECT * WHERE { _:a ?p ?v1 { ?s ?o } UNION { ?s ?o } _:a ?p ?v2 } >> FAIL /* -------------------------------------------------------- syn-leading-digits-in-prefixed-names.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm Query data-r2/syntax-sparql4/syn-leading-digits-in-prefixed-names.rq */ /* Testcase 197 */ query: << PREFIX dob: PREFIX time: PREFIX dc: SELECT ?desc WHERE { dob:1D a time:ProperInterval; dc:description ?desc. } >> OK /* -------------------------------------------------------- syntax-reduced-01.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html Query data-r2/syntax-sparql5/syntax-reduced-01.rq */ /* Testcase 198 */ query: << SELECT REDUCED * WHERE { ?x ?y ?z } >> OK /* -------------------------------------------------------- syntax-reduced-02.rq Syntax test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html Query data-r2/syntax-sparql5/syntax-reduced-02.rq */ /* Testcase 199 */ query: << SELECT REDUCED ?x ?y WHERE { ?x ?y ?z } >> OK /* -------------------------------------------------------- Filter-nested - 1 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html A FILTER is in scope for variables bound at the same level of the query tree Default Graph data-r2/algebra/data-1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . Named Graphs Query data-r2/algebra/filter-nested-1.rq */ /* Testcase 200 */ query: << PREFIX : SELECT ?v { :x :p ?v . FILTER(?v = 1) } >> OK /* Results data-r2/algebra/filter-nested-1.srx */ /* -------------------------------------------------------- Filter-nested - 2 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html A FILTER in a group { ... } cannot see variables bound outside that group Default Graph data-r2/algebra/data-1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . Named Graphs Query data-r2/algebra/filter-nested-2.rq */ /* Testcase 201 */ query: << PREFIX : SELECT ?v { :x :p ?v . { FILTER(?v = 1) } } >> OK /* Results data-r2/algebra/filter-nested-2.srx */ /* -------------------------------------------------------- Filter-placement - 1 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html FILTER placed after the triple pattern that contains the variable tested Default Graph data-r2/algebra/data-2.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :x :p "2"^^xsd:integer . :x :p "3"^^xsd:integer . :x :p "4"^^xsd:integer . :x :q "1"^^xsd:integer . :x :q "2"^^xsd:integer . :x :q "3"^^xsd:integer . Named Graphs Query data-r2/algebra/filter-placement-1.rq */ /* Testcase 202 */ query: << PREFIX : SELECT ?v { ?s :p ?v . FILTER (?v = 2) } >> OK /* Results data-r2/algebra/filter-placement-1.srx */ /* -------------------------------------------------------- Filter-placement - 2 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html FILTERs are scoped to the nearest enclosing group - placement within that group does not matter Default Graph data-r2/algebra/data-2.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :x :p "2"^^xsd:integer . :x :p "3"^^xsd:integer . :x :p "4"^^xsd:integer . :x :q "1"^^xsd:integer . :x :q "2"^^xsd:integer . :x :q "3"^^xsd:integer . Named Graphs Query data-r2/algebra/filter-placement-2.rq */ /* Testcase 203 */ query: << PREFIX : SELECT ?v { FILTER (?v = 2) ?s :p ?v . } >> OK /* Results data-r2/algebra/filter-placement-2.srx */ /* -------------------------------------------------------- Filter-placement - 3 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html FILTERs are scoped to the nearest enclosing group - placement within that group does not matter Default Graph data-r2/algebra/data-2.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :x :p "2"^^xsd:integer . :x :p "3"^^xsd:integer . :x :p "4"^^xsd:integer . :x :q "1"^^xsd:integer . :x :q "2"^^xsd:integer . :x :q "3"^^xsd:integer . Named Graphs Query data-r2/algebra/filter-placement-3.rq */ /* Testcase 204 */ query: << PREFIX : SELECT ?v ?w { FILTER (?v = 2) FILTER (?w = 3) ?s :p ?v . ?s :q ?w . } >> OK /* Results data-r2/algebra/filter-placement-3.srx */ /* -------------------------------------------------------- Filter-scope - 1 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation Default Graph data-r2/algebra/data-2.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :x :p "2"^^xsd:integer . :x :p "3"^^xsd:integer . :x :p "4"^^xsd:integer . :x :q "1"^^xsd:integer . :x :q "2"^^xsd:integer . :x :q "3"^^xsd:integer . Named Graphs Query data-r2/algebra/filter-scope-1.rq */ /* Testcase 205 */ query: << PREFIX : SELECT * { :x :p ?v . { :x :q ?w OPTIONAL { :x :p ?v2 FILTER(?v = 1) } } } >> OK /* Results data-r2/algebra/filter-scope-1.srx */ /* -------------------------------------------------------- Join operator with OPTs, BGPs, and UNIONs Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html Tests nested combination of Join with a BGP / OPT and a BGP / UNION Default Graph data-r2/algebra/join-combo-graph-2.ttl @prefix : . @prefix rdf: . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x1 :r "4"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x2 :r "10"^^xsd:integer . :x2 :x "1"^^xsd:integer . :x3 :q "3"^^xsd:integer . :x3 :q "4"^^xsd:integer . :x3 :s "1"^^xsd:integer . :x3 :t :s . :p a rdf:Property . :x1 :z :p . Named Graphs Query data-r2/algebra/join-combo-1.rq */ /* Testcase 206 */ query: << PREFIX : SELECT ?a ?y ?d ?z { ?a :p ?c OPTIONAL { ?a :r ?d }. ?a ?p 1 { ?p a ?y } UNION { ?a ?z ?p } } >> OK /* Results data-r2/algebra/join-combo-1.srx */ /* -------------------------------------------------------- Join operator with Graph and Union Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html Tests combination of Join operator with Graph on LHS and Union on RHS Default Graph data-r2/algebra/join-combo-graph-2.ttl @prefix : . @prefix rdf: . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x1 :r "4"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x2 :r "10"^^xsd:integer . :x2 :x "1"^^xsd:integer . :x3 :q "3"^^xsd:integer . :x3 :q "4"^^xsd:integer . :x3 :s "1"^^xsd:integer . :x3 :t :s . :p a rdf:Property . :x1 :z :p . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/join-combo-graph-1.ttl @prefix : . @prefix rdf: . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x1 :r "4"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x2 :r "10"^^xsd:integer . :x2 :x "1"^^xsd:integer . :x3 :q "3"^^xsd:integer . :x3 :q "4"^^xsd:integer . :x3 :s "1"^^xsd:integer . :x3 :t :s . :p a rdf:Property . :x1 :z :p . Named Graphs Query data-r2/algebra/join-combo-2.rq */ /* Testcase 207 */ query: << PREFIX : SELECT ?x ?y ?z { GRAPH ?g { ?x ?p 1 } { ?x :p ?y } UNION { ?p a ?z } } >> OK /* Results data-r2/algebra/join-combo-2.srx */ /* -------------------------------------------------------- Join scope - 1 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html Variables have query scope. Default Graph data-r2/algebra/var-scope-join-1.ttl @prefix : . _:B1 :name "paul" . _:B1 :phone "777-3426". _:B2 :name "john" . _:B2 :email . _:B3 :name "george". _:B3 :webPage . _:B4 :name "ringo". _:B4 :email . _:B4 :webPage . _:B4 :phone "888-4537". Named Graphs Query data-r2/algebra/var-scope-join-1.rq */ /* Testcase 208 */ query: << PREFIX : SELECT * { ?X :name "paul" {?Y :name "george" . OPTIONAL { ?X :email ?Z } } } >> OK /* Results data-r2/algebra/var-scope-join-1.srx */ /* -------------------------------------------------------- Nested Optionals - 1 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html Nested-optionals with a shared variable that does not appear in the middle pattern (a not well-formed query pattern as per "Semantics and Complexity" of SPARQL Default Graph data-r2/algebra/two-nested-opt.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :q "3"^^xsd:integer . :x3 :q "4"^^xsd:integer . Named Graphs Query data-r2/algebra/two-nested-opt.rq */ /* Testcase 209 */ query: << PREFIX : SELECT * { :x1 :p ?v . OPTIONAL { :x3 :q ?w . OPTIONAL { :x2 :p ?v } } } >> OK /* Results data-r2/algebra/two-nested-opt.srx */ /* -------------------------------------------------------- Nested Optionals - 2 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html OPTIONALs parse in a left-associative manner Default Graph data-r2/algebra/two-nested-opt.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :q "3"^^xsd:integer . :x3 :q "4"^^xsd:integer . Named Graphs Query data-r2/algebra/two-nested-opt-alt.rq */ /* Testcase 210 */ query: << PREFIX : ## The nested optional example, rewritten to a form that is the same ## for the SPARQL algebra and the declarative semantics. SELECT * { :x1 :p ?v . OPTIONAL { :x3 :q ?w } OPTIONAL { :x3 :q ?w . :x2 :p ?v } } >> OK /* Results data-r2/algebra/two-nested-opt-alt.srx */ /* -------------------------------------------------------- Optional-filter - 1 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html A FILTER inside an OPTIONAL can reference a variable bound in the required part of the OPTIONAL Default Graph data-r2/algebra/opt-filter-1.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :q "3"^^xsd:integer . :x3 :q "4"^^xsd:integer . Named Graphs Query data-r2/algebra/opt-filter-1.rq */ /* Testcase 211 */ query: << PREFIX : SELECT * { ?x :p ?v . OPTIONAL { ?y :q ?w . FILTER(?v=2) } } >> OK /* Results data-r2/algebra/opt-filter-1.srx */ /* -------------------------------------------------------- Optional-filter - 2 filters Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html FILTERs inside an OPTIONAL can refer to variables from both the required and optional parts of the construct. Default Graph data-r2/algebra/opt-filter-2.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :q "3"^^xsd:integer . :x3 :q "4"^^xsd:integer . Named Graphs Query data-r2/algebra/opt-filter-2.rq */ /* Testcase 212 */ query: << PREFIX : SELECT * { ?x :p ?v . OPTIONAL { ?y :q ?w . FILTER(?v=2) FILTER(?w=3) } } >> OK /* Results data-r2/algebra/opt-filter-2.srx */ /* -------------------------------------------------------- Optional-filter - scope of variable Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation Default Graph data-r2/algebra/opt-filter-3.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :q "3"^^xsd:integer . :x3 :q "4"^^xsd:integer . Named Graphs Query data-r2/algebra/opt-filter-3.rq */ /* Testcase 213 */ query: << PREFIX : SELECT * { :x :p ?v . { :x :q ?w # ?v is not in scope so ?v2 never set OPTIONAL { :x :p ?v2 FILTER(?v = 1) } } } >> OK /* Results data-r2/algebra/opt-filter-3.srx */ /* -------------------------------------------------------- ASK-1 (SPARQL XML results) Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/ask/data.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :x :p "2"^^xsd:integer . :x :p "3"^^xsd:integer . :y :p :a . :a :q :r . Named Graphs Query data-r2/ask/ask-1.rq */ /* Testcase 214 */ query: << PREFIX : ASK { :x :p 1 } >> OK /* Results data-r2/ask/ask-1.srx */ /* -------------------------------------------------------- ASK-4 (SPARQL XML results) Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/ask/data.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :x :p "2"^^xsd:integer . :x :p "3"^^xsd:integer . :y :p :a . :a :q :r . Named Graphs Query data-r2/ask/ask-4.rq */ /* Testcase 215 */ query: << PREFIX : ASK { :x :p 99 } >> OK /* Results data-r2/ask/ask-4.srx */ /* -------------------------------------------------------- ASK-7 (SPARQL XML results) Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/ask/data.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :x :p "2"^^xsd:integer . :x :p "3"^^xsd:integer . :y :p :a . :a :q :r . Named Graphs Query data-r2/ask/ask-7.rq */ /* Testcase 216 */ query: << PREFIX : ASK { :x :p ?x } >> OK /* Results data-r2/ask/ask-7.srx */ /* -------------------------------------------------------- ASK-8 (SPARQL XML results) Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/ask/data.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :x :p "2"^^xsd:integer . :x :p "3"^^xsd:integer . :y :p :a . :a :q :r . Named Graphs Query data-r2/ask/ask-8.rq */ /* Testcase 217 */ query: << PREFIX : ASK { :x :p ?x . FILTER(?x = 99) } >> OK /* Results data-r2/ask/ask-8.srx */ /* -------------------------------------------------------- Basic - Prefix/Base 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-1.ttl @prefix ns: . @prefix x: . @prefix z: . x:x ns:p "d:x ns:p" . x:x x:p "x:x x:p" . z:x z:p "z:x z:p" . Named Graphs Query data-r2/basic/base-prefix-1.rq */ /* Testcase 218 */ query: << BASE PREFIX : <> SELECT * WHERE { :x ?p ?v } >> OK /* Results data-r2/basic/base-prefix-1.srx */ /* -------------------------------------------------------- Basic - Prefix/Base 2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-1.ttl @prefix ns: . @prefix x: . @prefix z: . x:x ns:p "d:x ns:p" . x:x x:p "x:x x:p" . z:x z:p "z:x z:p" . Named Graphs Query data-r2/basic/base-prefix-2.rq */ /* Testcase 219 */ query: << BASE PREFIX : <#> SELECT * WHERE { :x ?p ?v } >> OK /* Results data-r2/basic/base-prefix-2.srx */ /* -------------------------------------------------------- Basic - Prefix/Base 3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-1.ttl @prefix ns: . @prefix x: . @prefix z: . x:x ns:p "d:x ns:p" . x:x x:p "x:x x:p" . z:x z:p "z:x z:p" . Named Graphs Query data-r2/basic/base-prefix-3.rq */ /* Testcase 220 */ query: << PREFIX ns: PREFIX x: SELECT * WHERE { x:x ns:p ?v } >> OK /* Results data-r2/basic/base-prefix-3.srx */ /* -------------------------------------------------------- Basic - Prefix/Base 4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-1.ttl @prefix ns: . @prefix x: . @prefix z: . x:x ns:p "d:x ns:p" . x:x x:p "x:x x:p" . z:x z:p "z:x z:p" . Named Graphs Query data-r2/basic/base-prefix-4.rq */ /* Testcase 221 */ query: << BASE SELECT * WHERE {

?v } >> OK /* Results data-r2/basic/base-prefix-4.srx */ /* -------------------------------------------------------- Basic - Prefix/Base 5 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-1.ttl @prefix ns: . @prefix x: . @prefix z: . x:x ns:p "d:x ns:p" . x:x x:p "x:x x:p" . z:x z:p "z:x z:p" . Named Graphs Query data-r2/basic/base-prefix-5.rq */ /* Testcase 222 */ query: << BASE SELECT * WHERE { <#x> <#p> ?v } >> OK /* Results data-r2/basic/base-prefix-5.srx */ /* -------------------------------------------------------- Non-matching triple pattern Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Patterns not in data don't match Default Graph data-r2/basic/data-7.ttl @prefix : . @prefix foaf: . :john a foaf:Person ; foaf:name "John Smith" . Named Graphs Query data-r2/basic/bgp-no-match.rq */ /* Testcase 223 */ query: << PREFIX : PREFIX foaf: SELECT ?x WHERE { ?x foaf:name "John Smith" ; a foaf:Womble . } >> OK /* Results data-r2/basic/bgp-no-match.srx */ /* -------------------------------------------------------- Basic - List 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-2.ttl @prefix : . @prefix xsd: . :x :list0 () . :x :list1 ("1"^^xsd:integer) . :x :list2 ("11"^^xsd:integer "22"^^xsd:integer) . :x :list3 ("111"^^xsd:integer "222"^^xsd:integer "333"^^xsd:integer) . Named Graphs Query data-r2/basic/list-1.rq */ /* Testcase 224 */ query: << PREFIX : SELECT ?p { :x ?p () . } >> OK /* Results data-r2/basic/list-1.srx */ /* -------------------------------------------------------- Basic - List 2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-2.ttl @prefix : . @prefix xsd: . :x :list0 () . :x :list1 ("1"^^xsd:integer) . :x :list2 ("11"^^xsd:integer "22"^^xsd:integer) . :x :list3 ("111"^^xsd:integer "222"^^xsd:integer "333"^^xsd:integer) . Named Graphs Query data-r2/basic/list-2.rq */ /* Testcase 225 */ query: << PREFIX : SELECT ?p { :x ?p (1) . } >> OK /* Results data-r2/basic/list-2.srx */ /* -------------------------------------------------------- Basic - List 3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-2.ttl @prefix : . @prefix xsd: . :x :list0 () . :x :list1 ("1"^^xsd:integer) . :x :list2 ("11"^^xsd:integer "22"^^xsd:integer) . :x :list3 ("111"^^xsd:integer "222"^^xsd:integer "333"^^xsd:integer) . Named Graphs Query data-r2/basic/list-3.rq */ /* Testcase 226 */ query: << PREFIX : SELECT ?p ?v { :x ?p (?v) . } >> OK /* Results data-r2/basic/list-3.srx */ /* -------------------------------------------------------- Basic - List 4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-2.ttl @prefix : . @prefix xsd: . :x :list0 () . :x :list1 ("1"^^xsd:integer) . :x :list2 ("11"^^xsd:integer "22"^^xsd:integer) . :x :list3 ("111"^^xsd:integer "222"^^xsd:integer "333"^^xsd:integer) . Named Graphs Query data-r2/basic/list-4.rq */ /* Testcase 227 */ query: << PREFIX : SELECT ?p ?v ?w { :x ?p (?v ?w) . } >> OK /* Results data-r2/basic/list-4.srx */ /* -------------------------------------------------------- Prefix name 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html No local name - foo: Default Graph data-r2/basic/data-6.ttl @prefix : . @prefix xsd: . :x :p1 "1"^^xsd:integer . :x :p1 "2"^^xsd:integer . Named Graphs Query data-r2/basic/prefix-name-1.rq */ /* Testcase 228 */ query: << PREFIX ex: SELECT ?p { ex: ?p 1 . } >> OK /* Results data-r2/basic/prefix-name-1.srx */ /* -------------------------------------------------------- Basic - Quotes 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-3.ttl @prefix : . # This file uses UNIX line end conventions. :x1 :p1 "x" . :x2 :p2 """x y""" . :x3 :p3 """x y"""^^:someType . Named Graphs Query data-r2/basic/quotes-1.rq */ /* Testcase 229 */ query: << PREFIX : SELECT ?x { ?x ?p '''x''' } >> OK /* Results data-r2/basic/quotes-1.srx */ /* -------------------------------------------------------- Basic - Quotes 2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-3.ttl @prefix : . # This file uses UNIX line end conventions. :x1 :p1 "x" . :x2 :p2 """x y""" . :x3 :p3 """x y"""^^:someType . Named Graphs Query data-r2/basic/quotes-2.rq */ /* Testcase 230 */ query: << PREFIX : SELECT ?x { ?x ?p """x""" } >> OK /* Results data-r2/basic/quotes-2.srx */ /* -------------------------------------------------------- Basic - Quotes 3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-3.ttl @prefix : . # This file uses UNIX line end conventions. :x1 :p1 "x" . :x2 :p2 """x y""" . :x3 :p3 """x y"""^^:someType . Named Graphs Query data-r2/basic/quotes-3.rq */ /* Testcase 231 */ query: << # This query uses UNIX line end conventions. # It is in CVS in binary. PREFIX : SELECT ?x { ?x ?p '''x y''' } >> OK /* Results data-r2/basic/quotes-3.srx */ /* -------------------------------------------------------- Basic - Quotes 4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-3.ttl @prefix : . # This file uses UNIX line end conventions. :x1 :p1 "x" . :x2 :p2 """x y""" . :x3 :p3 """x y"""^^:someType . Named Graphs Query data-r2/basic/quotes-4.rq */ /* Testcase 232 */ query: << # This query uses UNIX line end conventions. # It is in CVS in binary. PREFIX : PREFIX xsd: SELECT ?x { ?x ?p """x y"""^^:someType } >> OK /* Results data-r2/basic/quotes-4.srx */ /* -------------------------------------------------------- Basic graph pattern - spoo Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Test the :x :y :o1, :o2 construct Default Graph data-r2/basic/data-6.ttl @prefix : . @prefix xsd: . :x :p1 "1"^^xsd:integer . :x :p1 "2"^^xsd:integer . Named Graphs Query data-r2/basic/spoo-1.rq */ /* Testcase 233 */ query: << PREFIX : PREFIX xsd: SELECT ?s WHERE { ?s :p1 1, 2 . } >> OK /* Results data-r2/basic/spoo-1.srx */ /* -------------------------------------------------------- Basic - Term 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-4.ttl @prefix : . @prefix xsd: . @prefix rdf: . :x :p1 "true"^^xsd:boolean . :x :p2 "false"^^xsd:boolean . :x rdf:type :C . :x :n1 "123.0"^^xsd:decimal . :x :n2 "456."^^xsd:decimal . :x :n3 "+5"^^xsd:integer . :x :n4 "-18"^^xsd:integer . Named Graphs Query data-r2/basic/term-1.rq */ /* Testcase 234 */ query: << PREFIX : PREFIX xsd: SELECT * { :x ?p true . } >> OK /* Results data-r2/basic/term-1.srx */ /* -------------------------------------------------------- Basic - Term 2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-4.ttl @prefix : . @prefix xsd: . @prefix rdf: . :x :p1 "true"^^xsd:boolean . :x :p2 "false"^^xsd:boolean . :x rdf:type :C . :x :n1 "123.0"^^xsd:decimal . :x :n2 "456."^^xsd:decimal . :x :n3 "+5"^^xsd:integer . :x :n4 "-18"^^xsd:integer . Named Graphs Query data-r2/basic/term-2.rq */ /* Testcase 235 */ query: << PREFIX : PREFIX xsd: SELECT * { :x ?p false } >> OK /* Results data-r2/basic/term-2.srx */ /* -------------------------------------------------------- Basic - Term 3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-4.ttl @prefix : . @prefix xsd: . @prefix rdf: . :x :p1 "true"^^xsd:boolean . :x :p2 "false"^^xsd:boolean . :x rdf:type :C . :x :n1 "123.0"^^xsd:decimal . :x :n2 "456."^^xsd:decimal . :x :n3 "+5"^^xsd:integer . :x :n4 "-18"^^xsd:integer . Named Graphs Query data-r2/basic/term-3.rq */ /* Testcase 236 */ query: << PREFIX : PREFIX xsd: SELECT * { :x a ?C . } >> OK /* Results data-r2/basic/term-3.srx */ /* -------------------------------------------------------- Basic - Term 4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-4.ttl @prefix : . @prefix xsd: . @prefix rdf: . :x :p1 "true"^^xsd:boolean . :x :p2 "false"^^xsd:boolean . :x rdf:type :C . :x :n1 "123.0"^^xsd:decimal . :x :n2 "456."^^xsd:decimal . :x :n3 "+5"^^xsd:integer . :x :n4 "-18"^^xsd:integer . Named Graphs Query data-r2/basic/term-4.rq */ /* Testcase 237 */ query: << PREFIX : PREFIX xsd: SELECT * { :x ?p 123.0 } >> OK /* Results data-r2/basic/term-4.srx */ /* -------------------------------------------------------- Basic - Term 5 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-4.ttl @prefix : . @prefix xsd: . @prefix rdf: . :x :p1 "true"^^xsd:boolean . :x :p2 "false"^^xsd:boolean . :x rdf:type :C . :x :n1 "123.0"^^xsd:decimal . :x :n2 "456."^^xsd:decimal . :x :n3 "+5"^^xsd:integer . :x :n4 "-18"^^xsd:integer . Named Graphs Query data-r2/basic/term-5.rq */ /* Testcase 238 */ query: << PREFIX : PREFIX xsd: SELECT * { :x ?p 123.0. } >> OK /* Results data-r2/basic/term-5.srx */ /* -------------------------------------------------------- Basic - Term 6 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-4.ttl @prefix : . @prefix xsd: . @prefix rdf: . :x :p1 "true"^^xsd:boolean . :x :p2 "false"^^xsd:boolean . :x rdf:type :C . :x :n1 "123.0"^^xsd:decimal . :x :n2 "456."^^xsd:decimal . :x :n3 "+5"^^xsd:integer . :x :n4 "-18"^^xsd:integer . Named Graphs Query data-r2/basic/term-6.rq */ /* Testcase 239 */ query: << PREFIX : PREFIX xsd: # DOT is part of the decimal. SELECT * { :x ?p 456. } >> OK /* Results data-r2/basic/term-6.srx */ /* -------------------------------------------------------- Basic - Term 7 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-4.ttl @prefix : . @prefix xsd: . @prefix rdf: . :x :p1 "true"^^xsd:boolean . :x :p2 "false"^^xsd:boolean . :x rdf:type :C . :x :n1 "123.0"^^xsd:decimal . :x :n2 "456."^^xsd:decimal . :x :n3 "+5"^^xsd:integer . :x :n4 "-18"^^xsd:integer . Named Graphs Query data-r2/basic/term-7.rq */ /* Testcase 240 */ query: << PREFIX : PREFIX xsd: # DOT is part of the decimal. SELECT * { :x ?p 456. . } >> OK /* Results data-r2/basic/term-7.srx */ /* -------------------------------------------------------- Basic - Term 8 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-4.ttl @prefix : . @prefix xsd: . @prefix rdf: . :x :p1 "true"^^xsd:boolean . :x :p2 "false"^^xsd:boolean . :x rdf:type :C . :x :n1 "123.0"^^xsd:decimal . :x :n2 "456."^^xsd:decimal . :x :n3 "+5"^^xsd:integer . :x :n4 "-18"^^xsd:integer . Named Graphs Query data-r2/basic/term-8.rq */ /* Testcase 241 */ query: << PREFIX : PREFIX xsd: # DOT is part of the decimal. SELECT * { :x ?p +5 } >> OK /* Results data-r2/basic/term-8.srx */ /* -------------------------------------------------------- Basic - Term 9 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-4.ttl @prefix : . @prefix xsd: . @prefix rdf: . :x :p1 "true"^^xsd:boolean . :x :p2 "false"^^xsd:boolean . :x rdf:type :C . :x :n1 "123.0"^^xsd:decimal . :x :n2 "456."^^xsd:decimal . :x :n3 "+5"^^xsd:integer . :x :n4 "-18"^^xsd:integer . Named Graphs Query data-r2/basic/term-9.rq */ /* Testcase 242 */ query: << PREFIX : PREFIX xsd: # DOT is part of the decimal. SELECT * { :x ?p -18 } >> OK /* Results data-r2/basic/term-9.srx */ /* -------------------------------------------------------- Basic - Var 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-5.ttl @prefix : . @prefix xsd: . :x :p1 "1"^^xsd:integer . :x :p2 "2"^^xsd:integer . Named Graphs Query data-r2/basic/var-1.rq */ /* Testcase 243 */ query: << PREFIX : PREFIX xsd: SELECT * { :x ?p $v } >> OK /* Results data-r2/basic/var-1.srx */ /* -------------------------------------------------------- Basic - Var 2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/basic/data-5.ttl @prefix : . @prefix xsd: . :x :p1 "1"^^xsd:integer . :x :p2 "2"^^xsd:integer . Named Graphs Query data-r2/basic/var-2.rq */ /* Testcase 244 */ query: << PREFIX : PREFIX xsd: SELECT * { :x ?p $v . :x ?p ?v } >> OK /* Results data-r2/basic/var-2.srx */ /* -------------------------------------------------------- dawg-bnode-coreference Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 Query results must maintain bnode co-references in the dataset Default Graph data-r2/bnode-coreference/data.ttl @prefix foaf: . @prefix rdf: . @prefix rdfs: . _:alice rdf:type foaf:Person ; foaf:name "Alice" ; foaf:mbox ; foaf:knows _:bob ; . _:bob rdf:type foaf:Person ; foaf:name "Bob" ; foaf:knows _:alice ; foaf:mbox ; foaf:mbox ; . _:eve rdf:type foaf:Person ; foaf:name "Eve" ; foaf:knows _:fred ; . _:fred rdf:type foaf:Person ; foaf:mbox . Named Graphs Query data-r2/bnode-coreference/query.rq */ /* Testcase 245 */ query: << PREFIX rdf: PREFIX foaf: SELECT ?x ?y WHERE { ?x foaf:knows ?y . } >> OK /* Results data-r2/bnode-coreference/result.ttl */ /* -------------------------------------------------------- Test 'boolean effective value' - true Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Non-zero numerics, non-empty strings, and the true boolean have an EBV of true Default Graph data-r2/boolean-effective-value/data-1.ttl @prefix : . @prefix xsd: . # These object values are true by the boolean effective value rule. :x1 :p "1"^^xsd:integer . :x2 :p "foo" . :x3 :p "0.01"^^xsd:double . :x4 :p "true"^^xsd:boolean . # These are false :y1 :p "0"^^xsd:integer . :y2 :p "0.0"^^xsd:double . :y3 :p "" . :y4 :p "false"^^xsd:boolean . Named Graphs Query data-r2/boolean-effective-value/query-bev-1.rq */ /* Testcase 246 */ query: << PREFIX xsd: PREFIX : SELECT ?a WHERE { ?a :p ?v . FILTER (?v) . } >> OK /* Results data-r2/boolean-effective-value/result-bev-1.ttl */ /* -------------------------------------------------------- Test 'boolean effective value' - false Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Zero-valued numerics, the empty string, and the false boolean have an EBV of false Default Graph data-r2/boolean-effective-value/data-1.ttl @prefix : . @prefix xsd: . # These object values are true by the boolean effective value rule. :x1 :p "1"^^xsd:integer . :x2 :p "foo" . :x3 :p "0.01"^^xsd:double . :x4 :p "true"^^xsd:boolean . # These are false :y1 :p "0"^^xsd:integer . :y2 :p "0.0"^^xsd:double . :y3 :p "" . :y4 :p "false"^^xsd:boolean . Named Graphs Query data-r2/boolean-effective-value/query-bev-2.rq */ /* Testcase 247 */ query: << PREFIX xsd: PREFIX : SELECT ?a WHERE { ?a :p ?v . FILTER ( ! ?v ) . } >> OK /* Results data-r2/boolean-effective-value/result-bev-2.ttl */ /* -------------------------------------------------------- Test 'boolean effective value' - && Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html The && operator takes the EBV of its operands Default Graph data-r2/boolean-effective-value/data-1.ttl @prefix : . @prefix xsd: . # These object values are true by the boolean effective value rule. :x1 :p "1"^^xsd:integer . :x2 :p "foo" . :x3 :p "0.01"^^xsd:double . :x4 :p "true"^^xsd:boolean . # These are false :y1 :p "0"^^xsd:integer . :y2 :p "0.0"^^xsd:double . :y3 :p "" . :y4 :p "false"^^xsd:boolean . Named Graphs Query data-r2/boolean-effective-value/query-bev-3.rq */ /* Testcase 248 */ query: << PREFIX xsd: PREFIX : SELECT ?a WHERE { ?a :p ?v . FILTER ("true"^^xsd:boolean && ?v) . } >> OK /* Results data-r2/boolean-effective-value/result-bev-3.ttl */ /* -------------------------------------------------------- Test 'boolean effective value' - || Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html The || operator takes the EBV of its operands Default Graph data-r2/boolean-effective-value/data-1.ttl @prefix : . @prefix xsd: . # These object values are true by the boolean effective value rule. :x1 :p "1"^^xsd:integer . :x2 :p "foo" . :x3 :p "0.01"^^xsd:double . :x4 :p "true"^^xsd:boolean . # These are false :y1 :p "0"^^xsd:integer . :y2 :p "0.0"^^xsd:double . :y3 :p "" . :y4 :p "false"^^xsd:boolean . Named Graphs Query data-r2/boolean-effective-value/query-bev-4.rq */ /* Testcase 249 */ query: << PREFIX xsd: PREFIX : SELECT ?a WHERE { ?a :p ?v . FILTER ("false"^^xsd:boolean || ?v) . } >> OK /* Results data-r2/boolean-effective-value/result-bev-4.ttl */ /* -------------------------------------------------------- Test 'boolean effective value' - optional Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html The EBV of an unbound value or a literal with an unknown datatype is a type error, which eliminates the solution in question Default Graph data-r2/boolean-effective-value/data-2.ttl @prefix : . @prefix xsd: . # These object values are true by the boolean effective value rule. :x1 :p "1"^^xsd:integer . :x2 :p "foo" . :x3 :p "0.01"^^xsd:double . :x4 :p "true"^^xsd:boolean . # These are false :y1 :p "0"^^xsd:integer . :y2 :p "0.0"^^xsd:double . :y3 :p "" . :y4 :p "false"^^xsd:boolean . # Optionals :x1 :q "true"^^xsd:boolean . :x2 :q "false"^^xsd:boolean . :x3 :q "foo"^^:unknown . Named Graphs Query data-r2/boolean-effective-value/query-bev-5.rq */ /* Testcase 250 */ query: << PREFIX xsd: PREFIX : SELECT ?a WHERE { ?a :p ?v . OPTIONAL { ?a :q ?w } . FILTER (?w) . } >> OK /* Results data-r2/boolean-effective-value/result-bev-5.ttl */ /* -------------------------------------------------------- Test 'boolean effective value' - unknown types Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Negating a type error is still a type error Default Graph data-r2/boolean-effective-value/data-2.ttl @prefix : . @prefix xsd: . # These object values are true by the boolean effective value rule. :x1 :p "1"^^xsd:integer . :x2 :p "foo" . :x3 :p "0.01"^^xsd:double . :x4 :p "true"^^xsd:boolean . # These are false :y1 :p "0"^^xsd:integer . :y2 :p "0.0"^^xsd:double . :y3 :p "" . :y4 :p "false"^^xsd:boolean . # Optionals :x1 :q "true"^^xsd:boolean . :x2 :q "false"^^xsd:boolean . :x3 :q "foo"^^:unknown . Named Graphs Query data-r2/boolean-effective-value/query-bev-6.rq */ /* Testcase 251 */ query: << PREFIX xsd: PREFIX : SELECT ?a ?w WHERE { ?a :p ?v . OPTIONAL { ?a :q ?w } . FILTER ( ! ?w ) . } >> OK /* Results data-r2/boolean-effective-value/result-bev-6.ttl */ /* -------------------------------------------------------- Test literal 'true' Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/boolean-effective-value/data-1.ttl @prefix : . @prefix xsd: . # These object values are true by the boolean effective value rule. :x1 :p "1"^^xsd:integer . :x2 :p "foo" . :x3 :p "0.01"^^xsd:double . :x4 :p "true"^^xsd:boolean . # These are false :y1 :p "0"^^xsd:integer . :y2 :p "0.0"^^xsd:double . :y3 :p "" . :y4 :p "false"^^xsd:boolean . Named Graphs Query data-r2/boolean-effective-value/query-boolean-literal.rq */ /* Testcase 252 */ query: << prefix : select ?x where { ?x :p "foo" . FILTER (true) . } >> OK /* Results data-r2/boolean-effective-value/result-boolean-literal.ttl */ /* -------------------------------------------------------- dawg-bound-query-001 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 BOUND test case. Default Graph data-r2/bound/data.ttl @prefix : . :a1 :b :c1 . :c1 :d :e . :a2 :b :c2 . :c2 :b :f . Named Graphs Query data-r2/bound/bound1.rq */ /* Testcase 253 */ query: << PREFIX : SELECT ?a ?c WHERE { ?a :b ?c . OPTIONAL { ?c :d ?e } . FILTER (! bound(?e)) } >> OK /* Results data-r2/bound/bound1-result.ttl */ /* -------------------------------------------------------- Cast to xsd:boolean Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/cast/data.ttl @prefix : . :iri :p :z . :str :p "string" . :fltdbl :p "-10.2E3" . :decimal :p "+33.3300" . :int :p "13" . :dT :p "2002-10-10T17:00:00Z" . :bool :p "true" . Named Graphs Query data-r2/cast/cast-bool.rq */ /* Testcase 254 */ query: << PREFIX : PREFIX rdf: PREFIX xsd: SELECT ?s WHERE { ?s :p ?v . FILTER(datatype(xsd:boolean(?v)) = xsd:boolean) . } >> OK /* Results data-r2/cast/cast-bool.srx */ /* -------------------------------------------------------- Cast to xsd:dateTime Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/cast/data.ttl @prefix : . :iri :p :z . :str :p "string" . :fltdbl :p "-10.2E3" . :decimal :p "+33.3300" . :int :p "13" . :dT :p "2002-10-10T17:00:00Z" . :bool :p "true" . Named Graphs Query data-r2/cast/cast-dT.rq */ /* Testcase 255 */ query: << PREFIX : PREFIX rdf: PREFIX xsd: SELECT ?s WHERE { ?s :p ?v . FILTER(datatype(xsd:dateTime(?v)) = xsd:dateTime) . } >> OK /* Results data-r2/cast/cast-dT.srx */ /* -------------------------------------------------------- Cast to xsd:double Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/cast/data.ttl @prefix : . :iri :p :z . :str :p "string" . :fltdbl :p "-10.2E3" . :decimal :p "+33.3300" . :int :p "13" . :dT :p "2002-10-10T17:00:00Z" . :bool :p "true" . Named Graphs Query data-r2/cast/cast-dbl.rq */ /* Testcase 256 */ query: << PREFIX : PREFIX rdf: PREFIX xsd: SELECT ?s WHERE { ?s :p ?v . FILTER(datatype(xsd:double(?v)) = xsd:double) . } >> OK /* Results data-r2/cast/cast-dbl.srx */ /* -------------------------------------------------------- Cast to xsd:decimal Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/cast/data.ttl @prefix : . :iri :p :z . :str :p "string" . :fltdbl :p "-10.2E3" . :decimal :p "+33.3300" . :int :p "13" . :dT :p "2002-10-10T17:00:00Z" . :bool :p "true" . Named Graphs Query data-r2/cast/cast-dec.rq */ /* Testcase 257 */ query: << PREFIX : PREFIX rdf: PREFIX xsd: SELECT ?s WHERE { ?s :p ?v . FILTER(datatype(xsd:decimal(?v)) = xsd:decimal) . } >> OK /* Results data-r2/cast/cast-dec.srx */ /* -------------------------------------------------------- Cast to xsd:float Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/cast/data.ttl @prefix : . :iri :p :z . :str :p "string" . :fltdbl :p "-10.2E3" . :decimal :p "+33.3300" . :int :p "13" . :dT :p "2002-10-10T17:00:00Z" . :bool :p "true" . Named Graphs Query data-r2/cast/cast-flt.rq */ /* Testcase 258 */ query: << PREFIX : PREFIX rdf: PREFIX xsd: SELECT ?s WHERE { ?s :p ?v . FILTER(datatype(xsd:float(?v)) = xsd:float) . } >> OK /* Results data-r2/cast/cast-flt.srx */ /* -------------------------------------------------------- Cast to xsd:integer Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/cast/data.ttl @prefix : . :iri :p :z . :str :p "string" . :fltdbl :p "-10.2E3" . :decimal :p "+33.3300" . :int :p "13" . :dT :p "2002-10-10T17:00:00Z" . :bool :p "true" . Named Graphs Query data-r2/cast/cast-int.rq */ /* Testcase 259 */ query: << PREFIX : PREFIX rdf: PREFIX xsd: SELECT ?s WHERE { ?s :p ?v . FILTER(datatype(xsd:integer(?v)) = xsd:integer) . } >> OK /* Results data-r2/cast/cast-int.srx */ /* -------------------------------------------------------- Cast to xsd:string Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/cast/data.ttl @prefix : . :iri :p :z . :str :p "string" . :fltdbl :p "-10.2E3" . :decimal :p "+33.3300" . :int :p "13" . :dT :p "2002-10-10T17:00:00Z" . :bool :p "true" . Named Graphs Query data-r2/cast/cast-str.rq */ /* Testcase 260 */ query: << PREFIX : PREFIX rdf: PREFIX xsd: SELECT ?s WHERE { ?s :p ?v . FILTER(datatype(xsd:string(?v)) = xsd:string) . } >> OK /* Results data-r2/cast/cast-str.srx */ /* -------------------------------------------------------- dawg-construct-identity Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Graph equivalent result graph Default Graph data-r2/construct/data-ident.ttl @prefix foaf: . @prefix rdf: . @prefix rdfs: . _:alice rdf:type foaf:Person ; foaf:name "Alice" ; foaf:mbox ; foaf:knows _:bob ; . _:bob rdf:type foaf:Person ; foaf:name "Bob" ; foaf:knows _:alice ; foaf:mbox ; foaf:mbox ; . Named Graphs Query data-r2/construct/query-ident.rq */ /* Testcase 261 */ query: << PREFIX rdf: PREFIX foaf: CONSTRUCT { ?s ?p ?o . } WHERE { ?s ?p ?o . } >> OK /* Results data-r2/construct/result-ident.ttl */ /* -------------------------------------------------------- dawg-construct-subgraph Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Result subgraph of original graph Default Graph data-r2/construct/data-ident.ttl @prefix foaf: . @prefix rdf: . @prefix rdfs: . _:alice rdf:type foaf:Person ; foaf:name "Alice" ; foaf:mbox ; foaf:knows _:bob ; . _:bob rdf:type foaf:Person ; foaf:name "Bob" ; foaf:knows _:alice ; foaf:mbox ; foaf:mbox ; . Named Graphs Query data-r2/construct/query-subgraph.rq */ /* Testcase 262 */ query: << PREFIX rdf: PREFIX foaf: CONSTRUCT { ?s foaf:name ?o . } WHERE { ?s foaf:name ?o . } >> OK /* Results data-r2/construct/result-subgraph.ttl */ /* -------------------------------------------------------- dawg-construct-reification-1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Reification of the default graph Default Graph data-r2/construct/data-reif.ttl @prefix foaf: . @prefix rdf: . @prefix rdfs: . _:alice rdf:type foaf:Person ; foaf:name "Alice" ; foaf:mbox ; foaf:knows _:bob ; . _:bob rdf:type foaf:Person ; foaf:name "Bob" ; foaf:knows _:alice ; foaf:mbox ; . Named Graphs Query data-r2/construct/query-reif-1.rq */ /* Testcase 263 */ query: << PREFIX rdf: PREFIX foaf: CONSTRUCT { [ rdf:subject ?s ; rdf:predicate ?p ; rdf:object ?o ] . } WHERE { ?s ?p ?o . } >> OK /* Results data-r2/construct/result-reif.ttl */ /* -------------------------------------------------------- dawg-construct-reification-2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Reification of the default graph Default Graph data-r2/construct/data-reif.ttl @prefix foaf: . @prefix rdf: . @prefix rdfs: . _:alice rdf:type foaf:Person ; foaf:name "Alice" ; foaf:mbox ; foaf:knows _:bob ; . _:bob rdf:type foaf:Person ; foaf:name "Bob" ; foaf:knows _:alice ; foaf:mbox ; . Named Graphs Query data-r2/construct/query-reif-2.rq */ /* Testcase 264 */ query: << PREFIX rdf: PREFIX foaf: CONSTRUCT { _:a rdf:subject ?s ; rdf:predicate ?p ; rdf:object ?o . } WHERE { ?s ?p ?o . } >> OK /* Results data-r2/construct/result-reif.ttl */ /* -------------------------------------------------------- dawg-construct-optional Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Reification of the default graph Default Graph data-r2/construct/data-opt.ttl @prefix : . @prefix xsd: . :x :p :a . :x :p :b . :x :p :c . :x :p "1"^^xsd:integer . :a :q "2"^^xsd:integer . :a :r "2"^^xsd:integer . :b :q "2"^^xsd:integer . Named Graphs Query data-r2/construct/query-construct-optional.rq */ /* Testcase 265 */ query: << PREFIX : CONSTRUCT { ?x :p2 ?v } WHERE { ?x :p ?o . OPTIONAL {?o :q ?v } } >> OK /* Results data-r2/construct/result-construct-optional.ttl */ /* -------------------------------------------------------- dataset-01 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default dataset / Query: default dataset Default Graph Named Graphs Query data-r2/dataset/dataset-01.rq */ /* Testcase 266 */ query: << PREFIX : SELECT * FROM { ?s ?p ?o } >> OK /* Results data-r2/dataset/dataset-01.ttl */ /* -------------------------------------------------------- dataset-02 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: named dataset / Query: default dataset Default Graph Named Graphs Query data-r2/dataset/dataset-02.rq */ /* Testcase 267 */ query: << PREFIX : SELECT * FROM NAMED { ?s ?p ?o } >> OK /* Results data-r2/dataset/dataset-02.ttl */ /* -------------------------------------------------------- dataset-03 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: named dataset / Query: named dataset dataset Default Graph Named Graphs Query data-r2/dataset/dataset-03.rq */ /* Testcase 268 */ query: << PREFIX : SELECT * FROM NAMED { GRAPH ?g { ?s ?p ?o } } >> OK /* Results data-r2/dataset/dataset-03.ttl */ /* -------------------------------------------------------- dataset-04 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: named dataset / Query: default dataset Default Graph Named Graphs Query data-r2/dataset/dataset-04.rq */ /* Testcase 269 */ query: << PREFIX : SELECT * FROM { GRAPH ?g { ?s ?p ?o } } >> OK /* Results data-r2/dataset/dataset-04.ttl */ /* -------------------------------------------------------- dataset-05 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named / Query: default dataset Default Graph Named Graphs Query data-r2/dataset/dataset-05.rq */ /* Testcase 270 */ query: << PREFIX : SELECT * FROM FROM NAMED { ?s ?p ?o } >> OK /* Results data-r2/dataset/dataset-05.ttl */ /* -------------------------------------------------------- dataset-06 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named / Query: named dataset Default Graph Named Graphs Query data-r2/dataset/dataset-06.rq */ /* Testcase 271 */ query: << PREFIX : SELECT * FROM FROM NAMED { GRAPH ?g { ?s ?p ?o } } >> OK /* Results data-r2/dataset/dataset-06.ttl */ /* -------------------------------------------------------- dataset-07 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named / Query: all data by UNION Default Graph Named Graphs Query data-r2/dataset/dataset-07.rq */ /* Testcase 272 */ query: << PREFIX : SELECT * FROM FROM NAMED { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } >> OK /* Results data-r2/dataset/dataset-07.ttl */ /* -------------------------------------------------------- dataset-08 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named / Query: common subjects Default Graph Named Graphs Query data-r2/dataset/dataset-08.rq */ /* Testcase 273 */ query: << PREFIX : SELECT * FROM FROM NAMED { ?s ?p ?o GRAPH ?g { ?s ?q ?v } } >> OK /* Results data-r2/dataset/dataset-08.ttl */ /* -------------------------------------------------------- dataset-09 Query evaluation test Data: default and named (bnodes) / Query: common subjects Default Graph Named Graphs Query data-r2/dataset/dataset-09.rq */ /* Testcase 274 */ query: << PREFIX : SELECT * FROM FROM NAMED { ?s ?p ?o GRAPH ?g { ?s ?q ?v } } >> OK /* Results data-r2/dataset/dataset-09.ttl */ /* -------------------------------------------------------- dataset-09b Query evaluation test Approved by http://www.w3.org/2007/10/09-dawg-minutes.html Data: default and named (bnodes) / Query: common subjects Default Graph Named Graphs Query data-r2/dataset/dataset-09b.rq */ /* Testcase 275 */ query: << PREFIX : SELECT * FROM FROM NAMED { ?s ?p ?o GRAPH ?g { ?s ?q ?v } } >> OK /* Results data-r2/dataset/dataset-09.ttl */ /* -------------------------------------------------------- dataset-10 Query evaluation test Data: default and named (same data, with bnodes) / Query: common subjects Default Graph Named Graphs Query data-r2/dataset/dataset-10.rq */ /* Testcase 276 */ query: << PREFIX : SELECT * FROM FROM NAMED { ?s ?p ?o GRAPH ?g { ?s ?q ?v } } >> OK /* Results data-r2/dataset/dataset-10.ttl */ /* -------------------------------------------------------- dataset-10b Query evaluation test Approved by http://www.w3.org/2007/10/09-dawg-minutes.html Data: default and named (same data, with bnodes) / Query: common subjects Default Graph Named Graphs Query data-r2/dataset/dataset-10b.rq */ /* Testcase 277 */ query: << PREFIX : SELECT * FROM FROM NAMED { ?s ?p ?o GRAPH ?g { ?s ?q ?v } } >> OK /* Results data-r2/dataset/dataset-10.ttl */ /* -------------------------------------------------------- dataset-11 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Data: default and named (several) / Query: get everything Default Graph Named Graphs Query data-r2/dataset/dataset-11.rq */ /* Testcase 278 */ query: << PREFIX : SELECT * FROM FROM NAMED FROM NAMED FROM NAMED FROM NAMED { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } >> OK /* Results data-r2/dataset/dataset-11.ttl */ /* -------------------------------------------------------- dataset-12 Query evaluation test Data: default (several) and named (several) / Query: get everything Default Graph Named Graphs Query data-r2/dataset/dataset-12.rq */ /* Testcase 279 */ query: << PREFIX : SELECT * FROM FROM FROM FROM FROM NAMED FROM NAMED FROM NAMED FROM NAMED { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } >> OK /* Results data-r2/dataset/dataset-12.ttl */ /* -------------------------------------------------------- dataset-12b Query evaluation test Approved by http://www.w3.org/2007/10/09-dawg-minutes.html Data: default (several) and named (several) / Query: get everything Default Graph Named Graphs Query data-r2/dataset/dataset-12b.rq */ /* Testcase 280 */ query: << PREFIX : SELECT * FROM FROM FROM FROM FROM NAMED FROM NAMED FROM NAMED FROM NAMED { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } >> OK /* Results data-r2/dataset/dataset-12.ttl */ /* -------------------------------------------------------- Numbers: Distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-num.ttl @prefix : . @prefix xsd: . :x1 :p1 "1"^^xsd:integer . :x1 :p2 "1"^^xsd:integer . :x2 :p1 "1"^^xsd:integer . :x2 :p2 "1"^^xsd:integer . :x3 :p1 "01"^^xsd:integer . :x3 :p2 "01"^^xsd:integer . :x4 :p1 "+1"^^xsd:integer . :x4 :p2 "+1"^^xsd:integer . :y1 :p1 "1.0"^^xsd:decimal . :y1 :p2 "1.0"^^xsd:decimal . :y2 :p1 "+1.0"^^xsd:decimal . :y2 :p2 "+1.0"^^xsd:decimal . :y3 :p1 "01.0"^^xsd:decimal . :y3 :p2 "01.0"^^xsd:decimal . :z1 :p1 "1.0e0"^^xsd:double . :z1 :p2 "1.0e0"^^xsd:double . :z2 :p1 "1.0e0"^^xsd:double . :z2 :p2 "1.0e0"^^xsd:double . :z3 :p1 "1.3e0"^^xsd:double . :z3 :p2 "1.3e0"^^xsd:double . :z4 :p1 "1.3e0"^^xsd:double . :z5 :p1 "1.3e0"^^xsd:float . Named Graphs Query data-r2/distinct/distinct-1.rq */ /* Testcase 281 */ query: << PREFIX : PREFIX xsd: SELECT DISTINCT ?v { ?x ?p ?v . } >> OK /* Results data-r2/distinct/distinct-num.srx */ /* -------------------------------------------------------- Strings: Distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-str.ttl @prefix : . @prefix xsd: . :x1 :p "abc" . :x1 :q "abc" . :x2 :p "abc"@en . :x2 :q "abc"@en . :x3 :p "ABC" . :x3 :q "ABC" . :x4 :p "ABC"@en . :x4 :q "ABC"@en . :x5 :p "abc"^^xsd:string . :x5 :q "abc"^^xsd:string . :x6 :p "ABC"^^xsd:string . :x6 :q "ABC"^^xsd:string . :x7 :p "" . :x7 :q "" . :x8 :p ""@en . :x8 :q ""@en . :x9 :p ""^^xsd:string . :x9 :q ""^^xsd:string . Named Graphs Query data-r2/distinct/distinct-1.rq */ /* Testcase 282 */ query: << PREFIX : PREFIX xsd: SELECT DISTINCT ?v { ?x ?p ?v . } >> OK /* Results data-r2/distinct/distinct-str.srx */ /* -------------------------------------------------------- Nodes: Distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-node.ttl @prefix : . @prefix xsd: . :x1 :p1 :z1 . :x1 :p1 _:a . :x1 :p2 :z1 . :x1 :p2 _:a . Named Graphs Query data-r2/distinct/distinct-1.rq */ /* Testcase 283 */ query: << PREFIX : PREFIX xsd: SELECT DISTINCT ?v { ?x ?p ?v . } >> OK /* Results data-r2/distinct/distinct-node.srx */ /* -------------------------------------------------------- Opt: Distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-opt.ttl @prefix : . @prefix xsd: . :x1 :p1 :z1 . :x1 :p1 :z2 . :x1 :p1 _:a . :x1 :p2 :z1 . :x1 :p2 :z2 . :x1 :p2 _:a . :z1 :q :r . _:a :q :s . Named Graphs Query data-r2/distinct/distinct-2.rq */ /* Testcase 284 */ query: << PREFIX : PREFIX xsd: SELECT DISTINCT ?v { :x1 ?p ?o OPTIONAL { ?o :q ?v } } >> OK /* Results data-r2/distinct/distinct-opt.srx */ /* -------------------------------------------------------- All: Distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-all.ttl ## data-num.ttl @prefix : . @prefix xsd: . :x1 :p1 "1"^^xsd:integer . :x1 :p2 "1"^^xsd:integer . :x2 :p1 "1"^^xsd:integer . :x2 :p2 "1"^^xsd:integer . :x3 :p1 "01"^^xsd:integer . :x3 :p2 "01"^^xsd:integer . :x4 :p1 "+1"^^xsd:integer . :x4 :p2 "+1"^^xsd:integer . :y1 :p1 "1.0"^^xsd:decimal . :y1 :p2 "1.0"^^xsd:decimal . :y2 :p1 "+1.0"^^xsd:decimal . :y2 :p2 "+1.0"^^xsd:decimal . :y3 :p1 "01.0"^^xsd:decimal . :y3 :p2 "01.0"^^xsd:decimal . :z1 :p1 "1.0e0"^^xsd:double . :z1 :p2 "1.0e0"^^xsd:double . :z2 :p1 "1.0e0"^^xsd:double . :z2 :p2 "1.0e0"^^xsd:double . :z3 :p1 "1.3e0"^^xsd:double . :z3 :p2 "1.3e0"^^xsd:double . :z4 :p1 "1.3e0"^^xsd:double . :z5 :p1 "1.3e0"^^xsd:float . ## data-str.ttl :x1 :p "abc" . :x1 :q "abc" . :x2 :p "abc"@en . :x2 :q "abc"@en . :x3 :p "ABC" . :x3 :q "ABC" . :x4 :p "ABC"@en . :x4 :q "ABC"@en . :x5 :p "abc"^^xsd:string . :x5 :q "abc"^^xsd:string . :x6 :p "ABC"^^xsd:string . :x6 :q "ABC"^^xsd:string . :x7 :p "" . :x7 :q "" . :x8 :p ""@en . :x8 :q ""@en . :x9 :p ""^^xsd:string . :x9 :q ""^^xsd:string . ## data-node.ttl :x1 :p1 :z1 . :x1 :p1 _:a . :x1 :p2 :z1 . :x1 :p2 _:a . Named Graphs Query data-r2/distinct/distinct-1.rq */ /* Testcase 285 */ query: << PREFIX : PREFIX xsd: SELECT DISTINCT ?v { ?x ?p ?v . } >> OK /* Results data-r2/distinct/distinct-all.srx */ /* -------------------------------------------------------- SELECT DISTINCT * Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html Default Graph data-r2/distinct/data-star.ttl @prefix : . @prefix xsd: . :x1 :p "abc" . :x1 :q "abc" . :x2 :p "abc" . Named Graphs Query data-r2/distinct/distinct-star-1.rq */ /* Testcase 286 */ query: << PREFIX : PREFIX xsd: SELECT DISTINCT * WHERE { { ?s :p ?o } UNION { ?s :q ?o } } >> OK /* Results data-r2/distinct/distinct-star-1.srx */ /* -------------------------------------------------------- Numbers: No distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-num.ttl @prefix : . @prefix xsd: . :x1 :p1 "1"^^xsd:integer . :x1 :p2 "1"^^xsd:integer . :x2 :p1 "1"^^xsd:integer . :x2 :p2 "1"^^xsd:integer . :x3 :p1 "01"^^xsd:integer . :x3 :p2 "01"^^xsd:integer . :x4 :p1 "+1"^^xsd:integer . :x4 :p2 "+1"^^xsd:integer . :y1 :p1 "1.0"^^xsd:decimal . :y1 :p2 "1.0"^^xsd:decimal . :y2 :p1 "+1.0"^^xsd:decimal . :y2 :p2 "+1.0"^^xsd:decimal . :y3 :p1 "01.0"^^xsd:decimal . :y3 :p2 "01.0"^^xsd:decimal . :z1 :p1 "1.0e0"^^xsd:double . :z1 :p2 "1.0e0"^^xsd:double . :z2 :p1 "1.0e0"^^xsd:double . :z2 :p2 "1.0e0"^^xsd:double . :z3 :p1 "1.3e0"^^xsd:double . :z3 :p2 "1.3e0"^^xsd:double . :z4 :p1 "1.3e0"^^xsd:double . :z5 :p1 "1.3e0"^^xsd:float . Named Graphs Query data-r2/distinct/no-distinct-1.rq */ /* Testcase 287 */ query: << SELECT ?v { ?x ?p ?v . } >> OK /* Results data-r2/distinct/no-distinct-num.srx */ /* -------------------------------------------------------- Strings: No distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-str.ttl @prefix : . @prefix xsd: . :x1 :p "abc" . :x1 :q "abc" . :x2 :p "abc"@en . :x2 :q "abc"@en . :x3 :p "ABC" . :x3 :q "ABC" . :x4 :p "ABC"@en . :x4 :q "ABC"@en . :x5 :p "abc"^^xsd:string . :x5 :q "abc"^^xsd:string . :x6 :p "ABC"^^xsd:string . :x6 :q "ABC"^^xsd:string . :x7 :p "" . :x7 :q "" . :x8 :p ""@en . :x8 :q ""@en . :x9 :p ""^^xsd:string . :x9 :q ""^^xsd:string . Named Graphs Query data-r2/distinct/no-distinct-1.rq */ /* Testcase 288 */ query: << SELECT ?v { ?x ?p ?v . } >> OK /* Results data-r2/distinct/no-distinct-str.srx */ /* -------------------------------------------------------- Nodes: No distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-node.ttl @prefix : . @prefix xsd: . :x1 :p1 :z1 . :x1 :p1 _:a . :x1 :p2 :z1 . :x1 :p2 _:a . Named Graphs Query data-r2/distinct/no-distinct-1.rq */ /* Testcase 289 */ query: << SELECT ?v { ?x ?p ?v . } >> OK /* Results data-r2/distinct/no-distinct-node.srx */ /* -------------------------------------------------------- Opt: No distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-opt.ttl @prefix : . @prefix xsd: . :x1 :p1 :z1 . :x1 :p1 :z2 . :x1 :p1 _:a . :x1 :p2 :z1 . :x1 :p2 :z2 . :x1 :p2 _:a . :z1 :q :r . _:a :q :s . Named Graphs Query data-r2/distinct/no-distinct-2.rq */ /* Testcase 290 */ query: << PREFIX : PREFIX xsd: SELECT ?v { :x1 ?p ?o OPTIONAL { ?o :q ?v } } >> OK /* Results data-r2/distinct/no-distinct-opt.srx */ /* -------------------------------------------------------- All: No distinct Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Default Graph data-r2/distinct/data-all.ttl ## data-num.ttl @prefix : . @prefix xsd: . :x1 :p1 "1"^^xsd:integer . :x1 :p2 "1"^^xsd:integer . :x2 :p1 "1"^^xsd:integer . :x2 :p2 "1"^^xsd:integer . :x3 :p1 "01"^^xsd:integer . :x3 :p2 "01"^^xsd:integer . :x4 :p1 "+1"^^xsd:integer . :x4 :p2 "+1"^^xsd:integer . :y1 :p1 "1.0"^^xsd:decimal . :y1 :p2 "1.0"^^xsd:decimal . :y2 :p1 "+1.0"^^xsd:decimal . :y2 :p2 "+1.0"^^xsd:decimal . :y3 :p1 "01.0"^^xsd:decimal . :y3 :p2 "01.0"^^xsd:decimal . :z1 :p1 "1.0e0"^^xsd:double . :z1 :p2 "1.0e0"^^xsd:double . :z2 :p1 "1.0e0"^^xsd:double . :z2 :p2 "1.0e0"^^xsd:double . :z3 :p1 "1.3e0"^^xsd:double . :z3 :p2 "1.3e0"^^xsd:double . :z4 :p1 "1.3e0"^^xsd:double . :z5 :p1 "1.3e0"^^xsd:float . ## data-str.ttl :x1 :p "abc" . :x1 :q "abc" . :x2 :p "abc"@en . :x2 :q "abc"@en . :x3 :p "ABC" . :x3 :q "ABC" . :x4 :p "ABC"@en . :x4 :q "ABC"@en . :x5 :p "abc"^^xsd:string . :x5 :q "abc"^^xsd:string . :x6 :p "ABC"^^xsd:string . :x6 :q "ABC"^^xsd:string . :x7 :p "" . :x7 :q "" . :x8 :p ""@en . :x8 :q ""@en . :x9 :p ""^^xsd:string . :x9 :q ""^^xsd:string . ## data-node.ttl :x1 :p1 :z1 . :x1 :p1 _:a . :x1 :p2 :z1 . :x1 :p2 _:a . Named Graphs Query data-r2/distinct/no-distinct-1.rq */ /* Testcase 291 */ query: << SELECT ?v { ?x ?p ?v . } >> OK /* Results data-r2/distinct/no-distinct-all.srx */ /* -------------------------------------------------------- datatype-1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/q-datatype-1.rq */ /* Testcase 292 */ query: << PREFIX xsd: PREFIX : SELECT ?x ?v WHERE { ?x :p ?v . FILTER ( datatype(?v) = xsd:double ) . } >> OK /* Results data-r2/expr-builtin/result-datatype-1.ttl */ /* -------------------------------------------------------- datatype-2 : Literals with a datatype Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 updated from original test case: eliminated ordering from test Default Graph data-r2/expr-builtin/data-builtin-2.ttl @prefix : . @prefix xsd: . :x1 :p "string" . :x2 :p "string"^^xsd:string . :x3 :p "string"@en . :x4 :p "lex"^^:unknownType . :x5 :p "1234"^^xsd:integer . :x6 :p . :x7 :p _:bNode . Named Graphs Query data-r2/expr-builtin/q-datatype-2.rq */ /* Testcase 293 */ query: << # Which literals have a datatype and which are errors. PREFIX : PREFIX xsd: SELECT ?x { ?x :p ?v . FILTER( datatype(?v) != ) } >> OK /* Results data-r2/expr-builtin/result-datatype-2.srx */ /* -------------------------------------------------------- datatype-3 : Literals with a datatype of xsd:string Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 updated from original test case: eliminated ordering from test Default Graph data-r2/expr-builtin/data-builtin-2.ttl @prefix : . @prefix xsd: . :x1 :p "string" . :x2 :p "string"^^xsd:string . :x3 :p "string"@en . :x4 :p "lex"^^:unknownType . :x5 :p "1234"^^xsd:integer . :x6 :p . :x7 :p _:bNode . Named Graphs Query data-r2/expr-builtin/q-datatype-3.rq */ /* Testcase 294 */ query: << # Whichliterals have xsd:string as a datatype PREFIX : PREFIX xsd: SELECT ?x { ?x :p ?v . FILTER( datatype(?v) = xsd:string ) } >> OK /* Results data-r2/expr-builtin/result-datatype-3.srx */ /* -------------------------------------------------------- isBlank-1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/q-blank-1.rq */ /* Testcase 295 */ query: << PREFIX xsd: PREFIX : SELECT ?x ?v WHERE { ?x :p ?v . FILTER isBlank(?v) . } >> OK /* Results data-r2/expr-builtin/result-blank-1.ttl */ /* -------------------------------------------------------- isIRI-1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/q-iri-1.rq */ /* Testcase 296 */ query: << PREFIX xsd: PREFIX : SELECT ?x ?v WHERE { ?x :p ?v . FILTER isIRI(?v) . } >> OK /* Results data-r2/expr-builtin/result-iri-1.ttl */ /* -------------------------------------------------------- isLiteral Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html Default Graph data-r2/expr-builtin/data-builtin-2.ttl @prefix : . @prefix xsd: . :x1 :p "string" . :x2 :p "string"^^xsd:string . :x3 :p "string"@en . :x4 :p "lex"^^:unknownType . :x5 :p "1234"^^xsd:integer . :x6 :p . :x7 :p _:bNode . Named Graphs Query data-r2/expr-builtin/q-isliteral-1.rq */ /* Testcase 297 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p ?v . FILTER isLiteral(?v) . } >> OK /* Results data-r2/expr-builtin/result-isliteral-1.ttl */ /* -------------------------------------------------------- isURI-1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/q-uri-1.rq */ /* Testcase 298 */ query: << PREFIX xsd: PREFIX : SELECT ?x ?v WHERE { ?x :p ?v . FILTER isURI(?v) . } >> OK /* Results data-r2/expr-builtin/result-uri-1.ttl */ /* -------------------------------------------------------- lang-1 : Literals with a lang tag of some kind Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 updated from original test case: eliminated ordering from test Default Graph data-r2/expr-builtin/data-builtin-2.ttl @prefix : . @prefix xsd: . :x1 :p "string" . :x2 :p "string"^^xsd:string . :x3 :p "string"@en . :x4 :p "lex"^^:unknownType . :x5 :p "1234"^^xsd:integer . :x6 :p . :x7 :p _:bNode . Named Graphs Query data-r2/expr-builtin/q-lang-1.rq */ /* Testcase 299 */ query: << # Test which things have a lang tag of some form. PREFIX : PREFIX xsd: SELECT ?x { ?x :p ?v . FILTER ( lang(?v) != '@NotALangTag@' ) } >> OK /* Results data-r2/expr-builtin/result-lang-1.srx */ /* -------------------------------------------------------- lang-2 : Literals with a lang tag of '' Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 updated from original test case: eliminated ordering from test Default Graph data-r2/expr-builtin/data-builtin-2.ttl @prefix : . @prefix xsd: . :x1 :p "string" . :x2 :p "string"^^xsd:string . :x3 :p "string"@en . :x4 :p "lex"^^:unknownType . :x5 :p "1234"^^xsd:integer . :x6 :p . :x7 :p _:bNode . Named Graphs Query data-r2/expr-builtin/q-lang-2.rq */ /* Testcase 300 */ query: << PREFIX : PREFIX xsd: SELECT ?x { ?x :p ?v . FILTER ( lang(?v) = '' ) } >> OK /* Results data-r2/expr-builtin/result-lang-2.srx */ /* -------------------------------------------------------- lang-3 : Graph matching with lang tag being a different case Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 updated from original test case: eliminated ordering from test Default Graph data-r2/expr-builtin/data-builtin-2.ttl @prefix : . @prefix xsd: . :x1 :p "string" . :x2 :p "string"^^xsd:string . :x3 :p "string"@en . :x4 :p "lex"^^:unknownType . :x5 :p "1234"^^xsd:integer . :x6 :p . :x7 :p _:bNode . Named Graphs Query data-r2/expr-builtin/q-lang-3.rq */ /* Testcase 301 */ query: << PREFIX : PREFIX xsd: SELECT ?x { ?x :p "string"@EN } >> OK /* Results data-r2/expr-builtin/result-lang-3.srx */ /* -------------------------------------------------------- LangMatches-1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 langMatches(lang(?v), 'en-GB') matches 'abc'@en-gb Default Graph data-r2/expr-builtin/data-langMatches.ttl @prefix : . :x :p1 "abc" . :x :p2 . :x :p3 "abc"@en . :x :p4 "abc"@en-gb . :x :p5 "abc"@fr . Named Graphs Query data-r2/expr-builtin/q-langMatches-1.rq */ /* Testcase 302 */ query: << PREFIX : SELECT * { :x ?p ?v . FILTER langMatches(lang(?v), "en-GB") . } >> OK /* Results data-r2/expr-builtin/result-langMatches-1.ttl */ /* -------------------------------------------------------- LangMatches-2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 langMatches(lang(?v), 'en') matches 'abc'@en, 'abc'@en-gb Default Graph data-r2/expr-builtin/data-langMatches.ttl @prefix : . :x :p1 "abc" . :x :p2 . :x :p3 "abc"@en . :x :p4 "abc"@en-gb . :x :p5 "abc"@fr . Named Graphs Query data-r2/expr-builtin/q-langMatches-2.rq */ /* Testcase 303 */ query: << PREFIX : SELECT * { :x ?p ?v . FILTER langMatches(lang(?v), "en") . } >> OK /* Results data-r2/expr-builtin/result-langMatches-2.ttl */ /* -------------------------------------------------------- LangMatches-3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 langMatches(lang(?v), '*') matches 'abc'@en, 'abc'@en-gb, 'abc'@fr Default Graph data-r2/expr-builtin/data-langMatches.ttl @prefix : . :x :p1 "abc" . :x :p2 . :x :p3 "abc"@en . :x :p4 "abc"@en-gb . :x :p5 "abc"@fr . Named Graphs Query data-r2/expr-builtin/q-langMatches-3.rq */ /* Testcase 304 */ query: << PREFIX : SELECT * { :x ?p ?v . FILTER langMatches(lang(?v), "*") . } >> OK /* Results data-r2/expr-builtin/result-langMatches-3.ttl */ /* -------------------------------------------------------- LangMatches-4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 ! langMatches(lang(?v), '*') matches 'abc' Default Graph data-r2/expr-builtin/data-langMatches.ttl @prefix : . :x :p1 "abc" . :x :p2 . :x :p3 "abc"@en . :x :p4 "abc"@en-gb . :x :p5 "abc"@fr . Named Graphs Query data-r2/expr-builtin/q-langMatches-4.rq */ /* Testcase 305 */ query: << PREFIX : SELECT * { :x ?p ?v . FILTER (! langMatches(lang(?v), "*")) . } >> OK /* Results data-r2/expr-builtin/result-langMatches-4.ttl */ /* -------------------------------------------------------- LangMatches-basic Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html the basic range 'de-de' does not match 'de-Latn-de' Default Graph data-r2/expr-builtin/data-langMatches-de.ttl # data-langMatches-de.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix : . :x :p3 "abc"@de . :x :p4 "abc"@de-de . :x :p5 "abc"@de-latn-de . Named Graphs Query data-r2/expr-builtin/q-langMatches-de-de.rq */ /* Testcase 306 */ query: << # q-langMatches-de-de.rq # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX : SELECT * { :x ?p ?v . FILTER langMatches(lang(?v), "de-de") . } >> OK /* Results data-r2/expr-builtin/result-langMatches-de.ttl */ /* -------------------------------------------------------- str-1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/q-str-1.rq */ /* Testcase 307 */ query: << PREFIX xsd: PREFIX : SELECT ?x ?v WHERE { ?x :p ?v . FILTER ( str(?v) = "1" ) . } >> OK /* Results data-r2/expr-builtin/result-str-1.ttl */ /* -------------------------------------------------------- str-2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/q-str-2.rq */ /* Testcase 308 */ query: << PREFIX xsd: PREFIX : SELECT ?x ?v WHERE { ?x :p ?v . FILTER ( str(?v) = "01" ) . } >> OK /* Results data-r2/expr-builtin/result-str-2.ttl */ /* -------------------------------------------------------- str-3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/q-str-3.rq */ /* Testcase 309 */ query: << PREFIX xsd: PREFIX : SELECT ?x ?v WHERE { ?x :p ?v . FILTER ( str(?v) = "zzz" ) . } >> OK /* Results data-r2/expr-builtin/result-str-3.ttl */ /* -------------------------------------------------------- str-4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/q-str-4.rq */ /* Testcase 310 */ query: << PREFIX xsd: PREFIX : SELECT ?x ?v WHERE { ?x :p ?v . FILTER ( str(?v) = "" ) . } >> OK /* Results data-r2/expr-builtin/result-str-4.ttl */ /* -------------------------------------------------------- lang-case-insensitive-eq Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html 'xyz'@en = 'xyz'@EN Default Graph data-r2/expr-builtin/lang-case-sensitivity.ttl # Data: minimal test of plain literal language sensitivity # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix : . :x2 :p "xyz"@en . :x3 :p "xyz"@EN . Named Graphs Query data-r2/expr-builtin/lang-case-sensitivity-eq.rq */ /* Testcase 311 */ query: << # Test: 'xyz'@en = 'xyz'@EN # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX : SELECT * { ?x1 :p ?v1 . ?x2 :p ?v2 . FILTER ( ?v1 = ?v2 ) } >> OK /* Results data-r2/expr-builtin/lang-case-insensitive-eq.srx */ /* -------------------------------------------------------- lang-case-insensitive-ne Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html 'xyz'@en != 'xyz'@EN Default Graph data-r2/expr-builtin/lang-case-sensitivity.ttl # Data: minimal test of plain literal language sensitivity # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix : . :x2 :p "xyz"@en . :x3 :p "xyz"@EN . Named Graphs Query data-r2/expr-builtin/lang-case-sensitivity-ne.rq */ /* Testcase 312 */ query: << # Test: 'xyz'@en != 'xyz'@EN # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX : PREFIX xsd: SELECT * { ?x1 :p ?v1 . ?x2 :p ?v2 . FILTER ( ?v1 != ?v2 ) } >> OK /* Results data-r2/expr-builtin/lang-case-insensitive-ne.srx */ /* -------------------------------------------------------- sameTerm-eq Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html sameTerm(?v1, ?v2) && ?v1 = ?v2 Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/sameTerm-eq.rq */ /* Testcase 313 */ query: << # Test: sameTerm and eq # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX : SELECT * { ?x1 :p ?v1 . ?x2 :p ?v2 . FILTER ( sameTerm(?v1, ?v2) && ?v1 = ?v2 ) } >> OK /* Results data-r2/expr-builtin/result-sameTerm-eq.ttl */ /* -------------------------------------------------------- sameTerm-not-eq Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html !sameTerm(?v1, ?v2) && ?v1 = ?v2 Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/sameTerm-not-eq.rq */ /* Testcase 314 */ query: << # Test: !sameTerm and eq # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX : SELECT * { ?x1 :p ?v1 . ?x2 :p ?v2 . FILTER ( !sameTerm(?v1, ?v2) && ?v1 = ?v2 ) } >> OK /* Results data-r2/expr-builtin/result-sameTerm-not-eq.ttl */ /* -------------------------------------------------------- sameTerm-simple Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html sameTerm(?v1, ?v2) Default Graph data-r2/expr-builtin/data-builtin-1.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xp2 :p "" . :xu :p :z . :xb :p _:a . Named Graphs Query data-r2/expr-builtin/sameTerm.rq */ /* Testcase 315 */ query: << # Test: sameTerm # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX : SELECT * { ?x1 :p ?v1 . ?x2 :p ?v2 . FILTER sameTerm(?v1, ?v2) } >> OK /* Results data-r2/expr-builtin/result-sameTerm.ttl */ /* -------------------------------------------------------- Equality 1-1 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html = in FILTER expressions is value equality Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-1.rq */ /* Testcase 316 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p ?v . FILTER ( ?v = 1 ) . } >> OK /* Results data-r2/expr-equals/result-eq-1.ttl */ /* -------------------------------------------------------- Equality 1-2 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html = in FILTER expressions is value equality Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-2.rq */ /* Testcase 317 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p ?v . FILTER ( ?v = 1.0e0 ) . } >> OK /* Results data-r2/expr-equals/result-eq-2.ttl */ /* -------------------------------------------------------- Equality - 2 var - test equals Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html = in FILTER is value equality Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq2-1.rq */ /* Testcase 318 */ query: << PREFIX xsd: PREFIX : SELECT ?v1 ?v2 WHERE { ?x1 :p ?v1 . ?x2 :p ?v2 . FILTER ( ?v1 = ?v2 ) . } >> OK /* Results data-r2/expr-equals/result-eq2-1.ttl */ /* -------------------------------------------------------- Equality - 2 var - test not equals Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html != in FILTER is value inequality Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq2-1.rq */ /* Testcase 319 */ query: << PREFIX xsd: PREFIX : SELECT ?v1 ?v2 WHERE { ?x1 :p ?v1 . ?x2 :p ?v2 . FILTER ( ?v1 = ?v2 ) . } >> OK /* Results data-r2/expr-equals/result-eq2-1.ttl */ /* -------------------------------------------------------- Equality 1-3 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html Numerics are not value-equivalent to plain literals Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-3.rq */ /* Testcase 320 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p ?v . FILTER ( ?v = "1" ) . } >> OK /* Results data-r2/expr-equals/result-eq-3.ttl */ /* -------------------------------------------------------- Equality 1-4 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html = compares plain literals and unknown types with the same lexical form as false Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-4.rq */ /* Testcase 321 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p ?v . FILTER ( ?v = "zzz" ) . } >> OK /* Results data-r2/expr-equals/result-eq-4.ttl */ /* -------------------------------------------------------- Equality 1-5 Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html = on IRI terms Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-5.rq */ /* Testcase 322 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p ?v . FILTER ( ?v = :z ) . } >> OK /* Results data-r2/expr-equals/result-eq-5.ttl */ /* -------------------------------------------------------- Equality 1-1 -- graph Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html Graph pattern matching matches exact terms, not values Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-graph-1.rq */ /* Testcase 323 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p 1 . } >> OK /* Results data-r2/expr-equals/result-eq-graph-1.ttl */ /* -------------------------------------------------------- Equality 1-2 -- graph Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html Graph pattern matching matches exact terms, not values Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-graph-2.rq */ /* Testcase 324 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p 1.0e0 . } >> OK /* Results data-r2/expr-equals/result-eq-graph-2.ttl */ /* -------------------------------------------------------- Equality 1-3 -- graph Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html Graph pattern matching matches exact terms, not values Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-graph-3.rq */ /* Testcase 325 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p "1" } >> OK /* Results data-r2/expr-equals/result-eq-graph-3.ttl */ /* -------------------------------------------------------- Equality 1-4 -- graph Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html Graph pattern matching matches exact terms, not values Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-graph-4.rq */ /* Testcase 326 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p "zzz" . } >> OK /* Results data-r2/expr-equals/result-eq-graph-4.ttl */ /* -------------------------------------------------------- Equality 1-5 -- graph Query evaluation test Approved by http://www.w3.org/2007/06/19-dawg-minutes.html Graph pattern matching matches exact terms, not values Default Graph data-r2/expr-equals/data-eq.ttl @prefix : . @prefix xsd: . :xi1 :p "1"^^xsd:integer . :xi2 :p "1"^^xsd:integer . :xi3 :p "01"^^xsd:integer . :xd1 :p "1.0e0"^^xsd:double . :xd2 :p "1.0"^^xsd:double . :xd3 :p "1"^^xsd:double . ## :xdec1 :p "1.0"^^xsd:decimal . ## :xdec2 :p "1"^^xsd:decimal . ## :xdec3 :p "01"^^xsd:decimal . :xt1 :p "zzz"^^:myType . :xp1 :p "zzz" . :xp2 :p "1" . :xu :p :z . #:xb :p _:a . Named Graphs Query data-r2/expr-equals/query-eq-graph-5.rq */ /* Testcase 327 */ query: << PREFIX xsd: PREFIX : SELECT ?x WHERE { ?x :p ?v . FILTER ( ?v = :z ) . } >> OK /* Results data-r2/expr-equals/result-eq-graph-5.ttl */ /* -------------------------------------------------------- Greater-than or equals Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html >= in FILTER expressions Default Graph data-r2/expr-ops/data.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :p "3"^^xsd:integer . :x4 :p "4"^^xsd:integer . Named Graphs Query data-r2/expr-ops/query-ge-1.rq */ /* Testcase 328 */ query: << PREFIX : SELECT ?s WHERE { ?s :p ?o . FILTER(?o >= 3) . } >> OK /* Results data-r2/expr-ops/result-ge-1.srx */ /* -------------------------------------------------------- Less-than or equals Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html <= in FILTER expressions Default Graph data-r2/expr-ops/data.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :p "3"^^xsd:integer . :x4 :p "4"^^xsd:integer . Named Graphs Query data-r2/expr-ops/query-le-1.rq */ /* Testcase 329 */ query: << PREFIX : SELECT ?s WHERE { ?s :p ?o . FILTER(?o <= 2) . } >> OK /* Results data-r2/expr-ops/result-le-1.srx */ /* -------------------------------------------------------- Subtraction Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html A - B in FILTER expressions Default Graph data-r2/expr-ops/data.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :p "3"^^xsd:integer . :x4 :p "4"^^xsd:integer . Named Graphs Query data-r2/expr-ops/query-minus-1.rq */ /* Testcase 330 */ query: << PREFIX : SELECT ?s WHERE { ?s :p ?o . ?s2 :p ?o2 . FILTER(?o - ?o2 = 3) . } >> OK /* Results data-r2/expr-ops/result-minus-1.srx */ /* -------------------------------------------------------- Multiplication Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html A * B in FILTER expressions Default Graph data-r2/expr-ops/data.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :p "3"^^xsd:integer . :x4 :p "4"^^xsd:integer . Named Graphs Query data-r2/expr-ops/query-mul-1.rq */ /* Testcase 331 */ query: << PREFIX : SELECT ?s WHERE { ?s :p ?o . ?s2 :p ?o2 . FILTER(?o * ?o2 = 4) . } >> OK /* Results data-r2/expr-ops/result-mul-1.srx */ /* -------------------------------------------------------- Addition Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html A + B in FILTER expressions Default Graph data-r2/expr-ops/data.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :p "3"^^xsd:integer . :x4 :p "4"^^xsd:integer . Named Graphs Query data-r2/expr-ops/query-plus-1.rq */ /* Testcase 332 */ query: << PREFIX : SELECT ?s WHERE { ?s :p ?o . ?s2 :p ?o2 . FILTER(?o + ?o2 = 3) . } >> OK /* Results data-r2/expr-ops/result-plus-1.srx */ /* -------------------------------------------------------- Unary Minus Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html -A in FILTER expressions Default Graph data-r2/expr-ops/data.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :p "3"^^xsd:integer . :x4 :p "4"^^xsd:integer . Named Graphs Query data-r2/expr-ops/query-unminus-1.rq */ /* Testcase 333 */ query: << PREFIX : SELECT ?s WHERE { ?s :p ?o . FILTER(-?o = -2) . } >> OK /* Results data-r2/expr-ops/result-unminus-1.srx */ /* -------------------------------------------------------- Unary Plusn Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html +A in FILTER expressions Default Graph data-r2/expr-ops/data.ttl @prefix : . @prefix xsd: . :x1 :p "1"^^xsd:integer . :x2 :p "2"^^xsd:integer . :x3 :p "3"^^xsd:integer . :x4 :p "4"^^xsd:integer . Named Graphs Query data-r2/expr-ops/query-unplus-1.rq */ /* Testcase 334 */ query: << PREFIX : SELECT ?s WHERE { ?s :p ?o . FILTER(?o = +3) . } >> OK /* Results data-r2/expr-ops/result-unplus-1.srx */ /* -------------------------------------------------------- graph-01 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default graph / Query: default graph Default Graph data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-01.rq */ /* Testcase 335 */ query: << PREFIX : SELECT * { ?s ?p ?o } >> OK /* Results data-r2/graph/graph-01.ttl */ /* -------------------------------------------------------- graph-02 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: named graph / Query: default graph Default Graph http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-02.rq */ /* Testcase 336 */ query: << PREFIX : SELECT * { ?s ?p ?o } >> OK /* Results data-r2/graph/graph-02.ttl */ /* -------------------------------------------------------- graph-03 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: named graph / Query: named graph graph Default Graph http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-03.rq */ /* Testcase 337 */ query: << PREFIX : SELECT * { GRAPH ?g { ?s ?p ?o } } >> OK /* Results data-r2/graph/graph-03.ttl */ /* -------------------------------------------------------- graph-04 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: named graph / Query: default graph Default Graph data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-04.rq */ /* Testcase 338 */ query: << PREFIX : SELECT * { GRAPH ?g { ?s ?p ?o } } >> OK /* Results data-r2/graph/graph-04.ttl */ /* -------------------------------------------------------- graph-05 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named / Query: default graph Default Graph data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-05.rq */ /* Testcase 339 */ query: << PREFIX : SELECT * { ?s ?p ?o } >> OK /* Results data-r2/graph/graph-05.ttl */ /* -------------------------------------------------------- graph-06 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named / Query: named graph Default Graph data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-06.rq */ /* Testcase 340 */ query: << PREFIX : SELECT * { GRAPH ?g { ?s ?p ?o } } >> OK /* Results data-r2/graph/graph-06.ttl */ /* -------------------------------------------------------- graph-07 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named / Query: all data by UNION Default Graph data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-07.rq */ /* Testcase 341 */ query: << PREFIX : SELECT * { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } >> OK /* Results data-r2/graph/graph-07.ttl */ /* -------------------------------------------------------- graph-08 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named / Query: common subjects Default Graph data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-08.rq */ /* Testcase 342 */ query: << PREFIX : SELECT * { ?s ?p ?o GRAPH ?g { ?s ?q ?v } } >> OK /* Results data-r2/graph/graph-08.ttl */ /* -------------------------------------------------------- graph-09 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named (bnodes) / Query: common subjects Default Graph data-r2/graph/data-g3.ttl @prefix : . @prefix xsd: . _:x :p "1"^^xsd:integer . _:a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g4.ttl @prefix : . @prefix xsd: . _:x :p "1"^^xsd:integer . _:a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-09.rq */ /* Testcase 343 */ query: << PREFIX : SELECT * { ?s ?p ?o GRAPH ?g { ?s ?q ?v } } >> OK /* Results data-r2/graph/graph-09.ttl */ /* -------------------------------------------------------- graph-10 Query evaluation test Data: default and named (same data, with bnodes) / Query: common subjects Default Graph data-r2/graph/data-g3.ttl @prefix : . @prefix xsd: . _:x :p "1"^^xsd:integer . _:a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3.ttl @prefix : . @prefix xsd: . _:x :p "1"^^xsd:integer . _:a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-10.rq */ /* Testcase 344 */ query: << PREFIX : SELECT * { ?s ?p ?o GRAPH ?g { ?s ?q ?v } } >> OK /* Results data-r2/graph/graph-10.ttl */ /* -------------------------------------------------------- graph-10b Query evaluation test Approved by http://www.w3.org/2007/10/09-dawg-minutes.html Data: default and named (same data, with bnodes) / Query: common subjects Default Graph data-r2/graph/data-g3.ttl @prefix : . @prefix xsd: . _:x :p "1"^^xsd:integer . _:a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3-dup.ttl @prefix : . @prefix xsd: . _:x :p "1"^^xsd:integer . _:a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-10.rq */ /* Testcase 345 */ query: << PREFIX : SELECT * { ?s ?p ?o GRAPH ?g { ?s ?q ?v } } >> OK /* Results data-r2/graph/graph-10.ttl */ /* -------------------------------------------------------- graph-11 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Data: default and named (several) / Query: get everything Default Graph data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g4.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl @prefix : . @prefix xsd: . :x :p "1"^^xsd:integer . :a :p "9"^^xsd:integer . Named Graphs Query data-r2/graph/graph-11.rq */ /* Testcase 346 */ query: << PREFIX : SELECT * { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } >> OK /* Results data-r2/graph/graph-11.ttl */ /* -------------------------------------------------------- kanji-01 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Default Graph data-r2/i18n/kanji.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ # See DOCUMENT INFO below. # NAMESPACES @prefix rdfs: . @prefix owl: . @prefix foaf: . @prefix 食: . # DOCUMENT INFO <> rdfs:comment "test kanji IRIs (composed from QNames)" ; owl:versionInfo "$Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $". # DOCUMENT _:alice foaf:name "Alice" ; 食:食ã¹ã‚‹ 食:ç´è±† . _:bob foaf:name "Bob" ; 食:食ã¹ã‚‹ 食:æµ·è€ . Named Graphs Query data-r2/i18n/kanji-01.rq */ /* Testcase 347 */ query: << # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ # test kanji QNames PREFIX foaf: PREFIX 食: SELECT ?name ?food WHERE { [ foaf:name ?name ; 食:食ã¹ã‚‹ ?food ] . } >> OK /* Results data-r2/i18n/kanji-01-results.ttl */ /* -------------------------------------------------------- kanji-02 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Default Graph data-r2/i18n/kanji.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ # See DOCUMENT INFO below. # NAMESPACES @prefix rdfs: . @prefix owl: . @prefix foaf: . @prefix 食: . # DOCUMENT INFO <> rdfs:comment "test kanji IRIs (composed from QNames)" ; owl:versionInfo "$Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $". # DOCUMENT _:alice foaf:name "Alice" ; 食:食ã¹ã‚‹ 食:ç´è±† . _:bob foaf:name "Bob" ; 食:食ã¹ã‚‹ 食:æµ·è€ . Named Graphs Query data-r2/i18n/kanji-02.rq */ /* Testcase 348 */ query: << # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ # test wide spaces PREFIX foaf: PREFIX 食: SELECT ?name WHERE { [ foaf:name ?name ; 食:食ã¹ã‚‹ 食:æµ·è€ ] . } >> OK /* Results data-r2/i18n/kanji-02-results.ttl */ /* -------------------------------------------------------- normalization-01 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Default Graph data-r2/i18n/normalization-01.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ # See DOCUMENT INFO below. # NAMESPACES @prefix rdfs: . @prefix owl: . @prefix foaf: . @prefix HR: . # DOCUMENT INFO <> rdfs:comment "Normalized and non-normalized IRIs" ; owl:versionInfo "$Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $". # DOCUMENT [] foaf:name "Alice" ; HR:resumé "Alice's normalized resumé" . [] foaf:name "Bob" ; HR:resumeÌ "Bob's non-normalized resumeÌ" . [] foaf:name "Eve" ; HR:resumé "Eve's normalized resumé" ; HR:resumeÌ "Eve's non-normalized resumeÌ" . Named Graphs Query data-r2/i18n/normalization-01.rq */ /* Testcase 349 */ query: << # Figure out what happens with normalization form C. PREFIX foaf: PREFIX HR: SELECT ?name WHERE { [ foaf:name ?name; HR:resumé ?resume ] . } >> OK /* Results data-r2/i18n/normalization-01-results.ttl */ /* -------------------------------------------------------- normalization-02 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Example 1 from http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 Default Graph data-r2/i18n/normalization-02.ttl # Example 1 from # http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix : . :s1 :p . :s2 :p . Named Graphs Query data-r2/i18n/normalization-02.rq */ /* Testcase 350 */ query: << # Example 1 from # http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 # $Id: normalization-02.rq,v 1.1 2005/08/09 14:35:26 eric Exp $ PREFIX : PREFIX p1: SELECT ?S WHERE { ?S :p p1:xyz } >> OK /* Results data-r2/i18n/normalization-02-results.ttl */ /* -------------------------------------------------------- normalization-03 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes Example 2 from http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 Default Graph data-r2/i18n/normalization-03.ttl # Example 1 from # http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix : . :s3 :p . :s4 :p . :s5 :p . Named Graphs Query data-r2/i18n/normalization-03.rq */ /* Testcase 351 */ query: << # Example 2 from # http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096 # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX : PREFIX p2: SELECT ?S WHERE { ?S :p p2:abc } >> OK /* Results data-r2/i18n/normalization-03-results.ttl */ /* -------------------------------------------------------- date-1 Query evaluation test Added type : xsd:date '=' Default Graph data-r2/open-world/data-3.ttl @prefix : . @prefix xsd: . :dt1 :r "2006-08-23T09:00:00+01:00"^^xsd:dateTime . :d1 :r "2006-08-23"^^xsd:date . :d2 :r "2006-08-23Z"^^xsd:date . :d3 :r "2006-08-23+00:00"^^xsd:date . :d4 :r "2001-01-01"^^xsd:date . :d5 :r "2001-01-01Z"^^xsd:date . :d6 :s "2006-08-23"^^xsd:date . :d7 :s "2006-08-24Z"^^xsd:date . :d8 :s "2000-01-01"^^xsd:date . Named Graphs Query data-r2/open-world/date-1.rq */ /* Testcase 352 */ query: << PREFIX : PREFIX xsd: SELECT * { ?x :r ?v . FILTER ( ?v = "2006-08-23"^^xsd:date ) } >> OK /* Results data-r2/open-world/date-1-result.srx */ /* -------------------------------------------------------- date-2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Added type : xsd:date '!=' Default Graph data-r2/open-world/data-3.ttl @prefix : . @prefix xsd: . :dt1 :r "2006-08-23T09:00:00+01:00"^^xsd:dateTime . :d1 :r "2006-08-23"^^xsd:date . :d2 :r "2006-08-23Z"^^xsd:date . :d3 :r "2006-08-23+00:00"^^xsd:date . :d4 :r "2001-01-01"^^xsd:date . :d5 :r "2001-01-01Z"^^xsd:date . :d6 :s "2006-08-23"^^xsd:date . :d7 :s "2006-08-24Z"^^xsd:date . :d8 :s "2000-01-01"^^xsd:date . Named Graphs Query data-r2/open-world/date-2.rq */ /* Testcase 353 */ query: << PREFIX : PREFIX xsd: SELECT * { ?x :r ?v . FILTER ( ?v != "2006-08-23"^^xsd:date ) } >> OK /* Results data-r2/open-world/date-2-result.srx */ /* -------------------------------------------------------- date-3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Added type : xsd:date '>' Default Graph data-r2/open-world/data-3.ttl @prefix : . @prefix xsd: . :dt1 :r "2006-08-23T09:00:00+01:00"^^xsd:dateTime . :d1 :r "2006-08-23"^^xsd:date . :d2 :r "2006-08-23Z"^^xsd:date . :d3 :r "2006-08-23+00:00"^^xsd:date . :d4 :r "2001-01-01"^^xsd:date . :d5 :r "2001-01-01Z"^^xsd:date . :d6 :s "2006-08-23"^^xsd:date . :d7 :s "2006-08-24Z"^^xsd:date . :d8 :s "2000-01-01"^^xsd:date . Named Graphs Query data-r2/open-world/date-3.rq */ /* Testcase 354 */ query: << PREFIX : PREFIX xsd: SELECT * { ?x :r ?v . FILTER ( ?v > "2006-08-22"^^xsd:date ) } >> OK /* Results data-r2/open-world/date-3-result.srx */ /* -------------------------------------------------------- date-4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html xsd:date ORDER BY Default Graph data-r2/open-world/data-3.ttl @prefix : . @prefix xsd: . :dt1 :r "2006-08-23T09:00:00+01:00"^^xsd:dateTime . :d1 :r "2006-08-23"^^xsd:date . :d2 :r "2006-08-23Z"^^xsd:date . :d3 :r "2006-08-23+00:00"^^xsd:date . :d4 :r "2001-01-01"^^xsd:date . :d5 :r "2001-01-01Z"^^xsd:date . :d6 :s "2006-08-23"^^xsd:date . :d7 :s "2006-08-24Z"^^xsd:date . :d8 :s "2000-01-01"^^xsd:date . Named Graphs Query data-r2/open-world/date-4.rq */ /* Testcase 355 */ query: << PREFIX : PREFIX xsd: SELECT ?x ?date { ?x :s ?date . FILTER ( datatype(?date) = xsd:date ) } >> OK /* Results data-r2/open-world/date-4-result.srx */ /* -------------------------------------------------------- open-cmp-01 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Find things that compare with < or > Default Graph data-r2/open-world/data-4.ttl @prefix : . @prefix xsd: . :x1 :p [ :v1 "v1" ; :v2 "v2" ] . :x2 :p [ :v1 "1"^^xsd:integer ; :v2 "v2" ] . :x3 :p [ :v1 "x"^^:unknown ; :v2 "x"^^:unknown ] . :x4 :p [ :v1 ; :v2 ] . :x5 :p [ :v1 "2006-08-23T09:00:00+01:00"^^xsd:dateTime ; :v2 "2006-08-22"^^xsd:date ]. Named Graphs Query data-r2/open-world/open-cmp-01.rq */ /* Testcase 356 */ query: << PREFIX : PREFIX xsd: SELECT ?x ?v1 ?v2 { ?x :p [ :v1 ?v1 ; :v2 ?v2 ] . FILTER ( ?v1 < ?v2 || ?v1 > ?v2 ) } >> OK /* Results data-r2/open-world/open-cmp-01-result.srx */ /* -------------------------------------------------------- open-cmp-02 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html Find things that compare with <= and > Default Graph data-r2/open-world/data-4.ttl @prefix : . @prefix xsd: . :x1 :p [ :v1 "v1" ; :v2 "v2" ] . :x2 :p [ :v1 "1"^^xsd:integer ; :v2 "v2" ] . :x3 :p [ :v1 "x"^^:unknown ; :v2 "x"^^:unknown ] . :x4 :p [ :v1 ; :v2 ] . :x5 :p [ :v1 "2006-08-23T09:00:00+01:00"^^xsd:dateTime ; :v2 "2006-08-22"^^xsd:date ]. Named Graphs Query data-r2/open-world/open-cmp-02.rq */ /* Testcase 357 */ query: << PREFIX : PREFIX xsd: SELECT ?x ?v1 ?v2 { ?x :p [ :v1 ?v1 ; :v2 ?v2 ] . FILTER ( ?v1 < ?v2 || ?v1 = ?v2 || ?v1 > ?v2 ) } >> OK /* Results data-r2/open-world/open-cmp-02-result.srx */ /* -------------------------------------------------------- open-eq-01 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html graph match - no lexical form in data (assumes no value matching) Default Graph data-r2/open-world/data-1.ttl @prefix t: . @prefix : . @prefix xsd: . :x1 :p "a"^^t:type1 . :x2 :p "b"^^t:type1 . :y1 :p "a"^^t:type2 . :y2 :p "b"^^t:type2 . :z1 :p "1"^^xsd:integer . :z2 :p "01"^^xsd:integer . :z3 :p "2"^^xsd:integer . :z4 :p "02"^^xsd:integer . Named Graphs Query data-r2/open-world/open-eq-01.rq */ /* Testcase 358 */ query: << # SPARQL is defined over simple entailment so # only syntactic matches show. # (Some systems may match because they do # value-based matching in the graph (D-entailment)) # Does not strictly match "1"^xsd:integer PREFIX : PREFIX t: PREFIX xsd: SELECT * { ?x :p "001"^^xsd:integer } >> OK /* Results data-r2/open-world/open-eq-01-result.srx */ /* -------------------------------------------------------- open-eq-02 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html graph match - unknown type Default Graph data-r2/open-world/data-1.ttl @prefix t: . @prefix : . @prefix xsd: . :x1 :p "a"^^t:type1 . :x2 :p "b"^^t:type1 . :y1 :p "a"^^t:type2 . :y2 :p "b"^^t:type2 . :z1 :p "1"^^xsd:integer . :z2 :p "01"^^xsd:integer . :z3 :p "2"^^xsd:integer . :z4 :p "02"^^xsd:integer . Named Graphs Query data-r2/open-world/open-eq-02.rq */ /* Testcase 359 */ query: << # Test matching in a graph pattern # Unknown type PREFIX : PREFIX t: SELECT * { ?x :p "a"^^t:type1 } >> OK /* Results data-r2/open-world/open-eq-02-result.srx */ /* -------------------------------------------------------- open-eq-03 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Filter(?v=1) Default Graph data-r2/open-world/data-1.ttl @prefix t: . @prefix : . @prefix xsd: . :x1 :p "a"^^t:type1 . :x2 :p "b"^^t:type1 . :y1 :p "a"^^t:type2 . :y2 :p "b"^^t:type2 . :z1 :p "1"^^xsd:integer . :z2 :p "01"^^xsd:integer . :z3 :p "2"^^xsd:integer . :z4 :p "02"^^xsd:integer . Named Graphs Query data-r2/open-world/open-eq-03.rq */ /* Testcase 360 */ query: << # SPARQL FILTER test by value. # A processor knows about XSD integer # so 1 and 01 pass the filter PREFIX : PREFIX t: PREFIX rdf: PREFIX rdfs: PREFIX xsd: SELECT * { ?x :p ?v FILTER ( ?v = 1 ) } >> OK /* Results data-r2/open-world/open-eq-03-result.srx */ /* -------------------------------------------------------- open-eq-04 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Filter(?v!=1) Default Graph data-r2/open-world/data-1.ttl @prefix t: . @prefix : . @prefix xsd: . :x1 :p "a"^^t:type1 . :x2 :p "b"^^t:type1 . :y1 :p "a"^^t:type2 . :y2 :p "b"^^t:type2 . :z1 :p "1"^^xsd:integer . :z2 :p "01"^^xsd:integer . :z3 :p "2"^^xsd:integer . :z4 :p "02"^^xsd:integer . Named Graphs Query data-r2/open-world/open-eq-04.rq */ /* Testcase 361 */ query: << # SPARQL FILTER test by value. # A processor knows about XSD integer # so 1 and 01 are excluded by the filter PREFIX : PREFIX t: PREFIX rdf: PREFIX rdfs: PREFIX xsd: SELECT * { ?x :p ?v FILTER ( ?v != 1 ) } >> OK /* Results data-r2/open-world/open-eq-04-result.srx */ /* -------------------------------------------------------- open-eq-05 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html FILTER(?v = unknown type) Default Graph data-r2/open-world/data-1.ttl @prefix t: . @prefix : . @prefix xsd: . :x1 :p "a"^^t:type1 . :x2 :p "b"^^t:type1 . :y1 :p "a"^^t:type2 . :y2 :p "b"^^t:type2 . :z1 :p "1"^^xsd:integer . :z2 :p "01"^^xsd:integer . :z3 :p "2"^^xsd:integer . :z4 :p "02"^^xsd:integer . Named Graphs Query data-r2/open-world/open-eq-05.rq */ /* Testcase 362 */ query: << # SPARQL FILTER test by value. # Only one valus is known to be "a"^^t:type1 # (others maybe but the processor does not positively know this) PREFIX : PREFIX t: SELECT * { ?x :p ?v FILTER ( ?v = "a"^^t:type1 ) } >> OK /* Results data-r2/open-world/open-eq-05-result.srx */ /* -------------------------------------------------------- open-eq-06 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html FILTER(?v != unknown type) Default Graph data-r2/open-world/data-1.ttl @prefix t: . @prefix : . @prefix xsd: . :x1 :p "a"^^t:type1 . :x2 :p "b"^^t:type1 . :y1 :p "a"^^t:type2 . :y2 :p "b"^^t:type2 . :z1 :p "1"^^xsd:integer . :z2 :p "01"^^xsd:integer . :z3 :p "2"^^xsd:integer . :z4 :p "02"^^xsd:integer . Named Graphs Query data-r2/open-world/open-eq-06.rq */ /* Testcase 363 */ query: << # SPARQL FILTER test by value for known types. # Nothing is known to be not the same value as "a"^^t:type1 # "b"^^t:type1 might be a different lexical form for the same value # "a"^^t:type2 might have overlapping value spaces for this lexicial form. PREFIX : PREFIX t: SELECT * { ?x :p ?v FILTER ( ?v != "a"^^t:type1 ) } >> OK /* Results data-r2/open-world/open-eq-06-result.srx */ /* -------------------------------------------------------- open-eq-07 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Test of '=' Default Graph data-r2/open-world/data-2.ttl @prefix : . @prefix xsd: . :x1 :p "xyz" . :x2 :p "xyz"@en . :x3 :p "xyz"@EN . :x4 :p "xyz"^^xsd:string . :x5 :p "xyz"^^xsd:integer . :x6 :p "xyz"^^:unknown . :x7 :p _:xyz . :x8 :p :xyz . :y1 :q "abc" . :y2 :q "abc"@en . :y3 :q "abc"@EN . :y4 :q "abc"^^xsd:string . :y5 :q "abc"^^xsd:integer . :y6 :q "abc"^^:unknown . :y7 :q _:abc . :y8 :q :abc . Named Graphs Query data-r2/open-world/open-eq-07.rq */ /* Testcase 364 */ query: << PREFIX : PREFIX xsd: SELECT * { ?x1 :p ?v1 . ?x2 :p ?v2 . FILTER ( ?v1 = ?v2 ) } >> OK /* Results data-r2/open-world/open-eq-07-result.srx */ /* -------------------------------------------------------- open-eq-08 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Test of '!=' Default Graph data-r2/open-world/data-2.ttl @prefix : . @prefix xsd: . :x1 :p "xyz" . :x2 :p "xyz"@en . :x3 :p "xyz"@EN . :x4 :p "xyz"^^xsd:string . :x5 :p "xyz"^^xsd:integer . :x6 :p "xyz"^^:unknown . :x7 :p _:xyz . :x8 :p :xyz . :y1 :q "abc" . :y2 :q "abc"@en . :y3 :q "abc"@EN . :y4 :q "abc"^^xsd:string . :y5 :q "abc"^^xsd:integer . :y6 :q "abc"^^:unknown . :y7 :q _:abc . :y8 :q :abc . Named Graphs Query data-r2/open-world/open-eq-08.rq */ /* Testcase 365 */ query: << PREFIX : PREFIX xsd: SELECT * { ?x1 :p ?v1 . ?x2 :p ?v2 . FILTER ( ?v1 != ?v2 ) } >> OK /* Results data-r2/open-world/open-eq-08-result.srx */ /* -------------------------------------------------------- open-eq-09 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Test of '=' Default Graph data-r2/open-world/data-2.ttl @prefix : . @prefix xsd: . :x1 :p "xyz" . :x2 :p "xyz"@en . :x3 :p "xyz"@EN . :x4 :p "xyz"^^xsd:string . :x5 :p "xyz"^^xsd:integer . :x6 :p "xyz"^^:unknown . :x7 :p _:xyz . :x8 :p :xyz . :y1 :q "abc" . :y2 :q "abc"@en . :y3 :q "abc"@EN . :y4 :q "abc"^^xsd:string . :y5 :q "abc"^^xsd:integer . :y6 :q "abc"^^:unknown . :y7 :q _:abc . :y8 :q :abc . Named Graphs Query data-r2/open-world/open-eq-09.rq */ /* Testcase 366 */ query: << PREFIX : PREFIX xsd: SELECT * { ?x :p ?v1 . ?y :q ?v2 . FILTER ( ?v1 = ?v2 ) } >> OK /* Results data-r2/open-world/open-eq-09-result.srx */ /* -------------------------------------------------------- open-eq-10 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Test of '!=' Default Graph data-r2/open-world/data-2.ttl @prefix : . @prefix xsd: . :x1 :p "xyz" . :x2 :p "xyz"@en . :x3 :p "xyz"@EN . :x4 :p "xyz"^^xsd:string . :x5 :p "xyz"^^xsd:integer . :x6 :p "xyz"^^:unknown . :x7 :p _:xyz . :x8 :p :xyz . :y1 :q "abc" . :y2 :q "abc"@en . :y3 :q "abc"@EN . :y4 :q "abc"^^xsd:string . :y5 :q "abc"^^xsd:integer . :y6 :q "abc"^^:unknown . :y7 :q _:abc . :y8 :q :abc . Named Graphs Query data-r2/open-world/open-eq-10.rq */ /* Testcase 367 */ query: << PREFIX : PREFIX xsd: SELECT * { ?x :p ?v1 . ?y :q ?v2 . FILTER ( ?v1 != ?v2 ) } >> OK /* Results data-r2/open-world/open-eq-10-result.srx */ /* -------------------------------------------------------- open-eq-11 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html test of '=' || '!=' Default Graph data-r2/open-world/data-2.ttl @prefix : . @prefix xsd: . :x1 :p "xyz" . :x2 :p "xyz"@en . :x3 :p "xyz"@EN . :x4 :p "xyz"^^xsd:string . :x5 :p "xyz"^^xsd:integer . :x6 :p "xyz"^^:unknown . :x7 :p _:xyz . :x8 :p :xyz . :y1 :q "abc" . :y2 :q "abc"@en . :y3 :q "abc"@EN . :y4 :q "abc"^^xsd:string . :y5 :q "abc"^^xsd:integer . :y6 :q "abc"^^:unknown . :y7 :q _:abc . :y8 :q :abc . Named Graphs Query data-r2/open-world/open-eq-11.rq */ /* Testcase 368 */ query: << PREFIX : PREFIX xsd: SELECT * { ?x :p ?v1 . ?y :q ?v2 . FILTER ( ?v1 != ?v2 || ?v1 = ?v2 ) } >> OK /* Results data-r2/open-world/open-eq-11-result.srx */ /* -------------------------------------------------------- open-eq-12 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html find pairs that don't value-compare Default Graph data-r2/open-world/data-2.ttl @prefix : . @prefix xsd: . :x1 :p "xyz" . :x2 :p "xyz"@en . :x3 :p "xyz"@EN . :x4 :p "xyz"^^xsd:string . :x5 :p "xyz"^^xsd:integer . :x6 :p "xyz"^^:unknown . :x7 :p _:xyz . :x8 :p :xyz . :y1 :q "abc" . :y2 :q "abc"@en . :y3 :q "abc"@EN . :y4 :q "abc"^^xsd:string . :y5 :q "abc"^^xsd:integer . :y6 :q "abc"^^:unknown . :y7 :q _:abc . :y8 :q :abc . Named Graphs Query data-r2/open-world/open-eq-12.rq */ /* Testcase 369 */ query: << PREFIX : PREFIX xsd: SELECT ?x ?v1 ?y ?v2 { ?x :p ?v1 . ?y :p ?v2 . OPTIONAL { ?y :p ?v3 . FILTER( ?v1 != ?v3 || ?v1 = ?v3 )} FILTER (!bound(?v3)) } >> OK /* Results data-r2/open-world/open-eq-12-result.srx */ /* -------------------------------------------------------- OPTIONAL-FILTER Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html FILTER inside an OPTIONAL does not block an entire solution Default Graph data-r2/optional-filter/data-1.ttl @prefix x: . @prefix : . @prefix dc: . @prefix xsd: . :book1 dc:title "TITLE 1" . :book1 x:price "10"^^xsd:integer . :book2 dc:title "TITLE 2" . :book2 x:price "20"^^xsd:integer . :book3 dc:title "TITLE 3" . Named Graphs Query data-r2/optional-filter/expr-1.rq */ /* Testcase 370 */ query: << PREFIX dc: PREFIX x: SELECT ?title ?price WHERE { ?book dc:title ?title . OPTIONAL { ?book x:price ?price . FILTER (?price < 15) . } . } >> OK /* Results data-r2/optional-filter/expr-1-result.ttl */ /* -------------------------------------------------------- OPTIONAL - Outer FILTER Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html FILTER outside an OPTIONAL tests bound and unbound variables Default Graph data-r2/optional-filter/data-1.ttl @prefix x: . @prefix : . @prefix dc: . @prefix xsd: . :book1 dc:title "TITLE 1" . :book1 x:price "10"^^xsd:integer . :book2 dc:title "TITLE 2" . :book2 x:price "20"^^xsd:integer . :book3 dc:title "TITLE 3" . Named Graphs Query data-r2/optional-filter/expr-2.rq */ /* Testcase 371 */ query: << PREFIX dc: PREFIX x: SELECT ?title ?price WHERE { ?book dc:title ?title . OPTIONAL { ?book x:price ?price } . FILTER (?price < 15) . } >> OK /* Results data-r2/optional-filter/expr-2-result.ttl */ /* -------------------------------------------------------- OPTIONAL - Outer FILTER with BOUND Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html Use !bound to only run outer FILTERs against variables bound in an OPTIONAL Default Graph data-r2/optional-filter/data-1.ttl @prefix x: . @prefix : . @prefix dc: . @prefix xsd: . :book1 dc:title "TITLE 1" . :book1 x:price "10"^^xsd:integer . :book2 dc:title "TITLE 2" . :book2 x:price "20"^^xsd:integer . :book3 dc:title "TITLE 3" . Named Graphs Query data-r2/optional-filter/expr-3.rq */ /* Testcase 372 */ query: << PREFIX dc: PREFIX x: SELECT ?title ?price WHERE { ?book dc:title ?title . OPTIONAL { ?book x:price ?price } . FILTER ( ( ! bound(?price) ) || ( ?price < 15 ) ) . } >> OK /* Results data-r2/optional-filter/expr-3-result.ttl */ /* -------------------------------------------------------- OPTIONAL - Inner FILTER with negative EBV for outer variables Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0006/02-dawg-minutes.html FILTER inside an OPTIONAL does not corrupt the entire solution Default Graph data-r2/optional-filter/data-1.ttl @prefix x: . @prefix : . @prefix dc: . @prefix xsd: . :book1 dc:title "TITLE 1" . :book1 x:price "10"^^xsd:integer . :book2 dc:title "TITLE 2" . :book2 x:price "20"^^xsd:integer . :book3 dc:title "TITLE 3" . Named Graphs Query data-r2/optional-filter/expr-4.rq */ /* Testcase 373 */ query: << PREFIX dc: PREFIX x: SELECT ?title ?price WHERE { ?book dc:title ?title . OPTIONAL { ?book x:price ?price . FILTER (?price < 15 && ?title = "TITLE 2") . } . } >> OK /* Results data-r2/optional-filter/expr-4-result.ttl */ /* -------------------------------------------------------- dawg-optional-filter-005-not-simplified Query evaluation test Double curly braces do NOT get simplified to single curly braces early on, before filters are scoped Default Graph data-r2/optional-filter/data-1.ttl @prefix x: . @prefix : . @prefix dc: . @prefix xsd: . :book1 dc:title "TITLE 1" . :book1 x:price "10"^^xsd:integer . :book2 dc:title "TITLE 2" . :book2 x:price "20"^^xsd:integer . :book3 dc:title "TITLE 3" . Named Graphs Query data-r2/optional-filter/expr-5.rq */ /* Testcase 374 */ query: << PREFIX dc: PREFIX x: SELECT ?title ?price WHERE { ?book dc:title ?title . OPTIONAL { { ?book x:price ?price . FILTER (?title = "TITLE 2") . } } . } >> OK /* Results data-r2/optional-filter/expr-5-result-not-simplified.ttl */ /* -------------------------------------------------------- dawg-optional-filter-005-simplified Query evaluation test Double curly braces get simplified to single curly braces early on, before filters are scoped Default Graph data-r2/optional-filter/data-1.ttl @prefix x: . @prefix : . @prefix dc: . @prefix xsd: . :book1 dc:title "TITLE 1" . :book1 x:price "10"^^xsd:integer . :book2 dc:title "TITLE 2" . :book2 x:price "20"^^xsd:integer . :book3 dc:title "TITLE 3" . Named Graphs Query data-r2/optional-filter/expr-5.rq */ /* Testcase 375 */ query: << PREFIX dc: PREFIX x: SELECT ?title ?price WHERE { ?book dc:title ?title . OPTIONAL { { ?book x:price ?price . FILTER (?title = "TITLE 2") . } } . } >> OK /* Results data-r2/optional-filter/expr-5-result-simplified.ttl */ /* -------------------------------------------------------- One optional clause Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 One optional clause Default Graph data-r2/optional/data.ttl @prefix foaf: . _:a foaf:mbox . _:a foaf:name "Alice" . _:a foaf:nick "WhoMe?" . _:b foaf:mbox . _:b foaf:name "Bert" . _:e foaf:mbox . _:e foaf:nick "DuckSoup" . Named Graphs Query data-r2/optional/q-opt-1.rq */ /* Testcase 376 */ query: << PREFIX foaf: SELECT ?mbox ?name { ?x foaf:mbox ?mbox . OPTIONAL { ?x foaf:name ?name } . } >> OK /* Results data-r2/optional/result-opt-1.ttl */ /* -------------------------------------------------------- Two optional clauses Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 One optional clause Default Graph data-r2/optional/data.ttl @prefix foaf: . _:a foaf:mbox . _:a foaf:name "Alice" . _:a foaf:nick "WhoMe?" . _:b foaf:mbox . _:b foaf:name "Bert" . _:e foaf:mbox . _:e foaf:nick "DuckSoup" . Named Graphs Query data-r2/optional/q-opt-2.rq */ /* Testcase 377 */ query: << PREFIX foaf: SELECT ?mbox ?name ?nick { ?x foaf:mbox ?mbox . OPTIONAL { ?x foaf:name ?name } . OPTIONAL { ?x foaf:nick ?nick } . } >> OK /* Results data-r2/optional/result-opt-2.ttl */ /* -------------------------------------------------------- Complex optional semantics: 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html Complex optional: LeftJoin(LeftJoin(BGP(..),{..}),Join(BGP(..),Union(..,..))) Default Graph data-r2/optional/complex-data-1.ttl @prefix foaf: . foaf:mbox ; foaf:name "Alice"; foaf:nick "WhoMe?"; foaf:depiction . foaf:mbox ; foaf:nick "BigB" ; foaf:name "Bert" . foaf:mbox ; foaf:firstName "Eve" . foaf:mbox ; foaf:nick "jDoe"; foaf:isPrimaryTopicOf . Named Graphs Query data-r2/optional/q-opt-complex-1.rq */ /* Testcase 378 */ query: << PREFIX foaf: SELECT ?person ?nick ?page ?img ?name ?firstN { ?person foaf:nick ?nick OPTIONAL { ?person foaf:isPrimaryTopicOf ?page } OPTIONAL { ?person foaf:name ?name { ?person foaf:depiction ?img } UNION { ?person foaf:firstName ?firstN } } FILTER ( bound(?page) || bound(?img) || bound(?firstN) ) } >> OK /* Results data-r2/optional/result-opt-complex-1.ttl */ /* -------------------------------------------------------- Complex optional semantics: 2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html Complex optional: LeftJoin(Join(BGP(..),Graph(var,{..})),Union(..,..)) Default Graph data-r2/optional/complex-data-2.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:empId "29"^^xsd:integer ; ex:healthplan ex:HealthPlanD. _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:empId "27"^^xsd:integer . _:e foaf:name "Bob" ; ex:empId "23"^^xsd:integer ; ex:healthplan ex:HealthPlanC. _:f foaf:name "Bob" ; ex:empId "30"^^xsd:integer; ex:healthplan ex:HealthPlanB. _:g rdf:type foaf:Person; ex:ssn "000000000"; foaf:name "Bert"; ex:department "DeptA" ; ex:healthplan ex:HealthPlanA. http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:empId "29"^^xsd:integer ; ex:healthplan ex:HealthPlanD. _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:empId "27"^^xsd:integer . _:e foaf:name "Bob" ; ex:empId "23"^^xsd:integer ; ex:healthplan ex:HealthPlanC. _:f foaf:name "Bob" ; ex:empId "30"^^xsd:integer; ex:healthplan ex:HealthPlanB. _:g rdf:type foaf:Person; ex:ssn "000000000"; foaf:name "Bert"; ex:department "DeptA" ; ex:healthplan ex:HealthPlanA. Named Graphs Query data-r2/optional/q-opt-complex-2.rq */ /* Testcase 379 */ query: << PREFIX foaf: PREFIX ex: SELECT ?id ?ssn WHERE { ?person a foaf:Person; foaf:name ?name . GRAPH ?x { [] foaf:name ?name; foaf:nick ?nick } OPTIONAL { { ?person ex:empId ?id } UNION { ?person ex:ssn ?ssn } } } >> OK /* Results data-r2/optional/result-opt-complex-2.ttl */ /* -------------------------------------------------------- Complex optional semantics: 3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html Complex optional: LeftJoin(Join(BGP(..),Graph(var,{..})),LeftJoin(BGP(..),{..})) Default Graph data-r2/optional/complex-data-2.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:empId "29"^^xsd:integer ; ex:healthplan ex:HealthPlanD. _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:empId "27"^^xsd:integer . _:e foaf:name "Bob" ; ex:empId "23"^^xsd:integer ; ex:healthplan ex:HealthPlanC. _:f foaf:name "Bob" ; ex:empId "30"^^xsd:integer; ex:healthplan ex:HealthPlanB. _:g rdf:type foaf:Person; ex:ssn "000000000"; foaf:name "Bert"; ex:department "DeptA" ; ex:healthplan ex:HealthPlanA. http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:empId "29"^^xsd:integer ; ex:healthplan ex:HealthPlanD. _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:empId "27"^^xsd:integer . _:e foaf:name "Bob" ; ex:empId "23"^^xsd:integer ; ex:healthplan ex:HealthPlanC. _:f foaf:name "Bob" ; ex:empId "30"^^xsd:integer; ex:healthplan ex:HealthPlanB. _:g rdf:type foaf:Person; ex:ssn "000000000"; foaf:name "Bert"; ex:department "DeptA" ; ex:healthplan ex:HealthPlanA. Named Graphs Query data-r2/optional/q-opt-complex-3.rq */ /* Testcase 380 */ query: << PREFIX foaf: PREFIX ex: SELECT ?name ?nick ?plan ?dept WHERE { ?person a foaf:Person; foaf:name ?name . GRAPH ?x { [] foaf:name ?name; foaf:nick ?nick } OPTIONAL { ?person ex:healthplan ?plan OPTIONAL { ?person ex:department ?dept } } } >> OK /* Results data-r2/optional/result-opt-complex-3.ttl */ /* -------------------------------------------------------- Complex optional semantics: 4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html Complex optional: LeftJoin(Join(BGP(..),Union(..,..)),Join(BGP(..),Graph(varOrIRI,{..}))) Default Graph data-r2/optional/complex-data-2.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:empId "29"^^xsd:integer ; ex:healthplan ex:HealthPlanD. _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:empId "27"^^xsd:integer . _:e foaf:name "Bob" ; ex:empId "23"^^xsd:integer ; ex:healthplan ex:HealthPlanC. _:f foaf:name "Bob" ; ex:empId "30"^^xsd:integer; ex:healthplan ex:HealthPlanB. _:g rdf:type foaf:Person; ex:ssn "000000000"; foaf:name "Bert"; ex:department "DeptA" ; ex:healthplan ex:HealthPlanA. http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:empId "29"^^xsd:integer ; ex:healthplan ex:HealthPlanD. _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:empId "27"^^xsd:integer . _:e foaf:name "Bob" ; ex:empId "23"^^xsd:integer ; ex:healthplan ex:HealthPlanC. _:f foaf:name "Bob" ; ex:empId "30"^^xsd:integer; ex:healthplan ex:HealthPlanB. _:g rdf:type foaf:Person; ex:ssn "000000000"; foaf:name "Bert"; ex:department "DeptA" ; ex:healthplan ex:HealthPlanA. Named Graphs Query data-r2/optional/q-opt-complex-4.rq */ /* Testcase 381 */ query: << PREFIX foaf: PREFIX ex: SELECT ?name ?plan ?dept ?img WHERE { ?person foaf:name ?name { ?person ex:healthplan ?plan } UNION { ?person ex:department ?dept } OPTIONAL { ?person a foaf:Person GRAPH ?g { [] foaf:name ?name; foaf:depiction ?img } } } >> OK /* Results data-r2/optional/result-opt-complex-4.ttl */ /* -------------------------------------------------------- Union is not optional Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006 Union is not optional Default Graph data-r2/optional/data.ttl @prefix foaf: . _:a foaf:mbox . _:a foaf:name "Alice" . _:a foaf:nick "WhoMe?" . _:b foaf:mbox . _:b foaf:name "Bert" . _:e foaf:mbox . _:e foaf:nick "DuckSoup" . Named Graphs Query data-r2/optional/q-opt-3.rq */ /* Testcase 382 */ query: << PREFIX foaf: SELECT ?mbox ?name { { ?x foaf:mbox ?mbox } UNION { ?x foaf:mbox ?mbox . ?x foaf:name ?name } } >> OK /* Results data-r2/optional/result-opt-3.ttl */ /* -------------------------------------------------------- SELECT REDUCED * Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html Default Graph data-r2/reduced/reduced-star.ttl @prefix : . @prefix xsd: . :x1 :p "abc" . :x1 :q "abc" . :x2 :p "abc" . Named Graphs Query data-r2/reduced/reduced-1.rq */ /* Testcase 383 */ query: << PREFIX : PREFIX xsd: SELECT REDUCED * WHERE { { ?s :p ?o } UNION { ?s :q ?o } } >> OK /* Results data-r2/reduced/reduced-1.srx */ /* -------------------------------------------------------- SELECT REDUCED ?x with strings Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html Default Graph data-r2/reduced/reduced-str.ttl @prefix : . @prefix xsd: . :x1 :p "abc" . :x1 :q "abc" . :x2 :p "abc"@en . :x2 :q "abc"@en . :x3 :p "ABC" . :x3 :q "ABC" . :x4 :p "ABC"@en . :x4 :q "ABC"@en . :x5 :p "abc"^^xsd:string . :x5 :q "abc"^^xsd:string . :x6 :p "ABC"^^xsd:string . :x6 :q "ABC"^^xsd:string . :x7 :p "" . :x7 :q "" . :x8 :p ""@en . :x8 :q ""@en . :x9 :p ""^^xsd:string . :x9 :q ""^^xsd:string . Named Graphs Query data-r2/reduced/reduced-2.rq */ /* Testcase 384 */ query: << PREFIX : PREFIX xsd: SELECT REDUCED ?v { ?x ?p ?v . } >> OK /* Results data-r2/reduced/reduced-2.srx */ /* -------------------------------------------------------- regex-query-001 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html Simple unanchored match test Default Graph data-r2/regex/regex-data-01.ttl @prefix rdf: . @prefix ex: . ex:foo rdf:value "abcDEFghiJKL" , "ABCdefGHIjkl", "0123456789", , "http://example.com/literal" . Named Graphs Query data-r2/regex/regex-query-001.rq */ /* Testcase 385 */ query: << PREFIX rdf: PREFIX ex: SELECT ?val WHERE { ex:foo rdf:value ?val . FILTER regex(?val, "GHI") } >> OK /* Results data-r2/regex/regex-result-001.ttl */ /* -------------------------------------------------------- regex-query-002 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html Case insensitive unanchored match test Default Graph data-r2/regex/regex-data-01.ttl @prefix rdf: . @prefix ex: . ex:foo rdf:value "abcDEFghiJKL" , "ABCdefGHIjkl", "0123456789", , "http://example.com/literal" . Named Graphs Query data-r2/regex/regex-query-002.rq */ /* Testcase 386 */ query: << PREFIX ex: PREFIX rdf: SELECT ?val WHERE { ex:foo rdf:value ?val . FILTER regex(?val, "DeFghI", "i") } >> OK /* Results data-r2/regex/regex-result-002.ttl */ /* -------------------------------------------------------- regex-query-003 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html Use/mention test Default Graph data-r2/regex/regex-data-01.ttl @prefix rdf: . @prefix ex: . ex:foo rdf:value "abcDEFghiJKL" , "ABCdefGHIjkl", "0123456789", , "http://example.com/literal" . Named Graphs Query data-r2/regex/regex-query-003.rq */ /* Testcase 387 */ query: << PREFIX rdf: PREFIX ex: SELECT ?val WHERE { ex:foo rdf:value ?val . FILTER regex(?val, "example\\.com") } >> OK /* Results data-r2/regex/regex-result-003.ttl */ /* -------------------------------------------------------- regex-query-004 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html str()+URI test Default Graph data-r2/regex/regex-data-01.ttl @prefix rdf: . @prefix ex: . ex:foo rdf:value "abcDEFghiJKL" , "ABCdefGHIjkl", "0123456789", , "http://example.com/literal" . Named Graphs Query data-r2/regex/regex-query-004.rq */ /* Testcase 388 */ query: << PREFIX rdf: PREFIX ex: SELECT ?val WHERE { ex:foo rdf:value ?val . FILTER regex(str(?val), "example\\.com") } >> OK /* Results data-r2/regex/regex-result-004.ttl */ /* -------------------------------------------------------- Limit 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-01.rq */ /* Testcase 389 */ query: << PREFIX : SELECT ?v WHERE { [] :num ?v } ORDER BY ?v LIMIT 1 >> OK /* Results data-r2/solution-seq/slice-results-01.ttl */ /* -------------------------------------------------------- Limit 2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-02.rq */ /* Testcase 390 */ query: << PREFIX : SELECT ?v WHERE { [] :num ?v } ORDER BY ?v LIMIT 100 >> OK /* Results data-r2/solution-seq/slice-results-02.ttl */ /* -------------------------------------------------------- Limit 3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-03.rq */ /* Testcase 391 */ query: << PREFIX : SELECT ?v WHERE { [] :num ?v } ORDER BY ?v LIMIT 0 >> OK /* Results data-r2/solution-seq/slice-results-03.ttl */ /* -------------------------------------------------------- Limit 4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-04.rq */ /* Testcase 392 */ query: << PREFIX : SELECT DISTINCT ?v WHERE { [] :num ?v } ORDER BY ?v LIMIT 100 >> OK /* Results data-r2/solution-seq/slice-results-04.ttl */ /* -------------------------------------------------------- Offset 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-10.rq */ /* Testcase 393 */ query: << PREFIX : SELECT ?v WHERE { [] :num ?v } ORDER BY ?v OFFSET 1 >> OK /* Results data-r2/solution-seq/slice-results-10.ttl */ /* -------------------------------------------------------- Offset 2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-11.rq */ /* Testcase 394 */ query: << PREFIX : SELECT ?v WHERE { [] :num ?v } ORDER BY ?v OFFSET 0 >> OK /* Results data-r2/solution-seq/slice-results-11.ttl */ /* -------------------------------------------------------- Offset 3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-12.rq */ /* Testcase 395 */ query: << PREFIX : SELECT ?v WHERE { [] :num ?v } ORDER BY ?v OFFSET 100 >> OK /* Results data-r2/solution-seq/slice-results-12.ttl */ /* -------------------------------------------------------- Offset 4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-13.rq */ /* Testcase 396 */ query: << PREFIX : SELECT DISTINCT ?v WHERE { [] :num ?v } ORDER BY ?v OFFSET 2 >> OK /* Results data-r2/solution-seq/slice-results-13.ttl */ /* -------------------------------------------------------- Slice 1 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-20.rq */ /* Testcase 397 */ query: << PREFIX : SELECT ?v WHERE { [] :num ?v } ORDER BY ?v LIMIT 1 OFFSET 1 >> OK /* Results data-r2/solution-seq/slice-results-20.ttl */ /* -------------------------------------------------------- Slice 2 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-21.rq */ /* Testcase 398 */ query: << PREFIX : SELECT ?v WHERE { [] :num ?v } ORDER BY ?v OFFSET 1 LIMIT 2 >> OK /* Results data-r2/solution-seq/slice-results-21.ttl */ /* -------------------------------------------------------- Slice 3 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-22.rq */ /* Testcase 399 */ query: << PREFIX : SELECT ?v WHERE { [] ?p ?v } ORDER BY ?v OFFSET 100 LIMIT 1 >> OK /* Results data-r2/solution-seq/slice-results-22.ttl */ /* -------------------------------------------------------- Slice 4 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-23.rq */ /* Testcase 400 */ query: << PREFIX : SELECT ?v WHERE { [] :num ?v } ORDER BY ?v OFFSET 2 LIMIT 5 >> OK /* Results data-r2/solution-seq/slice-results-23.ttl */ /* -------------------------------------------------------- Slice 5 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03 Default Graph data-r2/solution-seq/data.ttl @prefix : . @prefix xsd: . :x :num "1"^^xsd:integer . :x :num "2"^^xsd:integer . :x :num "3"^^xsd:integer . :x :num "4"^^xsd:integer . :x :num "1.5"^^xsd:decimal . :y :num "1"^^xsd:integer . :y :num "2"^^xsd:integer . :y :num "3"^^xsd:integer . :x :str "aaa" . :x :str "002" . :x :str "1" . :x :str "AAA" . :x :str "" . Named Graphs Query data-r2/solution-seq/slice-24.rq */ /* Testcase 401 */ query: << PREFIX : SELECT DISTINCT ?v WHERE { [] :num ?v } ORDER BY ?v OFFSET 2 LIMIT 5 >> OK /* Results data-r2/solution-seq/slice-results-24.ttl */ /* -------------------------------------------------------- sort-1 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Alphabetic sort (ascending) on untyped literals Default Graph data-r2/sort/data-sort-1.ttl @prefix rdf: . @prefix foaf: . _:a foaf:name "Eve". _:b foaf:name "Alice" . _:c foaf:name "Fred" . _:e foaf:name "Bob" . Named Graphs Query data-r2/sort/query-sort-1.rq */ /* Testcase 402 */ query: << PREFIX foaf: SELECT ?name WHERE { ?x foaf:name ?name } ORDER BY ?name >> OK /* Results data-r2/sort/result-sort-1.rdf */ /* -------------------------------------------------------- sort-10 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Alphabetic sort (descending) on datatyped (string) literals Default Graph data-r2/sort/data-sort-9.ttl @prefix rdf: . @prefix foaf: . @prefix xsd: . _:a foaf:name "Eve"^^xsd:string . _:b foaf:name "Alice"^^xsd:string . _:c foaf:name "Fred"^^xsd:string . _:e foaf:name "Bob"^^xsd:string . Named Graphs Query data-r2/sort/query-sort-10.rq */ /* Testcase 403 */ query: << PREFIX foaf: SELECT ?name WHERE { ?x foaf:name ?name } ORDER BY DESC(?name) >> OK /* Results data-r2/sort/result-sort-10.rdf */ /* -------------------------------------------------------- sort-2 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Alphabetic sort (descending) on untyped literals Default Graph data-r2/sort/data-sort-1.ttl @prefix rdf: . @prefix foaf: . _:a foaf:name "Eve". _:b foaf:name "Alice" . _:c foaf:name "Fred" . _:e foaf:name "Bob" . Named Graphs Query data-r2/sort/query-sort-2.rq */ /* Testcase 404 */ query: << PREFIX foaf: SELECT ?name WHERE { ?x foaf:name ?name } ORDER BY DESC(?name) >> OK /* Results data-r2/sort/result-sort-2.rdf */ /* -------------------------------------------------------- sort-3 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Sort on (possibly unbound) URIs Default Graph data-r2/sort/data-sort-3.ttl @prefix rdf: . @prefix foaf: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; foaf:mbox . _:b rdf:type foaf:Person ; foaf:name "Alice" ; foaf:mbox . _:c rdf:type foaf:Person ; foaf:mbox ; foaf:name "Fred" . _:e foaf:name "Bob" . Named Graphs Query data-r2/sort/query-sort-3.rq */ /* Testcase 405 */ query: << PREFIX foaf: SELECT ?name ?mbox WHERE { ?x foaf:name ?name . OPTIONAL { ?x foaf:mbox ?mbox } } ORDER BY ASC(?mbox) >> OK /* Results data-r2/sort/result-sort-3.rdf */ /* -------------------------------------------------------- sort-4 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Sort on datatyped (integer) literals Default Graph data-r2/sort/data-sort-4.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:empId "29"^^xsd:integer . _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:empId "27"^^xsd:integer . _:e foaf:name "Bob" ; ex:empId "23"^^xsd:integer . _:f foaf:name "Bob" ; ex:empId "30"^^xsd:integer . Named Graphs Query data-r2/sort/query-sort-4.rq */ /* Testcase 406 */ query: << PREFIX foaf: PREFIX ex: SELECT ?name ?emp WHERE { ?x foaf:name ?name ; ex:empId ?emp } ORDER BY ASC(?emp) >> OK /* Results data-r2/sort/result-sort-4.rdf */ /* -------------------------------------------------------- sort-5 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Sort first on untyped literals (ascending), then on datatyped (integer) literals (descending Default Graph data-r2/sort/data-sort-4.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:empId "29"^^xsd:integer . _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:empId "27"^^xsd:integer . _:e foaf:name "Bob" ; ex:empId "23"^^xsd:integer . _:f foaf:name "Bob" ; ex:empId "30"^^xsd:integer . Named Graphs Query data-r2/sort/query-sort-5.rq */ /* Testcase 407 */ query: << PREFIX foaf: PREFIX ex: SELECT ?name ?emp WHERE { ?x foaf:name ?name ; ex:empId ?emp } ORDER BY ?name DESC(?emp) >> OK /* Results data-r2/sort/result-sort-5.rdf */ /* -------------------------------------------------------- sort-6 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Sort on mixed result of uris and literals. Default Graph data-r2/sort/data-sort-6.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:address . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:address "Fascination Street 11" . _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:address "fred@work.example" . _:e foaf:name "Bob" ; ex:address . Named Graphs Query data-r2/sort/query-sort-6.rq */ /* Testcase 408 */ query: << PREFIX ex: SELECT ?address WHERE { ?x ex:address ?address } ORDER BY ASC(?address) >> OK /* Results data-r2/sort/result-sort-6.rdf */ /* -------------------------------------------------------- sort-7 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Sort on comparable mixed typed literals (integer and float) Default Graph data-r2/sort/data-sort-7.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a rdf:type foaf:Person ; foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:b rdf:type foaf:Person ; foaf:name "Alice" ; ex:empId "29"^^xsd:integer . _:c rdf:type foaf:Person ; foaf:name "Fred" ; ex:empId "27"^^xsd:integer . _:e foaf:name "Bob" ; ex:empId "23.0"^^xsd:float . Named Graphs Query data-r2/sort/query-sort-4.rq */ /* Testcase 409 */ query: << PREFIX foaf: PREFIX ex: SELECT ?name ?emp WHERE { ?x foaf:name ?name ; ex:empId ?emp } ORDER BY ASC(?emp) >> OK /* Results data-r2/sort/result-sort-7.rdf */ /* -------------------------------------------------------- sort-8 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Sort on several mixed values (bnode, uri, literal) Default Graph data-r2/sort/data-sort-8.ttl @prefix rdf: . @prefix foaf: . @prefix ex: . @prefix xsd: . _:a foaf:name "Eve" ; ex:empId "9"^^xsd:integer . _:f foaf:name "John" ; ex:empId [ ex:number "29"^^xsd:integer ] . _:g foaf:name "Dirk" ; ex:empId . Named Graphs Query data-r2/sort/query-sort-4.rq */ /* Testcase 410 */ query: << PREFIX foaf: PREFIX ex: SELECT ?name ?emp WHERE { ?x foaf:name ?name ; ex:empId ?emp } ORDER BY ASC(?emp) >> OK /* Results data-r2/sort/result-sort-8.rdf */ /* -------------------------------------------------------- sort-9 Query evaluation test Approved by http://www.w3.org/2007/06/26-dawg-minutes Alphabetic sort (ascending) on datatyped (string) literals Default Graph data-r2/sort/data-sort-9.ttl @prefix rdf: . @prefix foaf: . @prefix xsd: . _:a foaf:name "Eve"^^xsd:string . _:b foaf:name "Alice"^^xsd:string . _:c foaf:name "Fred"^^xsd:string . _:e foaf:name "Bob"^^xsd:string . Named Graphs Query data-r2/sort/query-sort-9.rq */ /* Testcase 411 */ query: << PREFIX foaf: SELECT ?name WHERE { ?x foaf:name ?name } ORDER BY ?name >> OK /* Results data-r2/sort/result-sort-9.rdf */ /* -------------------------------------------------------- Builtin sort Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html Sort by a builtin operator Default Graph data-r2/sort/data-sort-builtin.ttl @prefix : . @prefix xsd: . :s1 :p "2"^^xsd:integer . :s2 :p "300"^^xsd:integer . :s3 :p "10"^^xsd:integer . Named Graphs Query data-r2/sort/query-sort-builtin.rq */ /* Testcase 412 */ query: << PREFIX : SELECT ?s WHERE { ?s :p ?o . } ORDER BY str(?o) >> OK /* Results data-r2/sort/result-sort-builtin.ttl /* -------------------------------------------------------- Function sort Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html Sort by function invocation Default Graph data-r2/sort/data-sort-function.ttl @prefix : . :s1 :p "2" . :s2 :p "300" . :s3 :p "10" . Named Graphs Query data-r2/sort/query-sort-function.rq */ /* Testcase 413 */ query: << PREFIX : PREFIX xsd: SELECT ?s WHERE { ?s :p ?o . } ORDER BY xsd:integer(?o) >> OK /* Results data-r2/sort/result-sort-function.ttl /* -------------------------------------------------------- Expression sort Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html Sort by a bracketted expression Default Graph data-r2/sort/data-sort-numbers.ttl @prefix : . @prefix xsd: . :s1 :p "1"^^xsd:integer; :q "2"^^xsd:integer . :s2 :p "10"^^xsd:integer; :q "20"^^xsd:integer . :s3 :p "100"^^xsd:integer; :q "200"^^xsd:integer . Named Graphs Query data-r2/sort/query-sort-numbers.rq */ /* Testcase 414 */ query: << PREFIX : SELECT ?s WHERE { ?s :p ?o1 ; :q ?o2 . } ORDER BY (?o1 + ?o2) >> OK /* Results data-r2/sort/result-sort-numbers.ttl /* -------------------------------------------------------- dawg-triple-pattern-001 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358 Simple triple match Default Graph data-r2/triple-match/data-01.ttl @prefix : . :x :p :v1 . :x :p :v2 . Named Graphs Query data-r2/triple-match/dawg-tp-01.rq */ /* Testcase 415 */ query: << PREFIX : SELECT * WHERE { :x ?p ?q . } >> OK /* Results data-r2/triple-match/result-tp-01.ttl */ /* -------------------------------------------------------- dawg-triple-pattern-002 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358 Simple triple match Default Graph data-r2/triple-match/data-01.ttl @prefix : . :x :p :v1 . :x :p :v2 . Named Graphs Query data-r2/triple-match/dawg-tp-02.rq */ /* Testcase 416 */ query: << PREFIX : SELECT * WHERE { ?x :p ?q . } >> OK /* Results data-r2/triple-match/result-tp-02.ttl */ /* -------------------------------------------------------- dawg-triple-pattern-003 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358 Simple triple match - repeated variable Default Graph data-r2/triple-match/data-02.ttl @prefix : . :y :y :x . :x :y :y . :y :x :y . Named Graphs Query data-r2/triple-match/dawg-tp-03.rq */ /* Testcase 417 */ query: << SELECT * WHERE { ?a ?a ?b . } >> OK /* Results data-r2/triple-match/result-tp-03.ttl */ /* -------------------------------------------------------- dawg-triple-pattern-004 Query evaluation test Approved by http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358 Simple triple match - two triples, common variable Default Graph data-r2/triple-match/dawg-data-01.ttl @prefix foaf: . @prefix rdf: . @prefix rdfs: . _:alice rdf:type foaf:Person ; foaf:name "Alice" ; foaf:mbox ; foaf:knows _:bob ; . _:bob rdf:type foaf:Person ; foaf:name "Bob" ; foaf:knows _:alice ; foaf:mbox ; foaf:mbox ; . _:eve rdf:type foaf:Person ; foaf:name "Eve" ; foaf:knows _:fred ; . _:fred rdf:type foaf:Person ; foaf:mbox . Named Graphs Query data-r2/triple-match/dawg-tp-04.rq */ /* Testcase 418 */ query: << PREFIX rdf: PREFIX foaf: SELECT ?name WHERE { ?x rdf:type foaf:Person . ?x foaf:name ?name . } >> OK /* Results data-r2/triple-match/result-tp-04.ttl */ /* -------------------------------------------------------- tP-double-double Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-double-double.rq */ /* Testcase 419 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:double1 rdf:value ?l . t:double1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:double ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-double-float Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-double-float.rq */ /* Testcase 420 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:double1 rdf:value ?l . t:float1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:double ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-double-decimal Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-double-decimal.rq */ /* Testcase 421 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:double1 rdf:value ?l . t:decimal1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:double ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-float-float Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-float-float.rq */ /* Testcase 422 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:float1 rdf:value ?l . t:float1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:float ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-float-decimal Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-float-decimal.rq */ /* Testcase 423 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:float1 rdf:value ?l . t:decimal1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:float ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-decimal-decimal Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-decimal-decimal.rq */ /* Testcase 424 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:decimal1 rdf:value ?l . t:decimal1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:decimal ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-integer-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-integer-short.rq */ /* Testcase 425 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:integer1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-nonPositiveInteger-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-nonPositiveInteger-short.rq */ /* Testcase 426 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:nonPositiveIntegerN1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-negativeInteger-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-negativeInteger-short.rq */ /* Testcase 427 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:negativeIntegerN1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-long-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-long-short.rq */ /* Testcase 428 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:long1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-int-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-int-short.rq */ /* Testcase 429 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:int1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-short-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-short-short.rq */ /* Testcase 430 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:short1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-byte-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-byte-short.rq */ /* Testcase 431 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:byte1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-nonNegativeInteger-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-nonNegativeInteger-short.rq */ /* Testcase 432 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:nonNegativeInteger1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-unsignedLong-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-unsignedLong-short.rq */ /* Testcase 43 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:unsignedLong1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-unsignedInt-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-unsignedInt-short.rq */ /* Testcase 434 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:unsignedInt1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-unsignedShort-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-unsignedShort-short.rq */ /* Testcase 435 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:unsignedShort1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-unsignedByte-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-unsignedByte-short.rq */ /* Testcase 436 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:unsignedByte1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-positiveInteger-short Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-positiveInteger-short.rq */ /* Testcase 437 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:positiveInteger1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:integer ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-short-double Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-short-double.rq */ /* Testcase 438 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:short1 rdf:value ?l . t:double1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:double ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-short-float Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-short-float.rq */ /* Testcase 439 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:short1 rdf:value ?l . t:float1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:float ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-short-decimal Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-short-decimal.rq */ /* Testcase 440 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:short1 rdf:value ?l . t:decimal1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:decimal ) } >> OK /* Results data-r2/type-promotion/true.ttl */ /* -------------------------------------------------------- tP-short-short-fail Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-short-short-fail.rq */ /* Testcase 441 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:short1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:short ) } >> OK /* Results data-r2/type-promotion/false.ttl */ /* -------------------------------------------------------- tP-byte-short-fail Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-byte-short-fail.rq */ /* Testcase 442 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:byte1 rdf:value ?l . t:short1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:short ) } >> OK /* Results data-r2/type-promotion/false.ttl */ /* -------------------------------------------------------- tP-short-long-fail Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-short-long-fail.rq */ /* Testcase 443 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:short1 rdf:value ?l . t:long1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:decimal ) } >> OK /* Results data-r2/type-promotion/false.ttl */ /* -------------------------------------------------------- tP-short-int-fail Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-short-int-fail.rq */ /* Testcase 444 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:short1 rdf:value ?l . t:int1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:float ) } >> OK /* Results data-r2/type-promotion/false.ttl */ /* -------------------------------------------------------- tP-short-byte-fail Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-short-byte-fail.rq */ /* Testcase 445 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:short1 rdf:value ?l . t:byte1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:double ) } >> OK /* Results data-r2/type-promotion/false.ttl */ /* -------------------------------------------------------- tP-double-float-fail Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-double-float-fail.rq */ /* Testcase 446 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:double1 rdf:value ?l . t:float1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:float ) } >> OK /* Results data-r2/type-promotion/false.ttl */ /* -------------------------------------------------------- tP-double-decimal-fail Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-double-decimal-fail.rq */ /* Testcase 447 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:double1 rdf:value ?l . t:decimal1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:decimal ) } >> OK /* Results data-r2/type-promotion/false.ttl */ /* -------------------------------------------------------- tP-float-decimal-fail Query evaluation test Approved by http://www.w3.org/2007/07/17-dawg-minutes Positive test: product of type promotion within the xsd:decimal type tree. Default Graph data-r2/type-promotion/tP.ttl # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ @prefix rdf: . @prefix xsd: . @prefix t: . t:decimal1 rdf:value "1"^^xsd:decimal . t:float1 rdf:value "1"^^xsd:float . t:double1 rdf:value "1"^^xsd:double . t:booleanT rdf:value "true"^^xsd:boolean . t:dateTime1 rdf:value "2005-01-14T12:34:56"^^xsd:dateTime . # types derived from xsd:decimal: t:integer1 rdf:value "1"^^xsd:integer . t:nonPositiveIntegerN1 rdf:value "-1"^^xsd:nonPositiveInteger . t:negativeIntegerN1 rdf:value "-1"^^xsd:negativeInteger . t:long1 rdf:value "1"^^xsd:long . t:int1 rdf:value "1"^^xsd:int . t:short1 rdf:value "1"^^xsd:short . t:byte1 rdf:value "1"^^xsd:byte . t:nonNegativeInteger1 rdf:value "1"^^xsd:nonNegativeInteger . t:unsignedLong1 rdf:value "1"^^xsd:unsignedLong . t:unsignedInt1 rdf:value "1"^^xsd:unsignedInt . t:unsignedShort1 rdf:value "1"^^xsd:unsignedShort . t:unsignedByte1 rdf:value "1"^^xsd:unsignedByte . t:positiveInteger1 rdf:value "1"^^xsd:positiveInteger . Named Graphs Query data-r2/type-promotion/tP-float-decimal-fail.rq */ /* Testcase 448 */ query: << # Positive test: product of type promotion within the xsd:decimal type tree. # $Id: r2.html,v 1.11 2008/01/09 21:15:21 lfeigenb Exp $ PREFIX t: PREFIX rdf: PREFIX xsd: ASK WHERE { t:float1 rdf:value ?l . t:decimal1 rdf:value ?r . FILTER ( datatype(?l + ?r) = xsd:decimal ) } >> OK /* Results data-r2/type-promotion/false.ttl */ /* -------------------------------------------------------- W3C(R) SOFTWARE NOTICE AND LICENSE http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 This work (and included software, documentation such as READMEs, or other related items) is being provided by the copyright holders under the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. Permission to copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications: 1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. 2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. 3. Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION 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 SOFTWARE OR DOCUMENTATION. The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. */