dom: accept type="adelete" (accept bad deletes)
[idzebra-moved-to-github.git] / tab / pqf.properties
1 # Properties file to drive org.z3950.zing.cql.CQLNode's toPQF()
2 # back-end and the YAZ CQL-to-PQF converter.  This specifies the
3 # interpretation of various CQL indexes, relations, etc. in terms
4 # of Type-1 query attributes.
5 #
6 # This configuration file generates queries using BIB-1 attributes.
7 # See http://www.loc.gov/z3950/agency/zing/cql/dc-indexes.html
8 # for the Maintenance Agency's work-in-progress mapping of Dublin Core
9 # indexes to Attribute Architecture (util, XD and BIB-2)
10 # attributes.
11
12 # Identifiers for prefixes used in this file. (index.*)
13 set.cql         = info:srw/cql-context-set/1/cql-v1.1
14 set.rec         = info:srw/cql-context-set/2/rec-1.0
15 set.dc          = info:srw/cql-context-set/1/dc-v1.1
16 set.bath        = http://zing.z3950.org/cql/bath/2.0/
17
18 # default set (in query)
19 set             = info:srw/cql-context-set/1/dc-v1.1
20
21 # The default access point and result-set references
22 index.cql.serverChoice                  = 1=1016
23         # srw.serverChoice is deprecated in favour of cql.serverChoice
24         # BIB-1 "any"
25
26 index.rec.id                            = 1=12
27
28 index.dc.title                          = 1=4
29 index.dc.subject                        = 1=21
30 index.dc.creator                        = 1=1003
31 index.dc.author                         = 1=1003
32         ### Unofficial synonym for "creator"
33 index.dc.editor                         = 1=1020
34 index.dc.publisher                      = 1=1018
35 index.dc.description                    = 1=62
36         # "abstract"
37 index.dc.date                           = 1=30
38 index.dc.resourceType                   = 1=1031
39         # guesswork: "Material-type"
40 index.dc.format                         = 1=1034
41         # guesswork: "Content-type"
42 index.dc.resourceIdentifier             = 1=12
43         # "Local number"
44 index.dc.source                         = 1=1019
45         # "Record-source"
46 index.dc.language                       = 1=54
47         # "Code--language"
48 index.dc.relation                       = 1=?
49         ### No idea how to represent this
50 index.dc.coverage                       = 1=?
51         ### No idea how to represent this
52 index.dc.rights                         = 1=?
53         ### No idea how to represent this
54
55 # Relation attributes are selected according to the CQL relation by
56 # looking up the "relation.<relation>" property:
57 #
58 relation.<                              = 2=1
59 relation.le                             = 2=2
60 relation.eq                             = 2=3
61 relation.exact                          = 2=3
62 relation.ge                             = 2=4
63 relation.>                              = 2=5
64 relation.<>                             = 2=6
65
66 ### These two are not really right:
67 relation.all                            = 2=3
68 relation.any                            = 2=3
69
70 # BIB-1 doesn't have a server choice relation, so we just make the
71 # choice here, and use equality (which is clearly correct).
72 relation.scr                            = 2=3
73
74 # Relation modifiers.
75 #
76 relationModifier.relevant               = 2=102
77 relationModifier.fuzzy                  = 5=103
78         ### truncation=regExpr-2 (5=103) in Zebra is "fuzzy matching"
79 relationModifier.stem                   = 2=101
80 relationModifier.phonetic               = 2=100
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
125
126
127 # Bath Profile support, added Thu Dec 18 13:06:20 GMT 2003
128 # See the Bath Profile for SRW at
129 #       http://zing.z3950.org/cql/bath.html
130 # including the Bath Context Set defined within that document.
131 #
132 # In this file, we only map index-names to BIB-1 use attributes, doing
133 # so in accordance with the specifications of the Z39.50 Bath Profile,
134 # and leaving the relations, wildcards, etc. to fend for themselves.
135
136 index.bath.keyTitle                     = 1=33
137 index.bath.possessingInstitution        = 1=1044
138 index.bath.name                         = 1=1002
139 index.bath.personalName                 = 1=1
140 index.bath.corporateName                = 1=2
141 index.bath.conferenceName               = 1=3
142 index.bath.uniformTitle                 = 1=6
143 index.bath.isbn                         = 1=7
144 index.bath.issn                         = 1=8
145 index.bath.geographicName               = 1=58
146 index.bath.notes                        = 1=63
147 index.bath.topicalSubject               = 1=1079
148 index.bath.genreForm                    = 1=1075
149