Hi Holger,

thank you for quick reply.

I'll try do do that.

Br,

Kasia

On Wednesday, July 19, 2023 at 2:22:33 PM UTC+2 Holger Knublauch wrote:

> On 19 Jul 2023, at 1:06 pm, Kasia Kryczka <sparql...@gmail.com> wrote:
>
> Hi,
>
> When I added this comment (with the script above )and deleted it later (in 
> Script editor) it seems that this change is not saved in the change 
> history. 
>
> Where can I find that this change happened?
>
>
> The script below writes to the master graphs directly, bypassing the 
> change history.
>
> To have the changes recorded, you need to use a slightly different graph, 
> which includes the user name.
>
> One way to do that is to do something like 
>
> graph.transaction(masterGraph + ':Administrator, ...
>
> or
>
> graph.transaction(masterGraph + ':' + tbs.currentUserId(), ...
>
> This will use something like urn:x-evn-master:geo:Administrator and 
> changes to that will create change history items too.
>
> HTH
> Holger
>
>
>
>
> Thanks,
>
> Kasia
>
> On Thursday, March 30, 2023 at 11:37:14 AM UTC+2 Holger Knublauch wrote:
>
>> From the Script Editor panel, you could run something like
>>
>> dataset.masterGraphs().forEach(masterGraph => {
>> console.log('Adding to ' + masterGraph);
>> graph.transaction(masterGraph, 'Adding something', () => {
>> let subject = graph.namedNode(masterGraph);
>> subject.add(rdfs.comment, "Added");
>> })
>> })
>>
>> Watch out though, the green code above is dangerous and will really add 
>> triples to every asset collection. (That's also why I didn't run it on my 
>> machine, so I hope it works).
>>
>> Holger
>>
>>
>> On 30 Mar 2023, at 10:30 am, Kasia Kryczka <sparql...@gmail.com> wrote:
>>
>> Hi, 
>>
>> I have about 170 collections with missing value- the collections are 
>> listed from the query.
>> I need to insert a value <urn:xyz>.
>> Is it possible to create a loop that goes through all listed collections 
>> and inserts the missing value?
>>
>> 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 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 on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/b388bfe2-422f-42a6-9a41-11ddf6e5744an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/b388bfe2-422f-42a6-9a41-11ddf6e5744an%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 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 on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/a112e88e-4e62-41dd-af29-1762c51f98c1n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/a112e88e-4e62-41dd-af29-1762c51f98c1n%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 topbraid-users@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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/fc082243-68ca-476b-b98d-8668843e1ec2n%40googlegroups.com.

Reply via email to