W3C home > Mailing lists > Public > public-sparql-dev@w3.org > October to December 2013

MIN and MAX in face of errors

From: Jeremy J Carroll <jjc@syapse.com>
Date: Thu, 10 Oct 2013 10:21:34 -0700
Message-Id: <26A2F070-3C9E-4F4B-A0A2-0F8437BB86AC@syapse.com>
To: public-sparql-dev@w3.org


I am wondering what is the right answer to the following query

SELECT 
  (MIN(?x) as ?a)
  (MAX(?x) as ?b)
   (MIN(?x+0) ?c)
   (MAX(?x+0) AS ?d)
{
  { BIND(1 as ?x)}
  UNION
  { BIND(1 +"x" as ?x)}
  UNION
  { BIND("y" as ?x)}
}

Note that the middle BIND creates an unbound ?x, (which is lower than 1 or "y"), whereas the last BIND creates an error inside the 2nd MIN and MAXes  (when ?x="y")

I am not at all the sure that the spec is clear about these cases

Jeremy


Principal Architect
Syapse, Inc.
Received on Thursday, 10 October 2013 17:22:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:52 UTC