Skip to content

Commit

Permalink
SPARQL 1.1: Adds tests for CONSTRUCT and list
Browse files Browse the repository at this point in the history
This feature is in the grammar but not covered by the testsuite
  • Loading branch information
Tpt authored and afs committed May 25, 2023
1 parent 610f046 commit fb41032
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sparql/sparql11/construct/constructlist.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PREFIX : <http://example.org/>

CONSTRUCT { (?s ?o) :prop ?p } WHERE { ?s ?p ?o }
6 changes: 6 additions & 0 deletions sparql/sparql11/construct/constructlistresult.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@prefix : <http://example.org/> .

(:s1 :o1) :prop :p .
(:s2 :o1) :prop :p .
(:s2 :o2) :prop :p .
(:s3 :o3) :prop :p .
8 changes: 8 additions & 0 deletions sparql/sparql11/construct/manifest.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
:constructwhere04
:constructwhere05
:constructwhere06
:constructlist
) .

:constructwhere01 rdf:type mf:QueryEvaluationTest ;
Expand Down Expand Up @@ -73,3 +74,10 @@
dawgt:approval dawgt:Approved ;
dawgt:approvedBy <http://www.w3.org/2009/sparql/meeting/2011-02-01#resolution_3> ;
mf:action <constructwhere06.rq> .

:constructlist rdf:type mf:QueryEvaluationTest ;
mf:name "CONSTRUCT list" ;
mf:action
[ qt:query <constructlist.rq> ;
qt:data <data.ttl> ] ;
mf:result <constructlistresult.ttl> .

0 comments on commit fb41032

Please sign in to comment.