W3C

Basic Update

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


Abstract

Basic SPARQL 1.1 Update test cases

This page describes W3C SPARQL Working Group's SPARQL1.1 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

insert-data-spo1: Simple insert data 1 Simple insert data 1

This is a simple insert of a single triple to the unnamed graph of an empty graph store

type
mf:UpdateEvaluationTest
approval
action
result
insert-data-spo-named1: Simple insert data named 1 Simple insert data named 1

This is a simple insert of a single triple into the named graph http://example.org/g1 of an empty graph store

type
mf:UpdateEvaluationTest
approval
action
result
insert-data-spo-named2: Simple insert data named 2 Simple insert data named 2

This is a simple insert of a single triple into the named graph http://example.org/g1 of a graph store consisting of an empty unnamed graph and the named graph holds one (different) triple already

type
mf:UpdateEvaluationTest
approval
action
result
insert-data-spo-named3: Simple insert data named 3 Simple insert data named 3

This is a simple insert of a single triple into the named graph http://example.org/g1 of a graph store consisting of an empty unnamed graph and the named holds the inserted triple already (using the same query as insert-data-named1)

type
mf:UpdateEvaluationTest
approval
action
result
insert-where-01: INSERT 01 INSERT 01

This is a INSERT over a dataset with a single triple in the default graph

type
mf:UpdateEvaluationTest
approval
action
result
insert-where-02: INSERT 02 INSERT 02

This is a INSERT over a dataset with a single triple in the default graph, inserting into a named graph

type
mf:UpdateEvaluationTest
approval
action
result
insert-where-03: INSERT 03 INSERT 03

This is a INSERT over a dataset with a single triple in a named graph, inserting into the named graph using the WITH keyword

type
mf:UpdateEvaluationTest
approval
action
result
insert-where-04: INSERT 04 INSERT 04

This is a INSERT of a triple over a dataset with data in named graphs, inserting into the default graph using the USING keyword

type
mf:UpdateEvaluationTest
approval
action
result
insert-using-01: INSERT USING 01 INSERT USING 01

This is an INSERT into the default graph of two triples constructed from the data in two named graphs that are treated as the default graph during matching with the USING keyword.

type
mf:UpdateEvaluationTest
approval
action
result
insert-05a: INSERT same bnode twice INSERT same bnode twice

As per http://lists.w3.org/Archives/Public/public-rdf-dawg/2012AprJun/0165.html

type
mf:UpdateEvaluationTest
approval
action
result
insert-data-same-bnode: INSERTing the same bnode with INSERT DATA into two different Graphs is the same bnode INSERTing the same bnode with INSERT DATA into two different Graphs is the same bnode

http://lists.w3.org/Archives/Public/public-rdf-dawg/2012JulSep/0196.html, this can be viewed as a variation of :insert-05a

type
mf:UpdateEvaluationTest
approval
action
result
insert-where-same-bnode: INSERTing the same bnode with two INSERT WHERE statement within one request is NOT the same bnode INSERTing the same bnode with two INSERT WHERE statement within one request is NOT the same bnode

http://lists.w3.org/Archives/Public/public-rdf-dawg/2012OctDec/0001.html, this can be viewed as a further variation of :insert-05a

type
mf:UpdateEvaluationTest
approval
action
result
insert-where-same-bnode2: INSERTing the same bnode with two INSERT WHERE statement within one request is NOT the same bnode even if both WHERE clauses have the empty solution mapping as the only solution. INSERTing the same bnode with two INSERT WHERE statement within one request is NOT the same bnode even if both WHERE clauses have the empty solution mapping as the only solution.

http://lists.w3.org/Archives/Public/public-rdf-dawg/2012OctDec/0001.html, this can be viewed as a further variation of :insert-05a

type
mf:UpdateEvaluationTest
approval
action
result