-
Notifications
You must be signed in to change notification settings - Fork 2
/
rex-schema.rnc
313 lines (294 loc) · 7.6 KB
/
rex-schema.rnc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
grammar {
start = element root {
attribute rev { text } &
element orders {
order
}
}
order = element order {
attribute id { TID }? &
attribute ctm { TTimestamp }? &
attribute mtm { TTimestamp }? &
element title { TString }? &
element type { TRequiredDic } &
element price {
attribute negotiable { TBoolean }? &
element full { TPrice }? &
element per_meter { TPrice }? &
element utility_fees { TIntegerPos }? &
element commission {
element agent { TIntegerPos }? &
element client { TIntegerPos }?
}?
}? &
element group {
element type { TDic } &
element members {
order*
}?
}? &
element rent {
element short { TBoolean }? &
element term { TIntegerPos }? &
element pledge { TBoolean }? &
element pledge_term { TDic }? &
element tenants { TIntegerPos }? &
element neighbors { TIntegerPos }?
}? &
element owner {
element agent {
attribute dic { text }? &
attribute id { text }? &
element name { TString }? &
element phone { TDic }? &
element email { TDic }? &
element contact { TString }? &
element additional {
element phone { TDic }* &
element email { TDic }*
}?
} &
element group { TDic }? &
element company { TDic }? &
element url { TString }?
}? &
element comment { TComment }? &
element mortgage {
element term { TDic }* &
element bank { TDic }? &
element bank_approval { TBoolean }? &
element summ { TIntegerPos }? &
element date { TDate }? &
element borrower { TString }? &
element contract { TString }?
}? &
element safebox {
element bank { TDic }? &
element date { TDate }?
}? &
element estate {
attribute id { TID }? &
attribute ctm { TTimestamp }? &
attribute mtm { TTimestamp }? &
element location {
element string { TString }? &
element zip { TString }? &
element country { TDic }? &
element region { TDic }? &
element area { TDic }? &
element city { TDic }? &
element district { TDic }? &
element street { TDic }? &
element house { TDic }? &
element flat { TString }? &
element gps {
element lat { TFloat } &
element lng { TFloat }
}?
}? &
element type { TRequiredDic } &
element object { TRequiredDic } &
element desc { TComment }? &
element house {
element type { TDic }? &
element series { TDic }? &
element size { TString }? &
element build_date { TString }? &
element build_year { TIntegerPos }? &
element build_quarter { TIntegerPos }? &
element ready_status { TDic }? &
element repair_year { TIntegerPos }? &
element elite {
element name { TString }? &
element penthouse { TBoolean }? &
element townhouse { TBoolean }? &
element class { TString }? &
element settlement { TString }?
}?
}? &
element flat {
element space {
element total { TFloat }? &
element living { TFloat }? &
element kitchen { TFloat }? &
element hall { TFloat }? &
element bath { TFloat }? &
element wc { TFloat }? &
element desc { TString }?
}? &
element height { TFloat }? &
element levels { TIntegerPos }? &
element rooms {
element actual { TIntegerPos }? &
element total { TIntegerPos }? &
element studio { TBoolean }?
}? &
element style { TDic }? &
element storey {
element actual { TInteger }? &
element total { TInteger }? &
element type { TDic }?
}? &
element state { TDic }? &
element elite {
element bedrooms { TIntegerPos }? &
element bathrooms { TIntegerPos }?
}?
}? &
element plot {
element purpose { TDic }? &
element space { TFloat }? &
element buildings {
element sauna { TBoolean }? &
element shed { TBoolean }? &
element garage { TBoolean }?
}?
}? &
element commerce {
element purpose { TRequiredDic } &
element space {
element total { TFloat }? &
element business { TFloat }?
}? &
element subrent { TBoolean }? &
element storey {
element actual { TInteger }? &
element total { TInteger }?
}? &
element state { TDic }? &
element max_energy { TIntegerPos }? &
element phonelines {
attribute add { text }? &
text
}?
}? &
element transport {
element car {
element distance { TFloat }? &
element time { TFloat }? &
element highway { TString }*
}? &
element railway {
element station { TDic }? &
element distance { TFloat }? &
element time { TFloat }? &
element type { TDic }?
}? &
element metro {
element station { TDic }? &
element distance { TFloat }? &
element time { TFloat }? &
element type { TDic }?
}?
}? &
element facilities {
element gas { TBoolean }? &
element bath { TDic }? &
element sewer { TDic }? &
element water { TBoolean }? &
element heating { TDic }? &
element decoration { TDic }? &
element fireplace { TBoolean }? &
element balcony { TDic }? &
element windows { TDic }? &
element view { TDic }? &
element floor { TDic }? &
element waterpool { TBoolean }? &
element electricity { TBoolean }? &
element concierge { TBoolean }? &
element guard { TBoolean }? &
element stove { TBoolean }? &
element microwave { TBoolean }? &
element fridge { TBoolean }? &
element washmachine { TBoolean }? &
element dryer { TBoolean }? &
element iron { TBoolean }? &
element tv { TBoolean }? &
element digitaltv { TBoolean }? &
element aircon { TBoolean }? &
element garbage_chute { TBoolean }? &
element internet { TBoolean }? &
element phone { TBoolean }? &
element parking { TBoolean }? &
element elevator { TBoolean }? &
element furniture { TBoolean }? &
element kitchen_furniture { TBoolean }? &
element beds { TIntegerPos }? &
element couches { TIntegerPos }? &
element pets_allowed { TBoolean }? &
element children_allowed { TBoolean }? &
element events_allowed { TBoolean }? &
element smoking_allowed { TBoolean }?
}?
}? &
element meta {
element extra { TString }? &
element source { TDic }? &
element imported { TString }? &
element url { TURL }? &
element link { TURL }? &
element extid { TID }? &
element highlight { text }? &
element attachments {
element attachment {
element type { TString }? &
element url { TURL }? &
element title { TString }? &
element hash {
element md5 { THash }? &
element sha1 { THash }? &
element sha256 { THash }?
}? &
element mime { TString }? &
element size { TIntegerPos }? &
element width { TIntegerPos }? &
element height { TIntegerPos }? &
element length { TIntegerPos }?
}+
}?
}?
}+
TDic =
xsd:string,
attribute dic { xsd:string }?,
attribute id { xsd:integer }?
TRequiredDic =
xsd:string,
attribute dic { xsd:string }?,
attribute id { xsd:integer }
TInteger =
xsd:integer,
attribute max { xsd:integer }?
TIntegerPos =
xsd:positiveInteger,
attribute max { xsd:positiveInteger }?
TPrice =
xsd:positiveInteger,
attribute max { xsd:positiveInteger }?,
attribute currency { xsd:string }?
TFloat =
xsd:decimal,
attribute max { xsd:decimal }?
TBoolean =
"true" | "false"
TString =
xsd:string
THash =
xsd:string
TDate =
xsd:string { pattern = "[0-9]{1,2}.[0-9]{1,2}.[0-9]{2,4}" }
TTime =
xsd:string { pattern = "[0-9]{1,2}:[0-9]{1,2}:?[0-9]{0,2}" }
TTimestamp =
xsd:integer
TID =
xsd:string
TComment =
element text { text } &
element html { text }? &
element short { text }?
TEmail =
xsd:string
TURL =
xsd:string
}