Patch from Galen Charlton, removing $Id$ $Log$ and $Revision$ from files
[koha.git] / etc / zebradb / pqf.properties
1 #
2 # Propeties file to drive org.z3950.zing.cql.CQLNode's toPQF()
3 # back-end and the YAZ CQL-to-PQF converter.  This specifies the
4 # interpretation of various CQL indexes, relations, etc. in terms
5 # of Type-1 query attributes.
6 #
7 # This configuration file generates queries using BIB-1 attributes.
8 # See http://www.loc.gov/z3950/agency/zing/cql/dc-indexes.html
9 # for the Maintenance Agency's work-in-progress mapping of Dublin Core
10 # indexes to Attribute Architecture (util, XD and BIB-2)
11 # attributes.
12
13 # Identifiers for prefixes used in this file. (index.*)
14 set.cql         = info:srw/cql-context-set/1/cql-v1.1
15 set.rec         = info:srw/cql-context-set/2/rec-1.0
16 set.dc          = info:srw/cql-context-set/1/dc-v1.1
17 set.bath        = http://zing.z3950.org/cql/bath/2.0/
18
19 # default set (in query)
20 set             = info:srw/cql-context-set/1/dc-v1.1
21
22 # The default access point and result-set references
23 index.cql.serverChoice                  = 1=1016
24         # srw.serverChoice is deprecated in favour of cql.serverChoice
25         # BIB-1 "any"
26
27 index.rec.id                            = 1=12
28
29 index.dc.identifier                     = 1=1007          
30 index.dc.title                          = 1=4
31 index.dc.subject                        = 1=21
32 index.dc.creator                        = 1=1003
33 index.dc.author                         = 1=1003
34 index.dc.itemtype                       = 1=1031
35 index.dc.barcode                        = 1=1028
36 index.dc.branch                         = 1=1033
37 index.dc.isbn                           = 1=7
38 index.dc.issn                           = 1=8
39 index.dc.any                            = 1=1016
40 index.dc.note                   = 1=63
41
42         ### Unofficial synonym for "creator"
43 index.dc.editor                         = 1=1020
44 index.dc.publisher                      = 1=1018
45 index.dc.description                    = 1=62
46         # "abstract"
47 index.dc.date                           = 1=30
48 index.dc.resourceType                   = 1=1031
49         # guesswork: "Material-type"
50 index.dc.format                         = 1=1034
51         # guesswork: "Content-type"
52 index.dc.resourceIdentifier             = 1=12
53         # "Local number"
54 #index.dc.source                                = 1=1019
55         # "Record-source"
56 index.dc.language                       = 1=54
57         # "Code--language"
58         
59 index.dc.Place-publication              = 1=59
60         # "Place-publication"
61
62 index.dc.relation                       = 1=?
63         ### No idea how to represent this
64 index.dc.coverage                       = 1=?
65         ### No idea how to represent this
66 index.dc.rights                         = 1=?
67         ### No idea how to represent this
68
69 # Relation attributes are selected according to the CQL relation by
70 # looking up the "relation.<relation>" property:
71 #
72 relation.<                              = 2=1
73 relation.le                             = 2=2
74 relation.eq                             = 2=3
75 relation.exact                          = 2=3
76 relation.ge                             = 2=4
77 relation.>                              = 2=5
78 relation.<>                             = 2=6
79
80 ### These two are not really right:
81 relation.all                            = 2=3
82 relation.any                            = 2=3
83
84 # BIB-1 doesn't have a server choice relation, so we just make the
85 # choice here, and use equality (which is clearly correct).
86 relation.scr                            = 2=3
87
88 # Relation modifiers.
89 #
90 relationModifier.relevant               = 2=102
91 relationModifier.fuzzy                  = 5=103
92         ### 100 is "phonetic", which is not quite the same thing
93 relationModifier.stem                   = 2=101
94 relationModifier.phonetic               = 2=100
95
96 # Position attributes may be specified for anchored terms (those
97 # beginning with "^", which is stripped) and unanchored (those not
98 # beginning with "^").  This may change when we get a BIB-1 truncation
99 # attribute that says "do what CQL does".
100 #
101 position.first                          = 3=1 6=1
102         # "first in field"
103 position.any                            = 3=3 6=1
104         # "any position in field"
105 position.last                           = 3=4 6=1
106         # not a standard BIB-1 attribute
107 position.firstAndLast                   = 3=3 6=3
108         # search term is anchored to be complete field
109
110 # Structure attributes may be specified for individual relations; a
111 # default structure attribute my be specified by the pseudo-relation
112 # "*", to be used whenever a relation not listed here occurs.
113 #
114 structure.exact                         = 4=108
115         # string
116 structure.all                           = 4=2
117 structure.any                           = 4=2
118 structure.*                             = 4=1
119         # phrase
120
121 # Truncation attributes used to implement CQL wildcard patterns.  The
122 # simpler forms, left, right- and both-truncation will be used for the
123 # simplest patterns, so that we produce PQF queries that conform more
124 # closely to the Bath Profile.  However, when a more complex pattern
125 # such as "foo*bar" is used, we fall back on Z39.58-style masking.
126 #
127 truncation.right                        = 5=1
128 truncation.left                         = 5=2
129 truncation.both                         = 5=3
130 truncation.none                         = 5=100
131 truncation.z3958                        = 5=104
132
133 # Finally, any additional attributes that should always be included
134 # with each term can be specified in the "always" property.
135 #
136 always                                  = 6=1
137 # 6=1: completeness = incomplete subfield
138
139
140 # Bath Profile support, added Thu Dec 18 13:06:20 GMT 2003
141 # See the Bath Profile for SRW at
142 #       http://zing.z3950.org/cql/bath.html
143 # including the Bath Context Set defined within that document.
144 #
145 # In this file, we only map index-names to BIB-1 use attributes, doing
146 # so in accordance with the specifications of the Z39.50 Bath Profile,
147 # and leaving the relations, wildcards, etc. to fend for themselves.
148
149 index.bath.keyTitle                     = 1=33
150 index.bath.possessingInstitution        = 1=1044
151 index.bath.name                         = 1=1002
152 index.bath.personalName                 = 1=1
153 index.bath.corporateName                = 1=2
154 index.bath.conferenceName               = 1=3
155 index.bath.uniformTitle                 = 1=6
156 index.bath.isbn                         = 1=7
157 index.bath.issn                         = 1=8
158 index.bath.geographicName               = 1=58
159 index.bath.notes                        = 1=63
160 index.bath.topicalSubject               = 1=1079
161 index.bath.genreForm                    = 1=1075
162