forked from clarin-eric/ParlaMint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParlaMint.rnc
464 lines (406 loc) · 12.5 KB
/
ParlaMint.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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
default namespace = "http://www.tei-c.org/ns/1.0"
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
namespace xi = "http://www.w3.org/2001/XInclude"
a:documentation [
"RelaxNG XML schema for ParlaMint corpora: common definitions and ParlaMint\x{a}" ~
" mandated vocabularis of attributes."
]
## Taxonomy element included directly in the teiHeader of corpus root or stored
## in a separate file.
taxonomy =
element taxonomy {
id.att,
lang.att,
element desc { lang.att, catDesc.content }+,
category+
}
category =
element category {
id.att,
ana.att?,
element catDesc { lang.att, catDesc.content }+,
category*
}
## Content of a category (or taxomony) description. Contains a term followed by
## (lighlty) annotated text.
catDesc.content =
element term { normalized-space.string },
annotated.text
## Organization list element included directly in the teiHeader of corpus root or
## stored in a separate file.
listOrg =
element listOrg { id.att?, lang.att, head*, org+, listRelation? }
## Organization element for storing info on political parties, government,
## etc.
org =
element org {
global.atts,
(ana.att?) >> a:documentation [ "The type of organization" ],
attribute role { orgRole.val },
orgName+,
event*,
idno*,
element desc { lang.att, normalized-space.string }?,
listEvent?,
state*
}
## The name of an organisation.
orgName =
element orgName {
lang.att,
## Used when "the same" party changes its name:
(temporal.atts?),
attribute full { "yes" | "abb" },
normalized-space.string
}
## Element defining the political orientation of a politicalParty or
## parliamentaryGroup.
state =
## The type of state is fixed, as we use state only for political
## orientation.
element state {
attribute type { stateType.val }
>> a:documentation [
"The subtype of state gives the source of this information."
],
attribute subtype { stateSubtype.val },
## The URI of the source where this information was taken
## from.
(attribute source { anyURIs }?),
## The political orientation if given as a numeric value.
(attribute n { xsd:decimal }?)
>> a:documentation [ "From - to when this information holds." ],
temporal.atts
>> a:documentation [
"Pointer to category of a political orientation."
],
attribute ana { xsd:anyURI }
>> a:documentation [
"Abbreviation of the political party in the source."
],
(element label {
element orgName {
attribute full { "abb" },
normalized-space.string
}
}
>> a:documentation [ "Optional note(s)." ]
| element note { lang.att, normalized-space.string }+)?
}
## A list of events connected to organisations.
listEvent = element listEvent { head*, event+ }
## Used to specify relations between politicalParties and/or
## parliamentaryGroups.
listRelation =
element listRelation {
element relation {
ana.att?,
temporal.atts?,
attribute name { relationName.val },
(attribute mutual { anyURIs }
| (attribute active { anyURIs },
attribute passive { anyURIs }))
}+
}
## A list of persons. This element can be included directly in the teiHeader of a
## corpus root or stored in a separate file.
listPerson = element listPerson { id.att?, lang.att, head*, person+ }
## All informaton pertaining to a person.
person =
element person {
global.atts,
## We can have person name in several languages, or, rather,
## scripts or several names with different temporal information.
(persName+),
(element sex {
attribute value { "M" | "F" | "U" | "O" | "N" },
empty
}?
& element birth { life-event.content }?
& element death { life-event.content }?
& affiliation*
& occupation*
& education*
& idno*
& figure*)
}
## The name of a person.
persName =
element persName {
lang.att
>> a:documentation [
"Names can change, and are then marked by @from / @to."
],
attribute from { temporal.val }?,
attribute to { temporal.val }?,
## Special persons (like 'group') have their name in term. This possibility
## might have to be revisited.
(element term { normalized-space.string }
| (element surname { personal.att, normalized-space.string }+
& element forename { personal.att, normalized-space.string }+
& element addName { personal.att, normalized-space.string }*
& element roleName { personal.att, normalized-space.string }*
& element nameLink { normalized-space.string }*))
}
## The affiliation of a person, with temoral attributes and its type.
affiliation =
element affiliation {
ana.att?,
temporal.atts?,
ref.att?,
attribute role { affiliationRole.val },
element roleName { lang.att, normalized-space.string }*
}
## The occupation of a person.
occupation =
element occupation {
global.atts, temporal.atts?, normalized-space.string
}
## The education of a person.
education =
element education {
global.atts, temporal.atts?, normalized-space.string
}
## Figure element is used to give a photo of person.
figure =
element figure {
element head { normalized-space.string }?,
element graphic {
attribute url { xsd:anyURI },
attribute scale {
xsd:double
| xsd:token { pattern = '(\-?[\d]+/\-?[\d]+)"/>' }
| xsd:decimal
}?
}
}
## The content of elements that describe life events: they can have an partial
## date (e.g. year only) in temporal attributes. The content can be empty, or gives the placeName
## where the event happened.
life-event.content =
attribute when { xsd:date | xsd:gYearMonth | xsd:gYear },
element placeName { ref.att, normalized-space.string }?
## The event (or duration) connected with an organisatoin, e.g. the period of its
## existence.
event =
element event {
global.atts,
temporal.atts,
element label { lang.att, normalized-space.string }+
}
## The reference element also giving a target URI.
ref =
element ref {
attribute target { xsd:anyURI },
normalized-space.string
}
## The heading element.
head =
element head {
attribute type { xsd:token }?,
global.atts,
normalized-space.string
# oneOrMore>
# <choice>
# <ref name="note"/>
# <ref name="pb"/>
# <text/>
# </choice>
# </oneOrMore
}
## The identification number element identifies a corpus element with an URI,
## and specifies its type and subtype.
idno =
element idno {
lang.att,
attribute type { "URI" | "VIAF" | xsd:Name },
attribute subtype { xsd:Name }?,
xsd:anyURI { pattern = "https?://.+" }
}
## The specification of a time. It can have textual content with the date
## type-set according to the object language.
time = element time { global.atts, temporal.atts, text }
## A date with with all possible temporal information. It can have textual
## content with the date type-set according to the object language.
date = element date { global.atts, temporal.atts, ana.att?, text }
## A simple date, just with @when. It can have textual content with the date
## type-set according to the object language.
date-simple = element date { when.att, text }
## Attribute for the form of a person or organisation name,
## cf. https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-att.personal.html
personal.att = attribute full { "yes" | "abb" | "init" }?
## Attributes giving temporal information on the current
## element.
temporal.atts =
when.att
| (attribute from { temporal.val },
attribute to { temporal.val }?)
| (attribute from { temporal.val }?,
attribute to { temporal.val })
| (attribute notBefore { temporal.val },
attribute notAfter { temporal.val }?)
## When attributes specifying when the content of the curret element
## happened.
when.att = attribute when { temporal.val }
## The who attribute, giving the reference to the person who spoke the text of
## the current element.
who.att = attribute who { xsd:anyURI }
## The source attribute, giving the reference to the source of the element
## content.
source.att = attribute source { anyURIs }?
## Reference attribute, pointing to element(s) containing analyses of the current
## element.
ref.att = attribute ref { xsd:anyURI }?
## The analysis attribute, pointing to element(s) containing interpretations of
## the current element.
ana.att = attribute ana { anyURIs }
## The corresponds attribute, pointing to element(s) that correspond to the
## current element in some way.
corresp.att = attribute corresp { anyURIs }?
## Attributes allowed on most elements.
global.atts =
id.att?,
lang.att,
attribute n { xsd:string }?
## The identifier attribute, giving the unique ID of the
## element.
id.att = attribute xml:id { xsd:ID }
## The language attribute, which specifies the langauge of the element
## content. Optional everywhere except on TEI and teiCorpus elements, where its is defined
## separately.
lang.att = attribute xml:lang { lang.val }?
## A temporal value, from less to more specific.
temporal.val = xsd:gYear | xsd:gYearMonth | xsd:date | xsd:dateTime
## A possible value for @xml:lang
lang.val = xsd:language
## A list of URIs, including fragment references.
anyURIs = list { xsd:anyURI+ }
## Text maybe containing a reference to some other document.
annotated.text = mixed { ref* }
## A string that is non-empty and does not contain white-space.
non-empty.string = xsd:string { pattern = "\S+" }
## A string that is non-empty, does not start or end with white-space, and
## contains only ordinary spaces as spacing characters.
normalized-space.string = xsd:string { pattern = "(\S)|(\S[\S ]*\S)" }
## XInclude element, which is explicitly allowed at some points in a ParlaMint
## corpus root.
XInclude =
element xi:include {
attribute href { xsd:anyURI }
}
a:documentation [ "Fixed ParlaMint vocabularies of attribute values:" ]
## The types of states of organisations distinguished.
stateType.val = "politicalOrientation"
## The subtypes of states of organisations distinguished.
stateSubtype.val = "CHES" | "Wikipedia" | "unknown"
## Legal values of the names of relation between
## organisations.
relationName.val =
"coalition" | "opposition" | "renaming" | "successor" | "representing"
## Legal values of the org/@role attribute.
orgRole.val =
## Common values:
("country"
| "republic"
| "government"
| "ministry"
| "parliament"
| "politicalParty"
|
## The following used only by BG:
"parliamentaryGroup"
|
## The following used only by LT:
"ngo"
| "conferenceOfChairs"
|
## The following used only by CZ:
"boardOfParliament"
| "institution"
| "senate"
| "committee"
| "subcommittee"
| "commission"
| "delegation"
| "supervisoryBoard"
| "workingGroup"
| "interparliamentaryFriendshipGroup"
| "nationalCouncil"
| "chamberOfThePeople"
| "chamberOfTheNations"
| "europeanParliament"
| "internationalOrganisation"
|
## The following used only by SI:
"boardOfDirectors"
|
## The following used only by AT:
"ethnicCommunity"
| "europeanCommission"
| "europeanInstitution")
## Legal values of the affiliation/@role attribute.
affiliationRole.val =
"member"
| "head"
| "deputyHead"
|
## The following used only by FR:
"minister"
| "associateMember"
| "nonAttachedMember"
| "ministerDelegate"
|
## The following used only by CZ:
"secretaryOfState"
| "observer"
| "verifier"
| "vicePublicDefenderOfRights"
| "publicDefenderOfRights"
| "alternateOfDelegation"
| "replacement"
|
## The following used only by BG:
"representative"
| "academician"
| "candidateChairman"
| "constitutionalJudge"
| "deputyMinister"
| "ombudsman"
| "prosecutorGeneral"
| "secretary"
| "secretaryGeneral"
## Legal values of the kinesic/@type attribute.
kinesicType.val =
"kinesic"
| "applause"
| "ringing"
| "signal"
| "playback"
| "gesture"
| "smiling"
| "laughter"
| "snapping"
| "noise"
## Legal values of the incident/@type attribute.
incidentType.val =
"action"
| "incident"
| "leaving"
| "entering"
| "break"
| "pause"
| "sound"
| "editorial"
## Legal values of the vocal/@type attribute.
vocalType.val =
"greeting"
| "question"
| "clarification"
| "speaking"
| "interruption"
| "exclamat"
| "laughter"
| "shouting"
| "murmuring"
| "noise"
| "signal"