The Select or Construct works fine  and shows everything but Insert doesn't 
work.

So we made backup in one instance and we wanted to restore data in the 
second instance and we needed to modify roles.

i also check the query on one more instance and it worked but on this 
testing one it shows this error.

Br,

Kasia
On Thursday, May 18, 2023 at 4:03:17 PM UTC+2 Holger Knublauch wrote:

> Ok so would you be able to share a couple of instances where this is 
> supposed to return something?
>
> Also, does the SELECT variation work?
>
> Holger
>
>
> On 18 May 2023, at 2:43 pm, Kasia Kryczka <[email protected]> wrote:
>
> Hi Holger,
>
> no, only error #500 and this information.
>
> Br,
>
> Kasia
>
> On Thursday, May 18, 2023 at 12:34:44 PM UTC+2 Holger Knublauch wrote:
>
>> I don't see anything obviously wrong (although you may want to fix the 
>> last line to be
>>
>>   BIND(IRI(CONCAT("urn:", ?newOB, "_Q")) AS ?newO)       
>>
>>
>> i.e. drop the duplicate ::
>>
>> Was there anything else in the error message or log, i.e. a full stack 
>> trace? It is hard for me to try this out without having suitable instance 
>> data.
>>
>> Holger
>>
>>
>> On 18 May 2023, at 10:20 am, Kasia Kryczka <[email protected]> wrote:
>>
>> Hi,
>>
>> I would like to replace an object with a new object via following query 
>> (I'm using EDG):
>>
>> DELETE {
>>   ?s ?p ?o .
>> }
>> INSERT {
>>  ?s ?p ?newO .
>> }
>> #SELECT DISTINCT ?o ? newO
>> WHERE {
>>   ?s ?p ?o .
>>     
>>   FILTER(STRSTARTS(STR(?o), "urn:") && STRENDS(STR(?o), "_P_Q"))
>>   BIND(REPLACE(STR(?o), "^(.*)ttt:(.*)_P_Q$", "$2") AS ?newOB)
>>   BIND(IRI(CONCAT("urn::", ? newOB  , "_Q")) AS ?newO)       
>> }
>>
>> but i get the following error:
>> Failed to execute SPARQL request: org.apache.jena.graph.Node$NotLiteral: 
>> urn:_P_Q is not a literal node
>>
>> Could you tell how I can correct it?
>>
>> Thanks,
>>
>> Kasia
>>
>>
>> -- 
>> 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 on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/989ec7ed-73a4-4bd6-90b1-98fff87c05b0n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/989ec7ed-73a4-4bd6-90b1-98fff87c05b0n%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 on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/13368a35-39b2-4c57-b210-177930925a2en%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/13368a35-39b2-4c57-b210-177930925a2en%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 on the web visit 
https://groups.google.com/d/msgid/topbraid-users/f1c6c984-8186-4e3d-b120-83ccba1282a7n%40googlegroups.com.

Reply via email to