Skip to content

Commit f6b20f4

Browse files
rubensworksafs
authored andcommitted
Exclude non-triple-term comparisons from op-4
As discussed in #168, <= and >= are not defined on IRIs and blank nodes in the SPARQL operator table. As such, this spec test should not rely on their existence, even though some implementations may have support for them through operator extensions.
1 parent b6ec648 commit f6b20f4

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

sparql/sparql12/eval-triple-terms/op-4.rq

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PREFIX : <http://example/>
33
SELECT * {
44
?x :left ?left .
55
?x :right ?right .
6+
FILTER ( isTRIPLE(?left) && isTRIPLE(?right) )
67
FILTER ( ?left <= ?right )
78
FILTER ( ?right >= ?left )
89
}

sparql/sparql12/eval-triple-terms/op-4.srj

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -285,34 +285,6 @@
285285
},
286286
"type": "triple"
287287
}
288-
},
289-
{
290-
"x": {
291-
"value": "http://example/x9",
292-
"type": "uri"
293-
},
294-
"left": {
295-
"value": "http://example/irireifier",
296-
"type": "uri"
297-
},
298-
"right": {
299-
"value": "http://example/irireifier",
300-
"type": "uri"
301-
}
302-
},
303-
{
304-
"x": {
305-
"value": "http://example/x10",
306-
"type": "uri"
307-
},
308-
"left": {
309-
"value": "bc_0_b0_bnodereifier",
310-
"type": "bnode"
311-
},
312-
"right": {
313-
"value": "bc_0_b0_bnodereifier",
314-
"type": "bnode"
315-
}
316288
}
317289
]
318290
}

0 commit comments

Comments
 (0)