| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xs:schema targetNamespace="http://www.ivoa.net/xml/DataModel/v1" |
| 3 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 4 |
xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0" |
| 5 |
xmlns:vodm="http://www.ivoa.net/xml/DataModel/v1" |
| 6 |
xmlns:vm="http://www.ivoa.net/xml/VOMetadata/v0.1" |
| 7 |
elementFormDefault="unqualified" attributeFormDefault="unqualified" |
| 8 |
version="1.0" > |
| 9 |
|
| 10 |
<xs:annotation> |
| 11 |
<xs:appinfo> |
| 12 |
<vm:schemaName>DataModel</vm:schemaName> |
| 13 |
<vm:schemaPrefix>xs</vm:schemaPrefix> |
| 14 |
<vm:targetPrefix>vodm</vm:targetPrefix> |
| 15 |
</xs:appinfo> |
| 16 |
<xs:documentation> |
| 17 |
This schema defines a type for registering data models written |
| 18 |
in the VO-DML modelling language. |
| 19 |
</xs:documentation> |
| 20 |
</xs:annotation> |
| 21 |
|
| 22 |
<xs:import namespace="http://www.ivoa.net/xml/VOResource/v1.0" |
| 23 |
schemaLocation="http://docs.g-vo.org/schemata/VOResource.xsd"/> |
| 24 |
|
| 25 |
<xs:complexType name="DataModel"> |
| 26 |
<xs:annotation> |
| 27 |
<xs:documentation> |
| 28 |
a VO-DML-based data model. |
| 29 |
</xs:documentation> |
| 30 |
<xs:documentation> |
| 31 |
In addition to usual resource metadata, this defines the prefix |
| 32 |
and the URI at which to retrieve the formal data model definition. |
| 33 |
|
| 34 |
DataModels should have IsSupplementTo relationships to their |
| 35 |
defining standard. |
| 36 |
</xs:documentation> |
| 37 |
</xs:annotation> |
| 38 |
|
| 39 |
<xs:complexContent> |
| 40 |
<xs:extension base="vr:Resource"> |
| 41 |
<xs:sequence> |
| 42 |
|
| 43 |
<xs:element name="capability" type="vr:Capability" |
| 44 |
minOccurs="0" maxOccurs="unbounded"> |
| 45 |
<xs:annotation> |
| 46 |
<xs:documentation> |
| 47 |
a description of a capability in connection |
| 48 |
with the data model. |
| 49 |
</xs:documentation> |
| 50 |
<xs:documentation> |
| 51 |
This could include validators, online converters, |
| 52 |
or similar facilities. |
| 53 |
</xs:documentation> |
| 54 |
</xs:annotation> |
| 55 |
</xs:element> |
| 56 |
|
| 57 |
<xs:element name="dm-prefix" type="xs:string" |
| 58 |
minOccurs="1" maxOccurs="1"> |
| 59 |
<xs:annotation> |
| 60 |
<xs:documentation> |
| 61 |
the prefix clamined by the datamodel, including a |
| 62 |
training colon. |
| 63 |
</xs:documentation> |
| 64 |
<xs:documentation> |
| 65 |
Each data model can only claim one prefix. Before |
| 66 |
claiming a prefix, a search in the VO Registry must |
| 67 |
ascertain that the prefix is not claimed by another |
| 68 |
data model. |
| 69 |
</xs:documentation> |
| 70 |
</xs:annotation> |
| 71 |
</xs:element> |
| 72 |
|
| 73 |
<xs:element name="dm-uri" type="xs:string" |
| 74 |
minOccurs="1" maxOccurs="1"> |
| 75 |
<xs:annotation> |
| 76 |
<xs:documentation> |
| 77 |
The URI of the VO-DML definition of the data model. |
| 78 |
</xs:documentation> |
| 79 |
<xs:documentation> |
| 80 |
This URI should be constant by major version of the |
| 81 |
standard; see the VO-DML REC for deployment advice. |
| 82 |
</xs:documentation> |
| 83 |
</xs:annotation> |
| 84 |
</xs:element> |
| 85 |
|
| 86 |
</xs:sequence> |
| 87 |
</xs:extension> |
| 88 |
</xs:complexContent> |
| 89 |
</xs:complexType> |
| 90 |
</xs:schema> |