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

Wrong Escaping in TurtleSerializer #30

Open
gfobe opened this issue Apr 5, 2012 · 0 comments
Open

Wrong Escaping in TurtleSerializer #30

gfobe opened this issue Apr 5, 2012 · 0 comments

Comments

@gfobe
Copy link

gfobe commented Apr 5, 2012

If there is a " in a string, ARC2 will enclose the whole string with ' instead of escaping it the right way.

Code:
Escaping in TurtleSerializer::getTerm() in serializers/ARC2_TurtleSerializer.php ln. 52ff

Right solution:
As you can see in http://www.w3.org/TeamSubmission/turtle/#sec-grammar-grammar strings have to be enclosed with "
[14] literal ::= quotedString ( '@' language )? | datatypeString | integer | double | decimal | boolean
[35] quotedString ::= string | longString
[36] string ::= #x22 scharacter* #x22
Furthermore in http://www.w3.org/TeamSubmission/turtle/#sec-strings you can see, escaping must be '"' (inside string and longString)

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