| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <vo-dml:model xmlns:vo-dml="http://www.ivoa.net/xml/VODML/v1.0"> |
| 3 | <name>vo-dml</name> |
| 4 | <description> |
| 5 | This model defines types and roles that can be used when "mapping" VO-DML models. |
| 6 | For example it can be used to annotate data containers such as |
| 7 | VOTable, TAP_SCHEMA or FITS, to indicate the role that particular |
| 8 | mapping elements (identified by vodmlref-s) play in the mapping. |
| 9 | See the "mapping document" at |
| 10 | https://code.google.com/p/volute/source/browse/trunk/projects/dm/vo-dml/doc/MappingDMtoVOTable-v1.0.docx |
| 11 | for more information. (link to be updated) |
| 12 | </description> |
| 13 | <title>VO-DML Meta-Model</title> |
| 14 | <version>0.x</version> |
| 15 | <lastModified>2013-02-18T06:17:55</lastModified> |
| 16 | <import> |
| 17 | <name>ivoa</name> |
| 18 | <url>http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.vo-dml.xml</url> |
| 19 | <documentationURL>http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/ivoa/IVOA.html</documentationURL> |
| 20 | </import> |
| 21 | |
| 22 | <primitiveType> |
| 23 | <vodml-id>ref</vodml-id> |
| 24 | <name>ref</name> |
| 25 | <description> |
| 26 | Represents a VODMLREF as defined in the VO-DML/Schema, i.e. a reference to an element in some VO-DML model. |
| 27 | MUST obey the syntax for such references as defined in the VO-DML and mapping documents. |
| 28 | i.e. must be of form: model-name ":" vodml-id |
| 29 | ... |
| 30 | </description> |
| 31 | <extends> |
| 32 | <vodml-ref>ivoa:string</vodml-ref> |
| 33 | </extends> |
| 34 | </primitiveType> |
| 35 | |
| 36 | <objectType abstract="true"> |
| 37 | <vodml-id>Identifier</vodml-id> |
| 38 | <name>Identifier</name> |
| 39 | <description>This type represents an identifier as one or more string values, fields. |
| 40 | IMPORTANT this type allows multiple fields.</description> |
| 41 | <collection> |
| 42 | <vodml-id>Identifier.field</vodml-id> |
| 43 | <name>field</name> |
| 44 | <description>.... </description> |
| 45 | <datatype> |
| 46 | <vodml-ref>vo-dml:IdentifierField</vodml-ref> |
| 47 | </datatype> |
| 48 | <multiplicity> |
| 49 | <minOccurs>1</minOccurs> |
| 50 | <maxOccurs>-1</maxOccurs> |
| 51 | </multiplicity> |
| 52 | </collection> |
| 53 | </objectType> |
| 54 | |
| 55 | <objectType> |
| 56 | <vodml-id>ObjectIdentifier</vodml-id> |
| 57 | <name>ObjectIdentifier</name> |
| 58 | <description>This type represents an identifier of an ObjectTypeInstance.</description> |
| 59 | <extends> |
| 60 | <vodml-ref>vo-dml:Identifier</vodml-ref></extends> |
| 61 | </objectType> |
| 62 | |
| 63 | <objectType> |
| 64 | <vodml-id>ReferenceIdentifier</vodml-id> |
| 65 | <name>ReferenceIdentifier</name> |
| 66 | <description>This type represents an identifier on a Reference, identifying a referenced ObjectTypeInstance |
| 67 | through equality of its contents.</description> |
| 68 | <extends> |
| 69 | <vodml-ref>vo-dml:Identifier</vodml-ref></extends> |
| 70 | </objectType> |
| 71 | |
| 72 | <objectType> |
| 73 | <vodml-id>IdentifierField</vodml-id> |
| 74 | <name>IdentifierField</name> |
| 75 | <attribute> |
| 76 | <vodml-id>IdentifierField.value</vodml-id> |
| 77 | <name>value</name> |
| 78 | <datatype><vodml-ref>ivoa:string</vodml-ref></datatype> |
| 79 | <multiplicity> |
| 80 | <minOccurs>1</minOccurs> |
| 81 | <maxOccurs>1</maxOccurs> |
| 82 | </multiplicity> |
| 83 | </attribute> |
| 84 | <attribute> |
| 85 | <vodml-id>IdentifierField.ref</vodml-id> |
| 86 | <name>ref</name> |
| 87 | <description>Optional attribute that may be used to reference another element in an annotated document.</description> |
| 88 | <datatype><vodml-ref>ivoa:string</vodml-ref></datatype> |
| 89 | <multiplicity> |
| 90 | <minOccurs>0</minOccurs> |
| 91 | <maxOccurs>1</maxOccurs> |
| 92 | </multiplicity> |
| 93 | </attribute> |
| 94 | </objectType> |
| 95 | |
| 96 | |
| 97 | <objectType> |
| 98 | <vodml-id>Model</vodml-id> |
| 99 | <name>Model</name> |
| 100 | <description> |
| 101 | This type represents a usage of a data model spec in a serialisation, i.e. a model instance. |
| 102 | It has attributes allowing lookup of the actual spec, assigning a prefix to |
| 103 | refer to elements from the model using utypes (if different from the |
| 104 | model's name.) |
| 105 | And it has an (implicit) collection of (root) instances. |
| 106 | </description> |
| 107 | <attribute> |
| 108 | <vodml-id>Model.url</vodml-id> |
| 109 | <name>url</name> |
| 110 | <description>URL from which the VO-DML/XML representation of the model can be retrieved.</description> |
| 111 | <datatype> |
| 112 | <vodml-ref>ivoa:anyURI</vodml-ref> |
| 113 | </datatype> |
| 114 | <multiplicity> |
| 115 | <minOccurs>1</minOccurs> |
| 116 | <maxOccurs>1</maxOccurs> |
| 117 | </multiplicity> |
| 118 | </attribute> |
| 119 | <attribute> |
| 120 | <vodml-id>Model.ivoId</vodml-id> |
| 121 | <name>ivoId</name> |
| 122 | <description>Attribute identifying Model in some registry.</description> |
| 123 | <datatype> |
| 124 | <vodml-ref>ivoa:string</vodml-ref> |
| 125 | </datatype> |
| 126 | <multiplicity> |
| 127 | <minOccurs>1</minOccurs> |
| 128 | <maxOccurs>1</maxOccurs> |
| 129 | </multiplicity> |
| 130 | </attribute> |
| 131 | <attribute> |
| 132 | <vodml-id>Model.name</vodml-id> |
| 133 | <name>name</name> |
| 134 | <description>The (short) name of the model. |
| 135 | Used as prefix in vodmlref expressions pointing at elements in the model. |
| 136 | </description> |
| 137 | <datatype> |
| 138 | <vodml-ref>ivoa:string</vodml-ref> |
| 139 | </datatype> |
| 140 | <multiplicity> |
| 141 | <minOccurs>1</minOccurs> |
| 142 | <maxOccurs>1</maxOccurs> |
| 143 | </multiplicity> |
| 144 | </attribute> |
| 145 | </objectType> |
| 146 | |
| 147 | |
| 148 | <objectType abstract="true"> |
| 149 | <vodml-id>Instance</vodml-id> |
| 150 | <name>Instance</name> |
| 151 | <description> |
| 152 | This type represents an instance of a VO-DML Type. |
| 153 | </description> |
| 154 | <attribute> |
| 155 | <vodml-id>Instance.type</vodml-id> |
| 156 | <name>type</name> |
| 157 | <description>The type of the instance, represented by a vodmlref.</description> |
| 158 | <datatype> |
| 159 | <vodml-ref>vo-dml:ref</vodml-ref> |
| 160 | </datatype> |
| 161 | <multiplicity> |
| 162 | <minOccurs>1</minOccurs> |
| 163 | <maxOccurs>1</maxOccurs> |
| 164 | </multiplicity> |
| 165 | </attribute> |
| 166 | </objectType> |
| 167 | |
| 168 | |
| 169 | <objectType> |
| 170 | <vodml-id>ObjectTypeInstance</vodml-id> |
| 171 | <name>ObjectTypeInstance</name> |
| 172 | <description>This represents instances of object types in serialisations.</description> |
| 173 | <extends> |
| 174 | <vodml-ref>vo-dml:Instance</vodml-ref> |
| 175 | </extends> |
| 176 | <attribute> |
| 177 | <vodml-id>ObjectTypeInstance.ID</vodml-id> |
| 178 | <name>ID</name> |
| 179 | <description>Simple Identifier of an Object</description> |
| 180 | <datatype> |
| 181 | <vodml-ref>ivoa:string</vodml-ref> |
| 182 | </datatype> |
| 183 | <multiplicity> |
| 184 | <minOccurs>0</minOccurs> |
| 185 | <maxOccurs>1</maxOccurs> |
| 186 | </multiplicity> |
| 187 | </attribute> |
| 188 | <collection> |
| 189 | <vodml-id>ObjectTypeInstance.identifier</vodml-id> |
| 190 | <name>identifier</name> |
| 191 | <description>An identifier of the Object</description> |
| 192 | <datatype> |
| 193 | <vodml-ref>vo-dml:ObjectIdentifier</vodml-ref> |
| 194 | </datatype> |
| 195 | <multiplicity> |
| 196 | <minOccurs>0</minOccurs> |
| 197 | <maxOccurs>-1</maxOccurs> |
| 198 | </multiplicity> |
| 199 | </collection> |
| 200 | <reference> |
| 201 | <vodml-id>ObjectTypeInstance.container</vodml-id> |
| 202 | <name>container</name> |
| 203 | <description>Reference to an instance that contains this instance.</description> |
| 204 | <datatype> |
| 205 | <vodml-ref>vo-dml:ObjectTypeInstance</vodml-ref> |
| 206 | </datatype> |
| 207 | <multiplicity> |
| 208 | <minOccurs>0</minOccurs> |
| 209 | <maxOccurs>1</maxOccurs> |
| 210 | </multiplicity> |
| 211 | </reference> |
| 212 | </objectType> |
| 213 | |
| 214 | <objectType> |
| 215 | <vodml-id>Collection</vodml-id> |
| 216 | <name>Collection</name> |
| 217 | <description>Represents a collection of objecttype instances</description> |
| 218 | <collection> |
| 219 | <vodml-id>Collection.item</vodml-id> |
| 220 | <name>item</name> |
| 221 | <description>...</description> |
| 222 | <datatype><vodml-ref>vo-dml:Reference</vodml-ref></datatype> |
| 223 | <multiplicity> |
| 224 | <minOccurs>0</minOccurs> |
| 225 | <maxOccurs>-1</maxOccurs> |
| 226 | </multiplicity> |
| 227 | </collection> |
| 228 | </objectType> |
| 229 | |
| 230 | <objectType abstract="true"> |
| 231 | <vodml-id>Reference</vodml-id> |
| 232 | <name>Reference</name> |
| 233 | <description>This type represents a (lazy) reference to another object. |
| 234 | It represents the referenced object by wrapping its identifier. |
| 235 | Is able to provide explicit information on the type of the reference object, |
| 236 | so that this does not have to be inferred |
| 237 | from the reference. |
| 238 | </description> |
| 239 | </objectType> |
| 240 | |
| 241 | <objectType> |
| 242 | <vodml-id>GROUPref</vodml-id> |
| 243 | <name>GROUPref</name> |
| 244 | <description>This type represents a reference where a single @ref on a GROUP |
| 245 | in combination with the way that the referencing object is |
| 246 | represented is sufficient to identify the referenced object. |
| 247 | There are two possibilities, either the @ref identifies a singleton GROUP |
| 248 | or it references a GROUP in the same TABLE as the referrer, in which case the referenced object is assumed to be |
| 249 | stored in the same row as the referrer. |
| 250 | </description> |
| 251 | <extends> |
| 252 | <vodml-ref>vo-dml:Reference</vodml-ref></extends> |
| 253 | <attribute> |
| 254 | <vodml-id>GROUPref.ref</vodml-id> |
| 255 | <name>ref</name> |
| 256 | <description>ref identifying the GROUP representing the referenced Object.</description> |
| 257 | <datatype> |
| 258 | <vodml-ref>vo-dml:ref</vodml-ref> |
| 259 | </datatype> |
| 260 | <multiplicity> |
| 261 | <minOccurs>1</minOccurs> |
| 262 | <maxOccurs>1</maxOccurs> |
| 263 | </multiplicity> |
| 264 | </attribute> |
| 265 | </objectType> |
| 266 | |
| 267 | <objectType> |
| 268 | <vodml-id>ORMReference</vodml-id> |
| 269 | <name>ORMReference</name> |
| 270 | <description>This type represents the object-relational mapping of a reference. |
| 271 | It identifies the referenced object as being in the same document. |
| 272 | Having an identical identifier element, consisting of one or more fields. |
| 273 | </description> |
| 274 | <extends> |
| 275 | <vodml-ref>vo-dml:Reference</vodml-ref> |
| 276 | </extends> |
| 277 | <attribute> |
| 278 | <vodml-id>ORMReference.collection</vodml-id> |
| 279 | <name>collection</name> |
| 280 | <description>Optional ref identifying the collection on the identified object this child object belongs to.</description> |
| 281 | <datatype> |
| 282 | <vodml-ref>vo-dml:ref</vodml-ref> |
| 283 | </datatype> |
| 284 | <multiplicity> |
| 285 | <minOccurs>0</minOccurs> |
| 286 | <maxOccurs>1</maxOccurs> |
| 287 | </multiplicity> |
| 288 | </attribute> |
| 289 | <collection> |
| 290 | <vodml-id>ORMReference.ID</vodml-id> |
| 291 | <name>id</name> |
| 292 | <description>The ID of the referenced object.</description> |
| 293 | <datatype> |
| 294 | <vodml-ref>vo-dml:ReferenceIdentifier</vodml-ref> |
| 295 | </datatype> |
| 296 | <multiplicity> |
| 297 | <minOccurs>1</minOccurs> |
| 298 | <maxOccurs>1</maxOccurs> |
| 299 | </multiplicity> |
| 300 | </collection> |
| 301 | </objectType> |
| 302 | |
| 303 | <objectType> |
| 304 | <vodml-id>RemoteReference</vodml-id> |
| 305 | <name>RemoteReference</name> |
| 306 | <description>This type represents a Reference to an object stored remotely. |
| 307 | </description> |
| 308 | <extends> |
| 309 | <vodml-ref>vo-dml:Reference</vodml-ref></extends> |
| 310 | <attribute> |
| 311 | <vodml-id>Reference.ivoid</vodml-id> |
| 312 | <name>ivoid</name> |
| 313 | <description>The IVOIdentifier of the referenced object, assumed to be stored in an IVOA Registry.</description> |
| 314 | <datatype> |
| 315 | <vodml-ref>ivoa:anyURI</vodml-ref> |
| 316 | </datatype> |
| 317 | <multiplicity> |
| 318 | <minOccurs>0</minOccurs> |
| 319 | <maxOccurs>1</maxOccurs> |
| 320 | </multiplicity> |
| 321 | </attribute> |
| 322 | <attribute> |
| 323 | <vodml-id>Reference.url</vodml-id> |
| 324 | <name>ivoid</name> |
| 325 | <description>A URL allowing one to retrieve a representation of the referenced object. |
| 326 | May contain a fragment identifier. |
| 327 | Detailed structure left open. |
| 328 | </description> |
| 329 | <datatype> |
| 330 | <vodml-ref>ivoa:anyURI</vodml-ref> |
| 331 | </datatype> |
| 332 | <multiplicity> |
| 333 | <minOccurs>0</minOccurs> |
| 334 | <maxOccurs>1</maxOccurs> |
| 335 | </multiplicity> |
| 336 | </attribute> |
| 337 | </objectType> |
| 338 | |
| 339 | </vo-dml:model> |