The name of the function must be the same as the JavaScript name.

Do have a look at 
http://composing-the-semantic-web.blogspot.com/2009/03/using-javascript-to-define-sparql.html

There is a good example there.
-- Scott

On Apr 15, 10:56 am, mwz <[email protected]> wrote:
> Hi, Holger,
>
> I cannot reply my previous posts with Scott so I had to start a new
> one. The function is very simple one to calculate the square of a
> number. You can read the previous posts for more information. I got
> the same function work when I put it in spinx:javascriptCode. I just
> cannot get it when using spinx:javaScriptFile option.
>
> Thank you all for help.
>
> Mingzhen
>
> On Apr 15, 10:50 am, Holger Knublauch <[email protected]> wrote:
>
> > Is there anything in the error log (Window > Show View > Error Log)?
> > Also, could you send us the definition of the SPIN function? How does  
> > it differ from the example I presented on my blog?
>
> > Thanks
> > Holger
>
> > On Apr 15, 2009, at 8:45 AM, mwz wrote:
>
> > > Scott,
>
> > > I added the argument, and I still got error says 'failed to retrieve
> > > all query results'.
>
> > > Mingzhen- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to