From: mike Date: Fri, 8 Nov 2002 16:32:01 +0000 (+0000) Subject: Fix PQF documentation to reference online YAZ manual. Remove BNF. X-Git-Tag: v1.5~224 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=cdc52f359b68159237cc765f2e172ed31aedd906;p=cql-java-moved-to-github.git Fix PQF documentation to reference online YAZ manual. Remove BNF. --- diff --git a/src/org/z3950/zing/cql/CQLNode.java b/src/org/z3950/zing/cql/CQLNode.java index eab6db4..cff3d3a 100644 --- a/src/org/z3950/zing/cql/CQLNode.java +++ b/src/org/z3950/zing/cql/CQLNode.java @@ -1,4 +1,4 @@ -// $Id: CQLNode.java,v 1.12 2002-11-06 20:13:45 mike Exp $ +// $Id: CQLNode.java,v 1.13 2002-11-08 16:32:01 mike Exp $ package org.z3950.zing.cql; import java.util.Properties; @@ -7,7 +7,7 @@ import java.util.Properties; /** * Represents a node in a CQL parse-tree. * - * @version $Id: CQLNode.java,v 1.12 2002-11-06 20:13:45 mike Exp $ + * @version $Id: CQLNode.java,v 1.13 2002-11-08 16:32:01 mike Exp $ */ public abstract class CQLNode { CQLNode() {} // prevent javadoc from documenting this @@ -38,26 +38,14 @@ public abstract class CQLNode { /** * Renders a parse-tree into a Yaz-style PQF string. + * PQF, or Prefix Query Format, is a cryptic but powerful notation + * that can be trivially mapped, one-to-one, int Z39.50 Type-1 and + * Type-101 queries. A specification for the format can be found + * in + * Chapter 7 (Supporting Tools) of the + * YAZ manual. *

- *

-	query ::= top-set query-struct.
-	top-set ::= [ '@attrset' string ]
-	query-struct ::= attr-spec | simple | complex | '@term' term-type
-	attr-spec ::= '@attr' [ string ] string query-struct
-	complex ::= operator query-struct query-struct.
-	operator ::= '@and' | '@or' | '@not' | '@prox' proximity.
-	simple ::= result-set | term.
-	result-set ::= '@set' string.
-	term ::= string.
-	proximity ::= exclusion distance ordered relation which-code unit-code.
-	exclusion ::= '1' | '0' | 'void'.
-	distance ::= integer.
-	ordered ::= '1' | '0'.
-	relation ::= integer.
-	which-code ::= 'known' | 'private' | integer.
-	unit-code ::= integer.
-	term-type ::= 'general' | 'numeric' | 'string' | 'oid' | 'datetime' | 'null'.
-     * 
* @return * A String containing a PQF query equivalent to the parse-tree * whose root is this node. This may be fed into the tool of