On the way
[irspy-moved-to-github.git] / zebra / pqf.properties
1 # $Id: pqf.properties,v 1.4 2006-05-17 16:14:05 mike Exp $
2 #
3 # Properties file to drive the YAZ CQL-to-PQF converter for Zebra.
4 # This specifies the interpretation of various CQL indexes, relations,
5 # etc. in terms of Type-1 query attributes.
6
7 # Identifiers for prefixes used in this file. (index.*)
8 set.cql         = info:srw/cql-context-set/1/cql-v1.1
9 set.rec         = info:srw/cql-context-set/2/rec-1.0
10 set.net         = http://srw.cheshire3.org/contextSets/net/1.0/
11 set.dc          = info:srw/cql-context-set/1/dc-v1.1
12 set.zeerex      = info:srw/cql-context-set/2/zeerex-1.1
13
14 # The default set when an index doesn't specify one: Net
15 set             = http://srw.cheshire3.org/contextSets/net/1.0/
16
17 # The default index when none is specified by the query
18 index.cql.serverChoice                  = 1="cql:all"
19
20 index.cql.anywhere                      = 1=cql:all
21 index.rec.id                            = 1=rec:id 4=3
22 index.net.protocol                      = 1=net:protocol
23 index.net.version                       = 1=net:version 4=3
24 index.net.method                        = 1=net:method
25 index.net.host                          = 1=net:host 4=3
26 index.net.port                          = 1=net:port 4=3
27 index.net.path                          = 1=net:path
28 index.dc.title                          = 1=dc:title
29 index.dc.creator                        = 1=dc:creator
30
31 # Relation attributes are selected according to the CQL relation by
32 # looking up the "relation.<relation>" property:
33 #
34 relation.<                              = 2=1
35 relation.le                             = 2=2
36 relation.eq                             = 2=3
37 relation.exact                          = 2=3
38 relation.ge                             = 2=4
39 relation.>                              = 2=5
40 relation.<>                             = 2=6
41
42 ### These two are not really right:
43 relation.all                            = 2=3
44 relation.any                            = 2=3
45
46 # BIB-1 doesn't have a server choice relation, so we just make the
47 # choice here, and use equality (which is clearly correct).
48 relation.scr                            = 2=3
49
50 # Relation modifiers.
51 #
52 relationModifier.relevant               = 2=102
53 relationModifier.fuzzy                  = 5=103
54         ### truncation=regExpr-2 (5=102) in Zebra is "fuzzy matching"
55 relationModifier.stem                   = 2=101
56 relationModifier.phonetic               = 2=100
57 relationModifier.regexp                 = 5=102
58
59 # Position attributes may be specified for anchored terms (those
60 # beginning with "^", which is stripped) and unanchored (those not
61 # beginning with "^").  This may change when we get a BIB-1 truncation
62 # attribute that says "do what CQL does".
63 #
64 position.first                          = 3=1 6=1
65         # "first in field"
66 position.any                            = 3=3 6=1
67         # "any position in field"
68 position.last                           = 3=4 6=1
69         # not a standard BIB-1 attribute
70 position.firstAndLast                   = 3=3 6=3
71         # search term is anchored to be complete field
72
73 # Structure attributes may be specified for individual relations; a
74 # default structure attribute my be specified by the pseudo-relation
75 # "*", to be used whenever a relation not listed here occurs.
76 #
77 structure.exact                         = 4=108
78         # string
79 structure.all                           = 4=2
80 structure.any                           = 4=2
81 structure.*                             = 4=1
82         # phrase
83
84 # Truncation attributes used to implement CQL wildcard patterns.  The
85 # simpler forms, left, right- and both-truncation will be used for the
86 # simplest patterns, so that we produce PQF queries that conform more
87 # closely to the Bath Profile.  However, when a more complex pattern
88 # such as "foo*bar" is used, we fall back on Z39.58-style masking.
89 #
90 truncation.right                        = 5=1
91 truncation.left                         = 5=2
92 truncation.both                         = 5=3
93 truncation.none                         = 5=100
94 truncation.regexp                       = 5=102
95 truncation.z3958                        = 5=104
96
97 # Finally, any additional attributes that should always be included
98 # with each term can be specified in the "always" property.
99 #
100 #always                                 = 6=1
101 # 6=1: completeness = incomplete subfield