W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2009

Re: [TF-LIB] COALESCE is an unhelpful choice of name

From: Andy Seaborne <andy.seaborne@talis.com>
Date: Sun, 15 Nov 2009 16:01:18 +0000
Message-ID: <4B0025CE.2050303@talis.com>
To: Steve Harris <steve.harris@garlik.com>
CC: "public-rdf-dawg@w3.org Group" <public-rdf-dawg@w3.org>


On 15/11/2009 09:51, Steve Harris wrote:
> On 14 Nov 2009, at 20:07, Andy Seaborne wrote:
>
>> What about TRY ?
>>
>> TRY(xsd:integer(?x), 0)
>
> Try is a bit too much like Try/Catch.

Seems fine to me.

>
>> > What happens if all the terms are unbound? An error?
>>
>> I think it has to be an error and XXX(expression) without a default
>> value is a no-op.
>
> It's NULL in SQL. That makes most sense I think.

So we agree?  There is no NULL in SPARQL.  unbound, as a value is an error.

	Andy

>
> - Steve
>
Received on Sunday, 15 November 2009 16:01:21 GMT

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