W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > January to March 2011

Re: quick question on new functions specifications in rq25.xml...

From: Axel Polleres <axel.polleres@deri.org>
Date: Tue, 11 Jan 2011 16:45:19 +0000
Cc: "SPARQL Working Group" <public-rdf-dawg@w3.org>
Message-Id: <DE2E9E7F-0817-447C-99C6-BB18FB7AA61D@deri.org>
To: Andy Seaborne <andy.seaborne@epimorphics.com>

On 11 Jan 2011, at 16:37, Andy Seaborne wrote:

> (this is out of date - the current draft has more work on this area)
> 
> On 11/01/11 14:45, Axel Polleres wrote:
> > Looked briefly over the numeric, date, etc functions, looks great!
> >
> > Just a small question for the moment regarding:
> >
> > "
> > 17.4.5.9 tz
> >
> >   simple literal   timezone (xsd:dateTime arg)
> >
> > Returns the timezone part of arg as a simple literal.
> > "
> >
> > we should mention what happens when the timezone part is empty. in fn:timezone-from-dateTime
> > this returns an ewmpty sequence, what is our equivalent of returning an empty sequence? an empty sting literal?
> > or shall we return an error? that question actually may also apply to 17.4.5.8 timezone.
> 
> timezone(no TZ) raises an error because we have nothing for empty
> sequence AKA nil (rdf:nil would be confusing IMHO).

+1 to nil being a bit awkward.

> 
> tz(no TZ) returns ""

ok wirth me in principle, but why differnet behavior from timezone?

thanks,
Axel

> 
> 
>         Andy
> 
Received on Tuesday, 11 January 2011 16:45:57 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:45 GMT