1 """
2 The schema and XML namespaces for OAI/VOR documents.
3 """
4
5
6
7
8
9
10
11 from gavo import base
12 from gavo.utils.stanxml import Element, schemaURL, registerPrefix, xsiPrefix
13
14
17
18
19
20
21
22 registerPrefix("oai", "http://www.openarchives.org/OAI/2.0/",
23 schemaURL("OAI-PMH.xsd"))
24 registerPrefix("oai_dc", "http://www.openarchives.org/OAI/2.0/oai_dc/",
25 schemaURL("oai_dc.xsd"))
26 registerPrefix("ri",
27 "http://www.ivoa.net/xml/RegistryInterface/v1.0",
28 schemaURL("RegistryInterface-v1.0.xsd"))
29 registerPrefix("vg", "http://www.ivoa.net/xml/VORegistry/v1.0",
30 schemaURL("VORegistry-v1.0.xsd"))
31 registerPrefix("vr", "http://www.ivoa.net/xml/VOResource/v1.0",
32 schemaURL("VOResource-v1.1.xsd"))
33 registerPrefix("dc", "http://purl.org/dc/elements/1.1/",
34 schemaURL("simpledc20021212.xsd"))
35 registerPrefix("vs", "http://www.ivoa.net/xml/VODataService/v1.1",
36 schemaURL("VODataService-v1.1.xsd"))
37 registerPrefix("cs", "http://www.ivoa.net/xml/ConeSearch/v1.0",
38 schemaURL("ConeSearch-v1.1.xsd"))
39 registerPrefix("sia", "http://www.ivoa.net/xml/SIA/v1.1",
40 schemaURL("SIA-v1.2.xsd"))
41 registerPrefix("slap", "http://www.ivoa.net/xml/SLAP/v1.0",
42 schemaURL("SLAP-v1.1.xsd"))
43 registerPrefix("ssap", "http://www.ivoa.net/xml/SSA/v1.1",
44 schemaURL("SSA-v1.2.xsd"))
45 registerPrefix("tr", "http://www.ivoa.net/xml/TAPRegExt/v1.0",
46 schemaURL("TAPRegExt-v1.0.xsd"))
47 registerPrefix("vstd", "http://www.ivoa.net/xml/StandardsRegExt/v1.0",
48 schemaURL("StandardsRegExt-1.0.xsd"))
49 registerPrefix("doc", "http://www.ivoa.net/xml/DocRegExt/v1",
50 schemaURL("DocRegExt-v1.0.xsd"))
51
52
56
57
59 """is a container for classes modelling OAI elements.
60 """
63
64 - class PMH(OAIElement):
66
68
73
75
77
79
81
83
85
88
91
95
96 - class record(OAIElement): pass
97
99
101
103
105
107
109
111
113
115
117
119
121
123
124 - class schema(OAIElement): pass
125
127
128 - class set(OAIElement): pass
129
131
133
135
136
137
138
140 """is a container for OAI's Dublin Core metadata model.
141 """
144
145 - class dc(OAIDCElement):
147
148
150 """is a container for classes modelling elements from VO Resource.
151 """
155
166
169
172
175
176 - class title(VORElement): pass
177
179
183
185
187
189
190 - class content(VORElement): pass
191
193
195
196 - class date(VORElement):
198
200
202
204
206
208
209 - class name(VORElement): pass
210
212
213 - class email(VORElement): pass
214
216
217 - class logo(VORElement): pass
218
220
222
225
227
228 - class type(VORElement): pass
229
230 - class contentLevel(VORElement): pass
231
236
238
239
240
241 if self._isEmptyCache is None:
242 self._isEmptyCache = True
243 for c in self.iterChildrenOfType(VOR.relatedResource):
244 self._isEmptyCache = False
245 break
246 return self._isEmptyCache
247
249
253
256
261
268
271
274
276
279
281
286
287
289 """is a container for classes modelling elements from IVOA Registry Interface.
290 """
293
295
298
299
301 """is a container for classes modelling elements from VO Registry.
302 """
306
310
314
317
321
325
328
329
332
333
334 - class full(VOGElement): pass
335
337
339
341
343
345
347
349
350 - class managingOrg(VOGElement, _ResourceNameMixin): pass
351
352
354 """is a container for classes modelling elements from Dublin Core.
355 """
358
360
362
364
365 - class date(DCElement): pass
366
368
370
372
374
376
378
379 - class rights(DCElement): pass
380
381 - class source(DCElement): pass
382
384
385 - class title(DCElement): pass
386
387 - class type(DCElement): pass
388
389
391 """A container for classes modelling elements from VODataService 1.1.
392 """
396
400
405
407 _childSequence = ["name", "title", "description", "utype",
408 "table"]
409
410 - class title(VSElement): pass
411 - class utype(VSElement): pass
412
414 _a_type = None
415 _childSequence = ["name", "title", "description", "utype",
416 "column", "foreignKey"]
417
419 _childSequence = ["targetTable", "fkColumn", "description", "utype"]
420
422
425
428 - class flag(VSElement): pass
430
432
434
436
440
442
444
446
448
450 _a_isMIMEType = None
451
453
457
459
461
464
465 - class name(VSElement): pass
466
468
469 - class unit(VSElement): pass
470
471 - class ucd(VSElement): pass
472
474
478
481
484
488
492
493 - class column(VSElement): pass
494
502
505
509
514
515
517 """A container for classes modelling elements for describing simple
518 image access services.
519 """
523
529
534
538
540
542
544
546
548
550
551 - class long(SIAElement): pass
552
553 - class lat(SIAElement): pass
554
556
557 - class pos(SIAElement): pass
558
559 - class size(SIAElement): pass
560
561
563 """A container for elements describing Simple Cone Search services.
564 """
568
574
579
580 - class maxSR(SCSElement): pass
581
583
585
587 - class ra(SCSElement): pass
588 - class dec(SCSElement): pass
589 - class sr(SCSElement): pass
591
592
594 """A container for the elements of the SSA registry extension.
595 """
599
604
610
622
623
625 """A container for the elements of the SSA registry extension.
626 """
630
635
640
645
646
648 """A container for elements describing TAP services.
649 """
653
658
663
667
670
673
679
685
688
689 - class hard(TRElement):
691
695
698
699 - class alias(TRElement): pass
702 - class mime(TRElement): pass
703 - class name(TRElement): pass
711
712
714 """A container for elements from StandardsRegExt.
715 """
719
723
727
729 - class key(VSTDElement): pass
731 - class name(VSTDElement): pass
732
733
735 """A container for elements from DocRegExt.
736 """
740
744
749
752