/
lido-nocomment.rnc
362 lines (291 loc) · 11.5 KB
/
lido-nocomment.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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
default namespace lido = "http://www.lido-schema.org"
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
namespace doc = "http://www.mda.org.uk/spectrumXML/Documentation"
namespace gml = "http://www.opengis.net/gml"
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace xsd = "http://www.w3.org/2001/XMLSchema"
include "xml.rnc" inherit = xml
start = lido | lidoWrap
actorComplexType =
element actorID {identifierComplexType}*,
element nameActorSet {appellationComplexType}+,
element nationalityActor {conceptComplexType, attr_sortorder}*,
element vitalDatesActor {dateComplexType}?,
element genderActor {textComplexType}*,
attr_type
actorInRoleComplexType =
element actor {actorComplexType},
element roleActor {conceptComplexType, attr_sortorder}*,
element attributionQualifierActor {textComplexType}*,
element extentActor {textComplexType}*
actorInRoleSetComplexType =
element displayActorInRole {textComplexType}*,
element actorInRole {actorInRoleComplexType}?
actorSetComplexType =
element displayActor {textComplexType}*,
element actor {actorComplexType}?
attr_addedSearchTerm =
[ a:defaultValue = "no" ]
attribute addedSearchTerm {"yes" | "no"}?
administrativeMetadata = element administrativeMetadata {administrativeMetadataComplexType}
administrativeMetadataComplexType =
rightsWorkWrap?,
recordWrap,
resourceWrap?,
attribute xml:lang {xsd:language}
appellationComplexType =
element appellationValue {
xsd:string,
attr_pref,
attribute xml:lang {xsd:language},
attr_encodinganalog,
attr_label}+,
element sourceAppellation {
xsd:string,
attribute xml:lang {xsd:language},
attr_encodinganalog,
attr_label}*
classificationWrap = element classificationWrap {element classification {conceptComplexType, attr_type, attr_sortorder}*}
conceptComplexType =
element conceptID {identifierComplexType}*,
element term {termComplexType}*
dateComplexType =
element earliestDate {
xsd:string,
attr_type,
attr_source,
attr_encodinganalog,
attr_label}?,
element latestDate {
xsd:string,
attr_type,
attr_source,
attr_encodinganalog,
attr_label}?
dateSetComplexType =
element displayDate {textComplexType}*,
element date {dateComplexType}?
descriptiveMetadata =
element descriptiveMetadata {descriptiveMetadataComplexType}
descriptiveMetadataComplexType =
objectClassificationWrap,
objectIdentificationWrap,
eventWrap?,
objectRelationWrap?,
attribute xml:lang {xsd:language}
descriptiveNoteComplexType =
element descriptiveNoteID {identifierComplexType}*,
element descriptiveNoteValue {textComplexType}*,
element sourceDescriptiveNote {textComplexType}*,
attr_type,
attr_sortorder
displayStateEditionWrap = element displayStateEditionWrap {
element displayState {textComplexType}*,
element displayEdition {textComplexType}*,
element sourceStateEdition {textComplexType}*}
attr_encodinganalog = attribute encodinganalog {xsd:string}?
eventComplexType =
element eventID {identifierComplexType}*,
element eventType {conceptComplexType},
element roleInEvent {conceptComplexType}*,
element eventName {appellationComplexType}*,
element eventActor {actorInRoleSetComplexType, attr_sortorder}*,
element culture {conceptComplexType, attr_sortorder}*,
element eventDate {dateSetComplexType}?,
element periodName {
conceptComplexType,
attr_type,
attr_sortorder}*,
element eventPlace {
placeSetComplexType,
attr_type,
attr_sortorder}*,
element eventMethod {conceptComplexType, attr_sortorder}*,
element eventMaterialsTech {materialsTechSetComplexType, attr_sortorder}*,
element thingPresent {objectSetComplexType, attr_sortorder}*,
element relatedEventSet {relatedEventSetComplexType, attr_sortorder}*,
element eventDescriptionSet {descriptiveNoteComplexType}*
eventSetComplexType =
element displayEvent {textComplexType}*,
element event {eventComplexType}?
eventWrap = element eventWrap {element eventSet {eventSetComplexType, attr_sortorder}*}
attr_geographicalEntity = attribute geographicalEntity {xsd:string}?
gmlComplexType = Point*, LineString*, Polygon*
identifierComplexType =
xsd:string,
attr_pref,
attr_type,
attr_source,
attr_encodinganalog,
attr_label
inscriptionsWrap = element inscriptionsWrap {element inscriptions {
element inscriptionTranscription {textComplexType}*,
element inscriptionDescription {descriptiveNoteComplexType}*,
attr_type,
attr_sortorder}*}
attr_label = attribute label {xsd:string}?
legalBodyRefComplexType =
element legalBodyID {identifierComplexType}*,
element legalBodyName {appellationComplexType}*,
element legalBodyWeblink {webResourceComplexType}*
lido = element lido {lidoComplexType}
lidoComplexType =
element lidoRecID {identifierComplexType}+,
element objectPublishedID {identifierComplexType}*,
element category {conceptComplexType}?,
element descriptiveMetadata {descriptiveMetadataComplexType}+,
element administrativeMetadata {administrativeMetadataComplexType}+,
attr_relatedencoding
lidoWrap = element lidoWrap {
element lido {lidoComplexType, attr_sortorder}+,
attr_relatedencoding}
materialsTechComplexType =
element termMaterialsTech {
conceptComplexType,
attr_type,
attr_sortorder}*,
element extentMaterialsTech {textComplexType}*,
element sourceMaterialsTech {textComplexType}*
materialsTechSetComplexType =
element displayMaterialsTech {textComplexType}*,
element materialsTech {materialsTechComplexType}?
measurementsSetComplexType =
element measurementType {textComplexType}+,
element measurementUnit {textComplexType}+,
element measurementValue {textComplexType}
objectClassificationWrap = element objectClassificationWrap {
objectWorkTypeWrap,
classificationWrap?}
objectComplexType =
element objectWebResource {webResourceComplexType}*,
element objectID {identifierComplexType}*,
element objectNote {textComplexType, attr_type}*
objectDescriptionWrap = element objectDescriptionWrap {element objectDescriptionSet {descriptiveNoteComplexType}*}
objectIdentificationWrap = element objectIdentificationWrap {
titleWrap,
inscriptionsWrap?,
repositoryWrap?,
displayStateEditionWrap?,
objectDescriptionWrap?,
objectMeasurementsWrap?}
objectMeasurementsComplexType =
element measurementsSet {measurementsSetComplexType, attr_sortorder}*,
element extentMeasurements {textComplexType, attr_sortorder}*,
element qualifierMeasurements {textComplexType, attr_sortorder}*,
element formatMeasurements {textComplexType, attr_sortorder}*,
element shapeMeasurements {textComplexType, attr_sortorder}*,
element scaleMeasurements {textComplexType, attr_sortorder}*
objectMeasurementsSetComplexType =
element displayObjectMeasurements {textComplexType}*,
element objectMeasurements {objectMeasurementsComplexType}?
objectMeasurementsWrap = element objectMeasurementsWrap {element objectMeasurementsSet {objectMeasurementsSetComplexType, attr_sortorder}*}
objectRelationWrap = element objectRelationWrap {subjectWrap?, relatedWorksWrap?}
objectSetComplexType =
element displayObject {textComplexType}*,
element object {objectComplexType}?
objectWorkTypeWrap = element objectWorkTypeWrap {element objectWorkType {conceptComplexType, attr_type, attr_sortorder}+}
placeComplexType =
element placeID {identifierComplexType}*,
element namePlaceSet {appellationComplexType}*,
element gml {
gmlComplexType,
attribute xml:lang {xsd:language}}*,
element partOfPlace {placeComplexType}*,
element placeClassification {conceptComplexType, attr_type}*,
attr_politicalEntity,
attr_geographicalEntity
placeSetComplexType =
element displayPlace {textComplexType}*,
element place {placeComplexType}?
attr_politicalEntity = attribute politicalEntity {xsd:string}?
attr_pref = attribute pref {xsd:string}?
recordInfoSetComplexType =
element recordInfoID {identifierComplexType}*,
element recordInfoLink {webResourceComplexType}*,
element recordMetadataDate {textComplexType, attr_type, attr_source}*,
attr_type
recordWrap = element recordWrap {
element recordID {identifierComplexType}+,
element recordType {conceptComplexType},
element recordSource {legalBodyRefComplexType, attr_type, attr_sortorder}+,
element recordRights {rightsComplexType, attr_sortorder}*,
element recordInfoSet {recordInfoSetComplexType}*}
attr_relatedencoding = attribute relatedencoding {xsd:string}?
relatedEventSetComplexType =
element relatedEvent {eventSetComplexType}?,
element relatedEventRelType {conceptComplexType}?
relatedWorkSetComplexType =
element relatedWork {objectSetComplexType}?,
element relatedWorkRelType {conceptComplexType}?
relatedWorksWrap = element relatedWorksWrap {element relatedWorkSet {relatedWorkSetComplexType, attr_sortorder}*}
repositorySetComplexType =
element repositoryName {legalBodyRefComplexType}?,
element workID {
xsd:string,
attr_type,
attr_sortorder,
attr_encodinganalog,
attr_label}*,
element repositoryLocation {placeComplexType}?,
attr_type,
attr_sortorder
repositoryWrap = element repositoryWrap {element repositorySet {repositorySetComplexType}*}
resourceSetComplexType =
element resourceID {identifierComplexType}?,
element resourceRepresentation {
element linkResource {
webResourceComplexType,
attribute codecResource {xsd:string}?},
element resourceMeasurementsSet {measurementsSetComplexType}*,
attr_type}*,
element resourceType {conceptComplexType}?,
element resourceRelType {conceptComplexType}*,
element resourcePerspective {conceptComplexType}*,
element resourceDescription {textComplexType, attr_type, attr_sortorder}*,
element resourceDateTaken {dateSetComplexType}?,
element resourceSource {legalBodyRefComplexType, attr_type, attr_sortorder}*,
element rightsResource {rightsComplexType, attr_sortorder}*
resourceWrap = element resourceWrap {element resourceSet {resourceSetComplexType, attr_sortorder}*}
rightsComplexType =
element rightsType {conceptComplexType}*,
element rightsDate {dateComplexType}?,
element rightsHolder {legalBodyRefComplexType, attr_sortorder}*,
element creditLine {textComplexType}*
rightsWorkWrap = element rightsWorkWrap {element rightsWorkSet {rightsComplexType, attr_sortorder}*}
attr_sortorder = attribute sortorder {xsd:integer}?
attr_source = attribute source {xsd:string}?
subjectComplexType =
element extentSubject {textComplexType}*,
element subjectConcept {conceptComplexType, attr_sortorder}*,
element subjectActor {actorSetComplexType, attr_sortorder}*,
element subjectDate {dateSetComplexType, attr_sortorder}*,
element subjectEvent {eventSetComplexType, attr_sortorder}*,
element subjectPlace {placeSetComplexType, attr_sortorder}*,
element subjectObject {objectSetComplexType, attr_sortorder}*,
attr_type
subjectSetComplexType =
element displaySubject {textComplexType}*,
element subject {subjectComplexType}?
subjectWrap = element subjectWrap {
element subjectSet {subjectSetComplexType, attr_sortorder}*}
termComplexType =
xsd:string,
attr_pref,
attr_addedSearchTerm,
attribute xml:lang {xsd:language},
attr_encodinganalog,
attr_label
textComplexType =
xsd:string,
attribute xml:lang {xsd:language},
attr_encodinganalog,
attr_label
titleWrap = element titleWrap {element titleSet {appellationComplexType, attr_type, attr_sortorder}+}
attr_type = attribute type {xsd:string}?
webResourceComplexType =
xsd:string,
attr_pref,
attribute formatResource {xsd:string}?,
attribute xml:lang {xsd:language},
attr_encodinganalog,
attr_label