NOTE: versions of CQL-Java up to v1.7 are hosted here only for historical interest. After that version, maintenance was taken over by Index Data, and more recent versions of CQL-Java are on their site.
CQL-Java a free CQL compiler written in Java. As well as the compiler itself, it includes classes representing CQL queries as abstract trees of variously typed nodes, a decompiler (translating trees back into CQL), a translator into YAZ-style Prefix Query Format and a random query generator which is useful for some kinds of testing.Here's an unsolicted testimonial:
Date: Mon, 9 Dec 2002 09:23:25 -0500
From: Ralph LeVan <levan@OCLC.ORG>While I'm on the subject of giving Mike a bad time, I want to thank him for his CQL parser!
I took it and spent maybe an hour adding code to let it generate type-1 queries from its internal parsed CQL query. The code was clean, intuitively obvious and easy to modify for my purposes.
Thanks, Mike!
Here are downloadable tarballs every released version:
You may also be interested in:
The work for releases 1.0, 1.2 and 1.2.1 was sponsored by the National Library of Australia, whose help we gratefully acknowledge.