-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSDFacetSchematron.xml
379 lines (220 loc) · 14 KB
/
CSDFacetSchematron.xml
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!-- schema xmlns="http://www.ascc.net/xml/schematron" > -->
<schema xmlns="http://purl.oclc.org/dsdl/schematron" >
<ns uri="http://www.clarin.eu/cmd/" prefix="cmd"/>
<pattern id="facetlack">
<title>Facet element is lacking</title>
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareFunction/cmd:LanguageVariety">
<assert test="cmd:region">Optional element region is lacking in CMD/Components/ClarinSoftwareDescription/SoftwareFunction/LanguageVariety</assert>
</rule>
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareFunction/cmd:LanguageVariety">
<assert test="cmd:Language">Optional element Language is lacking in CMD/Components/ClarinSoftwareDescription/SoftwareFunction/LanguageVariety</assert>
</rule>
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareFunction/cmd:ToolTasks">
<assert test="cmd:toolTask">Search Facet element toolTask is lacking in CMD/Components/ClarinSoftwareDescription/SoftwareFunction/ToolTasks </assert>
</rule>
<!--
research domain CMD/Components/ClarinSoftwareDescription/SoftwareFunction/ResearchDomains/researchDomain
is obligatory so this rule is superfluous
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription">
<assert test="cmd:SoftwareFunction/cmd:ResearchDomains/cmd:researchDomain">Search Facet element researchDomain is lacking in CMD/Components/ClarinSoftwareDescription/SoftwareFunction</assert>
</rule>
<!--
linguistics Subject CMD/Components/ClarinSoftwareDescription/SoftwareFunction/LinguisticsSubject/linguisticsSubject
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription">
<assert test="cmd:SoftwareFunction/cmd:LinguisticsSubject/cmd:linguisticsSubject">Search Facet element linguisticsSubject is lacking in CMD/Components/ClarinSoftwareDescription/SoftwareFunction</assert>
</rule>
<!--
Input
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription">
<assert test="cmd:SoftwareImplementation/cmd:Input or cmd:Service/cmd:Operations/cmd:Operation/Input">Search Facet component Input is lacking in CMD/Components/ClarinSoftwareDescription/</assert>
</rule>
<!-- input language
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Input">
<assert test ="cmd:Language">search Facet component input language is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Input</assert>
</rule>
-->
<!-- input language name
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Input/cmd:Language">
<assert test ="cmd:Language/cmd:LanguageName">search Facet element input language name is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Input/cmd:Language</assert>
</rule>
-->
<!-- input ISOcode
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Input/cmd:Language/cmd:ISO639/cmd:iso-639-3-code">
<assert test ="cmd:Language/cmd:ISO639/cmd:iso-639-3-code">search Facet element input ISOcode is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Input/cmd:Language/cmd:ISO639/cmd:iso-639-3-code</assert>
</rule>
-->
<!-- output mimetype
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Output">
<assert test ="cmd:MimeType/cmd:MimeType">search Facet element output mimetype is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Output</assert>
</rule>
<!-- output mimetype
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:Service/cmd:Operations/cmd:Operation/cmd:Output">
<assert test ="cmd:ParameterGroup/cmd:MIMEType">search Facet element output mimetype is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:Service/cmd:Operations/cmd:Operation/cmd:Output</assert>
</rule>
<!-- output mimetype
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:Service/cmd:Operations/cmd:Operation/cmd:Output/cmd:ParameterGroup">
<assert test ="cmd:Parameters/cmd:Parameter/cmd:MIMEType">search Facet element output mimetype is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:Service/cmd:Operations/cmd:Operation/cmd:Output/cmd:ParameterGroup</assert>
</rule>
<!-- output mimetype
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:Service/cmd:Operations/cmd:Operation/cmd:Output/cmd:Parameter">
<assert test ="cmd:Parameter/cmd:MIMEType">search Facet element output mimetype is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:Service/cmd:Operations/cmd:Operation/cmd:Output/cmd:Parameter</assert>
</rule>
<!-- output language
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Output">
<assert test ="cmd:Language">search Facet component output language is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Output</assert>
</rule>
-->
<!-- output language name
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Output/cmd:Language">
<assert test ="cmd:LanguageName">search Facet element output language name is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Output/cmd:Language</assert>
</rule>
-->
<!-- output ISOcode
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Output/cmd:Language">
<assert test ="cmd:ISO639/cmd:iso-639-3-code">search Facet element output ISOcode is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:Output/cmd:Language</assert>
</rule>
-->
<!-- OS
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:InstallationRequirements/cmd:MinimumHardwareRequirements/cmd:SystemRequirements">
<assert test ="cmd:Platform/cmd:operatingSystem">display Facet element OS is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:InstallationRequirements/cmd:MinimumHardwareRequirements/cmd:SystemRequirements</assert>
</rule>
<!-- OS
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:InstallationRequirements/cmd:RecommendedHardwareSpecifications/cmd:SystemRequirements">
<assert test ="cmd:Platform/cmd:operatingSystem">display Facet element OS is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation/cmd:InstallationRequirements/cmd:RecommendedHardwareSpecifications/cmd:SystemRequirements</assert>
</rule>
<!-- National project
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:NationalProjects/cmd:Project">search Facet element National project is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- country
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:Country/cmd:CountryName">search Facet element country is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- project
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareDevelopment">
<assert test ="cmd:Project/cmd:name">search Facet element project is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareDevelopment</assert>
</rule>
<!-- nationalproject
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:NationalProjects/cmd:Project/cmd:name">search Facet element nationalproject is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- name
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:Name">display Facet element name is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- title
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:Title">display Facet element title is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- PID
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:PID">display Facet element PID is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- LifeCycleStatus
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:LifeCycleStatus">display Facet element LifeCycleStatus is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- ResearchPhase
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:ResearchPhase">search Facet element ResearchPhase is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- applicationType
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation">
<assert test ="cmd:UserInterface/cmd:applicationType">search Facet element applicationType is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:SoftwareImplementation</assert>
</rule>
<!-- Description
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:Description/cmd:Description">display Facet element Description is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- ResourceProxy
-->
<rule context="cmd:CMD/cmd:Resources/cmd:ResourceProxyList">
<assert test ="cmd:ResourceProxy/cmd:ResourceRef">display Facet element ResourceProxy is lacking in cmd:CMD/cmd:Resources/cmd:ResourceProxyList</assert>
</rule>
<!-- ResourceProxy
-->
<rule context="cmd:CMD">
<assert test ="cmd:Resources/cmd:ResourceProxyList">display Facet component ResourceProxy is lacking in cmd:CMD</assert>
</rule>
<!-- Access
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription">
<assert test ="cmd:Access">display Facet component Access is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription</assert>
</rule>
<!-- Project
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment">
<assert test ="cmd:Project">display Facet component Project is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment</assert>
</rule>
<!-- Creator
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment">
<assert test ="cmd:Creator">display Facet component Creator is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment</assert>
</rule>
<!-- Access Contact
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:Access">
<assert test ="cmd:Contact/cmd:Person or Contact/cmd:email or Contact/cmd:Organisation">display Facet element Access Contact is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:Access</assert>
</rule>
<!-- Project Contact
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment/cmd:Project">
<assert test ="cmd:Contact/cmd:Person or Contact/cmd:email or Contact/cmd:Organisation">display Facet element Project Contact is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment/cmd:Project</assert>
</rule>
<!-- Creator Contact
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment/cmd:Creator">
<assert test ="cmd:Contact/cmd:Person or Contact/cmd:email or Contact/cmd:Organisation">display Facet element Creator Contact is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment/cmd:Creator</assert>
</rule>
<!-- Resource Documentation
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment">
<assert test ="cmd:ResourceDocumentation">display Facet component Resource Documentation is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment</assert>
</rule>
<!-- Documentation
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment/cmd:ResourceDocumentation">
<assert test ="cmd:title or url">display Facet component Documentation is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment/cmd:ResourceDocumentation</assert>
</rule>
<!-- OriginalSource
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:OriginalSource">display Facet element OriginalSource is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- CLARINCentre
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo">
<assert test ="cmd:CLARINCentre">display Facet element CLARINCentre is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDescription/cmd:GeneralInfo</assert>
</rule>
<!-- picture
-->
<rule context="cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment/cmd:ResourceDocumentation">
<assert test ="cmd:pictures/cmd:picture">display Facet element picture is lacking in cmd:CMD/cmd:Components/cmd:ClarinSoftwareDevelopment/cmd:ResourceDocumentation</assert>
</rule>
<!--
Modalities
License
organisation
-->
</pattern>
</schema>