Skip to content

Commit 562816b

Browse files
committed
Add test for repeated UUID invocation (w3c/sparql-dev#102).
1 parent 280e9de commit 562816b

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

sparql11/data-sparql11/functions/manifest.ttl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,18 @@
733733
mf:result <uuid01.srx> ;
734734
.
735735

736+
:uuid02 rdf:type mf:QueryEvaluationTest ;
737+
mf:name "UUID() per binding" ;
738+
rdfs:comment "UUID() calls generate results per invocation, not per query" ;
739+
rdfs:seeAlso <https://github.com/w3c/sparql-12/issues/102> ;
740+
mf:feature sparql:uuid ;
741+
dawgt:approval dawgt:Proposed ;
742+
mf:action
743+
[ qt:query <uuid02.rq> ;
744+
qt:data <data-empty.nt> ] ;
745+
mf:result <uuid02.srx> ;
746+
.
747+
736748
:struuid01 rdf:type mf:QueryEvaluationTest ;
737749
mf:name "STRUUID() pattern match" ;
738750
mf:feature sparql:struuid ;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
PREFIX : <http://example.org/>
2+
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
3+
ASK {
4+
BIND(UUID() AS ?u1)
5+
BIND(UUID() AS ?u2)
6+
FILTER(?u1 != ?u2)
7+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
3+
<head/>
4+
<boolean>true</boolean>
5+
</sparql>

0 commit comments

Comments
 (0)