-
Notifications
You must be signed in to change notification settings - Fork 565
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
Bad UTF-8 handling for NTriple parser #400
Comments
i think this problem exists because the old N-Triples spec did not allow utf-8 encoding (but used 7bit ascii + \u... escapes): http://www.w3.org/2001/sw/RDFCore/ntriples/ RDF 1.1 changed this: http://www.w3.org/TR/n-triples/#n-triples-mediatype question here is if someone still wants the old N-Triples behavior (e.g., for legacy reasons)... should we make this configurable? or maybe just on serialization? |
Are there any plans to resolve this issue in the near future? I have the same problem as @Arthur-VaisseLesteven |
I am afraid I have no time for rdflib atm, but pull-requests are welcome! |
@joernhees new spec seems to be backwards compatible in terms of parsing, so I don't think there's any reason to avoid implement it. serialization is a whole different story, though. it should have a flag for emitting old-style files |
The current NTriple parser does not handle properly utf-8 string.
the following triple trigger an error :
<http://linkedgeodata.org/triplify/user22701> <http://www.w3.org/2000/01/rdf-schema#label> "CiaránMooney" .
when executing this code :
The parser fail to parse the "á" character.
Modifying the parse function of the NTriplesParser class allow to solve this bug.
Current :
Fix:
Hope this help.
AVL
The text was updated successfully, but these errors were encountered: