Rolling
[cql-java-moved-to-github.git] / Changes
1 $Id: Changes,v 1.25 2002-12-09 16:56:07 mike Exp $
2
3 Revision history for the CQL-Java package.
4 See the bottom of this file for a list of things still to do.
5
6 0.5  (IN PROGRESS, currently at RC1)
7         - Add an extra back-end method,
8                 byte[] toType1(Properties config)
9           which generates an opaque BER-encoded PDU suitable for
10           forwarding to Z39.50 server as a pasrt of a searchRequest
11           APDU.  This was contributed by Ralph Levan <levan@oclc.org>
12         - Change regression-test rules for Adam's compiler to use his
13           new front-end cql2xcql instead of the old cqlparse3.
14         - Change the names of the anchoring properties in
15           etc/pqf.properties and the CQLTermNode code that examines
16           them, in accordance with Adam's PQF-renderer's behaviour.
17           This gives more flexibility in terms of generating
18           attributes for end-of-field anchoring.
19         - Fix comment in etc/pqf.properties (claimed that the Type-1
20           "string" attribute was "phrase").  Just a documentation
21           error.
22         - Change the capitalisation of the project name from
23           "cql-java" to "CQL-Java".  That doesn't really make any
24           difference to anything: in particular, file-names such as
25           "cql-java.jar" remain the same.
26         - Recreate last-in-field support
27         - ### Add srw.resultSet support to the toPFQ() method.
28         - ### Fix term-to-PQF translation to omit empty properties
29           (for the broken Korean server)
30
31 0.4  Thu Nov 21 10:09:26 2002
32         - Add support for the new "phonetic" relation modifier,
33           including its mapping in "etc/pqf.properties".
34         - Make prefix-maps bind loosely, so that ``>dc=x a and b''
35           applies the dc=x binding to both the ``a'' and ``b''
36           sub-queries.
37         - Change the XCQL output to include the nasty (but official)
38           <leftOperand> and <rightOperand> wrapper elements.
39         - Change the XCQL output to use the nasty (but official)
40           rendition of prefix-mapping: a <prefixes> element,
41           containing one of more <prefix>es may appear at the top
42           of either a <searchClause> or a <triple>.
43         - Include test/regression/xmlpp.pl in the distribution: this
44           may now be used for testing whether a CQL compiler produces
45           _equivalent_ XCQL to what's in the regression test, rather
46           than requiring byte-identical output.
47         - Include the reference XCQL output in the distribution, for
48           the regression test suite to run against.
49         - Change build process so that javadoc documentation is built
50           by "make" in the "docs" directory.  There's now a top-level
51           makefile that builds the source, runs the test suite and
52           creates the documentation.
53         - Write javadoc comments for CQLRelation and ModifierSet.
54         - Other improvements to javadoc comments (e.g. describe the
55           `config' parameter to the toPQF() method.)
56         - Sort out the licence: I've settled on the LGPL.
57         - Remove the redundant and misleading etc/Grammar file.
58         - Fix up various Maintenance Agency web addresses that have
59           moved in the great ZING-release shake-up.
60
61 0.3  Fri Nov 15 12:04:04 2002
62         - Allow keywords to be used unquoted as search terms.
63         - Add support for serverChoiceRelation (scr).
64         - Add support for prefix-mapping, as in
65                 >dc="http://www.loc.gov/zing/cql/dc-indexes/" dc.title=fish
66           and
67                 >"http://www.loc.gov/zing/cql/dc-indexes/" dc.title=fish
68           The XCQL generated corresponds to Adam's suggested format
69           rather than Rob's, not so much because I prefer it (although
70           I do) as because it's what fell out when I just Coded What
71           Comes Natur'ly.  That may need to change, depending on the
72           result of the ZNG list's deliberations.
73         - Fix the parser to normalise relation modifiers to lower case.
74         - Fix the CQLParser test harness not to emit an extraneous
75           blank line at end of XCQL output.
76         - Fix CQLNode documentation to contain a link to YAZ's
77           documentation of Prefix Query Format (PQF) rather than
78           containing a rather unhelpful chunk of BNF.
79         - Change the test/regression Makefile so that "make clean" now
80           does what "make distclean" used to do - the distinction
81           between them is pointless.
82         - Fix a few typos in the documentation.
83         - Move the README file's old "THINGS TO DO" section to the end
84           of this file, the new "Still to do" section.
85
86 0.2  Wed Nov  6 23:05:54 2002
87         - Fix the order of proximity parameters in accordance with the
88           updated official grammar, which now specifies proximity
89           operators of the form
90                 prox/<relation>/<distance>/<unit>/<ordering>
91           as in ``foo prox/<=/3/sentence bar''.
92         - Make the necessary parts of the CQLNode class and its
93           subclasses public.  This means that client code can now walk
94           through parse-trees and so implement its own back-end
95           (e.g. to build BER-friendly data structures using whatever
96           Z39.50 toolkit is preferred.)
97         - Add the toPQF(Properties p) method to CQLNode and its
98           subclasses.  This produces a query in YAZ-style Prefix Query
99           Format, which can be trivially translated into a Z39.50
100           Type-1 query (see, for example, JZKit's code to do so).
101         - Add etc/pqf.properties to configure the toPQF() method.
102         - Add "-p <props-file>" option to the CQLParser test-harness,
103           indicating that the parsed tree is to be rendered to PQF.
104         - Add PQFTranslationException and its subclasses
105           UnknownQualifierException, UnknownRelationException,
106           UnknownRelationModifierException and
107           UnknownPositionException.
108         - Rename ParameterMissingException to MissingParameterException.
109         - Add javadoc comments for CQLNode and its subclasses.
110
111 0.1  Sun Nov  3 20:58:27 2002
112         - First public release.
113
114 --
115
116 ### Still to do
117         - Fix the bug where "9x" is parsed as two tokens, a TT_NUMBER
118           followed by a TT_WORD.  The problem here is that I don't
119           think it's actually possible to fix this without throwing
120           out StreamTokenizer and rolling our own, which we absolutely
121         - Write "package.html" file for the javadoc documentation.
122         - Some niceties for the cql-decompiling back-end:
123           * Don't emit redundant parentheses.
124           * Don't put spaces around relations that don't need them.
125         - Many refinements to the random query generator:
126           * Generate relation modifiers
127           * Proximity support
128           * Don't always generate qualifier/relation for terms
129           * Better selection of qualifier (configurable?)
130           * Better selection of terms (from a dictionary file?)
131           * Introduce wildcard characters into generated terms
132           * Generate multi-word terms
133           * Generate prefix-mappings
134