Adds an update test about dirty reads

pull/171/head
Tpt 3 years ago
parent 607aa0b0dd
commit aaa730d684
  1. 7
      testsuite/oxigraph-tests/sparql/manifest.ttl
  2. 3
      testsuite/oxigraph-tests/sparql/update_dirty_read.ru
  3. 3
      testsuite/oxigraph-tests/sparql/update_dirty_read_result.ttl

@ -3,6 +3,7 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
@prefix ut: <http://www.w3.org/2009/sparql/tests/test-update#> .
<> rdf:type mf:Manifest ;
rdfs:label "Oxigraph SPARQL tests" ;
@ -17,6 +18,7 @@
:values_in_filter_not_exists
:subquery_in_filter_not_exists
:cmp_langString
:update_dirtyRead
) .
:describe rdf:type mf:QueryEvaluationTest ;
@ -71,3 +73,8 @@
mf:name "rdf:langString with the same language are comparable" ;
mf:action [ qt:query <cmp_langString.rq> ] ;
mf:result <cmp_langString.srx> .
:update_dirty_read rdf:type mf:UpdateEvaluationTest ;
mf:name "An update operation should not be able to read its own writes" ;
mf:action [ ut:request <update_dirtyRead.ru> ] ;
mf:result [ ut:data <update_dirty_read_result.ttl> ] .

@ -0,0 +1,3 @@
PREFIX ex: <http://example.com/>
INSERT DATA { ex:s ex:p 1 . ex:s ex:p 5 };
INSERT { ex:s ex:p ?v } WHERE { VALUES ?o { 1 2 5 6 } FILTER EXISTS { ?s ex:p ?o } BIND(?o + 1 AS ?v) }

@ -0,0 +1,3 @@
@prefix ex: <http://example.com/> .
ex:s ex:p 1 , 2 , 5 , 6 .
Loading…
Cancel
Save