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

Re: [Fwd: SPARQL variable names syntax]

From: Steve Harris <S.W.Harris@ecs.soton.ac.uk>
Date: Thu, 4 Aug 2005 14:01:16 +0100
To: DAWG public list <public-rdf-dawg@w3.org>
Message-ID: <20050804130115.GD18743@login.ecs.soton.ac.uk>

On Thu, Aug 04, 2005 at 11:55:33 +0100, Andy Seaborne wrote:
> 
> 
> http://lists.w3.org/Archives/Public/public-rdf-dawg-comments/2005Aug/0038
> 
> 
> Walid Maalej wrote:
> > Dear RDF Data Access Working Group Members,
> >
> > In the last working draft of the 21st. of July 2005, changes have been 
> done
> > concerning the definition of the variable names within a SPARQL query.
> > The syntax is specified under
> > http://www.w3.org/TR/rdf-sparql-query/#rVARNAME .
> > I'm wondering if there is any reason not to allow the underscore "_" at 
> the
> > Beginning of a variable name from the grammar point of view.
> > This could be very useful for application that build SPARQL queries
> > automatically and call the variables like the RDF:ID of the searched
> > resource.
> 
> Allowing "_" as the first character of a VARNAME does not affect any 
> approved tests and does not break the grammar in any way.  I have added it.

No, but it does break my code. I was using _ as a reserved prefix for
internal and temporary variables.

It doesnt really matter, I can use something else, but just pointing out
that it can have knockon effects.

- Steve 
Received on Thursday, 4 August 2005 13:01:41 GMT

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