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

Re: Report on SPARQL Grammar implementation experience using ANTLR.

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Wed, 09 Mar 2005 21:54:37 +0000
Message-ID: <422F709D.9020307@hp.com>
To: Dan Connolly <connolly@w3.org>
Cc: "Thompson, Bryan B." <BRYAN.B.THOMPSON@saic.com>, "Bebee, Bradley R." <BRADLEY.R.BEBEE@saic.com>, "'public-rdf-dawg@w3.org'" <public-rdf-dawg@w3.org>, "Personick, Michael R." <MICHAEL.R.PERSONICK@saic.com>, "'maripuri_sandeep@bah.com'" <maripuri_sandeep@bah.com>

Dan Connolly wrote:
> On Mar 9, 2005, at 12:17 PM, Seaborne, Andy wrote:
>> Thompson, Bryan B. wrote:
>>> Hello,
>>> I wanted to report on our implementation experience for the SPARQL
>>> grammar using the ANTLR parser generator based on the Working Draft
>>> of the SPARQL query language[1][2].
>> Excellent news!
> yes, quite...
>> Hmm - the productions come fairly directly from a javacc grammar
> I'd like a link to that from the editor's draft, Andy. I dunno if it's 
> worth
> keeping when we publish or not... but I hate the idea of not giving
> the readers all the bits we use to produce the draft.

The grammar in rq23 will be master one - the javacc is the development one 
because it is executable and hence checkable against the test suite.  The 
one in rq23 is mechaniscally produced but manually cleaned for presentation.

The downside of the javacc one is that all the detail in it that doesn't end 
up in rq23 is the java code that is specific to implementation.

The grammar going into Eric's yacker is the rq23 one.

>> I'm most of the way through changing the grammar to reflect 0227  If 
>> the javacc master would be of help, it is in the ARQ module of CVS in 
>> the Jena repsoitory on SourceForge, directory /Grammar.
> Care to spell that in URI syntax? ;-)



Beware that the web view of CVS trails the live repository - SF are in the 
process of upgrades to remove this problem.

I just checked (21:50Z) and it looks to be slightly lagging (qname 
productions aren't right).  You can get a live version via anonymous CVS.

Received on Wednesday, 9 March 2005 21:55:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:46 UTC