forked from clarin-eric/ParlaMint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParlaMint-teiCorpus.rng
174 lines (161 loc) · 4.93 KB
/
ParlaMint-teiCorpus.rng
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
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="http://www.tei-c.org/ns/1.0"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<a:documentation>RelaxNG XML schema for ParlaMint corpora: schema
for "plain-text" root corpus file.</a:documentation>
<include href="ParlaMint-TEI.rng">
<start>
<a:documentation>Root element of a ParlaMint corpus root file.</a:documentation>
<element name="teiCorpus">
<ref name="id.att"/>
<a:documentation>Obligatory @xml:lang.</a:documentation>
<attribute name="xml:lang">
<ref name="lang.val"/>
</attribute>
<a:documentation>Optional @corresp for MTed corpora.</a:documentation>
<ref name="corresp.att"/>
<ref name="teiHeader"/>
<oneOrMore>
<ref name="XInclude"/>
</oneOrMore>
</element>
</start>
<define name="teiHeader">
<a:documentation>Metadata of the "plain-text" corpus.</a:documentation>
<element name="teiHeader">
<ref name="global.atts"/>
<ref name="fileDesc"/>
<ref name="encodingDesc"/>
<ref name="profileDesc"/>
<optional>
<ref name="revisionDesc"/>
</optional>
</element>
</define>
<define name="titleStmt">
<a:documentation>The title statement.</a:documentation>
<element name="titleStmt">
<oneOrMore>
<ref name="title-header"/>
</oneOrMore>
<zeroOrMore>
<ref name="meeting"/>
</zeroOrMore>
<oneOrMore>
<ref name="respStmt"/>
</oneOrMore>
<oneOrMore>
<ref name="funder"/>
</oneOrMore>
</element>
</define>
<define name="encodingDesc">
<a:documentation>The encoding description.</a:documentation>
<element name="encodingDesc">
<ref name="global.atts"/>
<oneOrMore>
<element name="projectDesc">
<ref name="paras"/>
</element>
</oneOrMore>
<ref name="editorialDecl"/>
<ref name="tagsDecl"/>
<element name="classDecl">
<oneOrMore>
<choice>
<ref name="taxonomy"/>
<ref name="XInclude"/>
</choice>
</oneOrMore>
</element>
</element>
</define>
<define name="profileDesc">
<a:documentation>The profile description.</a:documentation>
<element name="profileDesc">
<ref name="global.atts"/>
<ref name="settingDesc"/>
<optional>
<ref name="textClass"/>
</optional>
<ref name="particDesc"/>
<ref name="langUsage"/>
</element>
</define>
</include>
<define name="editorialDecl">
<a:documentation>The editorial declaration.</a:documentation>
<element name="editorialDecl">
<element name="correction">
<ref name="paras"/>
</element>
<element name="normalization">
<ref name="paras"/>
</element>
<element name="hyphenation">
<ref name="paras"/>
</element>
<element name="quotation">
<ref name="paras"/>
</element>
<element name="segmentation">
<ref name="paras"/>
</element>
</element>
</define>
<define name="textClass">
<a:documentation>The text class.</a:documentation>
<element name="textClass">
<oneOrMore>
<element name="catRef">
<optional>
<attribute name="scheme">
<data type="anyURI"/>
</attribute>
</optional>
<attribute name="target">
<ref name="anyURIs"/>
</attribute>
</element>
</oneOrMore>
</element>
</define>
<define name="particDesc">
<a:documentation>Metadata on the organisations (esp. political parties) and speakers.
There can be only one list of organisations and one of speakers, and they can be
XIncluded.</a:documentation>
<element name="particDesc">
<choice>
<ref name="listOrg"/>
<ref name="XInclude"/>
</choice>
<choice>
<ref name="listPerson"/>
<ref name="XInclude"/>
</choice>
</element>
</define>
<define name="langUsage">
<a:documentation>Used languages.</a:documentation>
<element name="langUsage">
<oneOrMore>
<element name="language">
<ref name="lang.att"/>
<attribute name="ident">
<ref name="lang.val"/>
</attribute>
<optional>
<attribute name="usage">
<data type="nonNegativeInteger"/>
</attribute>
</optional>
<ref name="normalized-space.string"/>
</element>
</oneOrMore>
</element>
</define>
</grammar>