1 # $Id: pqf.properties,v 1.12 2006-09-18 10:50:59 mike Exp $
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.
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)
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.1
17 set.dc = info:srw/cql-context-set/1/dc-v1.1
18 set.bath = http://zing.z3950.org/cql/bath/2.0/
20 # The default set when an index doesn't specify one: Dublin Core
21 set = info:srw/cql-context-set/1/dc-v1.1
23 # The default index when none is specified by the query
24 index.cql.serverChoice = 1=1016
25 # srw.serverChoice is deprecated in favour of cql.serverChoice
27 index.cql.allRecords = 1=_ALLRECORDS 2=103
32 index.dc.subject = 1=21
33 index.dc.creator = 1=1003
34 index.dc.author = 1=1003
35 ### Unofficial synonym for "creator"
36 index.dc.editor = 1=1020
37 index.dc.publisher = 1=1018
38 index.dc.description = 1=62
41 index.dc.resourceType = 1=1031
42 # guesswork: "Material-type"
43 index.dc.format = 1=1034
44 # guesswork: "Content-type"
45 index.dc.resourceIdentifier = 1=12
47 index.dc.source = 1=1019
49 index.dc.language = 1=54
51 index.dc.relation = 1=?
52 ### No idea how to represent this
53 index.dc.coverage = 1=?
54 ### No idea how to represent this
56 ### No idea how to represent this
58 # Relation attributes are selected according to the CQL relation by
59 # looking up the "relation.<relation>" property:
69 # These two are what Zebra uses -- may not work on other servers
73 # BIB-1 doesn't have a server choice relation, so we just make the
74 # choice here, and use equality (which is clearly correct).
79 relationModifier.relevant = 2=102
80 relationModifier.fuzzy = 5=103
81 ### truncation=regExpr-2 (5=103) in Zebra is "fuzzy matching"
82 relationModifier.stem = 2=101
83 relationModifier.phonetic = 2=100
85 # Position attributes may be specified for anchored terms (those
86 # beginning with "^", which is stripped) and unanchored (those not
87 # beginning with "^"). This may change when we get a BIB-1 truncation
88 # attribute that says "do what CQL does".
90 position.first = 3=1 6=1
92 position.any = 3=3 6=1
93 # "any position in field"
94 position.last = 3=4 6=1
95 # not a standard BIB-1 attribute
96 position.firstAndLast = 3=3 6=3
97 # search term is anchored to be complete field
99 # Structure attributes may be specified for individual relations; a
100 # default structure attribute my be specified by the pseudo-relation
101 # "*", to be used whenever a relation not listed here occurs.
103 structure.exact = 4=108
110 # Truncation attributes used to implement CQL wildcard patterns. The
111 # simpler forms, left, right- and both-truncation will be used for the
112 # simplest patterns, so that we produce PQF queries that conform more
113 # closely to the Bath Profile. However, when a more complex pattern
114 # such as "foo*bar" is used, we fall back on Z39.58-style masking.
116 truncation.right = 5=1
117 truncation.left = 5=2
118 truncation.both = 5=3
119 truncation.none = 5=100
120 truncation.regexp = 5=102
121 truncation.z3958 = 5=104
123 # Finally, any additional attributes that should always be included
124 # with each term can be specified in the "always" property.
127 # 6=1: completeness = incomplete subfield
130 # Bath Profile support, added Thu Dec 18 13:06:20 GMT 2003
131 # See the Bath Profile for SRW at
132 # http://zing.z3950.org/cql/bath.html
133 # including the Bath Context Set defined within that document.
135 # In this file, we only map index-names to BIB-1 use attributes, doing
136 # so in accordance with the specifications of the Z39.50 Bath Profile,
137 # and leaving the relations, wildcards, etc. to fend for themselves.
139 index.bath.keyTitle = 1=33
140 index.bath.possessingInstitution = 1=1044
141 index.bath.name = 1=1002
142 index.bath.personalName = 1=1
143 index.bath.corporateName = 1=2
144 index.bath.conferenceName = 1=3
145 index.bath.uniformTitle = 1=6
146 index.bath.isbn = 1=7
147 index.bath.issn = 1=8
148 index.bath.geographicName = 1=58
149 index.bath.notes = 1=63
150 index.bath.topicalSubject = 1=1079
151 index.bath.genreForm = 1=1075