Skip to content

Clarify VALUES with repeated variable names #293

@Tpt

Description

@Tpt

It seems to me that the SPARQL spec is not stating what should/must be the behavior of SPARQL implementations when VALUES clause contain repeated variable.

For example, in VALUES (?a ?a) { (1 2) } should the behavior be:

  1. a syntax error
  2. an empty solution multiset

And for VALUES (?a ?a) { (1 1) } should the behavior be:

  1. a syntax error
  2. a single solution ?a -> 1

Quick survey:

  • Jena and Blazegraph raise a syntax error (option 1)
  • Oxigraph, QLever and Comunica parse the first example as ?a -> 2

Proposal: extend the grammar note 11 to add and variables must not be repeated in the variable list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions