Debian Codegraph @

gavo/resources/schemata/VOResource.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema targetNamespace="http://www.ivoa.net/xml/VOResource/v1.0"
3 xmlns="http://www.w3.org/2001/XMLSchema"
4 xmlns:xs="http://www.w3.org/2001/XMLSchema"
5 xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0"
6 xmlns:vm="http://www.ivoa.net/xml/VOMetadata/v0.1"
7 elementFormDefault="unqualified"
8 attributeFormDefault="unqualified"
9 version="1.1+wd1">
10
11 <!-- NOTE: target namespace ends in v1.0 in order to not break 1.0 clients.
12 This is nevertheless the 1.2 schema, as given by the version attribute.
13 For details, see http://ivoa.net/documents/Notes/XMLVers -->
14
15 <xs:annotation>
16 <xs:appinfo>
17 <vm:schemaName>VOResource</vm:schemaName>
18 <vm:schemaPrefix>xs</vm:schemaPrefix>
19 <vm:targetPrefix>vr</vm:targetPrefix>
20 </xs:appinfo>
21 <xs:documentation>
22 An XML Schema describing a resource to be used in the Virtual
23 Observatory Project.
24
25 Please see http://www.ivoa.net/documents/latest/VOResource.html
26 for further information on the standard governing this
27 schema.
28 </xs:documentation>
29 </xs:annotation>
30
31 <xs:simpleType name="UTCTimestamp">
32 <xs:annotation>
33 <xs:documentation>
34 A timestamp that is compliant with ISO8601 and fixes
35 the timezone indicator, if present, to "Z" (UTC). VOResource
36 writers should always include the timezone marker. VOResource
37 readers must interpret timestamps without a timezone marker as
38 UTC.
39 </xs:documentation>
40 </xs:annotation>
41
42 <xs:restriction base="xs:dateTime">
43 <xs:pattern value="\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?Z?"/>
44 </xs:restriction>
45 </xs:simpleType>
46
47 <xs:simpleType name="UTCDateTime">
48 <xs:annotation>
49 <xs:documentation>
50 A date stamp that can be given to a precision of either a
51 day (type xs:date) or seconds (type xs:dateTime). Where only a
52 date is given, it is to be interpreted as the span of the day
53 on the UTC timezone if such distinctions are relevant.
54 </xs:documentation>
55 </xs:annotation>
56 <xs:union memberTypes="xs:date vr:UTCTimestamp"/>
57 </xs:simpleType>
58
59 <xs:complexType name="Resource">
60 <xs:annotation>
61 <xs:documentation>
62 Any entity or component of a VO application that is
63 describable and identifiable by an IVOA Identifier.
64 </xs:documentation>
65 </xs:annotation>
66 <xs:sequence>
67 <xs:element name="validationLevel" type="vr:Validation"
68 minOccurs="0" maxOccurs="unbounded">
69 <xs:annotation>
70 <xs:documentation>
71 A numeric grade describing the quality of the
72 resource description, when applicable,
73 to be used to indicate the confidence an end-user
74 can put in the resource as part of a VO application
75 or research study.
76 </xs:documentation>
77 <xs:documentation>
78 See vr:Validation for an explanation of the
79 allowed levels.
80 </xs:documentation>
81 <xs:documentation>
82 Note that when this resource is a Service, this
83 grade applies to the core set of metadata.
84 Capability and interface metadata, as well as the
85 compliance of the service with the interface
86 standard, is rated by validationLevel tag in the
87 capability element (see the vr:Service complex
88 type).
89 </xs:documentation>
90 </xs:annotation>
91 </xs:element>
92
93 <xs:element name="title" type="xs:token">
94 <xs:annotation>
95 <xs:appinfo>
96 <vm:dcterm>Title</vm:dcterm>
97 </xs:appinfo>
98 <xs:documentation>
99 the full name given to the resource
100 </xs:documentation>
101 </xs:annotation>
102 </xs:element>
103
104 <xs:element name="shortName" type="vr:ShortName" minOccurs="0">
105 <xs:annotation>
106 <xs:documentation>
107 A short name or abbreviation given to the resource.
108 </xs:documentation>
109 <xs:documentation>
110 This name will be used where brief annotations for
111 the resource name are required. Applications may
112 use to refer to this resource in a compact display.
113 </xs:documentation>
114 <xs:documentation>
115 One word or a few letters is recommended. No more
116 than sixteen characters are allowed.
117 </xs:documentation>
118 </xs:annotation>
119 </xs:element>
120
121 <xs:element name="identifier" type="vr:IdentifierURI">
122 <xs:annotation>
123 <xs:appinfo>
124 <vm:dcterm>Identifier</vm:dcterm>
125 </xs:appinfo>
126 <xs:documentation>
127 Unambiguous reference to the resource conforming to the IVOA
128 standard for identifiers
129 </xs:documentation>
130 </xs:annotation>
131 </xs:element>
132
133 <xs:element name="altIdentifier" type="xs:anyURI"
134 minOccurs="0" maxOccurs="unbounded">
135 <xs:annotation>
136 <xs:documentation>
137 A reference to this resource in a non-IVOA identifier
138 scheme, e.g., DOI or bibcode. See the VOResource
139 specification for syntax constraints on these identifiers.
140 </xs:documentation>
141 </xs:annotation>
142 </xs:element>
143
144 <xs:element name="curation" type="vr:Curation">
145 <xs:annotation>
146 <xs:documentation>
147 Information regarding the general curation of the resource
148 </xs:documentation>
149 </xs:annotation>
150 </xs:element>
151
152 <xs:element name="content" type="vr:Content">
153 <xs:annotation>
154 <xs:documentation>
155 Information regarding the general content of the resource
156 </xs:documentation>
157 </xs:annotation>
158 </xs:element>
159
160 </xs:sequence>
161
162 <xs:attribute name="created" type="vr:UTCTimestamp" use="required">
163 <xs:annotation>
164 <xs:documentation>
165 The UTC date and time this resource metadata description
166 was created.
167 </xs:documentation>
168 <xs:documentation>
169 This timestamp must not be in the future. This time is
170 not required to be accurate; it should be at least
171 accurate to the day. Any non-significant time fields
172 should be set to zero.
173 </xs:documentation>
174 </xs:annotation>
175 </xs:attribute>
176
177 <xs:attribute name="updated" type="vr:UTCTimestamp" use="required">
178 <xs:annotation>
179 <xs:documentation>
180 The UTC date this resource metadata description was last updated.
181 </xs:documentation>
182 <xs:documentation>
183 This timestamp must not be in the future. This time is
184 not required to be accurate; it should be at least
185 accurate to the day. Any non-significant time fields
186 should be set to zero.
187 </xs:documentation>
188 </xs:annotation>
189 </xs:attribute>
190
191 <xs:attribute name="status" use="required">
192 <xs:annotation>
193 <xs:documentation>
194 a tag indicating whether this resource is believed to be still
195 actively maintained.
196 </xs:documentation>
197 </xs:annotation>
198 <xs:simpleType>
199 <xs:restriction base="xs:string">
200 <xs:enumeration value="active">
201 <xs:annotation>
202 <xs:documentation>
203 resource is believed to be currently maintained, and its
204 description is up to date (default).
205 </xs:documentation>
206 </xs:annotation>
207 </xs:enumeration>
208 <xs:enumeration value="inactive">
209 <xs:annotation>
210 <xs:documentation>
211 resource is apparently not being maintained at the present.
212 </xs:documentation>
213 </xs:annotation>
214 </xs:enumeration>
215 <xs:enumeration value="deleted">
216 <xs:annotation>
217 <xs:documentation>
218 resource publisher has explicitly deleted the resource.
219 </xs:documentation>
220 </xs:annotation>
221 </xs:enumeration>
222 </xs:restriction>
223 </xs:simpleType>
224 </xs:attribute>
225
226 <xs:attribute name="version" type="xs:token">
227 <xs:annotation>
228 <xs:documentation>
229 The VOResource XML schema version
230 against which this instance was written.
231 Implementors should set this to the value of the version
232 attribute of their schema's root (xs:schema) element.
233 Clients may assume version 1.0 if this attribute is
234 missing.
235 </xs:documentation>
236 </xs:annotation>
237 </xs:attribute>
238 </xs:complexType>
239
240 <xs:simpleType name="ValidationLevel">
241 <xs:annotation>
242 <xs:documentation>
243 The allowed values for describing the resource descriptions
244 and interfaces.
245 </xs:documentation>
246 <xs:documentation>
247 See the RM (v1.1, section 4) for more guidance on the use of
248 these values.
249 </xs:documentation>
250 </xs:annotation>
251 <xs:restriction base="xs:integer">
252 <xs:whiteSpace value="collapse"/>
253 <xs:enumeration value="0">
254 <xs:annotation>
255 <xs:documentation>
256 The resource has a description that is stored in a
257 registry. This level does not imply a compliant
258 description.
259 </xs:documentation>
260 </xs:annotation>
261 </xs:enumeration>
262 <xs:enumeration value="1">
263 <xs:annotation>
264 <xs:documentation>
265 In addition to meeting the level 0 definition, the
266 resource description conforms syntactically to this
267 standard and to the encoding scheme used.
268 </xs:documentation>
269 </xs:annotation>
270 </xs:enumeration>
271 <xs:enumeration value="2">
272 <xs:annotation>
273 <xs:documentation>
274 In addition to meeting the level 1 definition, the
275 resource description refers to an existing resource that
276 has demonstrated to be functionally compliant.
277 </xs:documentation>
278 <xs:documentation>
279 When the resource is a service, it is considered to exist
280 and functionally compliant if use of the
281 service accessURL responds without error when used as
282 intended by the resource. If the service is a standard
283 one, it must also demonstrate the response is syntactically
284 compliant with the service standard in order to be
285 considered functionally compliant. If the resource is
286 not a service, then the ReferenceURL must be shown to
287 return a document without error.
288 </xs:documentation>
289 </xs:annotation>
290 </xs:enumeration>
291 <xs:enumeration value="3">
292 <xs:annotation>
293 <xs:documentation>
294 In addition to meeting the level 2 definition, the
295 resource description has been inspected by a human and
296 judged to comply semantically to this standard as well
297 as meeting any additional minimum quality criteria (e.g.,
298 providing values for important but non-required
299 metadata) set by the human inspector.
300 </xs:documentation>
301 </xs:annotation>
302 </xs:enumeration>
303 <xs:enumeration value="4">
304 <xs:annotation>
305 <xs:documentation>
306 In addition to meeting the level 3 definition, the
307 resource description meets additional quality criteria
308 set by the human inspector and is therefore considered
309 an excellent description of the resource. Consequently,
310 the resource is expected to operate well as part of a
311 VO application or research study.
312 </xs:documentation>
313 </xs:annotation>
314 </xs:enumeration>
315 </xs:restriction>
316 </xs:simpleType>
317
318 <xs:complexType name="Validation">
319 <xs:annotation>
320 <xs:documentation>
321 a validation stamp combining a validation level and the ID of
322 the validator.
323 </xs:documentation>
324 </xs:annotation>
325 <xs:simpleContent>
326 <xs:extension base="vr:ValidationLevel">
327 <xs:attribute name="validatedBy" type="xs:anyURI"
328 use="required">
329 <xs:annotation>
330 <xs:documentation>
331 The IVOA ID of the registry or organisation that
332 assigned the validation level.
333 </xs:documentation>
334 </xs:annotation>
335 </xs:attribute>
336 </xs:extension>
337 </xs:simpleContent>
338 </xs:complexType>
339
340 <xs:simpleType name="AuthorityID">
341 <xs:restriction base="xs:token">
342 <xs:pattern value="[\w\d][\w\d\-_\.!~\*'\(\)\+=]{2,}"/>
343 </xs:restriction>
344 </xs:simpleType>
345
346 <xs:simpleType name="ResourceKey">
347 <xs:restriction base="xs:token">
348 <xs:pattern value="[\w\d\-_\.!~\*'\(\)\+=]+(/[\w\d\-_\.!~\*'\(\)\+=]+)*"/>
349 </xs:restriction>
350 </xs:simpleType>
351
352 <xs:simpleType name="IdentifierURI">
353 <xs:annotation>
354 <xs:documentation>
355 A reference to a registry record.
356 </xs:documentation>
357 <xs:documentation>
358 This type should only be used if what is referenced
359 must actually be a true Registry record; vr:IdentifierURI
360 does not allow query or fragment parts and is hence
361 not suitable for everything defined by IVOA Identifiers,
362 in particular not standard keys (which are used for versions
363 of standards, for instance) or dataset identifiers.
364
365 When something does not need to be locked down to a
366 reference to a single registry record, xs:anyURI should
367 be used.
368 </xs:documentation>
369 </xs:annotation>
370 <xs:restriction base="xs:anyURI">
371 <xs:pattern value="ivo://[\w\d][\w\d\-_\.!~\*'\(\)\+=]{2,}(/[\w\d\-_\.!~\*'\(\)\+=]+(/[\w\d\-_\.!~\*'\(\)\+=]+)*)?"/>
372 </xs:restriction>
373 </xs:simpleType>
374
375 <xs:simpleType name="ShortName">
376 <xs:annotation>
377 <xs:documentation>
378 A short name or abbreviation given to something.
379 </xs:documentation>
380 <xs:documentation>
381 This name will be used where brief annotations for
382 the resource name are required. Applications may
383 use to refer to this resource in a compact display.
384 </xs:documentation>
385 <xs:documentation>
386 One word or a few letters is recommended. No more
387 than sixteen characters are allowed.
388 </xs:documentation>
389 </xs:annotation>
390
391 <xs:restriction base="xs:token">
392 <xs:maxLength value="16"/>
393 </xs:restriction>
394 </xs:simpleType>
395
396 <xs:complexType name="Curation">
397 <xs:annotation>
398 <xs:documentation>
399 Information regarding the general curation of a resource
400 </xs:documentation>
401 </xs:annotation>
402
403 <xs:sequence>
404 <xs:element name="publisher" type="vr:ResourceName">
405 <xs:annotation>
406 <xs:appinfo>
407 <vm:dcterm>Publisher</vm:dcterm>
408 </xs:appinfo>
409 <xs:documentation>
410 Entity (e.g. person or organisation) responsible for making the
411 resource available
412 </xs:documentation>
413 </xs:annotation>
414 </xs:element>
415
416 <xs:element name="creator" type="vr:Creator"
417 minOccurs="0" maxOccurs="unbounded">
418 <xs:annotation>
419 <xs:appinfo>
420 <vm:dcterm>Creator</vm:dcterm>
421 </xs:appinfo>
422 <xs:documentation>
423 The entity/ies (e.g. person(s) or organisation) primarily responsible
424 for creating the content or constitution of the resource.
425 </xs:documentation>
426 <xs:documentation>
427 This is the equivalent of the author of a publication.
428 </xs:documentation>
429 </xs:annotation>
430 </xs:element>
431
432 <xs:element name="contributor" type="vr:ResourceName"
433 minOccurs="0" maxOccurs="unbounded">
434 <xs:annotation>
435 <xs:appinfo>
436 <vm:dcterm>Contributor</vm:dcterm>
437 </xs:appinfo>
438 <xs:documentation>
439 Entity responsible for contributions to the content of
440 the resource
441 </xs:documentation>
442 </xs:annotation>
443 </xs:element>
444
445 <xs:element name="date" type="vr:Date"
446 minOccurs="0" maxOccurs="unbounded">
447 <xs:annotation>
448 <xs:appinfo>
449 <vm:dcterm>Date</vm:dcterm>
450 </xs:appinfo>
451 <xs:documentation>
452 Date associated with an event in the life cycle of the
453 resource.
454 </xs:documentation>
455 <xs:documentation>
456 This will typically be associated with the creation or
457 availability (i.e., most recent release or version) of
458 the resource. Use the role attribute to clarify.
459 </xs:documentation>
460 </xs:annotation>
461 </xs:element>
462
463 <xs:element name="version" type="xs:token" minOccurs="0">
464 <xs:annotation>
465 <xs:documentation>
466 Label associated with creation or availablilty of a version of
467 a resource.
468 </xs:documentation>
469 </xs:annotation>
470 </xs:element>
471
472 <xs:element name="contact" type="vr:Contact" maxOccurs="unbounded">
473 <xs:annotation>
474 <xs:documentation>
475 Information that can be used for contacting someone with
476 regard to this resource.
477 </xs:documentation>
478 </xs:annotation>
479 </xs:element>
480
481 </xs:sequence>
482 </xs:complexType>
483
484 <xs:complexType name="ResourceName">
485 <xs:annotation>
486 <xs:documentation>
487 The name of a potentially registered resource. That is, the entity
488 referred to may have an associated identifier. Resources
489 not registered in the VO Registry can be referenced using the
490 altIdentifier attribute.
491 </xs:documentation>
492 </xs:annotation>
493
494 <xs:simpleContent>
495 <xs:extension base="xs:token">
496
497 <xs:attribute name="ivo-id" type="vr:IdentifierURI">
498 <xs:annotation>
499 <xs:documentation>
500 The IVOA identifier for the resource referred to.
501 </xs:documentation>
502 </xs:annotation>
503 </xs:attribute>
504
505 <xs:attribute name="altIdentifier" type="xs:anyURI">
506 <xs:annotation>
507 <xs:documentation>
508 A non-ivoid identifier for the resource referred to,
509 in particular a DOI. See the VOResource specification
510 for syntax constraints on these identifiers.
511 </xs:documentation>
512 </xs:annotation>
513 </xs:attribute>
514
515 </xs:extension>
516 </xs:simpleContent>
517 </xs:complexType>
518
519 <xs:complexType name="Contact">
520 <xs:annotation>
521 <xs:documentation>
522 Information allowing establishing contact, e.g., for purposes
523 of support.
524 </xs:documentation>
525 </xs:annotation>
526 <xs:sequence>
527 <xs:element name="name" type="vr:ResourceName">
528 <xs:annotation>
529 <xs:documentation>
530 the name or title of the contact person.
531 </xs:documentation>
532 <xs:documentation>
533 This can be a person's name, e.g. “John P. Jones” or
534 a group, “Archive Support Team”.
535 </xs:documentation>
536 </xs:annotation>
537 </xs:element>
538
539 <xs:element name="address" type="xs:token" minOccurs="0">
540 <xs:annotation>
541 <xs:documentation>the contact mailing address</xs:documentation>
542 <xs:documentation>
543 All components of the mailing address are given in one
544 string, e.g. “3700 San Martin Drive, Baltimore, MD 21218 USA”.
545 </xs:documentation>
546 </xs:annotation>
547 </xs:element>
548
549 <xs:element name="email" type="xs:token" minOccurs="0">
550 <xs:annotation>
551 <xs:documentation>the contact email address</xs:documentation>
552 </xs:annotation>
553 </xs:element>
554
555 <xs:element name="telephone" type="xs:token" minOccurs="0">
556 <xs:annotation>
557 <xs:documentation>the contact telephone number</xs:documentation>
558 <xs:documentation>
559 Complete international dialing codes should be given, e.g.
560 “+1-410-338-1234”.
561 </xs:documentation>
562 </xs:annotation>
563 </xs:element>
564
565 <xs:element name="altIdentifier" type="xs:anyURI" minOccurs="0"
566 maxOccurs="unbounded">
567 <xs:annotation>
568 <xs:documentation>
569 A reference to this entity in a non-IVOA identifier
570 scheme, e.g., orcid. See the VOResource specification
571 for syntax constraints on these identifiers.
572 </xs:documentation>
573 </xs:annotation>
574 </xs:element>
575
576 </xs:sequence>
577
578 <xs:attribute name="ivo-id" type="vr:IdentifierURI">
579 <xs:annotation>
580 <xs:documentation>
581 An IVOA identifier for the contact (typically when it is
582 an organization).
583 </xs:documentation>
584 </xs:annotation>
585 </xs:attribute>
586
587 </xs:complexType>
588
589 <xs:complexType name="Creator">
590 <xs:annotation>
591 <xs:documentation>
592 The entity (e.g. person or organisation) primarily responsible
593 for creating something
594 </xs:documentation>
595 </xs:annotation>
596
597 <xs:sequence>
598 <xs:element name="name" type="vr:ResourceName">
599 <xs:annotation>
600 <xs:documentation>
601 the name or title of the creating person or organisation
602 </xs:documentation>
603 <xs:documentation>
604 Users of the creation should use this name in
605 subsequent credits and acknowledgements.
606
607 This should be exactly one name, preferably last name
608 first (as in "van der Waals, Johannes Diderik").
609 </xs:documentation>
610 </xs:annotation>
611 </xs:element>
612
613 <xs:element name="logo" type="xs:anyURI" minOccurs="0">
614 <xs:annotation>
615 <xs:documentation>
616 URL pointing to a graphical logo, which may be used to help
617 identify the information source
618 </xs:documentation>
619 <xs:documentation>
620 A logo needs only be provided for the first occurrence.
621 When multiple logos are supplied via multiple creator
622 elements, the application is free to choose which to
623 use.
624 </xs:documentation>
625 </xs:annotation>
626 </xs:element>
627
628 <xs:element name="altIdentifier" type="xs:anyURI" minOccurs="0"
629 maxOccurs="unbounded">
630 <xs:annotation>
631 <xs:documentation>
632 A reference to this entity in a non-IVOA identifier
633 scheme, e.g., orcid. See the VOResource specification
634 for syntax constraints on these identifiers.
635 </xs:documentation>
636 </xs:annotation>
637 </xs:element>
638
639 </xs:sequence>
640
641 <xs:attribute name="ivo-id" type="vr:IdentifierURI">
642 <xs:annotation>
643 <xs:documentation>
644 An IVOA identifier for the creator (typically when it is
645 an organization).
646 </xs:documentation>
647 </xs:annotation>
648 </xs:attribute>
649
650 </xs:complexType>
651
652 <xs:complexType name="Date">
653 <xs:simpleContent>
654 <xs:extension base="vr:UTCDateTime">
655 <xs:attribute name="role" type="xs:string" default="representative">
656 <xs:annotation>
657 <xs:documentation>
658 A string indicating what the date refers to.
659 </xs:documentation>
660 <xs:documentation>
661 The value of role should be taken from the vocabulary
662 maintained at
663 http://www.ivoa.net/rdf/voresource/date_role.
664 This includes the traditional and deprecated strings
665 “creation”, indicating the date that the resource
666 itself was created, and “update”, indicating when the
667 resource was updated last, and the default value,
668 “representative”, meaning the date is a rough
669 representation of the time coverage of the resource.
670 The preferred terms from that vocabulary are the DataCite
671 Metadata terms. It is expected that the vocabulary will
672 be kept synchronous with the corresponding list of terms
673 in the DataCite Metadata schema.
674 </xs:documentation>
675 <xs:documentation>
676 Note that this date refers to the resource; dates describing
677 the metadata description of the resource are handled by
678 the “created” and “updated” attributes of the Resource
679 element.
680 </xs:documentation>
681 </xs:annotation>
682 </xs:attribute>
683 </xs:extension>
684 </xs:simpleContent>
685 </xs:complexType>
686
687 <xs:complexType name="Content">
688 <xs:annotation>
689 <xs:documentation>
690 Information regarding the general content of a resource
691 </xs:documentation>
692 </xs:annotation>
693
694 <xs:sequence>
695 <xs:element name="subject" type="xs:token" maxOccurs="unbounded">
696 <xs:annotation>
697 <xs:appinfo>
698 <vm:dcterm>Subject</vm:dcterm>
699 </xs:appinfo>
700 <xs:documentation>
701 a topic, object type, or other descriptive keywords
702 about the resource.
703 </xs:documentation>
704 <xs:documentation>
705 The content of subject SHOULD be the fragment identifier of
706 the URI of a concept in the IVOA UAT
707 (http://www.ivoa.net/rdf/uat/), that is, a string like
708 “virtual-observatories”.
709 </xs:documentation>
710 </xs:annotation>
711 </xs:element>
712
713 <xs:element name="description" type="xs:string">
714 <xs:annotation>
715 <xs:appinfo>
716 <vm:dcterm>Description</vm:dcterm>
717 </xs:appinfo>
718 <xs:documentation>
719 An account of the nature of the resource
720 </xs:documentation>
721 <xs:documentation>
722 The description may include but is not limited to an abstract,
723 table of contents, reference to a graphical representation of
724 content or a free-text account of the content.
725
726 Note that description is xs:string-typed, which means that
727 whitespace is considered significant. Clients should
728 render empty lines as paragraph boundaries and ideally
729 refrain from reflowing material that looks formatted (i.e.,
730 is broken to about 80-character lines).
731 </xs:documentation>
732 </xs:annotation>
733 </xs:element>
734
735 <xs:element name="source" type="vr:Source" minOccurs="0">
736 <xs:annotation>
737 <xs:appinfo>
738 <vm:dcterm>Source</vm:dcterm>
739 </xs:appinfo>
740 <xs:documentation>
741 a bibliographic reference from which the present resource is
742 derived or extracted.
743 </xs:documentation>
744 <xs:documentation>
745 This is intended to point to an article in the published
746 literature. An ADS Bibcode is recommended as a value when
747 available.
748 </xs:documentation>
749 </xs:annotation>
750 </xs:element>
751
752 <xs:element name="referenceURL">
753 <xs:annotation>
754 <xs:documentation>
755 URL pointing to a human-readable document describing this
756 resource.
757 </xs:documentation>
758 <xs:documentation>
759 In order to ensure that users can actually retrieve the
760 content, the schema enforces that this is an http or https
761 URI.
762 </xs:documentation>
763 </xs:annotation>
764 <xs:simpleType>
765 <xs:restriction base="xs:anyURI">
766 <xs:pattern value="https?://.*"/>
767 </xs:restriction>
768 </xs:simpleType>
769 </xs:element>
770
771 <xs:element name="type" type="xs:token"
772 minOccurs="0" maxOccurs="unbounded">
773 <xs:annotation>
774 <xs:appinfo>
775 <vm:dcterm>Type</vm:dcterm>
776 </xs:appinfo>
777 <xs:documentation>
778 Nature or genre of the content of the resource. Values for
779 type should be taken from the controlled vocabulary
780 http://www.ivoa.net/rdf/voresource/content_type
781 </xs:documentation>
782 </xs:annotation>
783 </xs:element>
784
785 <xs:element name="contentLevel" type="xs:token"
786 minOccurs="0" maxOccurs="unbounded">
787 <xs:annotation>
788 <xs:appinfo>
789 <vm:dcterm>Subject</vm:dcterm>
790 <vm:dcterm>Subject.ContentLevel</vm:dcterm>
791 </xs:appinfo>
792 <xs:documentation>
793 Description of the content level or intended audience.
794 Values for contentLevel should be taken from the controlled
795 vocabulary
796 http://www.ivoa.net/rdf/voresource/content_level.
797 </xs:documentation>
798 </xs:annotation>
799 </xs:element>
800
801 <xs:element name="relationship" type="vr:Relationship"
802 minOccurs="0" maxOccurs="unbounded">
803 <xs:annotation>
804 <xs:documentation>
805 a description of a relationship to another resource.
806 </xs:documentation>
807 </xs:annotation>
808 </xs:element>
809
810 </xs:sequence>
811
812 </xs:complexType>
813
814 <xs:complexType name="Source">
815 <xs:simpleContent>
816 <xs:extension base="xs:token">
817 <xs:attribute name="format" type="xs:string">
818 <xs:annotation>
819 <xs:documentation>
820 The reference format. Recognized values include “bibcode”,
821 referring to a standard astronomical bibcode
822 (http://cdsweb.u-strasbg.fr/simbad/refcode.html), and
823 “doi” for a Digital Object Identifier
824 </xs:documentation>
825 <xs:documentation>
826 Since format already defines how to interpret source's
827 values, these do not uses any prefixes, HTTP or otherwise.
828 A resource would declare VOResource 1.1 as its source by
829 writing 2018ivoa.spec.0625P with the bibcode format, and
830 writing 10.5479/ADS/bib/2018ivoa.spec.0625P with the doi
831 format.
832 </xs:documentation>
833 </xs:annotation>
834 </xs:attribute>
835 </xs:extension>
836 </xs:simpleContent>
837 </xs:complexType>
838
839 <xs:complexType name="Relationship">
840 <xs:annotation>
841 <xs:documentation>
842 A description of the relationship between one resource and one or
843 more other resources.
844 </xs:documentation>
845 </xs:annotation>
846
847 <xs:sequence>
848 <xs:element name="relationshipType" type="xs:token">
849 <xs:annotation>
850 <xs:documentation>
851 the named type of relationship
852 </xs:documentation>
853 <xs:documentation>
854 The value of relationshipType should be taken from the
855 vocabulary at
856 http://www.ivoa.net/rdf/voresource/relationship_type.
857 </xs:documentation>
858 </xs:annotation>
859 </xs:element>
860
861 <xs:element name="relatedResource" type="vr:ResourceName"
862 minOccurs="1" maxOccurs="unbounded">
863 <xs:annotation>
864 <xs:documentation>
865 the name of resource that this resource is related to.
866 </xs:documentation>
867 </xs:annotation>
868 </xs:element>
869 </xs:sequence>
870 </xs:complexType>
871
872 <!--
873 - The Organisation resource type
874 -->
875
876 <xs:complexType name="Organisation">
877 <xs:annotation>
878 <xs:documentation>
879 A named group of one or more persons brought together to pursue
880 participation in VO applications.
881 </xs:documentation>
882 <xs:documentation>
883 According to the Resource Metadata Recommendation, organisations
884 “can be hierarchical and range in size and scope. At a high level,
885 an organisation could be a university, observatory, or government
886 agency. At a finer level, it could be a specific scientific
887 project, mission, or individual researcher.”
888 </xs:documentation>
889 <xs:documentation>
890 The main purpose of an organisation as a registered resource is
891 to serve as a publisher of other resources.
892 </xs:documentation>
893 </xs:annotation>
894 <xs:complexContent>
895 <xs:extension base="vr:Resource">
896 <xs:sequence>
897
898 <xs:element name="facility" type="vr:ResourceName"
899 minOccurs="0" maxOccurs="unbounded">
900 <xs:annotation>
901 <xs:appinfo>
902 <vm:dcterm>Subject</vm:dcterm>
903 </xs:appinfo>
904 <xs:documentation>
905 the observatory or facility used to collect the data
906 contained or managed by this resource.
907 </xs:documentation>
908 </xs:annotation>
909 </xs:element>
910
911 <xs:element name="instrument" type="vr:ResourceName"
912 minOccurs="0" maxOccurs="unbounded">
913 <xs:annotation>
914 <xs:appinfo>
915 <vm:dcterm>Subject</vm:dcterm>
916 <vm:dcterm>Subject.Instrument</vm:dcterm>
917 </xs:appinfo>
918 <xs:documentation>
919 the Instrument used to collect the data contain or
920 managed by a resource.
921 </xs:documentation>
922 </xs:annotation>
923 </xs:element>
924
925 </xs:sequence>
926 </xs:extension>
927 </xs:complexContent>
928 </xs:complexType>
929
930 <!--
931 - The Service resource type
932 -->
933
934 <xs:complexType name="Service">
935 <xs:annotation>
936 <xs:documentation>
937 a resource that can be invoked by a client to perform some action
938 on its behalf.
939 </xs:documentation>
940 </xs:annotation>
941 <xs:complexContent>
942 <xs:extension base="vr:Resource">
943 <xs:sequence>
944
945 <xs:element name="rights" type="vr:Rights"
946 minOccurs="0" maxOccurs="unbounded">
947 <xs:annotation>
948 <xs:appinfo>
949 <vm:dcterm>Rights</vm:dcterm>
950 </xs:appinfo>
951 <xs:documentation>
952 Information about rights held in and over the resource.
953 </xs:documentation>
954 <xs:documentation>
955 Mainly for compatibility with DataCite, this element
956 is repeatable. Resource record authors are advised
957 that within the Virtual Observatory clients will
958 typically only display and/or use the rights
959 element occurring first and ignore later elements.
960 </xs:documentation>
961 </xs:annotation>
962 </xs:element>
963
964 <xs:element name="capability" type="vr:Capability"
965 minOccurs="0" maxOccurs="unbounded">
966 <xs:annotation>
967 <xs:documentation>
968 a description of a general capability of the
969 service and how to use it.
970 </xs:documentation>
971 <xs:documentation>
972 This describes a general function of the
973 service, usually in terms of a standard
974 service protocol (e.g. SIA), but not
975 necessarily so.
976 </xs:documentation>
977 <xs:documentation>
978 A service can have many capabilities
979 associated with it, each reflecting different
980 aspects of the functionality it provides.
981 </xs:documentation>
982 </xs:annotation>
983 </xs:element>
984 </xs:sequence>
985 </xs:extension>
986 </xs:complexContent>
987 </xs:complexType>
988
989 <xs:complexType name="Rights">
990 <xs:annotation>
991 <xs:documentation>
992 A statement of usage conditions. This will typically
993 include a license,
994 which should be given as a full string (e.g., Creative Commons
995 Attribution 3.0 International). Further free-text information,
996 e.g., on how to attribute or on embargo periods is allowed.
997 </xs:documentation>
998 </xs:annotation>
999 <xs:simpleContent>
1000 <xs:extension base="xs:token">
1001 <xs:attribute name="rightsURI" type="xs:anyURI">
1002 <xs:annotation>
1003 <xs:documentation>
1004 A URI identifier for a license
1005 </xs:documentation>
1006 <xs:documentation>
1007 Where formal licenses are available, this URI can
1008 reference the full license text. Use SPDX
1009 license URIs (https://spdx.org/licenses/) if at all
1010 possible.
1011 </xs:documentation>
1012 </xs:annotation>
1013 </xs:attribute>
1014 </xs:extension>
1015 </xs:simpleContent>
1016 </xs:complexType>
1017
1018 <xs:complexType name="Capability">
1019 <xs:annotation>
1020 <xs:documentation>
1021 a description of what the service does (in terms of
1022 context-specific behavior), and how to use it (in terms of
1023 an interface)
1024 </xs:documentation>
1025 </xs:annotation>
1026
1027 <xs:sequence>
1028 <xs:element name="validationLevel" type="vr:Validation"
1029 minOccurs="0" maxOccurs="unbounded">
1030 <xs:annotation>
1031 <xs:documentation>
1032 A numeric grade describing the quality of the
1033 capability description and interface, when applicable,
1034 to be used to indicate the confidence an end-user
1035 can put in the resource as part of a VO application
1036 or research study.
1037 </xs:documentation>
1038 <xs:documentation>
1039 See vr:ValidationLevel for an explanation of the
1040 allowed levels.
1041 </xs:documentation>
1042 </xs:annotation>
1043 </xs:element>
1044
1045 <xs:element name="description" type="xs:string" minOccurs="0">
1046 <xs:annotation>
1047 <xs:documentation>
1048 A human-readable description of what this capability
1049 provides as part of the over-all service
1050 </xs:documentation>
1051 <xs:documentation>
1052 Use of this optional element is especially encouraged when
1053 this capability is non-standard and is one of several
1054 capabilities listed.
1055 </xs:documentation>
1056 </xs:annotation>
1057 </xs:element>
1058
1059 <xs:element name="interface" type="vr:Interface"
1060 minOccurs="0" maxOccurs="unbounded">
1061 <xs:annotation>
1062 <xs:documentation>
1063 a description of how to call the service to access
1064 this capability
1065 </xs:documentation>
1066 <xs:documentation>
1067 Since the Interface type is abstract, one must describe
1068 the interface using a subclass of Interface, denoting
1069 it via xsi:type.
1070 </xs:documentation>
1071 <xs:documentation>
1072 Multiple occurrences can describe different interfaces to
1073 the logically same capability, i.e. data or functionality.
1074 That is, the inputs accepted and the output provides should
1075 be logically the same. For example, a WebBrowser interface
1076 given in addition to a WebService interface would simply
1077 provide an interactive, human-targeted interface to the
1078 underlying WebService interface.
1079 </xs:documentation>
1080 </xs:annotation>
1081 </xs:element>
1082 </xs:sequence>
1083
1084 <xs:attribute name="standardID" type="xs:anyURI">
1085 <xs:annotation>
1086 <xs:documentation>
1087 A URI identifier for a standard service.
1088 </xs:documentation>
1089 <xs:documentation>
1090 This provides a unique way to refer to a service
1091 specification standard, such as a Simple Image Access service.
1092 The use of an IVOA identifier here implies that a
1093 VOResource description of the standard is registered and
1094 accessible.
1095 </xs:documentation>
1096 </xs:annotation>
1097 </xs:attribute>
1098 </xs:complexType>
1099
1100 <xs:complexType name="Interface" abstract="true">
1101 <xs:annotation>
1102 <xs:documentation>
1103 A description of a service interface.
1104 </xs:documentation>
1105 <xs:documentation>
1106 Since this type is abstract, one must use an Interface subclass
1107 to describe an actual interface.
1108 </xs:documentation>
1109 <xs:documentation>
1110 Additional interface subtypes (beyond WebService and WebBrowser) are
1111 defined in the VODataService schema.
1112 </xs:documentation>
1113 </xs:annotation>
1114
1115 <xs:sequence>
1116 <xs:element name="accessURL" type="vr:AccessURL"
1117 minOccurs="1" maxOccurs="unbounded">
1118 <xs:annotation>
1119 <xs:documentation>
1120 The URL (or base URL) that a client uses to access the
1121 service. How this URL is to be interpreted and used
1122 depends on the specific Interface subclass
1123 </xs:documentation>
1124 <xs:documentation>
1125 Although the schema allows multiple occurrences of
1126 accessURL, multiple accessURLs are deprecated. Each
1127 interface should have exactly one access URL. Where an
1128 interface has several mirrors, the accessURL should
1129 reflect the “primary” (fastest, best-connected,
1130 best-maintained) site, the one that non-sophisticated
1131 clients will go to.
1132
1133 Additional accessURLs should be put into mirrorURLs.
1134 Advanced clients can retrieve the mirrorURLs and
1135 empirically determine interfaces closer to their
1136 network location.
1137 </xs:documentation>
1138 </xs:annotation>
1139 </xs:element>
1140
1141 <xs:element name="mirrorURL" type="vr:MirrorURL"
1142 minOccurs="0" maxOccurs="unbounded">
1143 <xs:annotation>
1144 <xs:documentation>
1145 A (base) URL of a mirror of this interface. As with
1146 accessURL, how this URL is to be interpreted and used
1147 depends on the specific Interface subclass
1148 </xs:documentation>
1149 <xs:documentation>
1150 This is intended exclusively for true mirrors, i.e.,
1151 interfaces that are functionally identical to the
1152 original interface and that are operated by the same
1153 publisher. Other arrangements should be represented as
1154 separate services linked by mirror-of relationships.
1155 </xs:documentation>
1156 </xs:annotation>
1157 </xs:element>
1158
1159 <xs:element name="securityMethod" type="vr:SecurityMethod"
1160 minOccurs="0" maxOccurs="1">
1161 <xs:annotation>
1162 <xs:documentation>
1163 The mechanism the client must employ to authenticate
1164 to the service.
1165 </xs:documentation>
1166 <xs:documentation>
1167 Services not requiring authentication must provide
1168 at least one interface definition without a
1169 securityMethod defined.
1170 </xs:documentation>
1171 </xs:annotation>
1172 </xs:element>
1173
1174 <xs:element name="testQueryString" type="xs:token"
1175 minOccurs="0" maxOccurs="1">
1176 <xs:annotation>
1177 <xs:documentation>
1178 Test data for exercising the service.
1179 </xs:documentation>
1180 <xs:documentation>
1181 This contains data that can be passed to the interface to
1182 retrieve a non-empty result. This can be used by validators
1183 within test suites.
1184
1185 Exactly how agents should use the data contained in
1186 the testQueryString depends on the concrete interface class.
1187 For interfaces employing the HTTP GET method, however,
1188 this will typically be urlencoded parameters (as for
1189 the application/x-www-form-urlencoded media type).
1190 </xs:documentation>
1191 </xs:annotation>
1192 </xs:element>
1193 </xs:sequence>
1194
1195 <xs:attribute name="version" type="xs:string">
1196 <xs:annotation>
1197 <xs:documentation>
1198 The version of a standard interface specification that this
1199 interface complies with. Most VO standards indicate the
1200 version in the standardID attribute of the capability. For
1201 these standards, the version attribute should not be used.
1202 </xs:documentation>
1203 </xs:annotation>
1204 </xs:attribute>
1205
1206 <xs:attribute name="role" type="xs:NMTOKEN">
1207 <xs:annotation>
1208 <xs:documentation>
1209 A tag name that identifies the role the interface plays
1210 in the particular capability. If the value is equal to
1211 "std" or begins with "std:", then the interface refers
1212 to a standard interface defined by the standard
1213 referred to by the capability's standardID attribute.
1214 </xs:documentation>
1215 <xs:documentation>
1216 For an interface complying with some registered
1217 standard (i.e. has a legal standardID), the role can be
1218 matched against interface roles enumerated in standard
1219 resource record. The interface descriptions in
1220 the standard record can provide default descriptions
1221 so that such details need not be repeated here.
1222 </xs:documentation>
1223 </xs:annotation>
1224 </xs:attribute>
1225 </xs:complexType>
1226
1227 <xs:complexType name="AccessURL">
1228 <xs:simpleContent>
1229 <xs:extension base="xs:anyURI">
1230 <xs:attribute name="use">
1231 <xs:annotation>
1232 <xs:documentation>
1233 A flag indicating whether this should be interpreted as a base
1234 URL, a full URL, or a URL to a directory that will produce a
1235 listing of files.
1236 </xs:documentation>
1237 <xs:documentation>
1238 The default value assumed when one is not given depends on the
1239 context.
1240 </xs:documentation>
1241 </xs:annotation>
1242 <xs:simpleType>
1243 <xs:restriction base="xs:NMTOKEN">
1244 <xs:enumeration value="full">
1245 <xs:annotation>
1246 <xs:documentation>
1247 Assume a full URL--that is, one that can be invoked
1248 directly without alteration. This usually returns a
1249 single document or file.
1250 </xs:documentation>
1251 </xs:annotation>
1252 </xs:enumeration>
1253 <xs:enumeration value="base">
1254 <xs:annotation>
1255 <xs:documentation>
1256 Assume a base URL--that is, one requiring an extra portion
1257 to be appended before being invoked.
1258 </xs:documentation>
1259 </xs:annotation>
1260 </xs:enumeration>
1261 <xs:enumeration value="dir">
1262 <xs:annotation>
1263 <xs:documentation>
1264 Assume URL points to a directory that will return a listing
1265 of files.
1266 </xs:documentation>
1267 </xs:annotation>
1268 </xs:enumeration>
1269 </xs:restriction>
1270 </xs:simpleType>
1271 </xs:attribute>
1272 </xs:extension>
1273 </xs:simpleContent>
1274 </xs:complexType>
1275
1276 <xs:complexType name="MirrorURL">
1277 <xs:annotation>
1278 <xs:documentation>
1279 A URL of a mirror (i.e., a functionally identical additional
1280 service interface) to
1281 </xs:documentation>
1282 </xs:annotation>
1283 <xs:simpleContent>
1284 <xs:extension base="xs:anyURI">
1285 <xs:attribute name="title" type="xs:token">
1286 <xs:annotation>
1287 <xs:documentation>
1288 A terse, human-readable phrase indicating the function
1289 or location of this mirror, e.g., “Primary Backup” or
1290 “European Mirror”.
1291 </xs:documentation>
1292 </xs:annotation>
1293 </xs:attribute>
1294 </xs:extension>
1295 </xs:simpleContent>
1296 </xs:complexType>
1297
1298 <xs:complexType name="SecurityMethod">
1299 <xs:annotation>
1300 <xs:documentation>
1301 a description of a security mechanism.
1302 </xs:documentation>
1303 <xs:documentation>
1304 This type only allows one to refer to the mechanism via a
1305 URI. Derived types would allow for more metadata.
1306 </xs:documentation>
1307 </xs:annotation>
1308
1309 <xs:sequence/>
1310
1311 <xs:attribute name="standardID" type="xs:anyURI">
1312 <xs:annotation>
1313 <xs:documentation>
1314 A URI identifier for a standard security mechanism.
1315 </xs:documentation>
1316 <xs:documentation>
1317 This provides a unique way to refer to a security
1318 specification standard. The use of an IVOA identifier here
1319 implies that a VOResource description of the standard is
1320 registered and accessible.
1321 </xs:documentation>
1322 </xs:annotation>
1323 </xs:attribute>
1324
1325 </xs:complexType>
1326
1327 <xs:complexType name="WebBrowser">
1328 <xs:annotation>
1329 <xs:documentation>
1330 A (form-based) interface intended to be accessed interactively
1331 by a user via a web browser.
1332 </xs:documentation>
1333 <xs:documentation>
1334 The accessURL represents the URL of the web form itself.
1335 </xs:documentation>
1336 </xs:annotation>
1337
1338 <xs:complexContent>
1339 <xs:extension base="vr:Interface">
1340 <xs:sequence/>
1341 </xs:extension>
1342 </xs:complexContent>
1343 </xs:complexType>
1344
1345 <xs:complexType name="WebService">
1346 <xs:annotation>
1347 <xs:documentation>
1348 A Web Service that is describable by a WSDL document.
1349 </xs:documentation>
1350 <xs:documentation>
1351 The accessURL element gives the Web Service's endpoint URL.
1352 </xs:documentation>
1353 </xs:annotation>
1354
1355 <xs:complexContent>
1356 <xs:extension base="vr:Interface">
1357 <xs:sequence>
1358 <xs:element name="wsdlURL" type="xs:anyURI"
1359 minOccurs="0" maxOccurs="unbounded">
1360 <xs:annotation>
1361 <xs:documentation>
1362 The location of the WSDL that describes this
1363 Web Service. If not provided, the location is
1364 assumed to be the accessURL with "?wsdl" appended.
1365 </xs:documentation>
1366 <xs:documentation>
1367 Multiple occurrences should represent mirror copies of
1368 the same WSDL file.
1369 </xs:documentation>
1370 </xs:annotation>
1371 </xs:element>
1372 </xs:sequence>
1373 </xs:extension>
1374 </xs:complexContent>
1375 </xs:complexType>
1376
1377 </xs:schema>