W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > January to March 2005

Re: Minor Syntax issues

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Tue, 15 Feb 2005 17:26:36 +0000
Message-ID: <421230CC.6020901@hp.com>
To: Steve Harris <S.W.Harris@ecs.soton.ac.uk>
CC: "'RDF Data Access Working Group'" <public-rdf-dawg@w3.org>



Steve Harris wrote:
> On Tue, Feb 15, 2005 at 05:02:26PM +0000, Andy Seaborne wrote:
> 
>>3/ Just OPTIONAL, not []
>>
>>(note that OPTIONAL can take a {} pattern or a plain triple pattern - 
>>restricting to just {} would be OK).
> 
> 
> Quick predication: this reminds me of the popular C typo relating if to
> blocks, ie. the difference between
> 
> 	SELECT ?name ?email ?phone
> 	WHERE (?x e:worksFor <e:companyX>)
> 	      OPTIONAL{(?x e:emailAddress ?email)
> 		       (?x e:phoneNumber ?phone)}
> and
> 	SELECT ?name ?email ?phone
> 	WHERE (?x e:worksFor <e:companyX>)
> 	      OPTIONAL (?x e:emailAddress ?email)
> 		       (?x e:phoneNumber ?phone)
> 
> I suspect it will catch people out the same way. Not a huge problem though.
> 
> - Steve
> 

Good point.  There is an argument for always requiring {}

ARQ will print parsed queries as fully bracketted and indented.

Eclipse plugin and Emacs mode for SPARQL needed!

	Andy

PS <e:companyX> -- ???
Received on Tuesday, 15 February 2005 17:27:05 GMT

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