|
|
Index Data > Zebra > Zebra - User's Guide and Reference > Chapter 8. ALVIS XML Record Model and Filter Module Table of Contents WarningThe functionality of this record model has been improved and replaced by the DOM XML record model, see Chapter 7, DOM XML Record Model and Filter Module . The Alvis XML record model is considered obsolete, and will eventually be removed from future releases of the Zebra software.
The record model described in this chapter applies to the fundamental,
structured XML
record type This filter has been developed under the ALVIS project funded by the European Community under the "Information Society Technologies" Program (2002-2006).
The experimental, loadable Alvis XML/XSLT filter module
recordtype.xml: alvis.db/filter_alvis_conf.xml
In this example on all data files with suffix
The Alvis XSLT filter configuration file must be valid XML. It might look like this (This example is used for indexing and display of OAI harvested records):
<?xml version="1.0" encoding="UTF-8"?>
<schemaInfo>
<schema name="identity" stylesheet="xsl/identity.xsl" />
<schema name="index" identifier="http://indexdata.dk/zebra/xslt/1"
stylesheet="xsl/oai2index.xsl" />
<schema name="dc" stylesheet="xsl/oai2dc.xsl" />
<!-- use split level 2 when indexing whole OAI Record lists -->
<split level="2"/>
</schemaInfo>
All named stylesheets defined inside
The
There must be exactly one indexing XSLT stylesheet, which is
defined by the magic attribute
When indexing, an XML Reader is invoked to split the input
files into suitable record XML pieces. Each record piece is then
transformed to an XML DOM structure, which is essentially the
record model. Only XSLT transformations can be applied during
index, search and retrieval. Consequently, output formats are
restricted to whatever XSLT can deliver from the record XML
structure, be it other XML formats, HTML, or plain text. In case
you have The output of the indexing XSLT stylesheets must contain
certain elements in the magic
For example, the output of the command
xsltproc xsl/oai2index.xsl one-record.xml
might look like this:
<?xml version="1.0" encoding="UTF-8"?>
<z:record xmlns:z="http://indexdata.dk/zebra/xslt/1"
z:id="oai:JTRS:CP-3290---Volume-I"
z:rank="47896">
<z:index name="oai_identifier" type="0">
oai:JTRS:CP-3290---Volume-I</z:index>
<z:index name="oai_datestamp" type="0">2004-07-09</z:index>
<z:index name="oai_setspec" type="0">jtrs</z:index>
<z:index name="dc_all" type="w">
<z:index name="dc_title" type="w">Proceedings of the 4th
International Conference and Exhibition:
World Congress on Superconductivity - Volume I</z:index>
<z:index name="dc_creator" type="w">Kumar Krishen and *Calvin
Burnham, Editors</z:index>
</z:index>
</z:record>
This means the following: From the original XML file
In this example, the following literal indexes are constructed:
oai_identifier
oai_datestamp
oai_setspec
dc_all
dc_title
dc_creator
where the indexing type is defined in the
Specific to this example, we see that the single word
Finally, this example configuration can be queried using PQF queries, either transported by Z39.50, (here using a yaz-client)
Z> open localhost:9999
Z> elem dc
Z> form xml
Z>
Z> f @attr 1=dc_creator Kumar
Z> scan @attr 1=dc_creator adam
Z>
Z> f @attr 1=dc_title @attr 4=2 "proceeding congress superconductivity"
Z> scan @attr 1=dc_title abc
or the proprietary
extensions
http://localhost:9999/?version=1.1&operation=searchRetrieve&x-pquery=%40attr+1%3Ddc_creator+%40attr+4%3D6+%22the
http://localhost:9999/?version=1.1&operation=scan&x-pScanClause=@attr+1=dc_date+@attr+4=2+a
See the section called “The SRU Server” for more information on SRU/SRW configuration, and the section called “YAZ server virtual hosts” or the YAZ CQL section for the details or the YAZ frontend server.
Notice that there are no |
|||
|
|
||||
| Copyright Index Data ApS 2008 | ||||