i am developing a server that uses a Jena triple store. The server is developed in Python, and I am using the SPARQLWrapper library to handle the different operations to be performed. I had no problems in querying the store (SELECT operation) and to create triples (INSERT DATA operation). Things are a bit more tricky with the DELETE operation. I am trying to execute:
q=
'PREFIX pref:<url>
DELETE {?s ?p ?o}
WHERE {
?s a pref:class.
}'
On the url /update. I receive a response that the operation is OK (HTTP code 200), but the triples are still on my store (checked through a SELECT operation).
wrapper = SPARQLWrapper(<my_url>/update)
wrapper.setMethod('DELETE')
wrapper.query(q)
I tried different HTTP verbs (POST, DELETE) to see if that could make a difference, but nothing changes.
Also I am running the fuseki-server with the --update option.