-
Notifications
You must be signed in to change notification settings - Fork 122
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
ambigous name: "addCustomParameter" #1
Comments
I agree that this is confusing, not sure how much it would break though if we just fixed it. |
well… I supposed there might be users who rely on ability to change parameters in runtime and as there is no other method for that right now their apps will fail if behaviour is different other possibility is to introduce boolean |
Off-topic probably but I can't make sense of "zero or more default graph URIs". Can there be multiple defaults? (a bare "yes" is an okay answer, I can quench my incredulity with the details later.) |
@gjhiggins yes :) see this exampe |
while this one is still opened… would using |
@indeyets - aha, many thanks. "The RDF dataset description is composed of zero or one default RDF graphs — composed by the RDF merge of the RDF graphs identified by zero or more default-graph-uri (types)" I knew there had to be more to it. |
The actual reason behind the current implementation is that we were not aware of the possibility of multiple parameters with the same name, not in SPARQL Protocol, but in HTTP. Therefore I agree it could be confusing. But what I don't have clear is how to solve it... the idea with So I'd prefer to switch to single method What do you think? |
|
I'd prefer to have a |
If everybody is happy with the current solution, I'll close the issue. |
👍 |
so we can consider this issue closed |
name of
addCustomParameter
method suggests that parameter would be added to the list, while implementation actually replaces existing parameter with the same name.SPARQL specification allows to have multiple parameters with the same name given to the endpoint (for example named graphs).
Changing behaviour of
addCustomParameter
would break backwards compatibility, so the proper solution would be to:setCustomParameter
method which does what current implementation doesappendCustomParameter
which adds more parameters with the same nameaddCustomParameter
The text was updated successfully, but these errors were encountered: