Hi Scott, I tried a simplified query like this:
PREFIX afn: <http://jena.hpl.hp.com/function#> SELECT ?x ?now WHERE { LET (?x := "test"). LET (?now := afn:now()). } ?x gets the value "test", but ?now remains empty. Even when I update my Topbraid version to 3.4.0.v20101130-1222R. So how can I get this working? The method adding two variables works okay when providing each variable with a cast. So thanks for this solution. Kind regards, Pim -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Scott Henninger Sent: woensdag 1 december 2010 16:36 To: TopBraid Suite Users Subject: [topbraid-users] Re: Adding 2 variables and getting the current date Pim; I wonder if the selected variables are mismatching. Start by trying SELECT *, i.e. SELECT * { LET (?now := afn:now()). } The addition example will work, but do be careful about the types for the variables. You an cast the type with xsd types, for example xsd:integer(?Xmin). All of this works in 3.3.2, but you should consider upgrading to 3.3.x, or waiting for later today to upgrade to 3.4 -- Scott On Dec 1, 6:18 am, "Helm, P.W. (Pim) van den" <[email protected]> wrote: > Hi all, > > I tried to add two variable via: > LET (?Xmax :=?Xmin + ?Length). > > And get a timestamp in a variable via: > LET (?now : = afn:now()). > > Both result in an unbound variable. What am I doing wrong? > > I am using TBC Maestro Edition Version: 3.2.2.v20091223-2155R > > Kind regards, > Pim > This e-mail and its contents are subject to the DISCLAIMER > athttp://www.tno.nl/disclaimer/email.html -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. 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-users?hl=en This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. 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-users?hl=en
