Skip to content

Conversation

@fstoqnov
Copy link
Contributor

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

req = DELETE[`text/turtle`](
resource = Uri("https://localhost:8443/2013/")
)
)
Copy link
Member

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?

Copy link
Member

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)
)
)
Copy link
Member

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)
)
Copy link
Member

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
)
Copy link
Member

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.

@bblfish
Copy link
Member

bblfish commented Aug 10, 2017

is this code a commit to answer issue #7 "rewrite curl interactions with the solid-client library"?

@fstoqnov
Copy link
Contributor Author

Yes the idea was to rewrite the curl interactions in a non-curl way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants