Catrina,

I also noticed that the fn:round function is currently not activated  
in the Jena code base. I will check with the Jena developers.

Holger


On Sep 24, 2009, at 2:05 PM, Scott Henninger wrote:

>
> Catrina;  There is a typo in the queries - try fn:ceiling. instead of
> fn:celing
>
> -- Scott
>
> On Sep 24, 11:17 am, Catrina <catrina.pend...@thomsonreuters.com>
> wrote:
>> I have the following queries each in different BindBySelect modules
>> within a SM script:
>>
>> #Set a float variable:
>> SELECT ?floatVar
>> WHERE {
>>     LET (?floatVar := smf:cast("3.6", xsd:float)) .
>>
>> }
>>
>> #Get the ceiling value of the given float.  ?ceilingVar does NOT get
>> set.
>> SELECT ?ceilingVar
>> WHERE {
>>     LET (?ceilingVar := fn:celing(?floatVar)) .
>>
>> }
>>
>> #Get the floor value of the given float.  ?floorVar does NOT get set.
>> SELECT ?floorVar
>> WHERE {
>>     LET (?floorVar := fn:celing(?floatVar)) .
>>
>> }
>>
>> #Get the rounded value of the given float.  ?roundedVar does NOT get
>> set.
>> SELECT ?roundedVar
>> WHERE {
>>     LET (?roundedVar := fn:round(?floatVar)) .
>>
>> }
>>
>> #Get the absolute value of the given float.  ?absVar does get set  
>> (the
>> fn:round test also worked).
>> SELECT ?absVar
>> WHERE {
>>     LET (?absVar := fn:abs(?floatVar)) .
>>
>> }
>>
>> According to the pages found in Help->TopBraid Composer->Reference- 
>> >SPARQLMotion Functions Reference, I should be able to use these math
>>
>> functions within a LET statement.
>>
>> Is there something wrong with my syntax?  Do I need an import to get
>> these executed appropriately in my SM script?
>>
>> 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 topbraid-composer-users@googlegroups.com
To unsubscribe from this group, send email to 
topbraid-composer-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to