-
Notifications
You must be signed in to change notification settings - Fork 146
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
Updater does not serialize carriage return line breaks (\r\n) correctly #517
Comments
Problem seems to originate from |
What else should be included? |
Indeed there may be more to consider
see https://www.w3.org/TR/n-triples/#grammar-production-STRING_LITERAL_QUOTE I will write some test cases |
so according to the spec (link in my last comment) #x22 ("), #x5C (), #x0A (\n) and #xD (\r) are disallowed and need to be replaced from those only carriage return was missing, which I now added in #516 |
If a literal contains
\r\n
the carriage return is serialized to a real line break in the resulting SPARQL Update query, which leads to invalid syntax. This is demonstrated via a unit test in 40a50b8#diff-15043c9b2c959a81026ffd28eae448814aa6d5b02c2a6e3f23e09488ad6b11b5R54Resulting query:
The text was updated successfully, but these errors were encountered: