All Webs
| Schema | Description | Documentation |
|---|---|---|
| VOResource-v0.10.xsd requires VOResourceRelType-v0.10.xsd | core resource metadata | coming soon |
| VORegistry-v0.3.xsd | extension for describing registries and naming authorities | coming soon |
| VODataService-v0.5.xsd requires VODataServiceCoverage-v0.5.xsd | extension for describing data and services | coming soon |
| ConeSearch-v0.3.xsd | extension for describing Cone Search Services | service spec., schema docs: coming soon |
| SIA-v0.7.xsd | extension for describing Simple Image Access Services | service spec., schema docs: coming soon |
<!-- the old way -->
<VOResource xmlns="..." >
<vs:SkyService>
...
</vr:SkyService>
...now looks like this...
<!-- the new way -->
<resource xsi:type="vs:SkyService" xmlns="..." >
...
That is, you now see both specific type (SkyService) and the base concept it extends (resource) in the same element.
Here's an abridged list of changes made. (A more complete description can be found here.)
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://astroservices.org/ResourceApplication"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10"
xmlns:ra="http://astroservices.org/ResourceApplication"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="0.10">
<xs:annotation>
<xs:documenation> application schema using VOResource </xs:documenation>
</xs:annotation>
<xs:import namespace="http://www.ivoa.net/xml/VOResource/v0.10" />
<xs:element name="ResourceDescription" type="vr:Resource"/>
<xs:element name="Resources">
<xs:complexType>
<xs:sequence>
<xs:element ref="ra:ResourceDescription" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
In this example, two global elements have been defined, either which can be used as a root element. The application would use this simple schema to verify its documents.
Note that in the example instance documents listed above, an application schema is not needed. That's because the root element in each case specifies its type using an xsi:type attribute. According to the XML Schema standard, this is sufficient to verify the document.
It is expected that registry applications will use "resource" as the root element, just like in the examples listed above.
Attachment ![]() | Action | Size | Date | Uploaded by | Comment |
|---|---|---|---|---|---|
| | manage | 55.6 K | 13 Oct 2004 - 22:43 | RayPlante | Converts v0.9 VOResource documents to v0.10 |
| | manage | 58.3 K | 14 Jul 2004 - 20:16 | RayPlante | Converts v0.10 VOResource documents to v0.9 |
| | manage | 20.4 K | 03 Nov 2004 - 16:23 | RayPlante | All schemas and examples in the v0.10 release |
| | manage | 28.3 K | 03 Nov 2004 - 16:24 | RayPlante | All schemas and examples in the v0.10 release |
| | manage | 20.5 K | 03 Nov 2004 - 16:25 | RayPlante | Alll schemas & examples, for local disk access |
| | manage | 28.4 K | 03 Nov 2004 - 16:27 | RayPlante | All schemas & examples, for local disk access |