-
Notifications
You must be signed in to change notification settings - Fork 560
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
Support of UTF-8 in SPARQL Update queries #356
Conversation
hmm, what encoding was used before hard wiring this to utf-8? |
I assume it was as god intended all strings to be - 7bit ascii! |
Right, before that Also, as understand |
Is there a way to write a test for these changes without usage of an external endpoint? Or some manual tests are enough to accept the changes? |
@KMax - we don't really have a good way to test it. I was going to say you could test against the rdflib-web endpoint, but then remembered we still haven't implement UPDATE :) Trying to read up on what the "correct" thing to do is, all I can find in the SPARQL protocol about encoding is this: http://www.w3.org/TR/sparql11-protocol/#query-via-post-direct For direct POST, "Note that UTF-8 is the only valid charset here." but this for directly having the update statements in the body, this is for form encoded querying. I'll test it against fuseki, and if it works we'll merge, ok? |
So, I looked at Fuseki's web-interface, if posting an UPDATE statement with non-ascii unicode chars:
Chrome posts a plain content-type header (no charset) and this body:
This is UTF-8, percent encoded. |
It works with with fuseki as well! Thanks! |
we should fix those random test failures when endpoints are down... |
true... but see #364 nevertheless... it seems even though tests should be skipped on travis they aren't |
More information at rdflib-dev group -> https://groups.google.com/d/msg/rdflib-dev/fYiUeOLvMXM/k8VvcdkgwWgJ
Tested with OpenRDF Sesame 2.7.10.