diff --git a/testsuite/oxigraph-tests/sparql/manifest.ttl b/testsuite/oxigraph-tests/sparql/manifest.ttl index d1ae7178..98701fcb 100644 --- a/testsuite/oxigraph-tests/sparql/manifest.ttl +++ b/testsuite/oxigraph-tests/sparql/manifest.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 ] ; mf:result . + +:one_or_more_shared rdf:type mf:QueryEvaluationTest ; + mf:name "SPARQL one or more with shared variable" ; + mf:action + [ qt:query ; + qt:data ] ; + mf:result . + +:one_or_more_star rdf:type mf:QueryEvaluationTest ; + mf:name "SPARQL-star one or more with shared variable" ; + mf:action + [ qt:query ; + qt:data ] ; + mf:result . diff --git a/testsuite/oxigraph-tests/sparql/one_or_more_shared.rq b/testsuite/oxigraph-tests/sparql/one_or_more_shared.rq new file mode 100644 index 00000000..037eca3a --- /dev/null +++ b/testsuite/oxigraph-tests/sparql/one_or_more_shared.rq @@ -0,0 +1,5 @@ +PREFIX ex: + +SELECT * WHERE { + ?s ex:p+ ?s +} diff --git a/testsuite/oxigraph-tests/sparql/one_or_more_shared.srx b/testsuite/oxigraph-tests/sparql/one_or_more_shared.srx new file mode 100644 index 00000000..07e556fb --- /dev/null +++ b/testsuite/oxigraph-tests/sparql/one_or_more_shared.srx @@ -0,0 +1,18 @@ + + + + + + + + + http://example.org/s + + + + + http://example.org/m + + + + \ No newline at end of file diff --git a/testsuite/oxigraph-tests/sparql/one_or_more_shared.ttl b/testsuite/oxigraph-tests/sparql/one_or_more_shared.ttl new file mode 100644 index 00000000..f9f18d7a --- /dev/null +++ b/testsuite/oxigraph-tests/sparql/one_or_more_shared.ttl @@ -0,0 +1,4 @@ +@prefix ex: . + +ex:s ex:p ex:m . +ex:m ex:p ex:s , ex:sbis . diff --git a/testsuite/oxigraph-tests/sparql/one_or_more_star.rq b/testsuite/oxigraph-tests/sparql/one_or_more_star.rq new file mode 100644 index 00000000..0977c191 --- /dev/null +++ b/testsuite/oxigraph-tests/sparql/one_or_more_star.rq @@ -0,0 +1,5 @@ +PREFIX ex: + +SELECT * WHERE { + << ?s ex:p ex:o >> ex:p+ << ?s ex:p ?o >> +} diff --git a/testsuite/oxigraph-tests/sparql/one_or_more_star.srx b/testsuite/oxigraph-tests/sparql/one_or_more_star.srx new file mode 100644 index 00000000..799fc0f1 --- /dev/null +++ b/testsuite/oxigraph-tests/sparql/one_or_more_star.srx @@ -0,0 +1,17 @@ + + + + + + + + + + http://example.org/s + + + http://example.org/oa + + + + \ No newline at end of file diff --git a/testsuite/oxigraph-tests/sparql/one_or_more_star.ttl b/testsuite/oxigraph-tests/sparql/one_or_more_star.ttl new file mode 100644 index 00000000..ab1067e0 --- /dev/null +++ b/testsuite/oxigraph-tests/sparql/one_or_more_star.ttl @@ -0,0 +1,4 @@ +@prefix ex: . + +<< 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 >> .