| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xs:schema xmlns="http://www.ivoa.net/xml/VOEvent/v1.0" |
| 3 |
xmlns:stc="http://www.ivoa.net/xml/STC/stc-v1.20.xsd" |
| 4 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 5 |
|
| 6 |
targetNamespace="http://www.ivoa.net/xml/VOEvent/v1.0" |
| 7 |
elementFormDefault="qualified"> |
| 8 |
|
| 9 |
<xs:import namespace="http://www.ivoa.net/xml/STC/stc-v1.20.xsd" |
| 10 |
schemaLocation="http://docs.g-vo.org/schemata/stc-v1.20.xsd"/> |
| 11 |
|
| 12 |
|
| 13 |
<!-- VOEvent is the root element for describing observations |
| 14 |
of immediate astronomical events. For more information, see |
| 15 |
http://www.ivoa.net/twiki/bin/view/IVOA/IvoaVOEvent --> |
| 16 |
|
| 17 |
<xs:element name="VOEvent"> |
| 18 |
<xs:complexType> |
| 19 |
|
| 20 |
<xs:all> |
| 21 |
<xs:element ref="Who" minOccurs="0" /> |
| 22 |
<xs:element ref="What" minOccurs="0" /> |
| 23 |
<xs:element ref="WhereWhen" minOccurs="0" /> |
| 24 |
<xs:element ref="How" minOccurs="0" /> |
| 25 |
<xs:element ref="Why" minOccurs="0" /> |
| 26 |
<xs:element ref="Citations" minOccurs="0" /> |
| 27 |
<xs:element ref="Description" minOccurs="0" /> |
| 28 |
<xs:element ref="Reference" minOccurs="0" /> |
| 29 |
</xs:all> |
| 30 |
|
| 31 |
<xs:attribute name="version" type="xs:token" fixed="1.0" use="required" /> |
| 32 |
|
| 33 |
<xs:attribute name="id" type="xs:anyURI" use="required" /> |
| 34 |
|
| 35 |
<xs:attribute name="role" default="observation"> |
| 36 |
<xs:simpleType> |
| 37 |
<xs:restriction base="xs:token"> |
| 38 |
<xs:enumeration value="observation" /> |
| 39 |
<xs:enumeration value="prediction" /> |
| 40 |
<xs:enumeration value="test" /> |
| 41 |
</xs:restriction> |
| 42 |
</xs:simpleType> |
| 43 |
</xs:attribute> |
| 44 |
|
| 45 |
</xs:complexType> |
| 46 |
</xs:element> |
| 47 |
|
| 48 |
|
| 49 |
<!-- Who: Curation Metadata --> |
| 50 |
<xs:element name="Who"> |
| 51 |
<xs:complexType> |
| 52 |
|
| 53 |
<xs:choice maxOccurs="unbounded"> |
| 54 |
<xs:element name="PublisherID" type="xs:anyURI" /> |
| 55 |
<xs:element name="Date" type="xs:dateTime" /> |
| 56 |
<xs:element ref="Description" /> |
| 57 |
<xs:element ref="Reference" /> |
| 58 |
|
| 59 |
<xs:element name="Contact"> |
| 60 |
<xs:complexType> |
| 61 |
|
| 62 |
<xs:choice maxOccurs="unbounded"> |
| 63 |
<xs:element name="Username" type="xs:string" /> |
| 64 |
<xs:element name="Name" type="xs:string" /> |
| 65 |
<xs:element name="LastName" type="xs:string" /> |
| 66 |
<xs:element name="FirstName" type="xs:string" /> |
| 67 |
<xs:element name="Institution" type="xs:string" /> |
| 68 |
<xs:element name="Communication"> |
| 69 |
<xs:complexType> |
| 70 |
<xs:choice maxOccurs="unbounded"> |
| 71 |
<xs:element name="AddressLine" type="xs:string" /> |
| 72 |
<xs:element name="CountryCode" type="xs:token" /> |
| 73 |
<xs:element name="Email" type="xs:anyURI" /> |
| 74 |
<xs:element name="Fax" type="xs:token" /> |
| 75 |
<xs:element name="Telephone" type="xs:token" /> |
| 76 |
<xs:element name="Uri" type="xs:anyURI" /> |
| 77 |
</xs:choice> |
| 78 |
</xs:complexType> |
| 79 |
</xs:element> |
| 80 |
</xs:choice> |
| 81 |
|
| 82 |
<xs:attribute name="principalInvestigator" type="xs:boolean" default="false" /> |
| 83 |
<xs:attribute name="principalContact" type="xs:boolean" default="false" /> |
| 84 |
|
| 85 |
</xs:complexType> |
| 86 |
</xs:element> |
| 87 |
</xs:choice> |
| 88 |
|
| 89 |
</xs:complexType> |
| 90 |
</xs:element> |
| 91 |
|
| 92 |
|
| 93 |
<!-- What: Event Characterization --> |
| 94 |
<xs:element name="What"> |
| 95 |
<xs:complexType> |
| 96 |
<xs:choice maxOccurs="unbounded"> |
| 97 |
<xs:element ref="Param" /> |
| 98 |
<xs:element ref="Group" /> |
| 99 |
<xs:element ref="Description" /> |
| 100 |
<xs:element ref="Reference" /> |
| 101 |
</xs:choice> |
| 102 |
</xs:complexType> |
| 103 |
</xs:element> |
| 104 |
|
| 105 |
<xs:element name="Param"> |
| 106 |
<xs:complexType> |
| 107 |
<xs:attribute name="name" type="xs:token" /> |
| 108 |
<xs:attribute name="ucd" type="xs:token" /> |
| 109 |
<xs:attribute name="value" type="xs:string" /> |
| 110 |
<xs:attribute name="unit" type="xs:string" /> |
| 111 |
</xs:complexType> |
| 112 |
</xs:element> |
| 113 |
|
| 114 |
<xs:element name="Group"> |
| 115 |
<xs:complexType> |
| 116 |
<xs:choice maxOccurs="unbounded"> |
| 117 |
<xs:element ref="Param" /> |
| 118 |
<xs:element ref="Description" /> |
| 119 |
<xs:element ref="Reference" /> |
| 120 |
</xs:choice> |
| 121 |
<xs:attribute name="name" type="xs:string" /> |
| 122 |
<xs:attribute name="type" type="xs:string" /> |
| 123 |
</xs:complexType> |
| 124 |
</xs:element> |
| 125 |
|
| 126 |
|
| 127 |
<!-- WhereWhen: Space-Time Coordinates, uses the VO STC schema --> |
| 128 |
<xs:element name="WhereWhen"> |
| 129 |
<xs:complexType> |
| 130 |
<xs:all> |
| 131 |
<xs:element name="ObservationLocation" type="stc:observationLocationType" minOccurs="0" /> |
| 132 |
<xs:element ref="Description" minOccurs="0" /> |
| 133 |
<xs:element ref="Reference" minOccurs="0" /> |
| 134 |
</xs:all> |
| 135 |
</xs:complexType> |
| 136 |
</xs:element> |
| 137 |
|
| 138 |
|
| 139 |
<!-- How: Instrument Configuration, references to RTML documents --> |
| 140 |
<xs:element name="How"> |
| 141 |
<xs:complexType> |
| 142 |
<xs:choice maxOccurs="unbounded"> |
| 143 |
<xs:element ref="Description" /> |
| 144 |
<xs:element ref="Reference" /> |
| 145 |
</xs:choice> |
| 146 |
</xs:complexType> |
| 147 |
</xs:element> |
| 148 |
|
| 149 |
|
| 150 |
<!-- Why: Initial Scientific Assessment --> |
| 151 |
<xs:element name="Why"> |
| 152 |
<xs:complexType> |
| 153 |
<xs:choice maxOccurs="unbounded"> |
| 154 |
<xs:element name="Name" type="xs:string" /> |
| 155 |
<xs:element name="Concept" type="xs:string" /> |
| 156 |
<xs:element ref="Inference" /> |
| 157 |
<xs:element ref="Description" /> |
| 158 |
<xs:element ref="Reference" /> |
| 159 |
</xs:choice> |
| 160 |
<xs:attribute name="importance" type="smallFloat" /> |
| 161 |
<xs:attribute name="expires" type="xs:dateTime" /> |
| 162 |
</xs:complexType> |
| 163 |
</xs:element> |
| 164 |
|
| 165 |
<xs:element name="Inference"> |
| 166 |
<xs:complexType> |
| 167 |
<xs:choice maxOccurs="unbounded"> |
| 168 |
<xs:element name="Name" type="xs:string" /> |
| 169 |
<xs:element name="Concept" type="xs:string" /> |
| 170 |
<xs:element ref="Description" /> |
| 171 |
<xs:element ref="Reference" /> |
| 172 |
</xs:choice> |
| 173 |
<xs:attribute name="probability" type="smallFloat" /> |
| 174 |
<xs:attribute name="relation" type="xs:string" /> |
| 175 |
</xs:complexType> |
| 176 |
</xs:element> |
| 177 |
|
| 178 |
|
| 179 |
<!-- Citations: Follow-up Observations --> |
| 180 |
<xs:element name="Citations"> |
| 181 |
<xs:complexType> |
| 182 |
<xs:choice maxOccurs="unbounded"> |
| 183 |
|
| 184 |
<xs:element name="EventID"> |
| 185 |
<xs:complexType> |
| 186 |
<xs:simpleContent> |
| 187 |
<xs:extension base="xs:anyURI"> |
| 188 |
<xs:attribute name="cite" use="required"> |
| 189 |
<xs:simpleType> |
| 190 |
<xs:restriction base="xs:token"> |
| 191 |
<xs:enumeration value="followup" /> |
| 192 |
<xs:enumeration value="supersedes" /> |
| 193 |
<xs:enumeration value="retraction" /> |
| 194 |
</xs:restriction> |
| 195 |
</xs:simpleType> |
| 196 |
</xs:attribute> |
| 197 |
</xs:extension> |
| 198 |
</xs:simpleContent> |
| 199 |
</xs:complexType> |
| 200 |
</xs:element> |
| 201 |
|
| 202 |
<xs:element ref="Description" /> |
| 203 |
<xs:element ref="Reference" /> |
| 204 |
|
| 205 |
</xs:choice> |
| 206 |
</xs:complexType> |
| 207 |
</xs:element> |
| 208 |
|
| 209 |
|
| 210 |
<!-- Description: Human Oriented Content --> |
| 211 |
<xs:element name="Description" type="xs:string" /> |
| 212 |
|
| 213 |
|
| 214 |
<!-- Reference: External Content --> |
| 215 |
<xs:element name="Reference" fixed=""> |
| 216 |
<xs:complexType> |
| 217 |
<xs:simpleContent> |
| 218 |
<xs:extension base="xs:string"> |
| 219 |
<xs:attribute name="uri" type="xs:anyURI" use="required" /> |
| 220 |
<xs:attribute name="type" type="xs:string" /> |
| 221 |
<xs:attribute name="name" type="xs:string" /> |
| 222 |
</xs:extension> |
| 223 |
</xs:simpleContent> |
| 224 |
</xs:complexType> |
| 225 |
</xs:element> |
| 226 |
|
| 227 |
|
| 228 |
<!-- smallFloat: floating point value between zero and one, inclusive --> |
| 229 |
<xs:simpleType name="smallFloat"> |
| 230 |
<xs:restriction base="xs:float"> |
| 231 |
<xs:minInclusive value="0" /> |
| 232 |
<xs:maxInclusive value="1" /> |
| 233 |
</xs:restriction> |
| 234 |
</xs:simpleType> |
| 235 |
|
| 236 |
</xs:schema> |