W3C

equality of values

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


Abstract

Some SPARQL test cases - equality of values

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

Contributing Tests

The test manifests and entries are built automatically from manifest.ttl using a Rake task. Tests may be contributed via pull request to https://github.com/w3c/rdf-tests with suitable changes to the manifest.ttl and referenced files.

Distribution

Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License. To contribute to a W3C Test Suite, see the policies and contribution forms.

Disclaimer

UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

Test Descriptions

http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-1: Equality 1-1

= in FILTER expressions is value equality

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-1.rq
data
data-eq.ttl
result
result-eq-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-2: Equality 1-2

= in FILTER expressions is value equality

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-2.rq
data
data-eq.ttl
result
result-eq-2.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-3: Equality 1-3

Numerics are not value-equivalent to plain literals

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-3.rq
data
data-eq.ttl
result
result-eq-3.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-4: Equality 1-4

= compares plain literals and unknown types with the same lexical form as false

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-4.rq
data
data-eq.ttl
result
result-eq-4.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-5: Equality 1-5

= on IRI terms

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-5.rq
data
data-eq.ttl
result
result-eq-5.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-2-1: Equality - 2 var - test equals

= in FILTER is value equality

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq2-1.rq
data
data-eq.ttl
result
result-eq2-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-2-2: Equality - 2 var - test not equals

!= in FILTER is value inequality

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq2-1.rq
data
data-eq.ttl
result
result-eq2-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-graph-1: Equality 1-1 -- graph

Graph pattern matching matches exact terms, not values

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-graph-1.rq
data
data-eq.ttl
result
result-eq-graph-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-graph-2: Equality 1-2 -- graph

Graph pattern matching matches exact terms, not values

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-graph-2.rq
data
data-eq.ttl
result
result-eq-graph-2.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-graph-3: Equality 1-3 -- graph

Graph pattern matching matches exact terms, not values

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-graph-3.rq
data
data-eq.ttl
result
result-eq-graph-3.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-graph-4: Equality 1-4 -- graph

Graph pattern matching matches exact terms, not values

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-graph-4.rq
data
data-eq.ttl
result
result-eq-graph-4.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest#eq-graph-5: Equality 1-5 -- graph

Graph pattern matching matches exact terms, not values

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
query-eq-graph-5.rq
data
data-eq.ttl
result
result-eq-graph-5.ttl