W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > January 2006

Common variables across multiple optional blocks

From: Ian Davis <iand@internetalchemy.org>
Date: Tue, 17 Jan 2006 21:45:40 +0000
Message-ID: <43CD6584.70103@internetalchemy.org>
To: public-rdf-dawg-comments@w3.org

Hi all,

It seems that the following query has indeterminate solutions

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name ?page
   ?x foaf:name  ?name .

   OPTIONAL { ?x foaf:homepage ?page . }
   OPTIONAL { ?x foaf:workplaceHomepage ?page . }

Text in an earlier draft forbade this situation:


"A variable can not be used in two optional blocks where the outermost 
mention (shallowest occurrence in the tree for each occurrence) of the 
two uses is not the same block."

This was moved to a new section on query execution order:


"Optional-2... informally, this rule states that there can't be two 
optionals with a common variable, if that variable does not occur in a 
basic graph pattern as well."

This entire section was removed from the July draft.

I think that this rule needs to be reinstated.

For more information and background on this please see chat leading up 
to http://chatlogs.planetrdf.com/swig/2006-01-17#T20-51-16



http://internetalchemy.org | http://purl.org/NET/iand
Working on... Spiral <http://www.semanticplanet.com/2005/spiral/>
Received on Tuesday, 17 January 2006 21:52:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:22 UTC