Can DELETE be used in the EDG SPARQL Endpoint?

18 views
Skip to first unread message

Dan Segal

unread,
Sep 17, 2025, 3:02:17 PMSep 17
to TopBraid Suite Users
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





Holger Knublauch

unread,
Sep 17, 2025, 3:54:15 PMSep 17
to topbrai...@googlegroups.com
--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/topbraid-users/d3722475-2808-4f87-b462-eb6037cff1b9n%40googlegroups.com.

Dan Segal

unread,
Sep 18, 2025, 3:05:29 PM (14 days ago) Sep 18
to TopBraid Suite Users
This was successful.

Thank you, Holger...much appreciated!
Reply all
Reply to author
Forward
0 new messages