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

ENCODE_FOR_URI bug? #2151

Closed
tommycarstensen opened this issue Nov 9, 2022 · 0 comments · Fixed by #2314
Closed

ENCODE_FOR_URI bug? #2151

tommycarstensen opened this issue Nov 9, 2022 · 0 comments · Fixed by #2314
Assignees
Labels
bug Something isn't working confirmation needed The issue raises a potential bug that needs to be confirmed.

Comments

@tommycarstensen
Copy link

The function ENCODE_FOR_URI should convert forward slash characters / to %2F according to the W3 documentation on that function:
https://www.w3.org/TR/xpath-functions/#func-encode-for-uri

However, when running a running a query with ENCODE_FOR_URI in rdflib, that doesn't happen.

@aucampia aucampia added bug Something isn't working confirmation needed The issue raises a potential bug that needs to be confirmed. labels Mar 24, 2023
@aucampia aucampia self-assigned this Mar 25, 2023
aucampia added a commit to aucampia/rdflib that referenced this issue Mar 25, 2023
`ROUND` was not correctly rounding negative numbers towards positive infinity,
`ENCODE_FOR_URI` incorrectly treated `/` as safe, and `SECONDS` did not include
fractional seconds.

This change corrects these issues.

- Closes <RDFLib#2151>.
aucampia added a commit to aucampia/rdflib that referenced this issue Mar 25, 2023
`ROUND` was not correctly rounding negative numbers towards positive infinity,
`ENCODE_FOR_URI` incorrectly treated `/` as safe, and `SECONDS` did not include
fractional seconds.

This change corrects these issues.

- Closes <RDFLib#2151>.
aucampia added a commit to aucampia/rdflib that referenced this issue Mar 25, 2023
`ROUND` was not correctly rounding negative numbers towards positive infinity,
`ENCODE_FOR_URI` incorrectly treated `/` as safe, and `SECONDS` did not include
fractional seconds.

This change corrects these issues.

- Closes <RDFLib#2151>.
aucampia added a commit to aucampia/rdflib that referenced this issue Mar 25, 2023
`ROUND` was not correctly rounding negative numbers towards positive infinity,
`ENCODE_FOR_URI` incorrectly treated `/` as safe, and `SECONDS` did not include
fractional seconds.

This change corrects these issues.

- Closes <RDFLib#2151>.
aucampia added a commit that referenced this issue Mar 26, 2023
`ROUND` was not correctly rounding negative numbers towards positive infinity,
`ENCODE_FOR_URI` incorrectly treated `/` as safe, and `SECONDS` did not include
fractional seconds.

This change corrects these issues.

- Closes <#2151>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmation needed The issue raises a potential bug that needs to be confirmed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants