>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]
> <mailto:[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/80C1D6D8-A54C-47E9-ABFD-02E21706D2F3%40topquadrant.com.