Skip to content
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

Prefixed IRIs with an escaped character in the local name get parsed incorrectly #168

Open
dionenak opened this issue Apr 26, 2023 · 0 comments

Comments

@dionenak
Copy link

Hello,

Currently when a prefixed IRI has an escaped non-alphanumeric character, the IRI gets parsed incorrectly.

For example, this query:

PREFIX a: <a:a>
Select * where {
  bind(a:a\/s as ?x)
}

Results to this JSON with the value of the IRI being a:aa\\/s:

{
  "queryType": "SELECT",
  "variables": [
    {}
  ],
  "where": [
    {
      "type": "bind",
      "variable": {
        "termType": "Variable",
        "value": "x"
      },
      "expression": {
        "termType": "NamedNode",
        "value": "a:aa\\/s"
      }
    }
  ],
  "type": "query",
  "prefixes": {
    "a": "a:a"
  }
}

But the value of the IRI should be a:aa/s:

{
  "queryType": "SELECT",
  "variables": [
    {}
  ],
  "where": [
    {
      "type": "bind",
      "variable": {
        "termType": "Variable",
        "value": "x"
      },
      "expression": {
        "termType": "NamedNode",
        "value": "a:aa/s"
      }
    }
  ],
  "type": "query",
  "prefixes": {
    "a": "a:a"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant