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
fix #876 Updated term.py to add xsd:normalizedString and xsd:token support for Literals #1102
Conversation
Merging this closes #876. |
Spec reference: https://www.w3.org/TR/xmlschema11-2/#normalizedString
|
Note that while |
rdflib/term.py
Outdated
try: | ||
return st.replace('\t',' ').replace('\n',' ').replace('\r',' ') | ||
except: | ||
return None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clear why this needs to be in an try except.
# Conflicts: # rdflib/term.py
This PR performs normalisation on Dockerfile base image version tag bumped from Improved some tests for |
The lexical space of xsd:normalizedString is unconstrained (any valid XML character may be used). Its value space is the set of strings after whitespace replacement—i.e., after any occurrence of #x9 (tab), #xA (linefeed), and #xD (carriage return) have been replaced by an occurrence of #x20 (space) without any whitespace collapsing.
#876