forked from clarin-eric/ParlaMint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParlaMint-teiCorpus.ana.rnc
39 lines (36 loc) · 1.15 KB
/
ParlaMint-teiCorpus.ana.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
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: schema\x{a}" ~
" for linguistically annotated root teiCorpus file."
]
include "ParlaMint-teiCorpus.rnc" {
## Encoding description linguistically annotated corpus.
encodingDesc =
element encodingDesc {
global.atts,
element projectDesc { paras },
editorialDecl,
tagsDecl,
element classDecl { (taxonomy | XInclude)+ }
>> a:documentation [
"MTed corpora do not (necessarily) have prefix definitions in root."
],
element listPrefixDef { prefixDef+ }?,
element appInfo { application+ }
}
}
## Description of an applications used to linguistically annotate the
## corpus.
application =
element application {
attribute version {
xsd:token {
pattern = "[\d]+[a-z]*[\d]*(\.[\d]+[a-z]*[\d]*){0,3}"
}
},
attribute ident { xsd:Name },
element label { normalized-space.string },
element desc { lang.att, annotated.text }+
}