Sparql Insert

38 views
Skip to first unread message

Chris Marshall

unread,
Aug 28, 2023, 3:39:29 AM8/28/23
to TopBraid Suite Users
Hi 
I am using Topbraid 7.6.1 and trying to use Sparql to Insert and Delete data

in both cases the Sparql Command is not being executed despite appearing to be valid
e.g.
 PREFIX cds: <http://example.org/ontologies/Chrism_Data_Structure#>
  PREFIX cdt: <http://example.org/ontologies/Chrism_Test_Data_Structure#>
  PREFIX teamworkconstraints: <http://topbraid.org/teamworkconstraints#>
  PREFIX tosh: <http://topbraid.org/tosh#>
  PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
INSERT DATA
{cdt:testd rdf:type cdt:DataType .
 cdt:testd rdfs:label "Datetime" .
 cdt:testd cds:physicalDataType "Date".  
 cdt:testd skos:prefLabel "Datetime" .}

Is there a reason this command is invalid as it appears to be plain vanilla but the execute button does not light up

I have seen a mention of needing to enable Sparql Updates in Server Administration but in 7.6.1 I cannot find this option in Server Administration anywhere

Thanks
Chris Marshall

Holger Knublauch

unread,
Aug 28, 2023, 4:04:39 AM8/28/23
to TopBraid Suite Users
Hi Chris,

the query that you have pasted in does not declare all necessary prefixes, e.g. rdf and skos are missing.
INSERT DATA queries can be executed from the SPARQL endpoint page (.../tbl/sparql) but not the
SPARQL Query Panel. In any case, the option to enable SPARQL is on the server administration page
under Advanced. If you don't see it there, please send a screenshot of what you get.

Regards,
Holger

Brandy Bednorz

unread,
Aug 28, 2023, 11:15:04 AM8/28/23
to TopBraid Suite Users
Hello Chris, 

As you are a SaaS customer, TopQuadrant has to enable the SPARQL update setting for you. If you would like us to enable this, please open a ticket in the customer portal and we will do so. Thank you for your understanding. 

Thank you,
Brandy

Chris Marshall

unread,
Aug 28, 2023, 6:16:54 PM8/28/23
to TopBraid Suite Users
Thanks ticket opened as we are SAAS
Reply all
Reply to author
Forward
0 new messages