Hi Daniel,
you have found a bug in Jena, which will be fixed in the next ARQ release and
folded into TopBraid when available:
http://tech.groups.yahoo.com/group/jena-dev/message/46124
Meanwhile, you could use the function smf:cast(?literal, xsd:time).
Cheers
Holger
On Dec 3, 2010, at 6:23 AM, Daniel Mekonnen wrote:
> Greetings,
>
> I was surprised to discover that an xsd:time casting function was not
> available to SPARQL expressions with TBC. I expect the limitation is
> with one of the underlying libraries. The expression:
>
> LET( ?time := xsd:time("12:34:56") ) .
>
> produces the warning:
>
> WARN [Thread-34] (ALog.java:48) - URI <http://www.w3.org/2001/
> XMLSchema#time> has no registered function factory
>
>
> Checking the SPARQL spec, I don't see xsd:time listed as a supported
> function. But then neither is xsd:date() which is supported through
> TBC. Is there a list of casting functions available? Why wouldn't they
> all be supported?
>
> One more note on xsd:time. I noticed when selecting a datatype range
> that xsd:time appears in the list, but is the only one to have a plain
> blue icon. Since a clock icon is in use by xsd:dateTime, I'd like to
> suggest a "T" or perhaps an hourglass. A last thought for the
> datatype icons, a background color of green, matching that of the
> datatype property icon, would give some mnemonic continuity.
>
> thanks!
>
> -Daniel
>
> --
> 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
--
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