| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xs:schema |
| 3 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 4 |
xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0" |
| 5 |
xmlns:vs="http://www.ivoa.net/xml/VODataService/v1.1" |
| 6 |
xmlns:vm="http://www.ivoa.net/xml/VOMetadata/v0.1" |
| 7 |
xmlns:doc="http://www.ivoa.net/xml/DocRegExt/v1.0" |
| 8 |
version="1.0" |
| 9 |
targetNamespace="http://www.ivoa.net/xml/DocRegExt/v1" |
| 10 |
elementFormDefault="unqualified" |
| 11 |
attributeFormDefault="unqualified" |
| 12 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 13 |
<xs:annotation> |
| 14 |
<xs:appinfo> |
| 15 |
<vm:schemaName>DocRegExt</vm:schemaName> |
| 16 |
<vm:schemaPrefix>xs</vm:schemaPrefix> |
| 17 |
<vm:targetPrefix>doc</vm:targetPrefix> |
| 18 |
</xs:appinfo> |
| 19 |
<xs:documentation> |
| 20 |
A description of a document/education-like resource. |
| 21 |
</xs:documentation> |
| 22 |
</xs:annotation> |
| 23 |
<xs:import namespace="http://www.ivoa.net/xml/VOResource/v1.0" |
| 24 |
schemaLocation="http://docs.g-vo.org/schemata/VOResource.xsd"/> |
| 25 |
<xs:import namespace="http://www.ivoa.net/xml/VODataService/v1.1" |
| 26 |
schemaLocation="http://docs.g-vo.org/schemata/VODataService.xsd"/> |
| 27 |
|
| 28 |
<xs:complexType name="Document"> |
| 29 |
<xs:annotation> |
| 30 |
<xs:documentation> |
| 31 |
A natural-language document. |
| 32 |
</xs:documentation> |
| 33 |
<xs:documentation> |
| 34 |
Natural-language documents suitable for registration include |
| 35 |
worked-out use cases, tutorials, courses, or even material like |
| 36 |
reference cards, provided they cover Virtual Observatory techniques. |
| 37 |
|
| 38 |
We consider all translations of a document as one resource. |
| 39 |
Individual translations are defined as doc:DocFile-typed |
| 40 |
capabilities. |
| 41 |
</xs:documentation> |
| 42 |
</xs:annotation> |
| 43 |
|
| 44 |
<xs:complexContent> |
| 45 |
<xs:extension base="vs:CatalogResource"/> |
| 46 |
</xs:complexContent> |
| 47 |
</xs:complexType> |
| 48 |
|
| 49 |
<xs:complexType name="Edition"> |
| 50 |
<xs:annotation> |
| 51 |
<xs:documentation> |
| 52 |
An “edition” (typically: translation) of the document. |
| 53 |
</xs:documentation> |
| 54 |
<xs:documentation> |
| 55 |
Although for a while, multiple editions of the document in one language |
| 56 |
may be given (corresponding perhaps to two “major” versions), in |
| 57 |
general, only the latest version of the document per language should be |
| 58 |
present. |
| 59 |
|
| 60 |
At least one interface with |
| 61 |
role="rendered" must be present, typcially of type doc:StaticFile. |
| 62 |
The access URL of the interface |
| 63 |
points to a rendered version of the edition (preferably in PDF, |
| 64 |
but other formats like HTML or Python notebooks are acceptable, too). |
| 65 |
|
| 66 |
Editors are strongly encouraged to also provide an |
| 67 |
interface with role="source", the accessURL of which should point |
| 68 |
to an editable version of the document, a version controlled |
| 69 |
repository, or the like. |
| 70 |
</xs:documentation> |
| 71 |
</xs:annotation> |
| 72 |
<xs:complexContent> |
| 73 |
<xs:extension base="vr:Capability"> |
| 74 |
<xs:sequence> |
| 75 |
<xs:element name="languageCode" type="xs:token" |
| 76 |
minOccurs="1" maxOccurs="1"> |
| 77 |
<xs:annotation> |
| 78 |
<xs:documentation> |
| 79 |
The language this document is (mainly) written in, |
| 80 |
as an BCP 47 language code. |
| 81 |
</xs:documentation> |
| 82 |
<xs:documentation> |
| 83 |
The country codes must be given in all lowercase. This |
| 84 |
results in strings like en, de, or, where regions |
| 85 |
might actually matter, es-es or es-mx. |
| 86 |
|
| 87 |
This language is also the language for locTitle, |
| 88 |
irrespective of that element's xml:lang setting. |
| 89 |
</xs:documentation> |
| 90 |
</xs:annotation> |
| 91 |
</xs:element> |
| 92 |
<xs:element name="locTitle" type="xs:token" |
| 93 |
minOccurs="0" maxOccurs="1"> |
| 94 |
<xs:annotation> |
| 95 |
<xs:documentation> |
| 96 |
The translated document's title in the language specified |
| 97 |
by the language sibling. |
| 98 |
</xs:documentation> |
| 99 |
<xs:documentation> |
| 100 |
It is recommended to set this element's xml:lang element |
| 101 |
to the same value as the language sibling. The reason |
| 102 |
xml:lang is not used in the first place is that with an |
| 103 |
extra element, enforcing that the content language is |
| 104 |
given is more straightforward. |
| 105 |
</xs:documentation> |
| 106 |
</xs:annotation> |
| 107 |
</xs:element> |
| 108 |
</xs:sequence> |
| 109 |
</xs:extension> |
| 110 |
</xs:complexContent> |
| 111 |
</xs:complexType> |
| 112 |
|
| 113 |
<xs:complexType name="StaticFile"> |
| 114 |
<xs:annotation> |
| 115 |
<xs:documentation> |
| 116 |
An endpoint that returns a single, constant document. |
| 117 |
</xs:documentation> |
| 118 |
<xs:documentation> |
| 119 |
Data providers are encouraged to provide a media type for |
| 120 |
that document. For archives containing multiple files, multiple media |
| 121 |
types can be given. Endpoints requiring further interaction |
| 122 |
before the desired document is retrieved (e.g., landing pages |
| 123 |
or version control interfaces) should use the vr:WebBrowser type. |
| 124 |
</xs:documentation> |
| 125 |
</xs:annotation> |
| 126 |
<xs:complexContent> |
| 127 |
<xs:extension base="vr:Interface"> |
| 128 |
<xs:sequence> |
| 129 |
<xs:element name="resultType" type="xs:string" |
| 130 |
minOccurs="0" maxOccurs="unbounded"> |
| 131 |
<xs:annotation> |
| 132 |
<xs:documentation> |
| 133 |
An RFC 6838 media type of the document returned, or of |
| 134 |
a component of the document for archives. |
| 135 |
</xs:documentation> |
| 136 |
</xs:annotation> |
| 137 |
</xs:element> |
| 138 |
</xs:sequence> |
| 139 |
</xs:extension> |
| 140 |
</xs:complexContent> |
| 141 |
</xs:complexType> |
| 142 |
</xs:schema> |