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

Re: what functions should we include in SPARQL 1.1?

From: Steve Harris <steve.harris@garlik.com>
Date: Tue, 9 Nov 2010 02:07:37 +0000
Cc: Andy Seaborne <andy.seaborne@epimorphics.com>, Lee Feigenbaum <lee@thefigtrees.net>, Axel Polleres <axel.polleres@deri.org>, SPARQL Working Group <public-rdf-dawg@w3.org>
Message-Id: <1CC9B86E-FE7F-4816-870D-0EEAA4F99D6B@garlik.com>
To: Steve Harris <steve.harris@garlik.com>
On 2010-11-09, at 01:15, Steve Harris wrote:
> In SQL RAND(n) always returns the same number, for any given n. I'm not quite sure if it sets the seed to be used by the next call to RAND() or not.

Actually, I'm wrong about that, in MySQL at least it's the same number for a given n, and a given row number.

We don't really have a concept of rows, but maybe something can be done to serially number solutions?

A valid test would then be FILTER(RAND(23) = RAND(23)), which should always be true.

- Steve

Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Tuesday, 9 November 2010 02:08:17 UTC

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