Skip to content

Commit 425b2a6

Browse files
authored
Merge pull request #69 from kasei/sparql12-issue-102
Add test for repeated UUID invocation (w3c/sparql-dev#102).
2 parents 399394a + fd9cd31 commit 425b2a6

File tree

3 files changed

+93
-68
lines changed

3 files changed

+93
-68
lines changed

sparql11/data-sparql11/functions/manifest.ttl

Lines changed: 81 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -10,74 +10,75 @@
1010
rdfs:label "Built-in Functions" ;
1111
mf:entries
1212
(
13-
:strdt01
14-
:strdt02
15-
:strdt03-rdf11
16-
:strlang01
17-
:strlang02
18-
:strlang03-rdf11
19-
:isnumeric01
20-
:abs01
21-
:ceil01
22-
:floor01
23-
:round01
24-
:concat01
25-
:concat02
26-
:substring01
27-
:substring01-non-bmp
28-
:substring02
29-
:substring02-non-bmp
30-
:length01
31-
:length01-non-bmp
32-
:ucase01
33-
:ucase01-non-bmp
34-
:lcase01
35-
:lcase01-non-bmp
36-
:encode01
37-
:encode01-non-bmp
38-
:contains01
39-
:starts01
40-
:ends01
41-
:plus-1-corrected
42-
:plus-2-corrected
43-
:md5-01
44-
:md5-02
45-
:sha1-01
46-
:sha1-02
47-
:sha256-01
48-
:sha256-02
49-
:sha512-01
50-
:sha512-02
51-
:minutes
52-
:seconds
53-
:hours
54-
:month
55-
:year
56-
:day
57-
:timezone
58-
:tz
59-
:bnode01
60-
:bnode02
61-
:in01
62-
:in02
63-
:notin01
64-
:notin02
65-
:now01
66-
:rand01
67-
:iri01
68-
:if01
69-
:if02
70-
:coalesce01
71-
:strbefore01a
72-
:strbefore02
73-
:strafter01a
74-
:strafter02
75-
:replace01
76-
:replace02
77-
:replace03
78-
:uuid01
79-
:struuid01
80-
) .
13+
:strdt01
14+
:strdt02
15+
:strdt03-rdf11
16+
:strlang01
17+
:strlang02
18+
:strlang03-rdf11
19+
:isnumeric01
20+
:abs01
21+
:ceil01
22+
:floor01
23+
:round01
24+
:concat01
25+
:concat02
26+
:substring01
27+
:substring01-non-bmp
28+
:substring02
29+
:substring02-non-bmp
30+
:length01
31+
:length01-non-bmp
32+
:ucase01
33+
:ucase01-non-bmp
34+
:lcase01
35+
:lcase01-non-bmp
36+
:encode01
37+
:encode01-non-bmp
38+
:contains01
39+
:starts01
40+
:ends01
41+
:plus-1-corrected
42+
:plus-2-corrected
43+
:md5-01
44+
:md5-02
45+
:sha1-01
46+
:sha1-02
47+
:sha256-01
48+
:sha256-02
49+
:sha512-01
50+
:sha512-02
51+
:minutes
52+
:seconds
53+
:hours
54+
:month
55+
:year
56+
:day
57+
:timezone
58+
:tz
59+
:bnode01
60+
:bnode02
61+
:in01
62+
:in02
63+
:notin01
64+
:notin02
65+
:now01
66+
:rand01
67+
:iri01
68+
:if01
69+
:if02
70+
:coalesce01
71+
:strbefore01a
72+
:strbefore02
73+
:strafter01a
74+
:strafter02
75+
:replace01
76+
:replace02
77+
:replace03
78+
:uuid01
79+
:uuid02
80+
:struuid01
81+
) .
8182

8283

8384
:strdt01 rdf:type mf:QueryEvaluationTest ;
@@ -799,6 +800,18 @@
799800
mf:result <uuid01.srx> ;
800801
.
801802

803+
:uuid02 rdf:type mf:QueryEvaluationTest ;
804+
mf:name "UUID() per binding" ;
805+
rdfs:comment "UUID() calls generate results per invocation, not per query" ;
806+
rdfs:seeAlso <https://github.com/w3c/sparql-12/issues/102> ;
807+
mf:feature sparql:uuid ;
808+
dawgt:approval dawgt:Proposed ;
809+
mf:action
810+
[ qt:query <uuid02.rq> ;
811+
qt:data <data-empty.nt> ] ;
812+
mf:result <uuid02.srx> ;
813+
.
814+
802815
:struuid01 rdf:type mf:QueryEvaluationTest ;
803816
mf:name "STRUUID() pattern match" ;
804817
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)