| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xs:schema targetNamespace="http://www.ivoa.net/xml/VORegistry/v1.0" |
| 3 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 4 |
xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0" |
| 5 |
xmlns:vg="http://www.ivoa.net/xml/VORegistry/v1.0" |
| 6 |
xmlns:vs="http://www.ivoa.net/xml/VODataService/v1.1" |
| 7 |
xmlns:vm="http://www.ivoa.net/xml/VOMetadata/v0.1" |
| 8 |
elementFormDefault="unqualified" attributeFormDefault="unqualified" |
| 9 |
version="1.1"> |
| 10 |
|
| 11 |
<xs:annotation> |
| 12 |
<xs:appinfo> |
| 13 |
<vm:schemaName>VORegistry</vm:schemaName> |
| 14 |
<vm:schemaPrefix>xs</vm:schemaPrefix> |
| 15 |
<vm:targetPrefix>vg</vm:targetPrefix> |
| 16 |
</xs:appinfo> |
| 17 |
<xs:documentation> |
| 18 |
An extension to the core resource metadata (VOResource) for |
| 19 |
describing registries and authority IDs. |
| 20 |
</xs:documentation> |
| 21 |
</xs:annotation> |
| 22 |
|
| 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="Registry"> |
| 29 |
<xs:annotation> |
| 30 |
<xs:documentation> |
| 31 |
a service that provides access to descriptions of resources. |
| 32 |
</xs:documentation> |
| 33 |
<xs:documentation> |
| 34 |
A registry is considered a publishing registry if it |
| 35 |
contains a capability element with xsi:type="vg:Harvest". |
| 36 |
It is considered a searchable registry if it contains a |
| 37 |
capability element with xsi:type="vg:Search". |
| 38 |
</xs:documentation> |
| 39 |
</xs:annotation> |
| 40 |
|
| 41 |
<xs:complexContent> |
| 42 |
<xs:extension base="vr:Service"> |
| 43 |
<xs:sequence> |
| 44 |
<xs:element name="full" type="xs:boolean"> |
| 45 |
<xs:annotation> |
| 46 |
<xs:documentation> |
| 47 |
If true, this registry attempts to collect all resource |
| 48 |
records known to the IVOA. |
| 49 |
</xs:documentation> |
| 50 |
<xs:documentation> |
| 51 |
A registry typically collects everything by harvesting |
| 52 |
from all registries listed in the IVOA Registry of |
| 53 |
Registries. |
| 54 |
</xs:documentation> |
| 55 |
</xs:annotation> |
| 56 |
</xs:element> |
| 57 |
|
| 58 |
<xs:element name="managedAuthority" type="vr:AuthorityID" |
| 59 |
minOccurs="0" maxOccurs="unbounded"> |
| 60 |
<xs:annotation> |
| 61 |
<xs:documentation> |
| 62 |
an authority identifier managed by the registry. |
| 63 |
</xs:documentation> |
| 64 |
<xs:documentation> |
| 65 |
Typically, this means the AuthorityIDs that originated |
| 66 |
(i.e. were first published by) this registry. Currently, |
| 67 |
only one registry can lay claim to an AuthorityID via |
| 68 |
this element at a time. |
| 69 |
</xs:documentation> |
| 70 |
</xs:annotation> |
| 71 |
</xs:element> |
| 72 |
|
| 73 |
<xs:element name="tableset" type="vs:TableSet" minOccurs="0"> |
| 74 |
<xs:annotation> |
| 75 |
<xs:documentation> |
| 76 |
For registry interfaces with a user-visible table |
| 77 |
structure, tableset allows its declaration. |
| 78 |
</xs:documentation> |
| 79 |
<xs:documentation> |
| 80 |
In case protocols implemented in different capabilities |
| 81 |
have conflicting requirements on tableset, the two |
| 82 |
capabilities should be considered belonging to separate |
| 83 |
resources. |
| 84 |
</xs:documentation> |
| 85 |
</xs:annotation> |
| 86 |
</xs:element> |
| 87 |
|
| 88 |
</xs:sequence> |
| 89 |
</xs:extension> |
| 90 |
</xs:complexContent> |
| 91 |
</xs:complexType> |
| 92 |
|
| 93 |
<xs:complexType name="Harvest"> |
| 94 |
<xs:annotation> |
| 95 |
<xs:documentation> |
| 96 |
The capabilities of the Registry Harvest implementation. |
| 97 |
</xs:documentation> |
| 98 |
</xs:annotation> |
| 99 |
|
| 100 |
<xs:complexContent> |
| 101 |
<xs:extension base="vr:Capability"> |
| 102 |
<xs:sequence> |
| 103 |
|
| 104 |
<xs:element name="maxRecords" type="xs:int"> |
| 105 |
<xs:annotation> |
| 106 |
<xs:documentation> |
| 107 |
The largest number of records that the registry search |
| 108 |
method will return. A value greater than one implies |
| 109 |
that an OAI continuation token will be provided when |
| 110 |
the limit is reached. A value of zero or less |
| 111 |
indicates that there is no explicit limit and |
| 112 |
thus, continuation tokens are not supported. |
| 113 |
</xs:documentation> |
| 114 |
</xs:annotation> |
| 115 |
</xs:element> |
| 116 |
|
| 117 |
</xs:sequence> |
| 118 |
</xs:extension> |
| 119 |
</xs:complexContent> |
| 120 |
</xs:complexType> |
| 121 |
|
| 122 |
<xs:complexType name="Search"> |
| 123 |
<xs:annotation> |
| 124 |
<xs:documentation> |
| 125 |
The capabilities of the Registry Search implementation. |
| 126 |
</xs:documentation> |
| 127 |
</xs:annotation> |
| 128 |
|
| 129 |
<xs:complexContent> |
| 130 |
<xs:extension base="vr:Capability"> |
| 131 |
<xs:sequence> |
| 132 |
|
| 133 |
<xs:element name="maxRecords" type="xs:int"> |
| 134 |
<xs:annotation> |
| 135 |
<xs:documentation> |
| 136 |
The largest number of records that the registry search |
| 137 |
method will return. A value of zero or less indicates |
| 138 |
that there is no explicit limit. |
| 139 |
</xs:documentation> |
| 140 |
</xs:annotation> |
| 141 |
</xs:element> |
| 142 |
|
| 143 |
<xs:element name="extensionSearchSupport" |
| 144 |
type="vg:ExtensionSearchSupport"> |
| 145 |
<xs:annotation> |
| 146 |
<xs:documentation> |
| 147 |
(deprecated) |
| 148 |
</xs:documentation> |
| 149 |
<xs:documentation> |
| 150 |
This was used in Registry Interfaces 1.0 to indicate |
| 151 |
what VOResource extensions a search interface supported. |
| 152 |
Modern search interfaces will indicate that through |
| 153 |
version, their tableset, or similar. |
| 154 |
</xs:documentation> |
| 155 |
</xs:annotation> |
| 156 |
</xs:element> |
| 157 |
|
| 158 |
<xs:element name="optionalProtocol" |
| 159 |
type="vg:OptionalProtocol" |
| 160 |
minOccurs="0" maxOccurs="unbounded"> |
| 161 |
<xs:annotation> |
| 162 |
<xs:documentation> |
| 163 |
(deprecated) |
| 164 |
</xs:documentation> |
| 165 |
<xs:documentation> |
| 166 |
This was used in Registry Interfaces 1.0 to indicate |
| 167 |
search protocol extensions. In 1.1, use multiple |
| 168 |
capabilities with the appropriate standardIDs |
| 169 |
to declare special search capabilities. |
| 170 |
</xs:documentation> |
| 171 |
</xs:annotation> |
| 172 |
</xs:element> |
| 173 |
</xs:sequence> |
| 174 |
</xs:extension> |
| 175 |
</xs:complexContent> |
| 176 |
</xs:complexType> |
| 177 |
|
| 178 |
<xs:simpleType name="ExtensionSearchSupport"> |
| 179 |
<xs:restriction base="xs:NMTOKEN"> |
| 180 |
<xs:enumeration value="core"> |
| 181 |
<xs:annotation> |
| 182 |
<xs:documentation> |
| 183 |
Only searches against the core VOResource metadata are |
| 184 |
supported. |
| 185 |
</xs:documentation> |
| 186 |
</xs:annotation> |
| 187 |
</xs:enumeration> |
| 188 |
<xs:enumeration value="partial"> |
| 189 |
<xs:annotation> |
| 190 |
<xs:documentation> |
| 191 |
Searches against some VOResource extension metadata are |
| 192 |
supported but not necessarily all that exist in the registry. |
| 193 |
</xs:documentation> |
| 194 |
</xs:annotation> |
| 195 |
</xs:enumeration> |
| 196 |
<xs:enumeration value="full"> |
| 197 |
<xs:annotation> |
| 198 |
<xs:documentation> |
| 199 |
Searches against all VOResource extension metadata contained |
| 200 |
in the registry are supported. |
| 201 |
</xs:documentation> |
| 202 |
</xs:annotation> |
| 203 |
</xs:enumeration> |
| 204 |
</xs:restriction> |
| 205 |
</xs:simpleType> |
| 206 |
|
| 207 |
<xs:simpleType name="OptionalProtocol"> |
| 208 |
<xs:restriction base="xs:NMTOKEN"> |
| 209 |
<xs:enumeration value="XQuery"> |
| 210 |
<xs:annotation> |
| 211 |
<xs:documentation> |
| 212 |
the XQuery (http://www.w3.org/TR/xquery/) protocol as defined |
| 213 |
in the VO Registry Interface standard. |
| 214 |
</xs:documentation> |
| 215 |
</xs:annotation> |
| 216 |
</xs:enumeration> |
| 217 |
</xs:restriction> |
| 218 |
</xs:simpleType> |
| 219 |
|
| 220 |
<xs:complexType name="OAIHTTP"> |
| 221 |
<xs:annotation> |
| 222 |
<xs:documentation> |
| 223 |
a description of the standard OAI PMH interface using HTTP |
| 224 |
(GET or POST) queries. |
| 225 |
</xs:documentation> |
| 226 |
<xs:documentation> |
| 227 |
the accessURL child element is the base URL for the OAI |
| 228 |
service as defined in section 3.1.1 of the OAI PMH |
| 229 |
standard. |
| 230 |
</xs:documentation> |
| 231 |
</xs:annotation> |
| 232 |
|
| 233 |
<xs:complexContent> |
| 234 |
<xs:extension base="vr:Interface"> |
| 235 |
<xs:sequence/> |
| 236 |
</xs:extension> |
| 237 |
</xs:complexContent> |
| 238 |
|
| 239 |
</xs:complexType> |
| 240 |
|
| 241 |
<xs:complexType name="OAISOAP"> |
| 242 |
<xs:annotation> |
| 243 |
<xs:documentation> |
| 244 |
a description of the standard OAI PMH interface using a SOAP |
| 245 |
Web Service interface. |
| 246 |
</xs:documentation> |
| 247 |
<xs:documentation> |
| 248 |
the accessURL child element is the service port location URL for |
| 249 |
the OAI SOAP Web Service. |
| 250 |
</xs:documentation> |
| 251 |
</xs:annotation> |
| 252 |
|
| 253 |
<xs:complexContent> |
| 254 |
<xs:extension base="vr:WebService"> |
| 255 |
<xs:sequence/> |
| 256 |
</xs:extension> |
| 257 |
</xs:complexContent> |
| 258 |
|
| 259 |
</xs:complexType> |
| 260 |
|
| 261 |
<xs:complexType name="Authority"> |
| 262 |
<xs:annotation> |
| 263 |
<xs:documentation> |
| 264 |
a naming authority; an assertion of control over a |
| 265 |
namespace represented by an authority identifier. |
| 266 |
</xs:documentation> |
| 267 |
</xs:annotation> |
| 268 |
<xs:complexContent> |
| 269 |
<xs:extension base="vr:Resource"> |
| 270 |
<xs:sequence> |
| 271 |
|
| 272 |
<xs:element name="managingOrg" type="vr:ResourceName"> |
| 273 |
<xs:annotation> |
| 274 |
<xs:documentation> |
| 275 |
the organization that manages or owns this authority. |
| 276 |
</xs:documentation> |
| 277 |
<xs:documentation> |
| 278 |
In most cases, this will be the same as the Publisher. |
| 279 |
</xs:documentation> |
| 280 |
</xs:annotation> |
| 281 |
</xs:element> |
| 282 |
|
| 283 |
</xs:sequence> |
| 284 |
</xs:extension> |
| 285 |
</xs:complexContent> |
| 286 |
</xs:complexType> |
| 287 |
|
| 288 |
</xs:schema> |