Replace leading "qualifier." with "index." throughout.
[yaz-moved-to-github.git] / etc / pqf.properties
1 # $Id: pqf.properties,v 1.4 2003-12-18 16:44:20 mike 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 qualifiers, 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 # qualifiers to Attribute Architecture (util, XD and BIB-2)
12 # attributes.
13
14 # Identifiers for prefixes used in this file. (qualifier.*)
15 set.cql         = http://www.loc.gov/zing/cql/context-sets/cql/v1.1/
16 set.srw         = http://www.loc.gov/zing/cql/srw-indexes/v1.0/
17         # The "srw" set is deprecated in favour of the "cql" set.
18 set.rec         = http://srw.o-r-g.org/indexSets/rec/1.0/
19 set.dc          = http://www.loc.gov/zing/cql/dc-indexes/v1.0/
20 set.bath        = http://www.loc.gov/zing/cql/context-sets/bath/v1.1/
21
22 # default set (in query)
23 set             = http://www.loc.gov/zing/cql/dc-indexes/v1.0/
24
25 # The default access point and result-set references
26 index.cql.serverChoice                  = 1=1016
27 index.srw.serverChoice                  = 1=1016
28         # srw.serverChoice is deprecated in favour of cql.serverChoice
29         # BIB-1 "any"
30
31 index.rec.id                            = 1=12
32
33 index.dc.title                          = 1=4
34 index.dc.subject                        = 1=21
35 index.dc.creator                        = 1=1003
36 index.dc.author                         = 1=1003
37         ### Unofficial synonym for "creator"
38 index.dc.editor                         = 1=1020
39 index.dc.publisher                      = 1=1018
40 index.dc.description                    = 1=62
41         # "abstract"
42 index.dc.date                           = 1=30
43 index.dc.resourceType                   = 1=1031
44         # guesswork: "Material-type"
45 index.dc.format                         = 1=1034
46         # guesswork: "Content-type"
47 index.dc.resourceIdentifier             = 1=12
48         # "Local number"
49 index.dc.source                         = 1=1019
50         # "Record-source"
51 index.dc.language                       = 1=54
52         # "Code--language"
53 index.dc.relation                       = 1=?
54         ### No idea how to represent this
55 index.dc.coverage                       = 1=?
56         ### No idea how to represent this
57 index.dc.rights                         = 1=?
58         ### No idea how to represent this
59
60 # Relation attributes are selected according to the CQL relation by
61 # looking up the "relation.<relation>" property:
62 #
63 relation.<                              = 2=1
64 relation.le                             = 2=2
65 relation.eq                             = 2=3
66 relation.exact                          = 2=3
67 relation.ge                             = 2=4
68 relation.>                              = 2=5
69 relation.<>                             = 2=6
70
71 ### These two are not really right:
72 relation.all                            = 2=3
73 relation.any                            = 2=3
74
75 # BIB-1 doesn't have a server choice relation, so we just make the
76 # choice here, and use equality (which is clearly correct).
77 relation.scr                            = 2=3
78
79 # Relation modifiers.
80 #
81 relationModifier.relevant               = 2=102
82 relationModifier.fuzzy                  = 2=100
83         ### 100 is "phonetic", which is not quite the same thing
84 relationModifier.stem                   = 2=101
85 relationModifier.phonetic               = 2=100
86
87 # Position attributes may be specified for anchored terms (those
88 # beginning with "^", which is stripped) and unanchored (those not
89 # beginning with "^").  This may change when we get a BIB-1 truncation
90 # attribute that says "do what CQL does".
91 #
92 position.first                          = 3=1 6=1
93         # "first in field"
94 position.any                            = 3=3 6=1
95         # "any position in field"
96 position.last                           = 3=4 6=1
97         # not a standard BIB-1 attribute
98 position.firstAndLast                   = 3=3 6=3
99         # search term is anchored to be complete field
100
101 # Structure attributes may be specified for individual relations; a
102 # default structure attribute my be specified by the pseudo-relation
103 # "*", to be used whenever a relation not listed here occurs.
104 #
105 structure.exact                         = 4=108
106         # string
107 structure.all                           = 4=2
108 structure.any                           = 4=2
109 structure.*                             = 4=1
110         # phrase
111
112 # Finally, any additional attributes that should always be included
113 # with each term can be specified in the "always" property.
114 #
115 always                                  = 5=105 6=1
116 # 5=105: the not-yet-standarised CQL-like trunction attribute
117 # 6=1: completeness = incomplete subfield
118
119
120 # Bath Profile support, added Thu Dec 18 13:06:20 GMT 2003
121 # See the Bath Profile for SRW at
122 #       http://zing.z3950.org/cql/bath.html
123 # including the Bath Context Set defined within that document.
124 #
125 # In this file, we only map index-names to BIB-1 use attributes, doing
126 # so in accordance with the specifications of the Z39.50 Bath Profile,
127 # and leaving the relations, wildcards, etc. to fend for themselves.
128
129 index.bath.keyTitle                     = 1=33
130 index.bath.possessingInstitution        = 1=1044
131 index.bath.name                         = 1=1002
132 index.bath.personalName                 = 1=1
133 index.bath.corporateName                = 1=2
134 index.bath.conferenceName               = 1=3
135 index.bath.uniformTitle                 = 1=6
136 index.bath.issn                         = 1=8
137 index.bath.geographicName               = 1=58
138 index.bath.notes                        = 1=63
139 index.bath.topicalSubject               = 1=1079
140 index.bath.genreForm                    = 1=1075
141