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

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

From: Yoshio FUKUSHIGE <fuku@w3.org>
Date: Tue, 14 Dec 2004 18:49:11 +0900
Message-ID: <002a01c4e1c2$29efe870$f1e41b85@steelball>
To: <public-rdf-dawg@w3.org>

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 GMT

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