Re: [Fwd: SPARQL variable names syntax]

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 UTC