ADS adding a givernance role as viewer

38 views
Skip to first unread message

Kasia Kryczka

unread,
Feb 6, 2024, 6:02:41 AM2/6/24
to TopBraid Suite Users
graph.transaction( uri + '.tch','Adding Permission', () => {
    graph.add(graph.namedNode(uri + '.tch'),'http://topbraid.org/teamwork#editor', tbs.userURI('test'));
    graph.add(graph.namedNode(uri + '.tch'),'http://topbraid.org/teamwork#viewer', ...
and here I want to add

});

Could you please let me know how to add this ?

Is tbs.addGovernanceRole right method? or maybe there is sth else ?

Thanks,

Kasia

Holger Knublauch

unread,
Feb 6, 2024, 6:33:23 AM2/6/24
to topbrai...@googlegroups.com
I don't see a function that would construct a urn:x-tb-role:XY URI, but you can just use

graph.namedGraph('urn:x-tb-role:' + xy)

and yes, the graph.add below looks fine with that value.

tbs.addGovernanceRole is doing something else.

Holger


--
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/90747260-6f61-4a12-8f30-8be3b698aaecn%40googlegroups.com.

Kasia Kryczka

unread,
Feb 6, 2024, 7:13:22 AM2/6/24
to TopBraid Suite Users
Hi Holger,

This is perfect.

Thank you!

Kasia

Reply all
Reply to author
Forward
0 new messages