Use $Id$ instead of $Header$.
[cql-java-moved-to-github.git] / README
1 $Id: README,v 1.2 2002-10-24 16:06:34 mike Exp $
2
3 cql-java -- a free CQL compiler for Java
4
5
6 This project provides a set of classes for representing a CQL parse
7 tree (CQLBooleanNode, CQLTermNode, etc.) and a Compiler class which
8 builds a parse tree given a CQL query as input.  It also provides
9 compiler back-ends to render out the parse tree either as XCQL or
10 Yaz-style Prefix Query Format (PQF).
11
12 CQL is "Common Query Language", a new query language designed under
13 the umbrella of the ZING initiative (Z39.59-International Next
14 Generation).  More information at
15         http://zing.z3950.org/cql/index.html
16
17 XCQL is "XML CQL", a representation of CQL-equivalent queries in XML
18 which is supposed to be easier to parse.  More information at
19         http://www.loc.gov/z3950/agency/zing/srwu/xcql.html
20 (not much more, though)
21
22 But if you didn't know that, why are you even reading this?  :-)
23
24
25 SYNOPSIS
26 --------
27
28 Test-harness:
29
30         $ echo "foo and (bar or baz)" | java org.z3950.zing.cql.CQLParser
31
32 Library:
33
34         import org.z3950.zing.cql.*
35
36         CQLParser parser = new CQLParser();
37         CQLNode root = parser.parse("title=dinosaur");
38         print root.toXCQL();
39         print root.toPQF(qualSet);
40         // ... where `qualSet' specifies CQL-qualfier => Z-attr mapping
41
42
43 DESCRIPTION
44 -----------
45
46 Se the automatically generated class documentation in the "doc"
47 subdirectory.  (### It's not there yet, of course)
48
49
50 AUTHOR
51 ------
52
53 Mike Taylor <mike@z3950.org>
54 http://www.miketaylor.org.uk
55
56
57 LICENCE
58 -------
59
60 This software is open source, but I've not yet decided exactly what
61 licence to use.  Be good.  Assume I'm going with the GPL (most
62 restrictive) until I say otherwise.
63
64
65 SEE ALSO
66 --------
67
68 Adam Dickmeiss's CQL compiler, written in C.
69 Rob Sanderson's CQL compiler, written in Python.
70 All the other free CQL compilers everyone's going to write.