Yes. You'd just need to replace taxonomies:ProjectType with the target ProjectType that you want from

taxonomies:ProjectType
  teamwork:projectConstructor """
<ex:ExampleProjectConstructor/>
"""^^ui:Literal ;
.

For example, owl:import ontologyprojects.ui.ttlx and then use ontologyprojects:ProjectType instead.

Holger


On 2021-12-01 4:24 pm, [email protected] wrote:
Thanks, Holger.
      Yes, it works for Taxonomies. Is it possible to extend this to other Asset Collections(Ontologies, Crosswalks) that we use?

Thanks,
Sanjeev

On Monday, November 29, 2021 at 5:55:23 AM UTC+5:30 Holger Knublauch wrote:

    Hi Sanjeev,

    I took another look at this and have attached a version that
    should work out of the box.

    HTH
    Holger


    On 2021-11-27 11:45 am, Holger Knublauch wrote:

    ECA rules will only execute after changes to an existing asset
    collection, but you will need something to execute while the
    asset collection is being created.

    For this we have a notion of project constructors. See the
    rdfs:comment at teamwork:projectConstructor. Basically you need
    to define an SWP file that links defines an SWP element, e.g.
    ex:MyMethod as subclass of ui:Methods that adds the extra
    teamwork:viewer triples, and then add

        taxonomies:ProjectType teamwork:projectConstructor ex:MyMethod

    to make sure it gets executed whenever a new Taxonomy gets created.

    The ui:prototype of ex:MyMethod could be as simple as

    <ui:group let:teamGraph="{= teamwork:currentTeamGraph() }">
        <ui:setContext ui:queryGraph="{= ?teamGraph }">
            <ui:update ui:updateQuery="{! INSERT { ?teamGraph
    teamwork:viewer <WHOEVER> } WHERE { } }"/>
        </ui:setContext>
    </ui:group>

    (This is untested)

    HTH
    Holger


    On 2021-11-26 10:43 pm, [email protected] wrote:
    Hi,
         There is requirement to add an user as Viewer automatically
    in the background whenever a brand new Taxonomy is created in
    Enterprise Data Governance (EDG). For this can the Event
    Condition Action Framework be used? If yes then please share an
    example Rule for adding an user automatically to a new Taxonomy.

    Thanks,
    Sanjeev
-- 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/e49cedbb-cbdb-4506-94fa-135d29c2344bn%40googlegroups.com
    
<https://groups.google.com/d/msgid/topbraid-users/e49cedbb-cbdb-4506-94fa-135d29c2344bn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/4e338d7a-33ef-4543-bceb-4e95624fd7bbn%40googlegroups.com <https://groups.google.com/d/msgid/topbraid-users/4e338d7a-33ef-4543-bceb-4e95624fd7bbn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/0c0645db-0138-5ea7-7774-f00e960ab3d6%40topquadrant.com.

Reply via email to