Ignore records-2007-05-01
[irspy-moved-to-github.git] / zebra / pqf.properties
1 # $Id: pqf.properties,v 1.18 2007-03-29 17:14:13 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.1
10 set.net         = info:srw/cql-context-set/2/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             = info:srw/cql-context-set/2/net-1.0
16
17 # The default index when none is specified by the query
18 index.cql.serverChoice                  = 1=cql:anywhere
19
20 index.cql.anywhere                      = 1=cql:anywhere
21 index.cql.allRecords                    = 1=_ALLRECORDS 2=103
22 index.rec.id                            = 1=rec:id 4=104
23 index.net.protocol                      = 1=net:protocol
24 index.net.version                       = 1=net:version 4=3
25 index.net.method                        = 1=net:method
26 index.net.host                          = 1=net:host 4=3
27 index.net.port                          = 1=net:port 4=3
28 index.net.path                          = 1=net:path 4=3
29 index.dc.title                          = 1=dc:title
30 index.dc.creator                        = 1=dc:creator
31 index.dc.description                    = 1=dc:description
32 index.zeerex.numberOfRecords            = 1=zeerex:numberOfRecords
33 index.zeerex.set                        = 1=zeerex:set
34 index.zeerex.index                      = 1=zeerex:index
35 index.zeerex.attributeType              = 1=zeerex:attributeType
36 index.zeerex.attributeValue             = 1=zeerex:attributeValue
37 index.zeerex.schema                     = 1=zeerex:schema
38 index.zeerex.recordSyntax               = 1=zeerex:recordSyntax 4=3
39 index.zeerex.supports_relation          = 1=zeerex:supports_relation
40 index.zeerex.supports_relationModifier  = 1=zeerex:supports_relationModifier
41 index.zeerex.supports_maskingCharacter  = 1=zeerex:supports_maskingCharacter
42 index.zeerex.default_contextSet         = 1=zeerex:default_contextSet
43 index.zeerex.default_index              = 1=zeerex:default_index
44 # Extensions
45 index.zeerex.libType                    = 1=zeerex:libType 4=3
46 index.zeerex.country                    = 1=zeerex:country 4=3
47
48 # Relation attributes are selected according to the CQL relation by
49 # looking up the "relation.<relation>" property:
50 #
51 relation.<                              = 2=1
52 relation.le                             = 2=2
53 relation.eq                             = 2=3
54 relation.exact                          = 2=3
55 relation.ge                             = 2=4
56 relation.>                              = 2=5
57 relation.<>                             = 2=6
58
59 # BIB-1 doesn't have a server choice relation, so we just make the
60 # choice here, and use equality (which is clearly correct).
61 relation.scr                            = 2=3
62
63 # Relation modifiers.
64 #
65 relationModifier.relevant               = 2=102
66 relationModifier.fuzzy                  = 5=103
67         ### truncation=regExpr-2 (5=102) in Zebra is "fuzzy matching"
68 relationModifier.stem                   = 2=101
69 relationModifier.phonetic               = 2=100
70 relationModifier.regexp                 = 5=102
71
72 # Non-standard extensions to provoke Zebra's inline sorting
73 relationModifier.sort                   = 7=1
74 relationModifier.sort-desc              = 7=2
75 relationModifier.numeric                = 4=109
76
77 # Usually this is taken care of by CQL term-anchoring with "^", but
78 # since that is not done for regular expressions, we need a way to
79 # state it explicitly in these cases.
80 relationModifier.firstInField           = 3=1
81
82 # Position attributes may be specified for anchored terms (those
83 # beginning with "^", which is stripped) and unanchored (those not
84 # beginning with "^").  This may change when we get a BIB-1 truncation
85 # attribute that says "do what CQL does".
86 #
87 position.first                          = 3=1 6=1
88         # "first in field"
89 position.any                            = 3=3 6=1
90         # "any position in field"
91 position.last                           = 3=4 6=1
92         # not a standard BIB-1 attribute
93 position.firstAndLast                   = 3=3 6=3
94         # search term is anchored to be complete field
95
96 # Structure attributes may be specified for individual relations; a
97 # default structure attribute my be specified by the pseudo-relation
98 # "*", to be used whenever a relation not listed here occurs.
99 #
100 structure.exact                         = 4=108
101         # string
102 structure.all                           = 4=2
103 structure.any                           = 4=2
104 structure.*                             = 4=1
105         # phrase
106
107 # Truncation attributes used to implement CQL wildcard patterns.  The
108 # simpler forms, left, right- and both-truncation will be used for the
109 # simplest patterns, so that we produce PQF queries that conform more
110 # closely to the Bath Profile.  However, when a more complex pattern
111 # such as "foo*bar" is used, we fall back on Z39.58-style masking.
112 #
113 truncation.right                        = 5=1
114 truncation.left                         = 5=2
115 truncation.both                         = 5=3
116 truncation.none                         = 5=100
117 truncation.regexp                       = 5=102
118 truncation.z3958                        = 5=104
119
120 # Finally, any additional attributes that should always be included
121 # with each term can be specified in the "always" property.
122 #
123 #always                                 = 6=1
124 # 6=1: completeness = incomplete subfield