On 07/02/14 14:00, Marco Balduini wrote:
Dear all,
we are trying to add a new aggregation in ARQ.
We are testing different ways to achieve this goal and to deeply understand the
SPARQL11 parser we need the BNF file of the grammar but we can't find it
anywhere.
In the jena distro we can only find the jj files automatically generated by
javaCC.
Can you help us with some pointers or explanations?
Many thanks in advance.
Bests,
Marco
Hi Marco,
See
http://svn.apache.org/repos/asf/jena/trunk/jena-arq/Grammar/
The file master.jj is the input to JavaCC (in fact, this also generates
the HTML in spec so that is the ABNF).
http://www.w3.org/TR/sparql11-query/#sparqlGrammar
The process is carried out by the script 'grammar'. It runs cpp over
master.jj, once for strict and once for extended forms.
The maven "-source" artifact only has the javacc output because the
grammar does not get built each time.
The true source is available from
http://www.apache.org/dist/jena/source/ -- it's the state of trunk at
the time of release.
Andy