W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2010


From: Axel Polleres <axel.polleres@deri.org>
Date: Sun, 19 Sep 2010 21:13:39 +0100
Message-Id: <9C790F52-6765-4045-9152-D1F3C8290683@deri.org>
To: SPARQL Working Group <public-rdf-dawg@w3.org>
Hi all,

Don't we need something like a function isNumeric to test for a numeric argument?
Seems to be handy, useful for instance for numeric aggregates, or no?

It seems COALESCE together with a cast would work as well, but
something like
  SUM(IF(isNumeric(?X), ?X, 0))
looks better - at least to me - than:
    SUM(COALESCE(xs:double(?X) , 0))


Received on Sunday, 19 September 2010 20:14:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:01 UTC