#!/bin/sh
-# $Id: Build,v 1.2 2002-11-20 17:20:11 mike Exp $
: ${MAKE=make}
for dir in src/main/java/org/z3950/zing/cql test/regression docs; do
-$Id: Changes,v 1.46 2008-05-28 10:03:53 mike Exp $
Revision history for the CQL-Java package.
See the bottom of this file for a list of things still to do.
-# $Id: Makefile,v 1.1 2002-11-17 23:29:55 mike Exp $
**make-default**:
./Build
-$Id: README,v 1.24 2007-06-07 16:04:50 mike Exp $
CQL-Java - a free CQL compiler, and other CQL tools, for Java
-$Id: README,v 1.1 2005-08-29 15:15:02 mike Exp $
This directory contains a substantial rewrite of CQL-Java v0.7
as supplied by Chris Hubick on 22nd August 2005. I don't think
#!/bin/sh
-# $Id: CQLGenerator,v 1.1 2002-11-02 01:24:41 mike Exp $
# Trivial script to invoke the CQLGenerator test-harness
java org.z3950.zing.cql.CQLGenerator ${@+"$@"}
#!/bin/sh
-# $Id: CQLLexer,v 1.2 2002-11-01 23:45:28 mike Exp $
# Trivial script to invoke the CQLLexer test-harness
java org.z3950.zing.cql.CQLLexer ${@+"$@"}
#!/bin/sh
-# $Id: CQLParser,v 1.2 2002-11-01 23:45:28 mike Exp $
# Trivial script to invoke the CQLParser test-harness
java org.z3950.zing.cql.CQLParser ${@+"$@"}
-# $Id: Makefile,v 1.2 2007-06-06 13:20:44 mike Exp $
all: overview-tree.html
-# $Id: generate.properties,v 1.2 2002-11-03 16:49:38 mike Exp $
#
# Propeties file to drive the org.z3950.zing.cql.CQLGenerator
# test-harness. See that class's documentation for the semantics of
-# $Id: pqf.properties,v 1.9 2003-12-18 13:17:16 mike Exp $
#
# Propeties file to drive org.z3950.zing.cql.CQLNode's toPQF()
# back-end. This specifies the interpretation of various CQL
-$Id: README,v 1.2 2007-06-06 14:38:25 mike Exp $
The XSLT files in this directory are supposed to allow you to make
a thin-client for SRU using only an XSLT-enabled web browser. It
-$Id: README,v 1.2 2002-12-09 16:29:44 mike Exp $
The library file "cql-java.jar" will appear here when you do a build
in ../src/org/z3950/zing/cql. Put it on your CLASSPATH to use the
-$Id: bnf,v 1.1 2007-06-27 23:36:19 mike Exp $
Sort of derived from http://www.loc.gov/standards/sru/cql/
-// $Id: CQLAndNode.java,v 1.9 2007-06-29 12:48:21 mike Exp $
package org.z3950.zing.cql;
/**
* Represents an AND node in a CQL parse-tree.
*
- * @version $Id: CQLAndNode.java,v 1.9 2007-06-29 12:48:21 mike Exp $
*/
public class CQLAndNode extends CQLBooleanNode {
/**
-// $Id: CQLBooleanNode.java,v 1.18 2007-07-03 16:03:00 mike Exp $
package org.z3950.zing.cql;
import java.util.List;
/**
* Represents a boolean node in a CQL parse-tree.
*
- * @version $Id: CQLBooleanNode.java,v 1.18 2007-07-03 16:03:00 mike Exp $
*/
public abstract class CQLBooleanNode extends CQLNode {
-// $Id: CQLGenerator.java,v 1.9 2007-07-03 15:41:35 mike Exp $
package org.z3950.zing.cql;
import java.util.Properties;
* this distribution - there is a <TT>generate_<I>x</I>()</TT> method
* for each grammar element <I>X</I>.
*
- * @version $Id: CQLGenerator.java,v 1.9 2007-07-03 15:41:35 mike Exp $
* @see <A href="http://zing.z3950.org/cql/index.html"
* >http://zing.z3950.org/cql/index.html</A>
*/
-// $Id: CQLLexer.java,v 1.14 2007-07-03 13:30:42 mike Exp $
package org.z3950.zing.cql;
import java.io.InputStream;
-// $Id: CQLNode.java,v 1.26 2007-07-03 13:36:03 mike Exp $
package org.z3950.zing.cql;
import java.util.HashMap;
/**
* Represents a node in a CQL parse-tree.
*
- * @version $Id: CQLNode.java,v 1.26 2007-07-03 13:36:03 mike Exp $
*/
public abstract class CQLNode {
-// $Id: CQLNotNode.java,v 1.9 2007-06-29 12:48:21 mike Exp $
package org.z3950.zing.cql;
/**
* Represents a NOT node in a CQL parse-tree.
*
- * @version $Id: CQLNotNode.java,v 1.9 2007-06-29 12:48:21 mike Exp $
*/
public class CQLNotNode extends CQLBooleanNode {
/**
-// $Id: CQLOrNode.java,v 1.9 2007-06-29 12:48:21 mike Exp $
package org.z3950.zing.cql;
/**
* Represents an OR node in a CQL parse-tree.
*
- * @version $Id: CQLOrNode.java,v 1.9 2007-06-29 12:48:21 mike Exp $
*/
public class CQLOrNode extends CQLBooleanNode {
/**
-// $Id: CQLParseException.java,v 1.2 2002-11-06 20:13:45 mike Exp $
package org.z3950.zing.cql;
/**
* Exception indicating that an error ocurred parsing CQL.
*
- * @version $Id: CQLParseException.java,v 1.2 2002-11-06 20:13:45 mike Exp $
*/
public class CQLParseException extends Exception {
private int pos;
-// $Id: CQLParser.java,v 1.39 2007-08-06 15:54:48 mike Exp $
package org.z3950.zing.cql;
import java.io.IOException;
/**
* Compiles CQL strings into parse trees of CQLNode subtypes.
*
- * @version $Id: CQLParser.java,v 1.39 2007-08-06 15:54:48 mike Exp $
* @see <A href="http://zing.z3950.org/cql/index.html"
* >http://zing.z3950.org/cql/index.html</A>
*/
-// $Id: CQLPrefix.java,v 1.5 2007-06-27 22:39:55 mike Exp $
package org.z3950.zing.cql;
/**
* Represents a CQL prefix mapping from short name to long identifier.
*
- * @version $Id: CQLPrefix.java,v 1.5 2007-06-27 22:39:55 mike Exp $
*/
public class CQLPrefix {
-// $Id: CQLPrefixNode.java,v 1.10 2007-07-03 16:40:11 mike Exp $
package org.z3950.zing.cql;
import java.util.ArrayList;
/**
* Represents a prefix node in a CQL parse-tree.
*
- * @version $Id: CQLPrefixNode.java,v 1.10 2007-07-03 16:40:11 mike Exp $
*/
public class CQLPrefixNode extends CQLNode {
-// $Id: CQLProxNode.java,v 1.14 2007-06-29 12:53:03 mike Exp $
package org.z3950.zing.cql;
* candidate records which are sufficiently close to each other, as
* specified by a set of proximity parameters.
*
- * @version $Id: CQLProxNode.java,v 1.14 2007-06-29 12:53:03 mike Exp $
*/
public class CQLProxNode extends CQLBooleanNode {
/**
-// $Id: CQLRelation.java,v 1.19 2007-07-03 13:40:58 mike Exp $
package org.z3950.zing.cql;
import java.util.List;
/**
* Represents a relation between a CQL index and term.
*
- * @version $Id: CQLRelation.java,v 1.19 2007-07-03 13:40:58 mike Exp $
*/
public class CQLRelation extends CQLNode {
ModifierSet ms;
-// $Id: CQLSortNode.java,v 1.2 2008-04-11 12:05:15 mike Exp $
package org.z3950.zing.cql;
import java.util.ArrayList;
/**
* Represents a sort node in a CQL parse-tree.
*
- * @version $Id: CQLSortNode.java,v 1.2 2008-04-11 12:05:15 mike Exp $
*/
public class CQLSortNode extends CQLNode {
/**
-// $Id: CQLTermNode.java,v 1.28 2007-07-03 13:41:24 mike Exp $
package org.z3950.zing.cql;
import java.util.ArrayList;
* these must be provided - you can't have an index without a
* relation or vice versa.
*
- * @version $Id: CQLTermNode.java,v 1.28 2007-07-03 13:41:24 mike Exp $
*/
public class CQLTermNode extends CQLNode {
private String index;
-# $Id: Makefile,v 1.18 2007-07-03 12:56:29 mike Exp $
#
# Your Java compiler will require that this source directory is on the
# classpath. The best way to do that is just to add the CQL-Java
-// $Id: MissingParameterException.java,v 1.2 2002-11-06 20:13:45 mike Exp $
package org.z3950.zing.cql;
/**
* Exception indicating that a required property was not specified.
*
- * @version $Id: MissingParameterException.java,v 1.2 2002-11-06 20:13:45 mike Exp $
*/
public class MissingParameterException extends Exception {
/**
-// $Id: Modifier.java,v 1.4 2007-07-03 13:29:34 mike Exp $
package org.z3950.zing.cql;
* <P>
* This class is used only by ModifierSet.
*
- * @version $Id: Modifier.java,v 1.4 2007-07-03 13:29:34 mike Exp $
*/
public class Modifier {
String type;
-// $Id: ModifierSet.java,v 1.13 2007-07-03 13:30:18 mike Exp $
package org.z3950.zing.cql;
import java.util.ArrayList;
* zero or more <I>type</I> <I>comparison</I> <I>value</I> pairs,
* where type, comparison and value are all strings.
*
- * @version $Id: ModifierSet.java,v 1.13 2007-07-03 13:30:18 mike Exp $
*/
public class ModifierSet {
private String base;
-// $Id: PQFTranslationException.java,v 1.1 2002-11-06 20:13:45 mike Exp $
package org.z3950.zing.cql;
/**
* Base class for exceptions occurring when translating parse trees to PQF.
*
- * @version $Id: PQFTranslationException.java,v 1.1 2002-11-06 20:13:45 mike Exp $
*/
public class PQFTranslationException extends Exception {
PQFTranslationException(String s) {
-// $Id: UnknownIndexException.java,v 1.2 2007-06-27 22:44:40 mike Exp $
package org.z3950.zing.cql;
* that, because the PQF configuration doesn't know about a relation,
* we throw one of these babies.
*
- * @version $Id: UnknownIndexException.java,v 1.2 2007-06-27 22:44:40 mike Exp $
*/
public class UnknownIndexException extends PQFTranslationException {
/**
-// $Id: UnknownPositionException.java,v 1.2 2002-11-29 16:42:54 mike Exp $
package org.z3950.zing.cql;
* configuration. If the position is not configured, we throw one of
* these babies.
*
- * @version $Id: UnknownPositionException.java,v 1.2 2002-11-29 16:42:54 mike Exp $
*/
public class UnknownPositionException extends PQFTranslationException {
/**
-// $Id: UnknownRelationException.java,v 1.2 2002-11-06 20:13:45 mike Exp $
package org.z3950.zing.cql;
* that, because the PQF configuration doesn't know about a relation,
* we throw one of these babies.
*
- * @version $Id: UnknownRelationException.java,v 1.2 2002-11-06 20:13:45 mike Exp $
*/
public class UnknownRelationException extends PQFTranslationException {
/**
-// $Id: UnknownRelationModifierException.java,v 1.1 2002-11-06 20:13:45 mike Exp $
package org.z3950.zing.cql;
* that, because the PQF configuration doesn't know about a relation modifier,
* we throw one of these babies.
*
- * @version $Id: UnknownRelationModifierException.java,v 1.1 2002-11-06 20:13:45 mike Exp $
*/
public class UnknownRelationModifierException extends PQFTranslationException {
/**
-# $Id: Makefile,v 1.2 2007-06-07 16:16:15 mike Exp $
all: ../../target/cql-java-1.8.jar
PATH=$(PATH):../../bin CLASSPATH=../../target/cql-java-1.8.jar ./mkrandom 100
-$Id: README,v 1.2 2002-12-09 16:29:44 mike Exp $
In this directory, we test the integrity of the CQL-Java tools as
follows:
#!/usr/bin/perl -w
-# $Id: mkrandom,v 1.2 2002-11-03 17:02:48 mike Exp $
use strict;
-# $Id: Makefile,v 1.9 2002-11-28 11:56:55 mike Exp $
XMLCANONICALISER = cat
# Change this to "./xmlpp.pl" if you want to check for equivalence
-$Id: README,v 1.8 2007-06-29 13:06:07 mike Exp $
If you just don't want to think about it
----------------------------------------
#!/usr/bin/perl -w
-# $Id: mkanswers,v 1.5 2002-11-21 09:57:28 mike Exp $
use IO::File;
use strict;
#!/usr/bin/perl -w
-# $Id: mktests,v 1.3 2002-11-20 22:50:45 mike Exp $
use IO::File;
use strict;
#!/usr/bin/perl -w
-# $Id: runcanon,v 1.1 2007-06-29 13:05:12 mike Exp $
#
# Tests that all sample queries can be rendered into idempotent
# canoncial form.
#!/usr/bin/perl -w
-# $Id: runtests,v 1.12 2007-07-03 15:53:52 mike Exp $
use IO::File;
use strict;
#!/bin/sh
-# $Id: showtest,v 1.6 2002-11-28 11:56:55 mike Exp $
if [ $# != 1 ]; then
echo "Usage: $0 <test-name>" >&2