Sorry I don't understand the question. What do you have and what needs to be changed?
Holger > On 23 Aug 2023, at 1:54 pm, Kasia Kryczka <[email protected]> wrote: > > Hi Holger, > > it seems that we need more of this script. How to make changes to mastergraph > and on their classes as well. > > How can we modify the script? > > Thanks, > > Kasia > > On Wednesday, July 19, 2023 at 2:59:11 PM UTC+2 Kasia Kryczka wrote: >> 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 <[email protected] <>> 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 <[email protected] <>> >>>>>> 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 [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/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 [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/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 [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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/db1b8b97-4332-46f1-8950-4f2d4a9f78fen%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/db1b8b97-4332-46f1-8950-4f2d4a9f78fen%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/D628B6B8-919C-4E7C-98BA-F17E6AD791F5%40topquadrant.com.
