W3C

Built-ins

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


Abstract

DAWG Expression tests: Built-ins

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-builtin/manifest#dawg-str-1: str-1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-str-1.rq
data
data-builtin-1.ttl
result
result-str-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-str-2: str-2
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-str-2.rq
data
data-builtin-1.ttl
result
result-str-2.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-str-3: str-3
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-str-3.rq
data
data-builtin-1.ttl
result
result-str-3.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-str-4: str-4
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-str-4.rq
data
data-builtin-1.ttl
result
result-str-4.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-isBlank-1: isBlank-1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-blank-1.rq
data
data-builtin-1.ttl
result
result-blank-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-isLiteral-1: isLiteral
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html
action
query
q-isliteral-1.rq
data
data-builtin-2.ttl
result
result-isliteral-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-datatype-1: datatype-1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-datatype-1.rq
data
data-builtin-1.ttl
result
result-datatype-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-datatype-2: datatype-2 : Literals with a datatype

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-datatype-2.rq
data
data-builtin-2.ttl
result
result-datatype-2.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-datatype-3: datatype-3 : Literals with a datatype of xsd:string

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-datatype-3.rq
data
data-builtin-2.ttl
result
result-datatype-3.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-lang-1: lang-1 : Literals with a lang tag of some kind

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-lang-1.rq
data
data-builtin-2.ttl
result
result-lang-1.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-lang-2: lang-2 : Literals with a lang tag of ''

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-lang-2.rq
data
data-builtin-2.ttl
result
result-lang-2.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-lang-3: lang-3 : Graph matching with lang tag being a different case

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-lang-3.rq
data
data-builtin-2.ttl
result
result-lang-3.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-isURI-1: isURI-1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-uri-1.rq
data
data-builtin-1.ttl
result
result-uri-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-isIRI-1: isIRI-1
type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html
action
query
q-iri-1.rq
data
data-builtin-1.ttl
result
result-iri-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-langMatches-1: LangMatches-1

langMatches(lang(?v), 'en-GB') matches 'abc'@en-gb

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-langMatches-1.rq
data
data-langMatches.ttl
result
result-langMatches-1.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-langMatches-2: LangMatches-2

langMatches(lang(?v), 'en') matches 'abc'@en, 'abc'@en-gb

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-langMatches-2.rq
data
data-langMatches.ttl
result
result-langMatches-2.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-langMatches-3: LangMatches-3

langMatches(lang(?v), '*') matches 'abc'@en, 'abc'@en-gb, 'abc'@fr

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-langMatches-3.rq
data
data-langMatches.ttl
result
result-langMatches-3.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-langMatches-4: LangMatches-4

! langMatches(lang(?v), '*') matches 'abc'

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006
action
query
q-langMatches-4.rq
data
data-langMatches.ttl
result
result-langMatches-4.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#dawg-langMatches-basic: LangMatches-basic

the basic range 'de-de' does not match 'de-Latn-de'

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html
action
query
q-langMatches-de-de.rq
data
data-langMatches-de.ttl
result
result-langMatches-de.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#lang-case-insensitive-eq: lang-case-insensitive-eq

'xyz'@en = 'xyz'@EN

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
lang-case-sensitivity-eq.rq
data
lang-case-sensitivity.ttl
result
lang-case-insensitive-eq.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#lang-case-insensitive-ne: lang-case-insensitive-ne

'xyz'@en != 'xyz'@EN

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://www.w3.org/2007/06/19-dawg-minutes.html
action
query
lang-case-sensitivity-ne.rq
data
lang-case-sensitivity.ttl
result
lang-case-insensitive-ne.srx
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#sameTerm-simple: sameTerm-simple

sameTerm(?v1, ?v2)

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html
action
query
sameTerm.rq
data
data-builtin-1.ttl
result
result-sameTerm.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#sameTerm-eq: sameTerm-eq

sameTerm(?v1, ?v2) && ?v1 = ?v2

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html
action
query
sameTerm-eq.rq
data
data-builtin-1.ttl
result
result-sameTerm-eq.ttl
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest#sameTerm-not-eq: sameTerm-not-eq

!sameTerm(?v1, ?v2) && ?v1 = ?v2

type
mf:QueryEvaluationTest
approval
dawgt:Approved
approvedBy
http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html
action
query
sameTerm-not-eq.rq
data
data-builtin-1.ttl
result
result-sameTerm-not-eq.ttl