2 Copyright (C) 1995-1999, Index Data ApS.
3 See the file LICENSE for details.
5 Compilation and installation instructions for YAZ
6 $Id: README,v 1.28 1999-12-02 13:54:56 adam Exp $
8 The primary output of the source here is the lib/libyaz.a library,
9 which contains support functions for implementing the server or client
12 Windows programmers: refer to the file windows.txt which describes how
13 to build the software using Microsoft Visual C++.
15 On Unix, GNU configure is used to configure YAZ and generate Makefiles.
16 Type "./configure", then "make" to build YAZ.
18 Two test-programs of interest are generated when you type 'make' at the
19 top level: ztest/yaz-ztest and client/yaz-client. Ztest is a dummy
20 database server which returns canned responses to all queries. It's good
21 for verifying that the protocol works ok, and ztest.c shows an
22 implementation of a 'backend' interface.
24 yaz-client is a linemode Z39.50 client. It supports a fair amount of the
25 functionality of Z39.50v2/SR, but some things you need to enable or
26 disable by recompilation. Its primary purpose is to excersise the
27 package, and verify that the protocol works OK. It can be started by
30 yaz-client tcp:<hostname>:<port>[/<database>]
32 at the UNIX prompt, to connect to a Z39.50 server.
34 Use '?' to get a list of the available commands.
36 The current query language for the find command is a bit awkward, but
39 query ::= ['@attrset' <attribute-set>] rpn
40 rpn ::= complex | simple | attr rpn
41 complex ::= operator rpn rpn
42 operator ::= '@and' | '@or' | '@not' | '@prox' proximity
43 simple ::= term | set.
44 term ::= <word> | '"' <term> ... '"'.
45 set ::= '@set' <setname>.
46 attr ::= '@attr' [<attribute-set>] <number> '=' <number>.
47 proximity ::= exclusion distance ordered relation which unit
48 exclusion ::= '1' | '0' | 'void'
52 which ::= 'known' | 'private'
61 @and @attr 1=1 andersen @attr 1=4 @attr 4=2 duckling
63 @attrset Bib-1 @and @attr GILS 2=2008 Washington @attr 1=21 weather
65 The sort command takes a sequence of sort specifications. A sort
66 specification holds a field (sort criteria) and is followed by flags.
67 If the sort critieria includes = it is assumed that the sort SortKey
68 is of type sortAttributes using Bib-1. The integer before the = is
69 the attribute type and the integer following the = is the attribute
70 value. If no = is in the SortKey it is treated as a sortfield-type
71 of type InternationalString. Flags observed are s (sort case
72 sensitive), i (sort case insensitive), < (ascending), > (descending).
74 1=4 i< (use is title, insensitive, ascending).
75 Title s> (String Title, sensitive, descending).
81 util - Various little utility functions. Logging, memory debugging,
82 primitive ISO 2709 presentation for the yaz-client, etc. You'll
83 find the ASN.1 Compiler for YAZ here as well (yc.tcl).
85 odr - Open Data Representation. This module implements the BER
86 encoding rules. Documentation is found in the files odr-use.man
89 asn - This module implements the Z39.50/SR protocol. The best way
90 to find out how it works is to look in the sample
91 client/server code in server/seshigh.c or yazlib/tst.c. The
92 interface is still wholly described by the file proto.h
93 which defines structure and type definitions for each of the
94 types introduced in the protocol specification.
96 z39.50 - This module implements the Z39.50 protocol. This module
97 does the same job as the 'asn' module except that the source
98 files are auto-generated using an YAZ' ASN.1 Compiler (YC).
100 zutil - This module implements a collection of Z39.50 utilities, such
101 as query parsing, EXTERNAL handling, etc.
103 comstack - This module implements the transport transparency
104 stack (COMSTACK). The comstack implements a generic interface
105 for exchanging BER-encoded records over a network. It supports
106 the 'American' mode of exchanging the records straight over
107 TCP/IP, and uses Peter Furniss' XTIMOSI package over RFC1006.
108 Look for documentation in the file comstack.man.
110 rfc1006 - Xtimosi requires an implementation of the OSI transport
111 layer with an XTI-based API. Some systems (HP and DEC,
112 notably) provide this. For others, we provide an
113 implementation of the RFC1006 protocol (which is what
114 ISODE-based implementations often use). This module is not
115 needed if you don't use xtimosi, and it's not included in the
118 server - This is the implementation of the server frontend. It
119 provides event-handling and server managament functions,
120 and calls the backend primitives (best documentation of these
121 is in the file include/backend.h).
123 client - A demonstration client. If we come upon a good design for a
124 higher level client API, that will live here.
126 ztest - A demonstration server that implements a backend.
128 include - The various header files.
130 lib - The libraries. Primarily libyaz.a. The makefile gathers the
131 libraries from previous modules into libyaz.a.
133 To get more information or assistance, send mail to yaz-help@indexdata.dk.
135 We maintain a mailing-list for the purpose of announcing new versions of
136 the software, bug-reports, discussion etc. You can sign up by sending
137 mail to yaz-request@indexdata.dk and include the following command
138 command in your email: