experimental query info and retrieval info config files added
authorMarc Cromme <marc@indexdata.dk>
Mon, 11 Sep 2006 08:40:36 +0000 (08:40 +0000)
committerMarc Cromme <marc@indexdata.dk>
Mon, 11 Sep 2006 08:40:36 +0000 (08:40 +0000)
etc/queryinfo.xml [new file with mode: 0644]
etc/retrievalinfo.xml [new file with mode: 0644]

diff --git a/etc/queryinfo.xml b/etc/queryinfo.xml
new file mode 100644 (file)
index 0000000..efcfebc
--- /dev/null
@@ -0,0 +1,350 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id: queryinfo.xml,v 1.1 2006-09-11 08:40:36 marc Exp $ -->
+
+<!-- this file configures the query possibilities of YAZ -->
+<!-- and hopefully the mapping inbetween query languages as well -->
+<!-- It is a superset of the indexInfo of http://explain.z3950.org/ -->
+<!-- Other info:  Z39.92 -->
+<!-- highly experimental, will change in future! --> 
+
+
+  <!-- tricky problem of mapping PQF to CQL or 
+       other query forms (Opensearch?? -->
+  <!--
+  PQF query language evaluation in most natural order
+  boolean:            @and, @or, @not, @prox
+  boolean modifier:   @prox exclusion distance ordered relation which unit 
+                      @prox 0 3 1 2 k 2 term1 term2
+  attrset:            bib-1, exp-1, gils
+  1=Use:              4=Title 7=ISBN 8=ISSN 30=Date 62=Abstract 
+                      1003=Author 1016=Any
+  4=Structure:        1=Phrase  2=Word  3=Key  4=Year  5=Date  6=WordList
+  2=Relation:         1<   2<=  3=  4>=  5>  6!=  102=Relevance
+  5=Truncation:       1=Right  2=Left  3=L&R  100=No  101=#  102=Re-1  103=Re-2
+  6=Completeness:     1=Incompl subfield  2=Complete subfield  3=Complete field
+  3=Position:         1=First in Field  2=First in subfield  3=Any position
+  term:               fish, "fish and chips"
+  regexp:             ...
+  -->
+  <!--
+  CQL query language evaluation in most natural order
+  boolean:            and, or, not, prox
+  boolean mod set:    and/rel.sum (cql is default)
+  boolean modifier:   distance, unit, ordered, unordered
+  boolean mod rel:    =, <, >, prox/distance=1, prox/distance>2
+  boolean mod qual:   prox/distance=1/unit=word, prox/distance>2/ordered 
+  set name:           cql, rec, dc
+  index name:         cql.all, cql.serverChoice, rec.id, dc.title
+  relation:           <, <=, =, >, >=, <>, exact, all, any
+  relation mod set:   cql (default), rel
+  relation mod name:  relevant, phonetic, stem 
+                      any/relevant/rel.CORI 
+  relation mod qual:  word, string, isoDate, number, uri, masked, unmasked
+                      =/relevant=word
+  anchoring:          ^left, right^, "^cat in the hat" 
+  masking char:       *, ?, c*t, c?t 
+  term:               fish, "fish and chips"
+  -->
+
+  <queryInfo
+      xmlns="http://indexdata.com/query"
+      version="1.0">
+    <syntax name="cql" 
+            identifier=""
+            location="">
+      <boolean name="and"/>
+      <boolean name="or"/>
+      <boolean name="not"/>
+      <!--
+      <boolean name="prox">
+        <boolean_mod_rel name="="/>
+        <boolean_mod name="distance">
+          <boolean_mod_rel name="="/>
+          <boolean_mod_rel name="&lt;"/>
+          <boolean_mod_rel name="&gt;"/>
+        </boolean_mod>
+        <boolean_mod name="unit">
+          <boolean_mod_qual name="sentence"/>
+          <boolean_mod_qual name="word"/>
+        </boolean_mod>
+        <boolean_modifier name="ordered" name=""/>
+        <boolean_modifier name="unordered" name=""/>
+      </boolean>
+      -->
+
+      <relation name="=" default="true"/>
+
+      <set name="cql" default="true" 
+           identifier="info:srw/cql-context-set/1/cql-v1.1">
+        <title>CQL Standard Set</title>
+        <index name="all" default="true">
+          <relation name="=" default="true">
+            <relation_mod_set name="cql" default="true">
+              <relation_mod name="relevant"/>
+            </relation_mod_set>
+            <relation_mod_set name="rel">
+              <relation_mod name="foo"/>
+              <relation_mod name="bar"/>
+            </relation_mod_set>
+          </relation>
+          <mask name="*"/>
+          <mask name="?"/>
+          <anchor name="^" type="right"/>
+          <anchor name="^" type="left"/>
+        </index>
+        <index name="serverChoice"/>
+      </set>
+      <set name="rec" identifier="info:srw/cql-context-set/2/rec-1.0">
+        <title>Record Standard Set</title>
+        <index name="id" default="true"/>
+      </set>
+      <set name="dc" identifier="info:srw/cql-context-set/1/dc-v1.1">
+        <title>Dublin Core Set</title>
+        <index name="title"/>
+        <index name="description"/>
+        <index name="author" identifier="creator"/>
+        <index name="creator"/>
+        <index name="date">
+          <relation name="=" default="true"/>
+          <relation name="&lt;"/>
+          <relation name="&gt;"/>
+        </index>
+        <index name="publisher"/>
+      </set>
+    </syntax>
+    <syntax name="pqf" 
+            identifier=""
+            location="">
+      <set name="bib1" identifier="1.2.840.10003.3.1">
+        <title>BIB-1 Z39.50 Standard Set</title>
+        <structure name="2" default="true"/>
+        <structure name="1"/>
+        <relation name="3"/>
+        <truncation name="100"/>
+        <completeness name="3"/>
+        <position name="3"/>
+        <use name="4">
+          <title>Title</title>
+        </use>
+        <use name="7">
+          <title>ISBN</title>
+          <structure name="3">
+            <relation name="3" default="true"/>
+            <relation name="1"/>
+            <relation name="4"/>
+          </structure>
+        </use>
+        <use name="8">
+          <title>ISSN</title>
+          <structure name="3"/>
+        </use>
+        <use name="30">
+          <title>Date</title>
+          <structure name="5"/>
+        </use>
+        <use name="62">
+          <title>Abstract</title>
+        </use>
+        <use name="1003">
+          <title>Author</title>
+        </use>
+        <use name="1016">
+          <title>Any</title>
+          <structure name="2">
+            <relation name="3" default="true"/>
+            <relation name="102">
+              <truncation name="100" default="true"/>
+              <truncation name="101"/>
+              <truncation name="102"/>
+            </relation>
+          </structure>
+        </use>
+      </set>
+      <set name="exp1" identifier="">
+        <title>Explain Z39.50 Standard Set</title>
+      </set>
+      <set name="gils" identifier="">
+        <title>Gils Z39.50 Standard Set</title>
+      </set>
+    </syntax>
+    <syntax name="ccl" 
+            identifier=""
+            location="">
+      <title xml:lang="en">CCL Query Language - English Configuration</title>
+      <title xml:lang="da">CCL Søgesprog - Dansk Konfiguration</title>
+      <boolean xml:lang="en" name="and" default="true" identifier="and"/>
+      <boolean xml:lang="en" name="or" identifier="or"/>
+      <boolean xml:lang="en" name="not" identifier="not"/>
+      <boolean xml:lang="da" name="og" default="true" identifier="and"/>
+      <boolean xml:lang="da" name="eller" identifier="or"/>
+      <boolean xml:lang="da" name="ikke" identifier="not"/>
+
+      <relation name="=" default="true"/>
+
+      <index xml:lang="en" name="title"/>
+      <index xml:lang="en" name="description" default="true"/>
+      <index xml:lang="en" name="author" identifier="creator"/>
+      <index xml:lang="en" name="creator"/>
+      <index xml:lang="en" name="publisher"/>
+      <index xml:lang="da" name="titel" identifier="title"/>
+      <index xml:lang="da" name="beskrivelse"  default="true" 
+             identifier="description"/>
+      <index xml:lang="da" name="author" identifier="creator"/>
+      <index xml:lang="da" name="ophav" identifier="creator"/>
+      <index xml:lang="da" name="editor" identifier="publisher"/>
+    </syntax>
+  </queryInfo>
+
+
+  <!--
+  <indexInfo>
+    <set name="cql" identifier="info:srw/cql-context-set/1/cql-v1.1">
+      <title>CQL Standard Set</title>
+    </set>
+    <set name="rec" identifier="info:srw/cql-context-set/2/rec-1.0">
+      <title>Record Standard Set</title>
+    </set>
+    <set name="dc" identifier="info:srw/cql-context-set/1/dc-v1.1">
+      <title>Dublin Core Set</title>
+    </set>
+    <set name="bib1" identifier="1.2.840.10003.3.1">
+      <title>BIB-1 Z39.50 Standard Set</title>
+    </set>
+
+
+    <index search="true" scan="true" sort="false">
+      <title lang="en">CQL Server Choice</title>
+      <map><name set="cql">serverChoice</name></map>
+      <map>
+        <attr type="1" set="bib1">text</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">CQL All</title>
+      <map><name set="cql">all</name></map>
+      <map>
+        <attr type="1" set="bib1">text</attr>
+      </map>
+    </index>
+
+    <index search="true" scan="true" sort="false">
+      <title lang="en">Record ID</title>
+      <map><name set="rec">id</name></map>
+      <map>
+        <attr type="1" set="bib1">rec:id</attr>
+        <attr type="4" set="bib1">3</attr>
+      </map>
+    </index>    
+
+    <index search="true" scan="true" sort="false">
+      <izx:cost value="0"/>
+      <title lang="en">DC Title</title>
+      <map><name set="dc">title</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:title</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Creator</title>
+      <map><name set="dc">creator</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:creator</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Subject</title>
+      <map><name set="dc">subject</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:subject</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Description</title>
+      <map><name set="dc">description</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:description</attr>
+        <attr type="2" set="bib1">102</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Publisher</title>
+      <map><name set="dc">publisher</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:publisher</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Contributor</title>
+      <map><name set="dc">contributor</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:contributor</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Date</title>
+      <map><name set="dc">date</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:date</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Type</title>
+      <map><name set="dc">type</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:type</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Format</title>
+      <map><name set="dc">format</name></map>
+      <map>
+        <attr type="1" set="bib1"></attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Identifier</title>
+      <map><name set="dc">identifier</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:identifier</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Source</title>
+      <map><name set="dc">source</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:source</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Language</title>
+      <map><name set="dc">language</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:language</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Relation</title>
+      <map><name set="dc">relation</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:relation</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Coverage</title>
+      <map><name set="dc">coverage</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:coverage</attr>
+      </map>
+    </index>
+    <index search="true" scan="true" sort="false">
+      <title lang="en">DC Rights</title>
+      <map><name set="dc">rights</name></map>
+      <map>
+        <attr type="1" set="bib1">dc:rights</attr>
+      </map>
+    </index>
+
+  </indexInfo>
+-->
+
diff --git a/etc/retrievalinfo.xml b/etc/retrievalinfo.xml
new file mode 100644 (file)
index 0000000..0f4bafb
--- /dev/null
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id: retrievalinfo.xml,v 1.1 2006-09-11 08:40:36 marc Exp $ -->
+
+<!-- this file configures the retrieval possibilities of YAZ -->
+<!-- It is a superset of the schemaInfo of http://explain.z3950.org/ -->
+<!-- Other info:  Z39.92 -->
+<!-- highly experimental, might change! --> 
+
+  <retrievalInfo 
+      xmlns="http://indexdata.com/retrieval"
+      version="1.0">
+    <retrieval 
+        syntax="grs-1"
+        identifier="1.2.840.10003.5.105"
+        location="http://www.loc.gov/z3950/agency/asn1.html#RecordSyntax-generic"/>
+    <retrieval 
+        syntax="marc21" 
+        identifier="1.2.840.10003.5.10"
+        location="http://www.loc.gov/marc/">
+      <title lang="en">Marc21</title>
+      <elementset name="F">
+        <title lang="en" primary="true">Full Marc21 Record</title>
+        <backend syntax="usmarc" name="F"/>
+      </elementset>
+      <elementset name="B">
+        <title lang="en" primary="true">Brief Marc21 Record</title>
+        <backend syntax="usmarc" name="B"/>
+      </elementset>
+    </retrieval>
+
+    <retrieval 
+        syntax="xml" 
+        identifier="1.2.840.10003.5.109.10"
+        location="http://www.w3.org/XML/">
+        <!-- location="http://www.w3.org/TR/2006/REC-xml-20060816/"  -->
+      <title lang="en">XML</title>
+      <elementset
+          identifier="info:srw/schema/1/marcxml-v1.1"
+          location="http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"
+          name="marcxml">
+        <title lang="en">MarcXML</title>
+        <backend syntax="usmarc" name="F"/>
+        <convert>
+          <marc inputformat="marc" outputformat="marcxml"
+                inputcharset="marc-8"/>
+        </convert>
+      </elementset>
+      
+      <elementset 
+          name="marcxchange">
+        <title lang="en">Marc XChange</title>
+        <backend syntax="usmarc" name="F"/>
+        <convert>
+          <marc inputformat="marc" outputformat="marcxchange"
+                inputcharset="marc-8"/>
+        </convert>
+      </elementset>
+      
+      <elementset 
+          identifier="info:srw/schema/1/dc-v1.1"
+          location="http://www.loc.gov/standards/sru/dc-schema.xsd"
+          name="dc">
+        <title lang="en">Dublin Core</title>
+        <backend syntax="usmarc" name="F"/>
+        <convert>
+          <marc inputformat="marc" outputformat="marcxml"
+                inputcharset="marc-8"/>
+          <xslt stylesheet="../etc/MARC21slim2DC.xsl"/>
+        </convert>
+      </elementset>
+    </retrieval>
+  </retrievalInfo>
+
+<!--
+  <schemaInfo>
+    <schema identifier="info:srw/schema/2/rec-1.0"
+            location="http://srw.cheshire3.org/schemas/rec/1.0/rec.xsd" 
+            name="rec"
+            retrieve="true">
+      <title lang="en">Record Metadata</title>
+      
+    </schema>
+    <schema identifier="info:srw/schema/1/dc-v1.1"
+            location="http://www.loc.gov/standards/sru/dc-schema.xsd" 
+            name="dc"
+            retrieve="true">
+      <title lang="en">Dublin Core</title>
+    </schema>
+    <schema identifier="info:srw/schema/1/mods-v3.0"
+            location="http://www.loc.gov/standards/mods/v3/mods-3-0.xsd"
+            name="mods"
+            retrieve="true">
+      <title lang="en">Mods</title>
+    </schema>
+    <schema identifier="info:srw/schema/1/marcxml-v1.1"
+            location="http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"
+            name="marcxml"
+            retrieve="true">
+      <title lang="en">MarcXML</title>
+    </schema>
+  </schemaInfo>
+-->
\ No newline at end of file