Hi Guil,

this is very interesting and we have not yet linked those two technologies in 
the way that they should be linked. I do have several ideas on how to bring 
SPARQLMotion and SWP closer together, and this will also make SM more 
attractive to people who prefer to encode scripts in a text syntax.

So moving forward it would be very valuable if you could share your use case 
and clarify what kinds of scripts you would like to invoke. Do they end up 
creating some HTML snippets or are they just doing data processing (like you 
would do in a PHP script).

A simple mechanism that comes to my mind would be an extension of ui:call, e.g.

        <ui:call sm:script="ex:MyScript" arg:param="{= ?something }" />

which would invoke the SM script and insert its result (HTML or text) into the 
SWP document. This would make it possible to do things like spreadsheet 
processing and all kinds of SM features in SWP without requiring a separate 
callback.

But on top of this I believe people should be able to embed SM modules directly 
into SWP, e.g. using

        <ui:forEach ...>
                <sml:SendEmails sml:... />
        </ui:forEach>

I believe this is straight forward to implement and clean because SM modules 
already use the same SPIN framework for defining arguments etc. The SM modules 
would just need to become ui:Elements as well.

Having said all this I have no immediate solution to run a SM script as a 
server-side include. But 3.6 final isn't out yet and we could still add such 
simple things if we understand the requirements. So please provide details on 
your use case to help me come up with the right design.

Thanks,
Holger



On Feb 14, 2012, at 8:47 PM, Guilherme Scomparim wrote:

> Hi All,
> 
> I was wondering if there is a way to call a SPARQL Motion Script from
> an SWP page without  the ui:createLink?
> 
> I need to call scripts from SWP pages, however these calls are not
> associated to any click event.
> 
> Any help would be appreciated
> 
> Thanks in advance,
> 
> Guil
> 
> -- 
> 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 Ensemble, SPARQLMotion 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
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion 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

Reply via email to