Hi Holger, I actually just figured it out; it was user error. I was accidentally hitting to the query endpoint instead of the update endpoint. Everything works as expected now.
Thank you! Justin On Tuesday, November 17, 2020 at 6:07:00 PM UTC-5 Holger Knublauch wrote: > To clarify, how are you running this query - are you making web service > calls or do you go through the Web UI? Maybe the prefix definitions are > missing and the parsing fails? Can you make the INSERT DATA variation work > from the web UI? > > Holger > > > On 11/18/2020 2:13 AM, Justin Lien wrote: > > Hi Holger, > > Thanks for your response. I tried removing the WHERE line but > unfortunately I'm still receiving the same error as before. > > Justin > > On Monday, November 16, 2020 at 7:25:13 PM UTC-5 Holger Knublauch wrote: > >> Hi Justin, >> >> INSERT DATA is not followed by a WHERE clause - just try removing that >> WHERE line - none of the variables there are used in the INSERT clause >> anyway. >> >> https://www.w3.org/TR/2013/REC-sparql11-update-20130321/#insertData >> >> It probably fails to parse this on its first attempt and then falls back >> to trying the query parser, thus the error message. >> >> Holger >> >> >> On 11/17/2020 10:01 AM, Justin Lien wrote: >> >> Hello, >> >> I'm attempting to insert new triples via the SPARQL endpoint using the >> following query: >> >> INSERT DATA >> { GRAPH <urn:x-evn-master:update_test> { update_test:concepts >> skos:hasTopConcept update_test:one . >> update_test:one skos:prefLabel "one" . } } >> WHERE { ?s ?p ?o } >> >> and receive the following error: >> >> **Invalid SPARQL query string: Encountered " <INSERT_DATA> "INSERT DATA >> "" at >> line 5, column 1. Was expecting one of: "base" ... "prefix" ... "select" >> ... >> "json" ... "describe" ... "construct" ... "ask" ... .** >> >> We have Enable SPARQL updates set to true in the Server Configuration >> Parameters and I'm also able to add triples with a slightly modified query >> >> INSERT >> { >> update_test:concepts >> skos:hasTopConcept update_test:six . >> update_test:six skos:prefLabel "six" . >> } >> WHERE { >> ?s ?p ?o . >> } >> >> using the SPARQL query feature in the taxonomy without issue. >> >> Any ideas on how to resolve? >> >> Thank you, >> >> Justin >> >> ------------------------------ >> >> This email and any attachments may contain confidential information. If >> you believe that you have received it in error, please delete the email and >> attachments and then notify Tempus by calling *800.739.4137 >> <(800)%20739-4137>*. -- >> 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 on the web visit >> https://groups.google.com/d/msgid/topbraid-users/CANbmBy7EJaedhytxVLCvxy2Gz-MQpSvRDG1RPNXEw5u0Nmo1CA%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/topbraid-users/CANbmBy7EJaedhytxVLCvxy2Gz-MQpSvRDG1RPNXEw5u0Nmo1CA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> > ------------------------------ > This email and any attachments may contain confidential information. If > you believe that you have received it in error, please delete the email and > attachments and then notify Tempus by calling *800.739.4137 > <(800)%20739-4137>*. -- > 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 on the web visit > https://groups.google.com/d/msgid/topbraid-users/084be0a8-baff-48fc-af0f-125e13d6cc44n%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/084be0a8-baff-48fc-af0f-125e13d6cc44n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- This email and any attachments may contain confidential information. If you believe that you have received it in error, please delete the email and attachments and then notify Tempus by calling *800.739.4137*. -- 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 on the web visit https://groups.google.com/d/msgid/topbraid-users/658e75ab-5a59-4d1c-8402-27522a370c24n%40googlegroups.com.
