Editing out to the responses: [Catrina2] Just as a reminder, I'm creating a SPARQLMotion script that is to be executed from Ensemble. I don't think sml:EnterLiteral will work. Should it? I get an error.
My Apologies. EnterLiteral is not available for Ensemble. We are looking into different ways for user input for 3.2. In the meanwhile, please use spl:Argument as in the DBPediaCalling Codes example. [Catrina2] I mean I created a subclass of spin:Functions and defined it using one or more spin:constraints. Yes, the subclass of spinFunctions is a SPIN function and the constraints are arguments passed to the function. [Catrina2] I want to know if I can set the spin:body on a subclass of spin:Functions that was created to link a script to be called from Ensemble. No, you need to use sml:returnModule to link a the SPIN function to a SPARQLMotion script. Ensemble uses the name of the function to call the SPARQLMotion script. [Catrina2] I'm looking for a little bit of a different scenario than what I think you visualize. I have a script that has a SPIN function that is set with a return module in order to get the script executable from Ensemble. This is also what I envision. [Catrina2] My script then needs to do some processing by another different SPIN function. Ensemble does not seem to be able to find this other function when I execute from Ensemble. The second function is defined in the same script that is shown from Ensemble. If the SPIN function is registered, I.e. defined as a SPIN function, placed in a .spin file, and the file read into the workspace, then the function will be available to all models in the workspace. This works in Ensemble as well as Composer. Be sure that the SPIN function is being called with the correct URI. I.e. you may define the function as :getCurrentYear, but will either need to create a prefix or address with the full URL (i.e. <http:// mustuff.org/functs#getCurrentYear>()) for scripts to use this function without importing the file it is defined in. -- Scott --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
