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