Skip to content

Commit ab9e3b9

Browse files
Tptafs
authored andcommitted
SPARQL 1.0: add a test to cover that the variable bound by a GRAPH operator is not in-scope inside it
1 parent 428f41c commit ab9e3b9

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SELECT * {
2+
GRAPH ?g { FILTER (BOUND(?g)) }
3+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .
2+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
3+
4+
[] rdf:type rs:ResultSet ;
5+
rs:resultVariable "g" .

sparql/sparql10/graph/manifest.ttl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
:graph-empty
2525
:graph-exist
2626
:graph-not-exist
27+
:graph-variable-scope
2728
).
2829

2930
:dawg-graph-01 rdf:type mf:QueryEvaluationTest ;
@@ -202,3 +203,15 @@
202203
] ;
203204
mf:result <graph-empty-not-exist.ttl> ;
204205
.
206+
207+
:graph-variable-scope rdf:type mf:QueryEvaluationTest ;
208+
mf:name "graph-variable-scope" ;
209+
rdfs:comment "The variable bound by the GRAPH operator is not in-scope inside it" ;
210+
mf:action
211+
[ qt:query <graph-variable-scope.rq> ;
212+
qt:data <data-g1.ttl> ;
213+
qt:graphData <data-g1.ttl> ;
214+
qt:graphData <data-g2.ttl> ;
215+
] ;
216+
mf:result <graph-variable-scope.ttl> ;
217+
.

0 commit comments

Comments
 (0)