Re: Question on variable scope w.r.t. multiple optional blocks

I forgot to add a comment:

> PREFIX foaf: <http://xmlns.com/foaf/0.1/>
> SELECT ?name, ?nick
> WHERE (?x foaf:name ?name)
>          [(?x foaf:nick ?nick)
>           (?x foaf:givenname ?nick)]
>          [(?x foaf:nick ?nick)
>           (?x  foaf:surname ?nick)]
> 
> Does one have to say this like this?:

I know this can be said like:

 PREFIX foaf: <http://xmlns.com/foaf/0.1/>
 SELECT ?name, ?nick
 WHERE (?x foaf:name ?name)
            [(?x foaf:nick ?nick)
              {(?x foaf:givenname ?nick)}
              OR
              {(?x foaf:surname ?nick)}
            ]

The question is:
Do we have to forbid the former query that bears
the same meaning with the latter?

Best,
Yoshio Fukushige
fuku@w3.org
fukushige.yoshio@jp.panasonic.com

Received on Tuesday, 14 December 2004 09:49:14 UTC