Contents
3 Nov 2004: VOResource-v0.10.xsd was updated with a bug fix to allow multiple occurances of the Type element. As a bug fix (that happens to be backward compatible), the version number is not changed.
VOResource, in general, refers to a family of schemas that includes the core schema (VOResource-v0.10) and a set of standard extensions. These schemas are have been released from the official IVOA schema distribution area. To validate documents compliant with this release you need each of the following schemas:
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 |
The following two extensions are extensions that define specific, standard tabular sky services.
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 |
You can download all the schemas (with the examples) in a single bundle. Two versions are available. When these packages are unpacked, all of the files are put in the current directory.
The primary change is the way extensions are handled: we have dropped the use of substitution groups and replaced them with the use of xsi:type. What looked like this in release v0.9...
<!-- 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.)
As mentioned above, VOResource defines no global elements. The proper root element is expected to be defined by the application, as necessary, via its own application schema. For example, a particular application might define the following schema:
<?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.
I![]() |
Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
![]() |
VOResource-v0.10-local.tar.gz | r2 r1 | manage | 20.5 K | 2004-11-03 - 16:25 | RayPlante | Alll schemas & examples, for local disk access |
![]() |
VOResource-v0.10.tar.gz | r2 r1 | manage | 20.4 K | 2004-11-03 - 16:23 | RayPlante | All schemas and examples in the v0.10 release |
![]() |
VOResource-v0.10-v0.9.xsl | r1 | manage | 58.3 K | 2004-07-14 - 20:16 | RayPlante | Converts v0.10 VOResource documents to v0.9 |
![]() |
VOResource-v0.9-v0.10.xsl | r2 r1 | manage | 55.6 K | 2004-10-13 - 22:43 | RayPlante | Converts v0.9 VOResource documents to v0.10 |
![]() |
VOResource-v0.10-local.zip | r2 r1 | manage | 28.4 K | 2004-11-03 - 16:27 | RayPlante | All schemas & examples, for local disk access |
![]() |
VOResource-v0.10.zip | r2 r1 | manage | 28.3 K | 2004-11-03 - 16:24 | RayPlante | All schemas and examples in the v0.10 release |
IVOA.net
Wiki Home
WebChanges
WebTopicList
WebStatistics
Twiki Meta & Help
IVOA
Know
Main
Sandbox
TWiki
Working Groups
Interest Groups
Committees