Finish (more or less) to CQL-to-PQF translator.
[cql-java-moved-to-github.git] / etc / pqf.properties
1 # $Id: pqf.properties,v 1.3 2002-11-06 20:13:45 mike 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/srwu/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 # The default access point:
13 #
14 qualifier.srw.serverChoice              = 1=1016
15         # "any"
16
17 qualifier.dc.title                      = 1=4
18 qualifier.dc.subject                    = 1=21
19 qualifier.dc.creator                    = 1=1003
20 qualifier.dc.author                     = 1=1003
21         ### Unofficial synonym for "creator"
22 qualifier.dc.editor                     = 1=1020
23 qualifier.dc.publisher                  = 1=1018
24 qualifier.dc.description                = 1=62
25         # "abstract"
26 qualifier.dc.date                       = 1=30
27 qualifier.dc.resourceType               = 1=1031
28         # guesswork: "Material-type"
29 qualifier.dc.format                     = 1=1034
30         # guesswork: "Content-type"
31 qualifier.dc.resourceIdentifier         = 1=12
32         # "Local number"
33 qualifier.dc.source                     = 1=1019
34         # "Record-source"
35 qualifier.dc.language                   = 1=54
36         # "Code--language"
37 qualifier.dc.relation                   = 1=?
38         ### No idea how to represent this
39 qualifier.dc.coverage                   = 1=?
40         ### No idea how to represent this
41 qualifier.dc.rights                     = 1=?
42         ### No idea how to represent this
43
44 ### These aren't right: I've just put them here for the Generator
45 qualifier.bath.subject                  = 1=21
46 qualifier.bath.author                   = 1=1003
47 qualifier.foo>bar                       = 1=2000
48
49 # Relation attributes are selected according to the CQL relation by
50 # looking up the "relation.<relation>" property:
51 #
52 relation.<                              = 2=1
53 relation.le                             = 2=2
54 relation.eq                             = 2=3
55 relation.exact                          = 2=3
56 relation.ge                             = 2=4
57 relation.>                              = 2=5
58 relation.<>                             = 2=6
59
60 ### These two are not really right:
61 relation.all                            = 2=3
62 relation.any                            = 2=3
63
64 # Relation modifiers.
65 #
66 relationModifier.relevant               = 2=102
67 relationModifier.fuzzy                  = 2=100
68         ### 100 is "phonetic", which is not quite the same thing
69 relationModifier.stem                   = 2=101
70
71 # Position attributes may be specified for anchored terms (those
72 # beginning with "^", which is stripped) and unanchored (those not
73 # beginning with "^").  This may change when we get a BIB-1 truncation
74 # attribute that says "do what CQL does".
75 #
76 position.anchored                       = 3=1
77         # "first in field"
78 position.unanchored                     = 3=3
79         # "any position in field"
80
81 # Structure attributes may be specified for individual relations; a
82 # default structure attribute my be specified by the pseudo-relation
83 # "*", to be used whenever a relation not listed here occurs.
84 #
85 structure.exact                         = 4=108
86         # phrase
87 structure.*                             = 4=1
88         # phrase
89
90 # Finally, any additional attributes that should always be included
91 # with each term can be specified in the "always" property.
92 #
93 always                                  = 5=104 6=1
94 # 5=104: some kind of vaguely CQL-like masking, IIRC.
95 # 6=1: completeness = incomplete subfield