I'm assuming myFunction is a subclass of spin:Functions.  Do you also
have sp:arg1 defined as a spin:constraint for myFunction?

-- Scott

On Apr 15, 8:38 am, mwz <[email protected]> wrote:
> Hi,
>
> Sorry for the simple question. But I still cannot make the function
> work. I coded my function as
> function myFunction(radiu)
> {
>         return radiu*radiu;
>
> }
>
> and saved it in myFunction.js, and put it in D:\Documents and Settings
> \mwei\TBC-ME-workspace\TopBraid where testFunction.owl is saved, and
> ran a sparql
> SELECT ?x
> WHERE {
>  let(?x := :myFunction(4)).}
>
> and failed;
> and I put it in D:\Documents and Settings\mwei\TBC-ME-workspace
> \TopBraid\TBC where spin.owl, spinx.owl are saved, ran the sparql and
> failed.
>
> Please indicate where I did wrong and how should I do. Thanks.
>
> Mingzhen
--~--~---------~--~----~------------~-------~--~----~
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