From: Marc Cromme Date: Fri, 1 Feb 2008 09:45:17 +0000 (+0000) Subject: added files for OAI-PMH example X-Git-Tag: v2.0.28~43 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=9a58af1c47eb3b1a5a805c6c1634639b3d28d103;p=idzebra-moved-to-github.git added files for OAI-PMH example --- diff --git a/examples/oai-pmh/conf/explain.xml b/examples/oai-pmh/conf/explain.xml new file mode 100644 index 0000000..0568fe7 --- /dev/null +++ b/examples/oai-pmh/conf/explain.xml @@ -0,0 +1,359 @@ + + + + + + + + + + + + + + localhost + + 9999 + + + Default + + + + + + + OAI record SRU/SRW/Z39.50 server + + + OAI harvested article and preprint metadata records + + + + Marc Cromme, Index Data Aps, + http://www.indexdata.dk + + + Marc Cromme, marc(at)indexdata(dot)com + + + + + Part of the open source Zebra information retrieval database + example configurations, see http://www.indexdata.com/zebra + + + + Index Data YAZ/ZEBRA http://www.indexdata.dk/zebra + + + + http://localhost:9999 + http://localhost:9999 + http://localhost:9999 + + + + + + + + + + CQL Standard Set + + + Record Standard Set + + + Open Archive Metadata Set + + + Dublin Core Set + + + + + CQL Server Choice + serverChoice + + dc_all + + + + CQL All + all + + dc_all + + + + + + Record ID + id + + rec:id + 3 + + + + + + OAI Identifier + identifier + + oai_identifier + 3 + + + + OAI Datestamp + date + + oai_datestamp + 3 + + + + OAI Set Specification + set + + oai_setspec + 3 + + + + + + DC Title + title + + dc_title + + + + DC Creator + creator + + dc_creator + + + + DC Subject + subject + + dc_subject + + + + + DC Description + description + + dc_description + + + + DC Publisher + publisher + + dc_publisher + + + + + DC Contributor + contributor + + dc_contributor + + + + DC Date + date + + dc_date + 3 + + + + + DC Format + format + + + 3 + + + + DC Identifier + identifier + + dc_identifier + 3 + + + + DC Source + source + + dc_source + 3 + + + + DC Language + language + + dc_language + + + + DC Relation + relation + + dc_relation + 3 + + + + + DC Rights + rights + + dc_rights + + + + + + + + + + Dublin Core + + + + Open Archives Initiative + + + + Zebra Retrieve + + + + Zebra Indexing + + + + + + + + + cql + + all + + + = + < + <= + = + >= + > + + + + + relevant + phrase + + + + + + * + ? + + + + + + + + 0 + + + oai + + + xml + + + + + + + + + + + + + + + 20 + + + 0 + + + + diff --git a/examples/oai-pmh/conf/explain2cqlpqftxt.xsl b/examples/oai-pmh/conf/explain2cqlpqftxt.xsl new file mode 100644 index 0000000..5ae5946 --- /dev/null +++ b/examples/oai-pmh/conf/explain2cqlpqftxt.xsl @@ -0,0 +1,216 @@ + + + + + + + + + + + +# Propeties file to drive org.z3950.zing.cql.CQLNode's toPQF() +# back-end and the YAZ CQL-to-PQF converter. This specifies the +# interpretation of various CQL indexes, relations, etc. in terms +# of Type-1 query attributes. +# +# This file is created from a valid ZeeRex Explain XML record using the +# XSLT transformation 'explain2cqlpqftxt.xsl' +# +# xsltproc explain2cqlpqf.xsl explain.xml + + + + + + + + + + + # Title: + + + + + + + + + + + # Set info + + + + # Default set + + set = + + + + + + + + set. + = + + + + + # Index info + + + + index. + + . + + = + + + = + + + + + + + + + + # Relation info + + + + + relation.< = 2=1 + + + + relation.le = 2=2 + + + + relation.eq = 2=3 + + + + relation.eq = 2=3 + + + + relation.exact = 2=3 + + + + relation.ge = 2=4 + + + + relation.> = 2=5 + + + + relation.<> = 2=6 + + + + relation.all = 2=3 + + + + relation.any = 2=3 + + + + + + + + # Default Relation + + relation.scr = 2=3 + + + + # RelationModifier info + + + + + relationModifier.relevant = 2=102 + + + + relationModifier.fuzzy = 2=100 + + + + relationModifier.stem = 2=101 + + + + relationModifier.phonetic = 2=100 + + + + relationModifier.phrase = 6=3 + + + + + + + + + + +# Position attributes +position.first = 3=1 6=1 +position.any = 3=3 6=1 +position.last = 3=4 6=1 +position.firstAndLast = 3=3 6=3 + +# Structure attributes may be specified for individual relations; a +# default structure attribute my be specified by the pseudo-relation +# "*", to be used whenever a relation not listed here occurs. +# +structure.exact = 4=108 +structure.all = 4=2 +structure.any = 4=2 +structure.* = 4=1 +structure.eq = 4=3 + +# Truncation attributes used to implement CQL wildcard patterns. The +# simpler forms, left, right- and both-truncation will be used for the +# simplest patterns, so that we produce PQF queries that conform more +# closely to the Bath Profile. However, when a more complex pattern +# such as "foo*bar" is used, we fall back on Z39.58-style masking. +# +truncation.right = 5=1 +truncation.left = 5=2 +truncation.both = 5=3 +truncation.none = 5=100 +truncation.z3958 = 5=104 + +# Finally, any additional attributes that should always be included +# with each term can be specified in the "always" property. +# +# always = 6=1 +# 6=1: completeness = incomplete subfield + + + + + diff --git a/examples/oai-pmh/conf/oai2dc.xsl b/examples/oai-pmh/conf/oai2dc.xsl new file mode 100644 index 0000000..0226c9c --- /dev/null +++ b/examples/oai-pmh/conf/oai2dc.xsl @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/oai-pmh/conf/oai2index.xsl b/examples/oai-pmh/conf/oai2index.xsl new file mode 100644 index 0000000..589f1f8 --- /dev/null +++ b/examples/oai-pmh/conf/oai2index.xsl @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/oai-pmh/conf/oai2zebra.xsl b/examples/oai-pmh/conf/oai2zebra.xsl new file mode 100644 index 0000000..07d3799 --- /dev/null +++ b/examples/oai-pmh/conf/oai2zebra.xsl @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + <xsl:value-of select="oai:record/oai:metadata/oai_dc:dc/dc:title"/> + + + + + + diff --git a/examples/oai-pmh/conf/yazserver.xml b/examples/oai-pmh/conf/yazserver.xml new file mode 100644 index 0000000..a37e4c7 --- /dev/null +++ b/examples/oai-pmh/conf/yazserver.xml @@ -0,0 +1,41 @@ + + + + + + + + tcp:@:9999 + + + + + + ./ + + + conf/zebra.cfg + + + conf/cql2pqf.txt + + + + + + + localhost + 9999 + Default + + + + + + + + diff --git a/examples/oai-pmh/conf/zebra.cfg b/examples/oai-pmh/conf/zebra.cfg new file mode 100644 index 0000000..d20940a --- /dev/null +++ b/examples/oai-pmh/conf/zebra.cfg @@ -0,0 +1,39 @@ +# Zebra configuration file for Alvis XSLT filter setup including +# SRU/SRW Webservice setup and CQL-to-PQF configuration +# +# $Id: zebra.cfg,v 1.1 2008-02-01 09:45:17 marc Exp $ +# + +# profilePath - where to look for config files +profilePath: .:../../tab + +# modulePath - where to look for loadable zebra modules +modulePath: ../../index/.libs + +# store records and record keys internally +storeData: 1 +storeKeys: 1 + +# use the DOM XML filter with config file dom-conf.xml +recordtype: dom.conf/dom-conf.xml + + +# where to put registers, and other var content, and how large they may be +register: tmp:10M +shadow: tmp:10M +lockdir: tmp +keytmpdir: tmp + +# enable pre-sorting of hit lists according to static rank +#staticrank: 1 + +# use rank sorting filter +#rank: rank1 + +# add extended services - global access +#perm.anonymous: rw + +# add extended services - login/password +#perm.anonymous: r +#perm.admin: rw +#passwd: passwordfile \ No newline at end of file