/[volute]/trunk/projects/theory/snapdm/xsd/snap.xsd
ViewVC logotype

Contents of /trunk/projects/theory/snapdm/xsd/snap.xsd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 229 - (show annotations)
Tue Apr 15 16:30:21 2008 UTC (12 years, 7 months ago) by gerard.lemson
File size: 7192 byte(s)


1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3 xmlns="http://www.ivoa.net/xml/SNAP/v0.1/snap"
4 xmlns:base="http://www.ivoa.net/xml/dm/base/v0.1"
5 targetNamespace="http://www.ivoa.net/xml/SNAP/v0.1/snap">
6 <xsd:annotation>
7 <xsd:documentation>Generated from UML-&gt;XMI-&gt;intermediate-&gt;XSD.</xsd:documentation>
8 </xsd:annotation>
9 <xsd:import namespace="http://www.ivoa.net/xml/dm/base/v0.1"
10 schemaLocation="http://volute.googlecode.com/svn/trunk/projects/theory/snapdm/xsd/base.xsd"/>
11 <xsd:complexType name="SNAPResource" abstract="true">
12 <xsd:annotation>
13 <xsd:documentation>This is a thin copy of the Registry Resource model's Resource that borrowes some of its elements.
14 It *is not* a Registry Resource though.
15 In particular we want to refine the content model here.
16 Using a restriction of the res:Resource leads to problems, as we'd like to extend the Resource at the same time.
17 Hence we create a new type.</xsd:documentation>
18 <xsd:appinfo>xmiid=_12_1_1_8e0028f_1178789094562_459260_296</xsd:appinfo>
19 </xsd:annotation>
20 <xsd:sequence>
21 <xsd:element name="name" type="xsd:string" minOccurs="0"/>
22 <xsd:element name="description" type="xsd:string" minOccurs="0"/>
23 <xsd:element name="referenceURL" type="xsd:string" minOccurs="0"/>
24 <xsd:element name="created" type="xsd:dateTime" minOccurs="0"/>
25 <xsd:element name="updated" type="xsd:dateTime" minOccurs="0"/>
26 <xsd:element name="status" type="xsd:string" minOccurs="0"/>
27 <xsd:element name="curation" type="Curation"/>
28 </xsd:sequence>
29 </xsd:complexType>
30
31 <xsd:complexType name="Contact">
32 <xsd:annotation>
33 <xsd:documentation>Information that can be used for contacting someone
34 </xsd:documentation>
35 <xsd:appinfo>xmiid=_12_1_bd102fc_1206601369187_165113_153</xsd:appinfo>
36 </xsd:annotation>
37 <xsd:sequence>
38 <xsd:element name="name" type="xsd:string"/>
39 <xsd:element name="address" type="xsd:string"/>
40 <xsd:element name="email" type="xsd:string"/>
41 <xsd:element name="telephone" type="xsd:string"/>
42 </xsd:sequence>
43 </xsd:complexType>
44
45 <xsd:complexType name="Curation">
46 <xsd:annotation>
47 <xsd:documentation>Information regarding the general curation of the resource</xsd:documentation>
48 <xsd:appinfo>xmiid=_12_1_bd102fc_1206596758777_350876_163</xsd:appinfo>
49 </xsd:annotation>
50 <xsd:sequence>
51 <xsd:element name="publisher" type="xsd:string"/>
52 <xsd:element name="creator" type="xsd:string" minOccurs="0"/>
53 <xsd:element name="contributor" type="xsd:string" minOccurs="0"/>
54 <xsd:element name="date" type="xsd:dateTime" minOccurs="0"/>
55 <xsd:element name="version" type="xsd:string"/>
56 <xsd:element name="contact" type="base:Reference" minOccurs="0">
57 <xsd:annotation>
58 <xsd:appinfo>xmiidref=_12_1_bd102fc_1206601369187_165113_153</xsd:appinfo>
59 </xsd:annotation>
60 </xsd:element>
61 </xsd:sequence>
62 </xsd:complexType>
63
64 <xsd:complexType name="Value" abstract="true">
65 <xsd:annotation>
66 <xsd:documentation/>
67 <xsd:appinfo>xmiid=_12_1_2_8e0028f_1187611765484_254613_132</xsd:appinfo>
68 </xsd:annotation>
69 </xsd:complexType>
70
71 <xsd:complexType name="Quantity">
72 <xsd:annotation>
73 <xsd:documentation/>
74 <xsd:appinfo>xmiid=_12_1_8e0028f_1173262283140_574350_1278</xsd:appinfo>
75 </xsd:annotation>
76 <xsd:complexContent>
77 <xsd:extension base="Value">
78 <xsd:sequence>
79 <xsd:element name="value" type="xsd:float" minOccurs="0"/>
80 <xsd:element name="unit" type="xsd:string" minOccurs="0"/>
81 </xsd:sequence>
82 </xsd:extension>
83 </xsd:complexContent>
84 </xsd:complexType>
85
86 <xsd:simpleType name="Cardinality">
87 <xsd:annotation>
88 <xsd:documentation>Possible values for cardinality attributee of a Property or a Parameter</xsd:documentation>
89 <xsd:appinfo>xmiid=_12_1_2_8e0028f_1189430872609_809189_324</xsd:appinfo>
90 </xsd:annotation>
91 <xsd:restriction base="xsd:string">
92 <xsd:enumeration value="0..1">
93 <xsd:annotation>
94 <xsd:documentation>Corresponds to 'Optional element'</xsd:documentation>
95 </xsd:annotation>
96 </xsd:enumeration>
97 <xsd:enumeration value="1">
98 <xsd:annotation>
99 <xsd:documentation>Corresponds to 'Mandatory element'</xsd:documentation>
100 </xsd:annotation>
101 </xsd:enumeration>
102 <xsd:enumeration value="0..*">
103 <xsd:annotation>
104 <xsd:documentation>Corresponds to 'Multiple but maybe Optional element'</xsd:documentation>
105 </xsd:annotation>
106 </xsd:enumeration>
107 <xsd:enumeration value="1..*">
108 <xsd:annotation>
109 <xsd:documentation>Corresponds to 'Multiple with at least one element'</xsd:documentation>
110 </xsd:annotation>
111 </xsd:enumeration>
112 </xsd:restriction>
113 </xsd:simpleType>
114
115 <xsd:simpleType name="DataType">
116 <xsd:annotation>
117 <xsd:documentation/>
118 <xsd:appinfo>xmiid=_12_1_8e0028f_1173260658937_376469_768</xsd:appinfo>
119 </xsd:annotation>
120 <xsd:restriction base="xsd:string">
121 <xsd:enumeration value="boolean">
122 <xsd:annotation>
123 <xsd:documentation/>
124 </xsd:annotation>
125 </xsd:enumeration>
126 <xsd:enumeration value="complex">
127 <xsd:annotation>
128 <xsd:documentation/>
129 </xsd:annotation>
130 </xsd:enumeration>
131 <xsd:enumeration value="datetime">
132 <xsd:annotation>
133 <xsd:documentation/>
134 </xsd:annotation>
135 </xsd:enumeration>
136 <xsd:enumeration value="double">
137 <xsd:annotation>
138 <xsd:documentation/>
139 </xsd:annotation>
140 </xsd:enumeration>
141 <xsd:enumeration value="float">
142 <xsd:annotation>
143 <xsd:documentation/>
144 </xsd:annotation>
145 </xsd:enumeration>
146 <xsd:enumeration value="int">
147 <xsd:annotation>
148 <xsd:documentation/>
149 </xsd:annotation>
150 </xsd:enumeration>
151 <xsd:enumeration value="long">
152 <xsd:annotation>
153 <xsd:documentation/>
154 </xsd:annotation>
155 </xsd:enumeration>
156 <xsd:enumeration value="rational">
157 <xsd:annotation>
158 <xsd:documentation/>
159 </xsd:annotation>
160 </xsd:enumeration>
161 <xsd:enumeration value="short">
162 <xsd:annotation>
163 <xsd:documentation/>
164 </xsd:annotation>
165 </xsd:enumeration>
166 <xsd:enumeration value="string">
167 <xsd:annotation>
168 <xsd:documentation/>
169 </xsd:annotation>
170 </xsd:enumeration>
171 </xsd:restriction>
172 </xsd:simpleType>
173
174 </xsd:schema>

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26