Skip to content

Variables in IN expressions are not parsed #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yamalight opened this issue Feb 16, 2015 · 3 comments
Closed

Variables in IN expressions are not parsed #5

yamalight opened this issue Feb 16, 2015 · 3 comments
Assignees
Labels

Comments

@yamalight
Copy link
Contributor

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?

@RubenVerborgh RubenVerborgh self-assigned this Feb 17, 2015
@RubenVerborgh
Copy link
Owner

Thanks for reporting, definitely a bug!

@yamalight
Copy link
Contributor Author

@RubenVerborgh looks like you can expect a number of bugs reported in coming days :)

@RubenVerborgh RubenVerborgh changed the title in sparql query parsed incorrectly? Variables in IN expressions are not parsed Feb 17, 2015
@RubenVerborgh
Copy link
Owner

@yamalight Thanks for your help 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants