-
Notifications
You must be signed in to change notification settings - Fork 18
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
Document patch() #97
Comments
The name updateFile is very confusing, It was widely used in solid-file-client as a replacement to putFile. |
Regarding putFile: I think it depends on how much custom logic you want. If Regarding patch: Do you think that PATCH would be a high or low level method? I'd guess that those persons who know how to use it will know it as "PATCH" and hence I'd use patch(File) as a name. If you want to add additional behavior (more than just making a PATCH request) we should find a different name though. |
I don't see update/patch as doing anything other than patch no matter what
we call it. rdflib.js uses update() to do a patch so I am okay with using
either verb. Update seems more on the same level as read and create, but I
don't feel strongly about this.
…On Wed, Dec 4, 2019 at 2:00 PM A_A ***@***.***> wrote:
Regarding putFile: I think it depends on how much custom logic you want.
If updateFile would only forward to putFile, then why not directly use
putFile and remove the alias?
Regarding patch: Do you think that PATCH would be a high or low level
method? I'd guess that those persons who know how to use it will know it as
"PATCH" and hence I'd use path(File) as a name. If you want to add
additional behavior (more than just making a PATCH request) we should find
a different name though.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#97?email_source=notifications&email_token=AKVJCJD35HEVZ65KX5CMF63QXASAFA5CNFSM4JVM5YKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF6USBI#issuecomment-561858821>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKVJCJFPNIQOBBPBKDW3C73QXASAFANCNFSM4JVM5YKA>
.
|
@Otto-AA @jeff-zucker Going in NSS through : Only 3 SPARQL verbs are allowed : INSERT/DELETE/WHERE There appears to be 2 ways to make a patch. Both allow using prefixes.
the function could be : What check do we introduce knowing that NSS does a lot of tests:
I think we could check that |
This will be a great addition. Thank you. Yes, I think your syntax for the method is good. |
see PR #170 |
Currently in 1.0.0 the default (high-level) behavior of both createFile() and updateFile() is to call putFile making them both equivalent to createOrReplaceFile(). I suggest we have a real updateFile(), in other words, we support PATCH so that users can make atomic changes to the content of a file without completely replacing it. I would guess we'd want a SolidApi.patch() method and call it from SolidFileClient.updateFile(). @bourgeoa. @Otto-AA Thoughts?
The text was updated successfully, but these errors were encountered: