SPARQL vocab: rename "encode" into "encodeForUri" - #406
Merged
Conversation
The function is named `ENCODE_FOR_URI` in the SPARQL syntax and encode URIs
Tpt
requested review from
afs and
rubensworks
and removed request for
rubensworks
July 15, 2026 19:06
rubensworks
approved these changes
Jul 16, 2026
afs
approved these changes
Jul 16, 2026
TallTed
reviewed
Jul 23, 2026
| sparql:encode rdf:type sparql:Function ; | ||
| rdfs:comment "This function encodes a string using a specified method (e.g., URI-encoding), returning the encoded version." ; | ||
| sparql:encodeForUri rdf:type sparql:Function ; | ||
| rdfs:comment "This function encodes a string using a specified method (here, URI-encoding), returning the encoded version." ; |
Member
There was a problem hiding this comment.
Is there a way to specify a different method, with the new function name? If not, the comment should be rephrased.
I also wonder, are there now (or will there soon be) other encode___() variants for other methods?
If the answer to either of my questions means more changes to the body, please change this comment to an issue, to track it to resolution.
Contributor
Author
There was a problem hiding this comment.
Is there a way to specify a different method, with the new function name?
No, not currently.
I have opened #409 to rephrase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The function is named
ENCODE_FOR_URIin the SPARQL syntax and encode URIs