Question related to a
previous post:
Is it possible to execute a DELETE statement through the EDG SPARQL Endpoint?
For taxonomy cleanup, we want to execute an action such as:
DELETE {?uri ?p ?o}
WHERE
{
?uri ?p ?o .
}
The API call for this statement returns the following error:
Invalid SPARQL query string: Encountered " "delete" "DELETE "" at line 1, column 1.
Was expecting one of:
"\ufeff" ...
"base" ...
"prefix" ...
"select" ...
"json" ...
"describe" ...
"construct" ...
"ask" ...
The API call looks like this:
curl -X 'POST' \
'https://{EDG_SERVER}/taxonomy/tbl/sparql' \
-H 'accept: */*' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'default-graph-uri=urn%3Ax-evn-master%3Atest1_2&format=application%2Fsparql-results%2Bjson&labeled=&processId=&query=DELETE%20%7B%3Furi%20%3Fp%20%3Fo.%7D%20%20WHERE%20%20%7B%20%09%3FtopConcept%20%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23hasTopConcept%3E%20%3Furi.%20%20%09%3Furi%20%3Fp%20%3Fo%20.%20%7D&with-imports='
Is it possible to delete triples through the API?
Thank you,
Dan