Adds some extra tests covering property path with shared variables

pull/475/head
Tpt 1 year ago committed by Thomas Tanon
parent 3e0f6b5405
commit b630ab4185
  1. 16
      testsuite/oxigraph-tests/sparql/manifest.ttl
  2. 5
      testsuite/oxigraph-tests/sparql/one_or_more_shared.rq
  3. 18
      testsuite/oxigraph-tests/sparql/one_or_more_shared.srx
  4. 4
      testsuite/oxigraph-tests/sparql/one_or_more_shared.ttl
  5. 5
      testsuite/oxigraph-tests/sparql/one_or_more_star.rq
  6. 17
      testsuite/oxigraph-tests/sparql/one_or_more_star.srx
  7. 4
      testsuite/oxigraph-tests/sparql/one_or_more_star.ttl

@ -32,6 +32,8 @@
:values_too_many
:values_too_few
:values_property_path_all
:one_or_more_shared
:one_or_more_star
) .
:small_unicode_escape_with_multibytes_char rdf:type mf:NegativeSyntaxTest ;
@ -147,3 +149,17 @@
mf:action
[ qt:query <values_property_path_all.rq> ] ;
mf:result <values_property_path_all.srx> .
:one_or_more_shared rdf:type mf:QueryEvaluationTest ;
mf:name "SPARQL one or more with shared variable" ;
mf:action
[ qt:query <one_or_more_shared.rq> ;
qt:data <one_or_more_shared.ttl> ] ;
mf:result <one_or_more_shared.srx> .
:one_or_more_star rdf:type mf:QueryEvaluationTest ;
mf:name "SPARQL-star one or more with shared variable" ;
mf:action
[ qt:query <one_or_more_star.rq> ;
qt:data <one_or_more_star.ttl> ] ;
mf:result <one_or_more_star.srx> .

@ -0,0 +1,5 @@
PREFIX ex: <http://example.org/>
SELECT * WHERE {
?s ex:p+ ?s
}

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<head>
<variable name="s"/>
</head>
<results>
<result>
<binding name="s">
<uri>http://example.org/s</uri>
</binding>
</result>
<result>
<binding name="s">
<uri>http://example.org/m</uri>
</binding>
</result>
</results>
</sparql>

@ -0,0 +1,4 @@
@prefix ex: <http://example.org/> .
ex:s ex:p ex:m .
ex:m ex:p ex:s , ex:sbis .

@ -0,0 +1,5 @@
PREFIX ex: <http://example.org/>
SELECT * WHERE {
<< ?s ex:p ex:o >> ex:p+ << ?s ex:p ?o >>
}

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<head>
<variable name="s"/>
<variable name="o"/>
</head>
<results>
<result>
<binding name="s">
<uri>http://example.org/s</uri>
</binding>
<binding name="o">
<uri>http://example.org/oa</uri>
</binding>
</result>
</results>
</sparql>

@ -0,0 +1,4 @@
@prefix ex: <http://example.org/> .
<< ex:s ex:p ex:o >> ex:p ex:m .
ex:m ex:p << ex:s ex:p ex:oa >> , << ex:sbis ex:p ex:oa >> .
Loading…
Cancel
Save