From 19d00a7696e09e5982610c263d3efd5767e380a9 Mon Sep 17 00:00:00 2001 From: Thomas Tanon Date: Tue, 30 Sep 2025 19:58:45 +0200 Subject: [PATCH 1/5] Forbid repeated variables in VALUES Close #293 --- spec/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/index.html b/spec/index.html index 3eabcac0..c6ce8191 100644 --- a/spec/index.html +++ b/spec/index.html @@ -2684,6 +2684,7 @@

VALUES syntax

             VALUES (?z) { ("abc") ("def") }
           
+

Note that duplicated variables are not allowed in VALUES clauses.

VALUES Examples

@@ -11125,7 +11126,8 @@

Grammar

nor in DELETE DATA.
  • Rules for limiting the use of blank node identifiers are given in section 19.6.
  • The number of variables in the variable list of VALUES block - must be the same as the number of each list of associated values in the DataBlock.
  • + must be the same as the number of each list of associated values in the DataBlock, + and variables can not be repeated in the variable list.
  • Variables introduced by AS in a SELECT clause must not already be in-scope.
  • The variable assigned in a BIND clause must not be already @@ -12614,6 +12616,7 @@

    Changes between SPARQL 1.1 Query Language and SPARQL 1.2 Query Language

  • Migrate XML Schema references to 1.1
  • Update references to XPath from 2.0 to 3.1
  • Define `EBV` as a functional form.
  • +
  • Forbid duplicated variables in `VALUES`.
  • From 2db36815cef6916af889a9cd80c709471ba5bc84 Mon Sep 17 00:00:00 2001 From: Thomas Tanon Date: Tue, 30 Sep 2025 21:19:46 +0200 Subject: [PATCH 2/5] improve wording Co-authored-by: Olaf Hartig --- spec/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/index.html b/spec/index.html index c6ce8191..4c3b4330 100644 --- a/spec/index.html +++ b/spec/index.html @@ -2684,7 +2684,7 @@

    VALUES syntax

                 VALUES (?z) { ("abc") ("def") }
               
    -

    Note that duplicated variables are not allowed in VALUES clauses.

    +

    Note that the same variable cannot be mentioned multiple times within the variables list of a VALUES clause.

  • VALUES Examples

    From bd32e3ac267db4ff6af5b3c66afe3e0ce27978ac Mon Sep 17 00:00:00 2001 From: Thomas Tanon Date: Wed, 1 Oct 2025 18:26:04 +0200 Subject: [PATCH 3/5] Improve wording Co-authored-by: Andy Seaborne --- spec/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/index.html b/spec/index.html index 4c3b4330..000d1f5a 100644 --- a/spec/index.html +++ b/spec/index.html @@ -11126,8 +11126,8 @@

    Grammar

    nor in DELETE DATA.
  • Rules for limiting the use of blank node identifiers are given in section 19.6.
  • The number of variables in the variable list of VALUES block - must be the same as the number of each list of associated values in the DataBlock, - and variables can not be repeated in the variable list.
  • + must be the same as the number of each list of associated values in the DataBlock. +
  • Variables in the variable list of VALUES block must be unique.
  • Variables introduced by AS in a SELECT clause must not already be in-scope.
  • The variable assigned in a BIND clause must not be already From d085a694422b77273d1e092973d23b7b9d8806c4 Mon Sep 17 00:00:00 2001 From: Thomas Tanon Date: Thu, 2 Oct 2025 19:54:12 +0200 Subject: [PATCH 4/5] rewording Co-authored-by: Ted Thibodeau Jr --- spec/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/index.html b/spec/index.html index 000d1f5a..ca62693e 100644 --- a/spec/index.html +++ b/spec/index.html @@ -11127,7 +11127,7 @@

    Grammar

  • Rules for limiting the use of blank node identifiers are given in section 19.6.
  • The number of variables in the variable list of VALUES block must be the same as the number of each list of associated values in the DataBlock.
  • -
  • Variables in the variable list of VALUES block must be unique.
  • +
  • Variables in the variable list of a VALUES block must be unique within that list.
  • Variables introduced by AS in a SELECT clause must not already be in-scope.
  • The variable assigned in a BIND clause must not be already From afe1775dd8dbd6c6465c97bd9dfa3d0bdffa93b1 Mon Sep 17 00:00:00 2001 From: Thomas Tanon Date: Thu, 2 Oct 2025 20:12:36 +0200 Subject: [PATCH 5/5] Update spec/index.html Co-authored-by: Andy Seaborne --- spec/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/index.html b/spec/index.html index ca62693e..ea600a0b 100644 --- a/spec/index.html +++ b/spec/index.html @@ -11125,7 +11125,7 @@

    Grammar

    DELETE, nor in DELETE DATA.
  • Rules for limiting the use of blank node identifiers are given in section 19.6.
  • -
  • The number of variables in the variable list of VALUES block +
  • The number of variables in the variable list of a VALUES block must be the same as the number of each list of associated values in the DataBlock.
  • Variables in the variable list of a VALUES block must be unique within that list.
  • Variables introduced by AS in a SELECT clause