W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2012

RE: "in-scope" and BIND question

From: Polleres, Axel <axel.polleres@siemens.com>
Date: Wed, 9 May 2012 16:44:43 +0200
To: "public-rdf-dawg@w3.org" <public-rdf-dawg@w3.org>
Message-ID: <9DA51FFE5E84464082D7A089342DEEE80139B00EF37A@ATVIES9917WMSX.ww300.siemens.net>
Sorry, I realize that I had an incomplete sentence in the end of that last mail
(shouldn't hit the "send" button while thinking). please ignore it, i.e.

  s/However, strictly reading://

thanks,
Axel


--
Dr. Axel Polleres
Siemens AG Österreich
Corporate Technology Central Eastern Europe Research & Technologies
CT T CEE

Tel.: +43 (0) 51707-36983
Mobile: +43 (0) 664 88550859
Fax: +43 (0) 51707-56682 mailto:axel.polleres@siemens.com


________________________________
From: Polleres, Axel
Sent: Wednesday, 9 May 2012 4:27 PM
To: public-rdf-dawg@w3.org
Subject: "in-scope" and BIND question

I havea a question on in-scope variables and BIND, particularly, on item 12. in
http://www.w3.org/2009/sparql/docs/query-1.1/rq25.xml#sparqlGrammar

"
 *   The variable assigned in a BIND clause must not be already in-scope<http://www.w3.org/TR/sparql11-query/#variableScope>.
"

I am not sure here, what "already" in-scope means. Can we clarify that?
Particularly, when reading the in-scope definition, I am a bit unsure of what happens
with regards to e.g. UNION queries, i.e. my feeling is that

SELECT *
   {
    { BIND (1 AS ?Y) }
     UNION
    { <s> <p> ?Y }
  }

shouldn't be different from

SELECT *
 {
   { <s><p> ?Y }
    UNION
    { BIND (1 AS ?Y) }
 }

and both should be allowed (returning 1 on the empty graph), is that correct?

However, strictly reading:

thanks,
Axel


--
Dr. Axel Polleres
Siemens AG Österreich
Corporate Technology Central Eastern Europe Research & Technologies
CT T CEE

Tel.: +43 (0) 51707-36983
Mobile: +43 (0) 664 88550859
Fax: +43 (0) 51707-56682 mailto:axel.polleres@siemens.com
Received on Wednesday, 9 May 2012 14:45:18 GMT

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