From fd448e894bd9a4b3caed66542c017706fee83712 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Fri, 1 Feb 2008 13:54:39 +0000 Subject: [PATCH] removed the outdated quickstart and examples, and started on a better tutorial using the DOM filter OAI indexing example previously packages in new Debian package. --- doc/Makefile.am | 8 +- doc/entities.ent | 7 +- doc/tutorial.xml | 363 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ doc/zebra.xml | 7 +- 4 files changed, 376 insertions(+), 9 deletions(-) create mode 100644 doc/tutorial.xml diff --git a/doc/Makefile.am b/doc/Makefile.am index 778b1cc..5a1b87d 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,4 +1,4 @@ -## $Id: Makefile.am,v 1.75 2008-01-18 12:39:35 adam Exp $ +## $Id: Makefile.am,v 1.76 2008-02-01 13:54:39 marc Exp $ SUBDIRS = common docdir=$(datadir)/doc/$(PACKAGE)$(PACKAGE_SUFFIX) @@ -8,7 +8,6 @@ XMLMAN = zebraidx.xml zebrasrv.xml idzebra-config.xml XMLFILES = \ administration.xml \ architecture.xml \ - examples.xml \ field-structure.xml \ indexdata.xml \ installation.xml \ @@ -16,7 +15,6 @@ XMLFILES = \ license.xml \ marc_indexing.xml \ querymodel.xml \ - quickstart.xml \ recordmodel-domxml.xml \ recordmodel-alvisxslt.xml \ recordmodel-grs.xml \ @@ -26,6 +24,10 @@ XMLFILES = \ zebrasrv-synopsis.xml \ zebrasrv-virtual.xml +#examples.xml +#quickstart.xml + + HTMLFILES = index.html PNGFILES = zebra.png domfilter.png diff --git a/doc/entities.ent b/doc/entities.ent index 9662a3e..e66ccc1 100644 --- a/doc/entities.ent +++ b/doc/entities.ent @@ -1,8 +1,9 @@ - + - - + + + diff --git a/doc/tutorial.xml b/doc/tutorial.xml new file mode 100644 index 0000000..b336ac1 --- /dev/null +++ b/doc/tutorial.xml @@ -0,0 +1,363 @@ + + + Tutorial + + + + A first &acro.oai; indexing example + + + In this section, we will test the system by indexing a small set of + sample &acro.oai; records that are included with the &zebra; distribution, + running a &zebra; server against the newly created database, and + searching the indexes with a client that connects to that server. + + + Go to the examples/oai-pmh subdirectory of the + distribution archive, or make a deep copy of the Debian installation + directory + /usr/share/idzebra-2.0.-examples/oai-pmh. + An XML file containing multiple &acro.oai; + records is located in the sub + directory examples/oai-pmh/data. To index these, type: + + zebraidx -c conf/zebra.cfg init + zebraidx -c conf/zebra.cfg update data/oai-caltech.xml + zebraidx -c conf/zebra.cfg commit + + In case you have not installed zebra yet but have compiled the + binaries from this tarball, use the following command form: + + ../../index/zebraidx -c conf/zebra.cfg this and that + + + + + In this command, the word update is followed + by the name of a directory: zebraidx updates all + files in the hierarchy rooted at that directory. The command option + -c conf/zebra.cfg points to the proper + configuration file. + + + + You might ask yourself how &acro.xml; content is indexed using &acro.xslt; + stylesheets: to satisfy your curiosity, you might want to run the + indexing transformation on an example debugging &acro.oai; record. + + xsltproc conf/oai2index.xsl data/debug-record.xml + + Here you see the &acro.oai; record transformed into the indexing + &acro.xml; format. &zebra; is creating several inverted indexes, + and their name and type are clearly visible in the indexing + &acro.xml; format. + + + + If your indexing command was successful, you are now ready to + fire up a server. To start a server on port 9999, type: + + zebrasrv -c conf/zebra.cfg @:9999 + + + + + The &zebra; index that you have just created has a single database + named Default. + The database contains several &acro.oai; records, and the server will + return records in the &acro.xml; format only. The indexing machine + di the splitting into individual records just behind the scenes. + + + + To test the server, you can use any &acro.z3950; client. + For instance, you can use the demo command-line client that comes + with &yaz;; we start the SRU/SRW/Z39.50 server in PQF mode only: + + + + yaz-client localhost:9999 + + + + + When the client has connected, you can type: + + + + + Z> format xml + Z> elements oai + Z> find the + Z> show 1+1 + + + + + + + + + + + + Requesting &acro.oai; records in &zebra; specific formats + + + + + + + + diff --git a/doc/zebra.xml b/doc/zebra.xml index 5393d13..5800fa6 100644 --- a/doc/zebra.xml +++ b/doc/zebra.xml @@ -11,7 +11,7 @@ ]> - + &zebra; - User's Guide and Reference @@ -57,8 +57,9 @@ &chap-introduction; &chap-installation; - &chap-quickstart; - &chap-examples; + + + &chap-tutorial; &chap-architecture; &chap-querymodel; &chap-administration; -- 1.7.10.4