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

Backslash character parser bugs in NTriples parser #52

Closed
robstewart57 opened this issue Jun 17, 2018 · 1 comment
Closed

Backslash character parser bugs in NTriples parser #52

robstewart57 opened this issue Jun 17, 2018 · 1 comment

Comments

@robstewart57
Copy link
Owner

let Right (g::RDF TList) =
    parseString
         NTriplesParser
         (Data.Text.pack "<http://a.example/s> <http://a.example/p> \"\\r\" .")

Evaluating g:

Triple (UNode "http://a.example/s") (UNode "http://a.example/p") (LNode (PlainL "r"))

So the \r character is being parsed just as r.

This is the reason for a number of TurtleParser tests failing, since their results are compared against NTriple golden references parsed with the NTriples parser, e.g.

  • stack test --test-arguments="--pattern literal_with_escaped_CARRIAGE_RETURN"
  • stack test --test-arguments="--pattern literal_with_CHARACTER_TABULATION"
@wismill
Copy link
Contributor

wismill commented Jul 17, 2018

Hi, this is fixed in #55

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

2 participants