This was successful.

Thank you, Holger...much appreciated!

On Wednesday, September 17, 2025 at 3:54:15 PM UTC-4 Holger Knublauch wrote:

> Yes, see
>
> Add edg:subjectArea via API 
> <https://groups.google.com/g/topbraid-users/c/cxDKOaDGDz0/m/56cS82VxAwAJ>
> groups.google.com 
> <https://groups.google.com/g/topbraid-users/c/cxDKOaDGDz0/m/56cS82VxAwAJ>
> [image: groups_32dp.png] 
> <https://groups.google.com/g/topbraid-users/c/cxDKOaDGDz0/m/56cS82VxAwAJ> 
> <https://groups.google.com/g/topbraid-users/c/cxDKOaDGDz0/m/56cS82VxAwAJ>
>
>
> On Sep 17, 2025, at 21:02, Dan Segal <[email protected]> wrote:
>
> Question related to a previous post 
> <https://groups.google.com/g/topbraid-users/c/GhTQk-EuHW8/m/v_tmb9sGCgAJ>:
>
> 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 
> {
> ?topConcept <http://www.w3.org/2004/02/skos/core#hasTopConcept> ?uri. 
> ?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
>
>
>
>
>
>
> -- 
> The topics of this mailing list include TopBraid EDG and related 
> technologies such as SHACL.
> To post to this group, send email to [email protected]
> --- 
> 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 [email protected].
> To view this discussion visit 
> https://groups.google.com/d/msgid/topbraid-users/d3722475-2808-4f87-b462-eb6037cff1b9n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/d3722475-2808-4f87-b462-eb6037cff1b9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
The topics of this mailing list include TopBraid EDG and related technologies 
such as SHACL.
To post to this group, send email to [email protected]
--- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/topbraid-users/5efc0fc1-aa41-4110-b0ad-6db1b64a7832n%40googlegroups.com.

Reply via email to