Mark, there is a rule plugin for creating an instance.  With your localhost TBC-ME running, go to the EVN User Guide at http://localhost:8080/evn/tbl/lib/evndoc/adminguide.html#evn-extension-points.  Section 13.6 is a bit short on explanation but if you download the evn-plugins.ui.ttlx and find the evn-plugins:ExampleCreateConceptPlugins, which is fired when a skos:Concept instance is created.

Perhaps a better example in the same file is ui:Rules, which gets fired when editing a resource in the production copy (subclasses of teamwork:EditRules) or when committing a working copy (subclasses of teamwork:CommitRules).  This executes after the edit is made, and the added and deleted triples are available in graphs named ui:addedGraph and ui:deletedGraph, respectively. 

So, let's say you want to add a timestamp when an instance of ex:X, ex:Y or ex:Z are created.  The following would be an example prototype of a subclass of teamworkEditRules that would execute when the production copy is modified:

<ui:forEach ui:resultSet="{#
        SELECT ?subject ?time
        WHERE {
            GRAPH ui:addedGraph {
                ?subject a ?class .
                FILTER (?class IN (
ex:X, ex:Y, ex:Z ) .
            } .
            BIND (str(now()) AS ?time) .
        } }">
    <ui:update ui:updateQuery="{!
            INSERT {
                ?subject dct:created ?time .
            }
            WHERE {
            } }"/>
</ui:forEach>

The INSERT will apply to the graph currently open in the application.

Let us know if that helps any...

-- Scott

On 3/13/2014, 12:11 PM, Mark van Berkel wrote:
I'm experimenting with 4.4's SWA Switchable Form Gadget. In my particular use case, once I've finished creating / editing an instance I want to have an action that would trigger an SMS script using the instance. It looks like I should be able to add the action by enabling arg:showResourceActions yet the documentation doesn't say where to create the resource actions that would be enabled. It would be a much better solution than me recreating a swa:Window with actions.

Can you point me to an example, documentation or explain how that's supposed to work? 

Thanks. 
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
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].
For more options, visit https://groups.google.com/d/optout.

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to