|
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:
-- -- 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. |
- [topbraid-users] SWA Switchable Form Gadget's Resource Act... Mark van Berkel
- Re: [topbraid-users] SWA Switchable Form Gadget's Res... Scott Henninger
- Re: [topbraid-users] SWA Switchable Form Gadget's Res... Mark van Berkel
