Skip to content

Question about BIND and EXISTS #295

@nkaralis

Description

@nkaralis

Hello.

According to the spec, given a FILTER (NOT) EXISTS pattern E, the variables of the group graph pattern that contains E are in scope of E.

Does this mean that queries, such as the one provided below, should be rejected?

PREFIX : <http://example.com/>
SELECT * WHERE {
  ?x :p ?n
  FILTER NOT EXISTS {
    ?x :q ?m .
    BIND(10 AS ?n) # ?n already in scope (?)
    FILTER(?n = ?m)
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions