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

dawg-str-1: str-1 str-1
type
mf:QueryEvaluationTest
approval
action
result
result-str-1.ttl
dawg-str-2: str-2 str-2
type
mf:QueryEvaluationTest
approval
action
result
result-str-2.ttl
dawg-str-3: str-3 str-3
type
mf:QueryEvaluationTest
approval
action
result
result-str-3.ttl
dawg-str-4: str-4 str-4
type
mf:QueryEvaluationTest
approval
action
result
result-str-4.ttl
dawg-isBlank-1: isBlank-1 isBlank-1
type
mf:QueryEvaluationTest
approval
action
result
result-blank-1.ttl
dawg-isLiteral-1: isLiteral isLiteral
type
mf:QueryEvaluationTest
approval
action
result
result-isliteral-1.ttl
dawg-datatype-1: datatype-1 datatype-1
type
mf:QueryEvaluationTest
approval
action
result
result-datatype-1.ttl
dawg-datatype-2: datatype-2 : Literals with a datatype datatype-2 : Literals with a datatype

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
action
result
result-datatype-2.srx
dawg-datatype-3: datatype-3 : Literals with a datatype of xsd:string datatype-3 : Literals with a datatype of xsd:string

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
action
result
result-datatype-3.srx
dawg-lang-1: lang-1 : Literals with a lang tag of some kind lang-1 : Literals with a lang tag of some kind

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
action
result
result-lang-1.srx
dawg-lang-2: lang-2 : Literals with a lang tag of '' lang-2 : Literals with a lang tag of ''

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
action
result
result-lang-2.srx
dawg-lang-3: lang-3 : Graph matching with lang tag being a different case lang-3 : Graph matching with lang tag being a different case

updated from original test case: eliminated ordering from test

type
mf:QueryEvaluationTest
approval
action
result
result-lang-3.srx
dawg-isURI-1: isURI-1 isURI-1
type
mf:QueryEvaluationTest
approval
action
result
result-uri-1.ttl
dawg-isIRI-1: isIRI-1 isIRI-1
type
mf:QueryEvaluationTest
approval
action
result
result-iri-1.ttl
dawg-langMatches-1: LangMatches-1 LangMatches-1

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

type
mf:QueryEvaluationTest
approval
action
result
result-langMatches-1.ttl
dawg-langMatches-2: LangMatches-2 LangMatches-2

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

type
mf:QueryEvaluationTest
approval
action
result
result-langMatches-2.ttl
dawg-langMatches-3: LangMatches-3 LangMatches-3

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

type
mf:QueryEvaluationTest
approval
action
result
result-langMatches-3.ttl
dawg-langMatches-4: LangMatches-4 LangMatches-4

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

type
mf:QueryEvaluationTest
approval
action
result
result-langMatches-4.ttl
dawg-langMatches-basic: LangMatches-basic LangMatches-basic

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

type
mf:QueryEvaluationTest
approval
action
result
result-langMatches-de.ttl
lang-case-insensitive-eq: lang-case-insensitive-eq lang-case-insensitive-eq

'xyz'@en = 'xyz'@EN

type
mf:QueryEvaluationTest
approval
action
result
lang-case-insensitive-eq.srx
lang-case-insensitive-ne: lang-case-insensitive-ne lang-case-insensitive-ne

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

type
mf:QueryEvaluationTest
approval
action
result
lang-case-insensitive-ne.srx
sameTerm-simple: sameTerm-simple sameTerm-simple

sameTerm(?v1, ?v2)

type
mf:QueryEvaluationTest
approval
action
result
result-sameTerm.ttl
sameTerm-eq: sameTerm-eq sameTerm-eq

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

type
mf:QueryEvaluationTest
approval
action
result
result-sameTerm-eq.ttl
sameTerm-not-eq: sameTerm-not-eq sameTerm-not-eq

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

type
mf:QueryEvaluationTest
approval
action
result
result-sameTerm-not-eq.ttl