Skip to content

Variables in IN expressions are not parsed #5

@yamalight

Description

@yamalight

Either it's me missing something obvious, or in.sparql query is parsed wrongly.
String query has this parts:
FILTER (?a IN (1, 2, 3))
FILTER (?c NOT IN (1, 2, 3))

JSON representation looks like this:

{
  "type": "filter",
  "expression": {
    "type": "operation",
    "operator": "in",
    "args": [
      "\"1\"^^http://www.w3.org/2001/XMLSchema#integer",
      "\"2\"^^http://www.w3.org/2001/XMLSchema#integer",
      "\"3\"^^http://www.w3.org/2001/XMLSchema#integer"
    ]
  }
}

And second one:

{
  "type": "filter",
  "expression": {
    "type": "operation",
    "operator": "notin",
    "args": [
      "\"1\"^^http://www.w3.org/2001/XMLSchema#integer",
      "\"2\"^^http://www.w3.org/2001/XMLSchema#integer",
      "\"3\"^^http://www.w3.org/2001/XMLSchema#integer"
    ]
  }
}

Is it me, or is the variables (?a in case 1, ?c in case 2) are really missing from args?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions