-
Notifications
You must be signed in to change notification settings - Fork 53
/
ParlaMint-teiCorpus.ana.rng
72 lines (67 loc) · 2.28 KB
/
ParlaMint-teiCorpus.ana.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
<?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 linguistically annotated root teiCorpus file.</a:documentation>
<include href="ParlaMint-teiCorpus.rng">
<define name="encodingDesc">
<a:documentation>Encoding description linguistically annotated corpus.</a:documentation>
<element name="encodingDesc">
<ref name="global.atts"/>
<element name="projectDesc">
<ref name="paras"/>
</element>
<ref name="editorialDecl"/>
<ref name="tagsDecl"/>
<element name="classDecl">
<oneOrMore>
<choice>
<ref name="taxonomy"/>
<ref name="XInclude"/>
</choice>
</oneOrMore>
</element>
<a:documentation>MTed corpora do not (necessarily) have prefix definitions in root.</a:documentation>
<optional>
<element name="listPrefixDef">
<oneOrMore>
<ref name="prefixDef"/>
</oneOrMore>
</element>
</optional>
<element name="appInfo">
<oneOrMore>
<ref name="application"/>
</oneOrMore>
</element>
</element>
</define>
</include>
<define name="application">
<a:documentation>Description of an applications used to linguistically annotate the
corpus.</a:documentation>
<element name="application">
<attribute name="version">
<data type="token">
<param name="pattern">[\d]+[a-z]*[\d]*(\.[\d]+[a-z]*[\d]*){0,3}</param>
</data>
</attribute>
<attribute name="ident">
<data type="Name"/>
</attribute>
<element name="label">
<ref name="normalized-space.string"/>
</element>
<oneOrMore>
<element name="desc">
<ref name="lang.att"/>
<ref name="annotated.text"/>
</element>
</oneOrMore>
</element>
</define>
</grammar>