<A single SPIN function can't be used to invoke a SM script and process a SPARQL query (the spin:body), can it?>
Yes. A SPIN function is a function, meaning that it returns a single value. I should have used the term "one of" instead of "combination". The SPIN function can only have one definition. -- Scott On Aug 12, 7:18 am, Catrina <[email protected]> wrote: > Okay, thanks Scott. > > I was referring to the spin:body in the documentation (Application > Development Guide). If you are too, then I'm must be missing where > that is in there. > > You mention the following: > When Ensemble calls a SPIN function, the function definition > (type of > spin:Function - hence the subclassing of spin:Functions) is > invoked. > If the definition has a spin:body, then that is called. If > the > definition has a sm:returnModule, then that is called. (If > the > definition has a spinx:javaScriptCpde or a > spinx:javaScriptFile, then > the defined JavaScript is called.) > > Any combination of these can be defined and used in a model. > The only > definition is defining what the function does - processes a > SPARQL > query, invoke a SM script, call a JavaScript function, etc. > > They can't be overlapped though, can they? Meaning can a single SPIN > function used to do one or more of the following: > process a SPARQL query, > invoke a SM script, > call a JavaScript function, etc. > > In your first paragraph above, you state "When Ensemble calls a SPIN > function, the function definition (type of spin:Function - hence the > subclassing of spin:Functions) is invoked. If the definition has a > spin:body, then that is called." > > A single SPIN function can't be used to invoke a SM script and process > a SPARQL query (the spin:body), can it? > > Thanks, > Catrina --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. 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-composer-users?hl=en -~----------~----~----~----~------~----~------~--~---
