Skip to content

Commit

Permalink
SPARQL path: ZeroOrX should only return terms in the graph and not al…
Browse files Browse the repository at this point in the history
…so terms defined in the query
  • Loading branch information
Tpt authored and afs committed May 19, 2023
1 parent 8f53603 commit f293cfa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sparql/sparql11/property-path/manifest.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
:pp35
:pp36
:pp37

:values_and_path
) .


Expand Down Expand Up @@ -285,3 +287,10 @@
qt:data <pp37.ttl> ] ;
mf:result <pp37.srx>
.

:values_and_path rdf:type mf:QueryEvaluationTest ;
mf:name "ZeroOrX property paths should only return terms in the graph and not also terms defined in the query" ;
mf:action
[ qt:query <values_and_path.rq> ;
qt:data <empty.ttl> ] ;
mf:result <values_and_path.srx> .
4 changes: 4 additions & 0 deletions sparql/sparql11/property-path/values_and_path.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT * WHERE {
VALUES ?v { 1 }
?v <http://example.com/p>? ?v
}
8 changes: 8 additions & 0 deletions sparql/sparql11/property-path/values_and_path.srx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<head>
<variable name="v"/>
</head>
<results>
</results>
</sparql>

0 comments on commit f293cfa

Please sign in to comment.