-
Notifications
You must be signed in to change notification settings - Fork 555
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
Problem with prefixes created for URIs containing %20 #801
Comments
this is not a bug but a feature... (i agree that it's confusing, but it would break a lot of things in XML otherwise). The reason for the behavior you see is that QNames and CURIEs restict the allowed amount of characters in the so called Here's the spec: https://www.w3.org/TR/REC-xml-names/#ns-qualnames
I'll close this for now, feel free to reopen. |
on second thought i'll re-open this as Turtle as of RDF 1.1 actually allows such chars in PrefixedName via PN_LOCAL. I can only guess that this (as so many other issues) has a historical reason or is due to the interplay of N3, TTL, NT... As the serialization is not really wrong (just a little more cryptic than it needs to be), i'll give this low prio... if anyone else wants to investigate the origin and how to solve this (in a backwards compatible way), feel free |
I will only add that in test files defined for applications implementing W3C CSV to RDF conversion recommendation, there are examples containing '%', e.g. https://github.com/w3c/csvw/blob/gh-pages/tests/test009.ttl |
I would like to resolve the issue |
@aayush17002 you are welcome. The best is, if you create a pull-request and refer to this issue in the pull-request description. We can then discuss if we want to introduce it in 5.0.0 or a later release. |
Added acceptance clause for "%" in Allowed name chars.
Test file to increase the scope of n amespaces.
I have provided a solution to solve the above problem. I would like you to review the solution and revert back. |
Updated test file to test issue 801
Added assertions for testing issue RDFLib#801
Removed print statement Reformatting assert statement
Updating namespace.py to solve issue #801
The result of runnig this code
is
I expect that triple would be displayed as
The text was updated successfully, but these errors were encountered: