-
Notifications
You must be signed in to change notification settings - Fork 4
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
Updated httpMethods.sc #8
base: master
Are you sure you want to change the base?
Conversation
req = DELETE[`text/turtle`]( | ||
resource = Uri("https://localhost:8443/2013/") | ||
) | ||
) |
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.
why do you want to delete the whole root container? Would it not be better to delete a file that was previously created perhaps?
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.
This is unlikely to work it seems to me without a proper credentials.
uri = Uri("https://localhost:8443/2013/"), | ||
keyChain = List(localKey) | ||
) | ||
) |
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.
why would the key be the URL of the container? Have you tried out these functions to see what they return?
graph = pubKeyPG.get.graph | ||
).get, | ||
keyChain = List(localKey) | ||
) |
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.
here you are trying to PUT a resource on the container. POST creates a new resource. But PUT overwrites the one given by the URL. Do you actually want to overwrite the container?
req = PATCHsparql[`text/turtle`]( | ||
resource = Uri("https://localhost:8443/2013/"), | ||
sparqlUpdate = sparqlUpdateCommand | ||
) |
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.
yes, if you read the curl specs you'll see that there is sparql update on the rww-repo that you can use to get going.
is this code a commit to answer issue #7 "rewrite curl interactions with the solid-client library"? |
Yes the idea was to rewrite the curl interactions in a non-curl way |
Added functions that make use of the GETpg ,DELETE, PUT and PATCHsparql functions located within the solid-client library.
The patchLocal function takes a String representation of the sparql query utilized within the PATCHsparql as arguments so one can easily specify the query when calling said function