W3C

SORT

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


Abstract

Sorting test cases.

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-sort-1: sort-1 sort-1

Alphabetic sort (ascending) on untyped literals

type
mf:QueryEvaluationTest
approval
action
result
result-sort-1.rdf
dawg-sort-2: sort-2 sort-2

Alphabetic sort (descending) on untyped literals

type
mf:QueryEvaluationTest
approval
action
result
result-sort-2.rdf
dawg-sort-3: sort-3 sort-3

Sort on (possibly unbound) URIs

type
mf:QueryEvaluationTest
approval
action
result
result-sort-3.rdf
dawg-sort-4: sort-4 sort-4

Sort on datatyped (integer) literals

type
mf:QueryEvaluationTest
approval
action
result
result-sort-4.rdf
dawg-sort-5: sort-5 sort-5

Sort first on untyped literals (ascending), then on datatyped (integer) literals (descending

type
mf:QueryEvaluationTest
approval
action
result
result-sort-5.rdf
dawg-sort-6: sort-6 sort-6

Sort on mixed result of uris and literals.

type
mf:QueryEvaluationTest
approval
action
result
result-sort-6.rdf
dawg-sort-7: sort-7 sort-7

Sort on comparable mixed typed literals (integer and float)

type
mf:QueryEvaluationTest
approval
action
result
result-sort-7.rdf
dawg-sort-8: sort-8 sort-8

Sort on several mixed values (bnode, uri, literal)

type
mf:QueryEvaluationTest
approval
action
result
result-sort-8.rdf
dawg-sort-9: sort-9 sort-9

Alphabetic sort (ascending) on datatyped (string) literals

type
mf:QueryEvaluationTest
approval
action
result
result-sort-9.rdf
dawg-sort-10: sort-10 sort-10

Alphabetic sort (descending) on datatyped (string) literals

type
mf:QueryEvaluationTest
approval
action
result
result-sort-10.rdf
dawg-sort-numbers: Expression sort Expression sort

Sort by a bracketted expression

type
mf:QueryEvaluationTest
approval
action
result
result-sort-numbers.ttl
dawg-sort-builtin: Builtin sort Builtin sort

Sort by a builtin operator

type
mf:QueryEvaluationTest
approval
action
result
result-sort-builtin.ttl
dawg-sort-function: Function sort Function sort

Sort by function invocation

type
mf:QueryEvaluationTest
approval
action
result
result-sort-function.ttl