add a test database for developing
[irspy-moved-to-github.git] / zebra / zeerex-test.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- $Id: zeerex.xml,v 1.15 2007-01-24 09:28:03 mike Exp $ -->
3 <explain xmlns="http://explain.z3950.org/dtd/2.0/">
4
5  <serverInfo protocol="SRW/SRU/Z39.50" version="1.1" method="GET/POST">
6   <host>localhost</host>
7   <port>8019</port>
8   <database>IR-Explain---2</database>
9  </serverInfo>
10
11  <databaseInfo>
12   <title lang="en" primary="true">IRSpy database of ZeeRex records</title>
13   <description lang="en" primary="true">
14    This is a database of enhanced ZeeRex records, maintained by IRSpy,
15    containing information about a selection of Z39.50 and SRU/SRW
16    databases that are periodically probed.  The ZeeRex records are
17    extended using the extension mechanism described at
18         http://explain.z3950.org/dtd/extensions.html
19    so that the results of the tests are included alongside the
20    protocol-level information that is the core of ZeeRex.
21   </description>
22   <author>Index Data Aps, http://www.indexdata.com/</author>
23   <contact>Mike Taylor, mike@indexdata.com</contact>
24   <history lang="en" primary="true">
25    The initial version of this database was populated using the set of
26    targets known in Index Data's Z39.50 Target Directory:
27         http://targettest.indexdata.com/
28    The records may have been substantially altered and extended since
29    then, and new records may have been added.
30   </history>
31   <implementation identifier="zebra" version="1.4">
32    <title lang="en" primary="true">
33     Index Data's Zebra information management system:
34         http://www.indexdata.dk/zebra
35    </title>
36   </implementation>
37  </databaseInfo>
38
39  <indexInfo>
40   <set name="cql" identifier="info:srw/cql-context-set/1/cql-v1.1">
41    <title>CQL</title>
42   </set>
43   <set name="rec" identifier="info:srw/cql-context-set/2/rec-1.1">
44    <title>Record Metadata</title>
45   </set>
46   <set name="net" identifier="info:srw/cql-context-set/2/net-1.0">
47    <title>Network Metadata</title>
48   </set>
49   <set name="dc" identifier="info:srw/cql-context-set/1/dc-v1.1">
50    <title>Dublin Core</title>
51   </set>
52   <set name="zeerex" identifier="info:srw/cql-context-set/2/zeerex-1.1">
53    <title>ZeeRex</title>
54   </set>
55   <set name="bib1" identifier="1.2.840.10003.3.1">
56    <title>BIB-1</title>
57   </set>
58
59   <index search="true" scan="true" sort="false">
60    <title lang="en">Server choice</title>
61    <map><name set="cql">serverChoice</name></map>
62    <map><name set="cql">anywhere</name></map>
63    <map><attr type="1" set="bib1">cql:all</attr></map>
64   </index>
65
66   <index search="true" scan="true" sort="false">
67    <title lang="en">Record identifier</title>
68    <map><name set="rec">id</name></map>
69    <map><attr type="1" set="bib1">rec:id</attr>
70         <attr type="4" set="bib1">3</attr></map>
71   </index>
72
73   <index search="true" scan="true" sort="false">
74    <title lang="en">Protocol</title>
75    <map><name set="net">protocol</name></map>
76    <map><attr type="1" set="bib1">net:protocol</attr></map>
77   </index>
78
79   <index search="true" scan="true" sort="false">
80    <title lang="en">Protocol version</title>
81    <map><name set="net">version</name></map>
82    <map><attr type="1" set="bib1">net:version</attr>
83         <attr type="4" set="bib1">3</attr></map>
84   </index>
85
86   <index search="true" scan="true" sort="false">
87    <title lang="en">Protocol method</title>
88    <map><name set="net">method</name></map>
89    <map><attr type="1" set="bib1">net:method</attr></map>
90   </index>
91
92   <index search="true" scan="true" sort="false">
93    <title lang="en">Host</title>
94    <map><name set="net">host</name></map>
95    <map><attr type="1" set="bib1">net:host</attr>
96         <attr type="4" set="bib1">3</attr></map>
97   </index>
98
99   <index search="true" scan="true" sort="false">
100    <title lang="en">Port</title>
101    <map><name set="net">port</name></map>
102    <map><attr type="1" set="bib1">net:port</attr>
103         <attr type="4" set="bib1">3</attr></map>
104   </index>
105
106   <index search="true" scan="true" sort="false">
107    <title lang="en">Path</title>
108    <map><name set="net">path</name></map>
109    <map><attr type="1" set="bib1">net:path</attr></map>
110   </index>
111
112   <index search="true" scan="true" sort="false">
113    <title lang="en">Title</title>
114    <map><name set="dc">title</name></map>
115    <map><attr type="1" set="bib1">dc:title</attr></map>
116   </index>
117
118   <index search="true" scan="true" sort="false">
119    <title lang="en">Creator</title>
120    <map><name set="dc">creator</name></map>
121    <map><attr type="1" set="bib1">dc:creator</attr></map>
122   </index>
123  </indexInfo>
124
125  <!--
126  <recordInfo> is not allowed in the same record as <schemaInfo>,
127  because standard ZeeRex assumes that the record is describing
128  _either_ a Z39.50 database _or_ an SRW/SRU database, but not both.
129  We want to override that restriction, which will entail making a new
130  schema.  Yuck.
131  -->
132
133  <schemaInfo>
134   <schema name="zeerex" retrieve="true" sort="false"
135           identifier="http://explain.z3950.org/dtd/2.0/"
136           location="http://explain.z3950.org/dtd/zeerex-2.0.xsd">
137    <title>ZeeRex 2.0</title>
138   </schema>
139   <schema name="index" retrieve="true" sort="false"
140           identifier="http://indexdata.dk/zebra/xslt/1">
141    <title lang="en" primary="true">Zebra indexing recipe</title>
142   </schema>
143   <schema name="id" retrieve="true" sort="false"
144           identifier="http://indexdata.dk/zebra/id/1">
145    <title lang="en" primary="true">Record identifier</title>
146   </schema>
147  </schemaInfo>
148
149  <configInfo>
150   <supports type="relation" xmlns:foo="http://foo.com/explain/" foo:bib1equiv="2=3">=</supports>
151   <supports type="relationModifier">relevant</supports>
152   <supports type="relationModifier">fuzzy</supports>
153   <supports type="relationModifier">regexp</supports>
154   <supports type="maskingCharacter">*</supports>
155   <supports type="maskingCharacter">?</supports>
156   <default type="contextSet">net</default>
157   <default type="index">cql.anywhere</default>
158
159   <!-- ### Many more <default>s, <setting>s and <supports>s to be added -->
160  </configInfo>
161
162  <irspy:status xmlns:irspy="http://indexdata.com/irspy/1.0">
163   <irspy:implementationId>81</irspy:implementationId>
164   <irspy:implementationName>Zebra Information Server/GFS/YAZ</irspy:implementationName>
165   <irspy:implementationVersion>Zebra 2.0.1/1.98/2.1.30</irspy:implementationVersion>
166   <irspy:availability>
167    <irspy:probe ok="0">2006-07-10T11:45:06</irspy:probe>
168    <irspy:probe ok="1">2006-07-17T11:45:02</irspy:probe>
169    <!-- Leave it to applications to calculate averages, etc. -->
170   </irspy:availability>
171  </irspy:status>
172 </explain>