forked from distributed-text-services/MyDapytains
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.rng
More file actions
191 lines (189 loc) · 7.31 KB
/
schema.rng
File metadata and controls
191 lines (189 loc) · 7.31 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<grammar
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">
<start>
<choice>
<ref name="resource"/>
<ref name="collection"/>
</choice>
</start>
<define name="identifier-and-path">
<group>
<attribute name="identifier">
<a:documentation>Identifier of the Collection or Resource</a:documentation>
<data type="anyURI"/>
</attribute>
<optional>
<attribute name="path">
<a:documentation>Path to the relevant Collection or Resource</a:documentation>
<data type="anyURI"/>
</attribute>
</optional>
</group>
</define>
<define name="parent">
<optional>
<element name="parent">
<a:documentation xml:lang="eng">Identifier of the parent if required by a parent
collection</a:documentation>
<data type="anyURI"/>
</element>
</optional>
</define>
<define name="baseDetails">
<element name="title">
<a:documentation>Title / name of a Collection or Resource</a:documentation>
<data type="string"/>
</element>
<optional>
<element name="description">
<a:documentation>Description of a Collection or Resource</a:documentation>
<data type="string"/>
</element>
</optional>
</define>
<define name="dublinCore">
<element name="dublinCore">
<interleave>
<zeroOrMore>
<element ns="http://purl.org/dc/terms/">
<a:documentation>Something</a:documentation>
<choice>
<name>abstract</name>
<name>accessRights</name>
<name>accrualMethod</name>
<name>accrualPeriodicity</name>
<name>accrualPolicy</name>
<name>alternative</name>
<name>audience</name>
<name>available</name>
<name>bibliographicCitation</name>
<name>conformsTo</name>
<name>contributor</name>
<name>coverage</name>
<name>created</name>
<name>creator</name>
<name>date</name>
<name>dateAccepted</name>
<name>dateCopyrighted</name>
<name>dateSubmitted</name>
<name>description</name>
<name>educationLevel</name>
<name>extent</name>
<name>format</name>
<name>hasFormat</name>
<name>hasPart</name>
<name>hasVersion</name>
<name>identifier</name>
<name>instructionalMethod</name>
<name>isFormatOf</name>
<name>isPartOf</name>
<name>isReferencedBy</name>
<name>isReplacedBy</name>
<name>isRequiredBy</name>
<name>issued</name>
<name>isVersionOf</name>
<name>language</name>
<name>license</name>
<name>mediator</name>
<name>medium</name>
<name>modified</name>
<name>provenance</name>
<name>publisher</name>
<name>references</name>
<name>relation</name>
<name>replaces</name>
<name>requires</name>
<name>rights</name>
<name>rightsHolder</name>
<name>source</name>
<name>spatial</name>
<name>subject</name>
<name>tableOfContents</name>
<name>temporal</name>
<name>title</name>
<name>type</name>
<name>valid</name>
</choice>
<optional>
<attribute name="xml:lang">
<data type="language"/>
</attribute>
</optional>
<data type="string"/>
</element>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="extension">
<element>
<a:documentation>Structured metadata contains any other optional metadata that are not part of
DublinCore Terms namespace</a:documentation>
<name>extensions</name>
<zeroOrMore>
<element>
<anyName>
<except>
<nsName ns="http://purl.org/dc/terms/"/>
</except>
</anyName>
<optional>
<attribute name="xml:lang">
<data type="language"/>
</attribute>
</optional>
<text/>
</element>
</zeroOrMore>
</element>
</define>
<define name="members">
<a:documentation>Children member of a collection or ressource</a:documentation>
<element>
<name>members</name>
<interleave>
<oneOrMore>
<choice>
<ref name="collection"/>
<ref name="resource"/>
<element>
<a:documentation>Relative link to a secondary collection file</a:documentation>
<choice>
<name>collection</name>
<name>resource</name>
</choice>
<ref name="identifier-and-path"/>
</element>
</choice>
</oneOrMore>
</interleave>
</element>
</define>
<define name="collection-pattern">
<ref name="identifier-and-path"/>
<ref name="parent"/>
<ref name="baseDetails"/>
<optional>
<ref name="dublinCore"/>
</optional>
<optional>
<ref name="extension"/>
</optional>
<optional>
<ref name="members"/>
</optional>
</define>
<define name="resource">
<element name="resource">
<ref name="collection-pattern"/>
</element>
</define>
<define name="collection">
<element name="collection">
<ref name="collection-pattern"/>
</element>
</define>
</grammar>