Closed steve-bate closed 11 months ago
Hi @steve-bate thanks for the message, indeed we could easily support it if the docs states this, and I think I already have the piece of code to check if a query is an UPDATE or a SELECT commented somewhere
Feel free to send a PR (tag me in it to make sure I see it quickly)!
I have something working locally. I need to clean it up before submitting a PR, but at least it's a proof-of-concept. It works with the GUI too.
Nice! Thanks a lot @steve-bate
If it is not too much to ask, could you also add 1 test to make sure using an insert and delete queries properly insert and delete from the RDFLib graph please? e.g. here, 1 test with a few queries: sends a triple to be inserted, check it is inserted, delete, check if deleted
The SPARQL endpoint doesn't support Delete and Insert. There's a comment in the code:
At least the current versions of the library does support it. However, the update processing uses different APIs than the query processing:
prepareUpdate
instead ofprepareQuery
andGraph.update
instead ofGraph.query
. I'll investigate creating a PR to support updates.https://rdflib.readthedocs.io/en/stable/intro_to_sparql.html#update-queries