On 12/04/15 14:03, Bruno P. Kinoshita wrote:
Oh, so I started working with the JavaCC grammar by running Fuseki, and later
wrote that main method, but I could have used qparse? I liked the main method
because I did not have to re-compile the project, since I could simply update
the JavaCC grammar and run the generated parser.
Can I get the same result with qparse? If so I will update JENA-632 :)
Thanks Andy!Bruno
Presumably, it is using Fuskei as an uber jar to have a command setup.
To work at the command line, I redid my script recently and it now that
puts the target/classes on the front of a classpath of "download/lib/*"
because all the dependencies are in that directory.
Just updating the grammar, and recompiling (Eclipse, maven) should make
the new grammar show up.
Another way which works better with Fuseki (large number of
dependencies) is to cache the classpath with mvn
dependency:build-classpath -Dmdep:out=FILE then
CP="$(cat FILE)"
java -cp "$CP" ...
I'm away at the moment and just about have email - remind next week and
I can dig the latest script and put it somewhere.
Andy
From: Andy Seaborne <[email protected]>
To: [email protected]
Sent: Monday, April 13, 2015 12:44 AM
Subject: Re: Fwd: Proposal submitted [JENA-491]
The command line tools work with the extended ARQ syntax if:
1/ The file name ends ".arq"
or
2/ --syntax arq
so you can use qparse to test queries.
"qparse" also does some internal testing - it parses the query, prints
the parsed form (so it does query -> string), reparses and tests that
hash code and .equals work.
Andy
On 12/04/15 11:31, Bruno P. Kinoshita wrote:
Hello,
Chiming in just to say that if necessary I can help testing the JavaCC part. I
was working on JENA-632, which is still being reviewed, but it included changes
in ARQ and in the JavaCC grammar.
One thing that could be helpful, I think, is extracting the main method created
for JENA-632 [1] in the generated parser. It avoids having to re-run Fuseki to
quickly test the modifications in the grammar. I will file an issue and extract
that part later.
All the best,Bruno
[1]
https://github.com/kinow/jena/blob/7b3b10134f4201314d5f6c6103a595181e82f997/jena-arq/Grammar/arq.jj#L39