From f293cfa71b731be6fa1c217e05fce21e58c9ff07 Mon Sep 17 00:00:00 2001 From: Tpt Date: Mon, 1 May 2023 16:05:40 +0200 Subject: [PATCH] SPARQL path: ZeroOrX should only return terms in the graph and not also terms defined in the query --- sparql/sparql11/property-path/manifest.ttl | 9 +++++++++ sparql/sparql11/property-path/values_and_path.rq | 4 ++++ sparql/sparql11/property-path/values_and_path.srx | 8 ++++++++ 3 files changed, 21 insertions(+) create mode 100644 sparql/sparql11/property-path/values_and_path.rq create mode 100644 sparql/sparql11/property-path/values_and_path.srx diff --git a/sparql/sparql11/property-path/manifest.ttl b/sparql/sparql11/property-path/manifest.ttl index b0626a8d..9a72e900 100644 --- a/sparql/sparql11/property-path/manifest.ttl +++ b/sparql/sparql11/property-path/manifest.ttl @@ -37,6 +37,8 @@ :pp35 :pp36 :pp37 + + :values_and_path ) . @@ -285,3 +287,10 @@ qt:data ] ; mf:result . + +: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 ; + qt:data ] ; + mf:result . diff --git a/sparql/sparql11/property-path/values_and_path.rq b/sparql/sparql11/property-path/values_and_path.rq new file mode 100644 index 00000000..ef4d6c8d --- /dev/null +++ b/sparql/sparql11/property-path/values_and_path.rq @@ -0,0 +1,4 @@ +SELECT * WHERE { + VALUES ?v { 1 } + ?v ? ?v +} \ No newline at end of file diff --git a/sparql/sparql11/property-path/values_and_path.srx b/sparql/sparql11/property-path/values_and_path.srx new file mode 100644 index 00000000..0632c2aa --- /dev/null +++ b/sparql/sparql11/property-path/values_and_path.srx @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file