forked from clarin-eric/ParlaMint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParlaMint-teiCorpus.ana.rnc
47 lines (43 loc) · 1.29 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
40
41
42
43
44
45
46
47
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)+ },
element listPrefixDef { prefixDef+ },
element appInfo { application+ }
}
}
## Prefix definition for extended TEI pointers.
prefixDef =
element prefixDef {
attribute ident {
xsd:token { pattern = "[a-z][a-z0-9\+\.\-]*" }
},
attribute matchPattern { xsd:token },
attribute replacementPattern { xsd:token },
paras
}
## 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 }+
}