new file
[yaz-moved-to-github.git] / etc / pqf.properties
1 # $Id: pqf.properties,v 1.1 2003-01-06 08:20:27 adam Exp $
2 #
3 # Propeties file to drive org.z3950.zing.cql.CQLNode's toPQF()
4 # back-end.  This specifies the interpretation of various CQL
5 # qualifiers, relations, etc. in terms of Type-1 query attributes.
6 #
7 # See http://www.loc.gov/z3950/agency/zing/cql/dc-indexes.html
8 # for the Maintenance Agency's work-in-progress mapping of Dublic Core
9 # qualifiers to Attribute Architecture (util, XD and BIB-2)
10 # attributes.
11
12 # Identifiers for prefixes used in this file. (qualifier.*)
13 set.srw         = http://www.loc.gov/zing/cql/srw-indexes/v1.0/
14 set.dc          = http://www.loc.gov/zing/cql/dc-indexes/v1.0/
15 # default set (in query)
16 set             = http://www.loc.gov/zing/cql/dc-indexes/v1.0/
17
18 # The default access point and result-set references
19 qualifier.srw.serverChoice              = 1=1016
20         # "any"
21
22 qualifier.dc.title                      = 1=4
23 qualifier.dc.subject                    = 1=21
24 qualifier.dc.creator                    = 1=1003
25 qualifier.dc.author                     = 1=1003
26         ### Unofficial synonym for "creator"
27 qualifier.dc.editor                     = 1=1020
28 qualifier.dc.publisher                  = 1=1018
29 qualifier.dc.description                = 1=62
30         # "abstract"
31 qualifier.dc.date                       = 1=30
32 qualifier.dc.resourceType               = 1=1031
33         # guesswork: "Material-type"
34 qualifier.dc.format                     = 1=1034
35         # guesswork: "Content-type"
36 qualifier.dc.resourceIdentifier         = 1=12
37         # "Local number"
38 qualifier.dc.source                     = 1=1019
39         # "Record-source"
40 qualifier.dc.language                   = 1=54
41         # "Code--language"
42 qualifier.dc.relation                   = 1=?
43         ### No idea how to represent this
44 qualifier.dc.coverage                   = 1=?
45         ### No idea how to represent this
46 qualifier.dc.rights                     = 1=?
47         ### No idea how to represent this
48
49 ### These aren't right: I've just put them here for the Generator
50 qualifier.bath.subject                  = 1=21
51 qualifier.bath.author                   = 1=1003
52 qualifier.foo>bar                       = 1=2000
53
54 # Relation attributes are selected according to the CQL relation by
55 # looking up the "relation.<relation>" property:
56 #
57 relation.<                              = 2=1
58 relation.le                             = 2=2
59 relation.eq                             = 2=3
60 relation.exact                          = 2=3
61 relation.ge                             = 2=4
62 relation.>                              = 2=5
63 relation.<>                             = 2=6
64
65 ### These two are not really right:
66 relation.all                            = 2=3
67 relation.any                            = 2=3
68
69 # BIB-1 doesn't have a server choice relation, so we just make the
70 # choice here, and use equality (which is clearly correct).
71 relation.scr                            = 2=3
72
73 # Relation modifiers.
74 #
75 relationModifier.relevant               = 2=102
76 relationModifier.fuzzy                  = 2=100
77         ### 100 is "phonetic", which is not quite the same thing
78 relationModifier.stem                   = 2=101
79 relationModifier.phonetic               = 2=100
80
81 # Position attributes may be specified for anchored terms (those
82 # beginning with "^", which is stripped) and unanchored (those not
83 # beginning with "^").  This may change when we get a BIB-1 truncation
84 # attribute that says "do what CQL does".
85 #
86 position.first                          = 3=1 6=1
87         # "first in field"
88 position.any                            = 3=3 6=1
89         # "any position in field"
90 position.last                           = 3=4 6=1
91         # not a standard BIB-1 attribute
92 position.firstAndLast                   = 3=3 6=3
93         # search term is anchored to be complete field
94
95 # Structure attributes may be specified for individual relations; a
96 # default structure attribute my be specified by the pseudo-relation
97 # "*", to be used whenever a relation not listed here occurs.
98 #
99 structure.exact                         = 4=108
100         # string
101 structure.all                           = 4=2
102 structure.any                           = 4=2
103 structure.*                             = 4=1
104         # phrase
105
106 # Finally, any additional attributes that should always be included
107 # with each term can be specified in the "always" property.
108 #
109 always                                  = 5=105 6=1
110 # 5=105: the not-yet-standarised CQL-like trunction attribute
111 # 6=1: completeness = incomplete subfield