GEC11InstMeasWorkingSession: 072111_v0.3_MDOD.xsd

File 072111_v0.3_MDOD.xsd, 3.6 KB (added by hmussman@bbn.com, 13 years ago)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--MDOD.xsd
3  #################################################################
4 
5  File:    MDOD.rnc - Schema to describe GENI measurement objects
6  Version: 0.1
7 
8  #################################################################
9-->
10<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
11  targetNamespace="http://www.geni.net/measurement/base/20110721"
12  xmlns:im="http://www.geni.net/measurement/base/20110721">
13  <xs:include schemaLocation="MDOD_types.xsd"/>
14  <!-- External type definitions -->
15  <xs:element name="measurement_data_object_descriptor" type="im:MDOD_BaseContent"/>
16  <xs:complexType name="MDOD_BaseContent">
17    <xs:choice minOccurs="0" maxOccurs="unbounded">
18      <xs:element ref="im:identifier"/>
19      <xs:element ref="im:descriptor"/>
20      <xs:element ref="im:holder"/>
21    </xs:choice>
22  </xs:complexType>
23  <xs:element name="identifier" type="im:MDOD_IdentifierContent"/>
24  <xs:complexType name="MDOD_IdentifierContent">
25    <xs:choice minOccurs="0" maxOccurs="unbounded">
26      <xs:element ref="im:title"/>
27      <xs:element ref="im:abstract"/>
28      <xs:element ref="im:keywords"/>
29      <xs:element ref="im:annotation"/>
30    </xs:choice>
31    <xs:attributeGroup ref="im:MDOD_IdentifierEntry"/>
32  </xs:complexType>
33  <xs:attributeGroup name="MDOD_IdentifierEntry">
34    <xs:attributeGroup ref="im:MDOD_id"/>
35    <xs:attributeGroup ref="im:MDOD_rank"/>
36    <xs:attributeGroup ref="im:MDOD_type"/>
37    <xs:attributeGroup ref="im:MDOD_source"/>
38  </xs:attributeGroup>
39  <xs:element name="descriptor" type="im:MDOD_DescriptorContent"/>
40  <xs:complexType name="MDOD_DescriptorContent">
41    <xs:choice minOccurs="0" maxOccurs="unbounded">
42      <xs:element ref="im:duration"/>
43      <xs:element ref="im:category"/>
44      <xs:element ref="im:object_size"/>
45      <xs:element ref="im:flow_rate"/>
46      <xs:element ref="im:locator"/>
47      <xs:element ref="im:object_format"/>
48      <xs:element ref="im:interpretation_method"/>
49      <xs:element ref="im:encryption"/>
50      <xs:element ref="im:encryption_method"/>
51      <xs:element ref="im:annotation"/>
52    </xs:choice>
53    <xs:attributeGroup ref="im:MDOD_id"/>
54    <xs:attributeGroup ref="im:MDOD_level"/>
55    <xs:attributeGroup ref="im:MDOD_object_type"/>
56    <xs:attribute name="collection_location" type="xs:string"/>
57    <xs:attribute name="project_id" type="xs:string"/>
58    <xs:attribute name="slice_id" type="xs:string"/>
59    <xs:attribute name="experiment_id" type="xs:string"/>
60    <xs:attribute name="run_id" type="xs:string"/>
61    <xs:attribute name="target" type="xs:string"/>
62  </xs:complexType>
63  <xs:element name="holder" type="im:MDOD_HolderContent"/>
64  <xs:complexType name="MDOD_HolderContent">
65    <xs:choice minOccurs="0" maxOccurs="unbounded">
66      <xs:element ref="im:contact"/>
67      <xs:element ref="im:collection"/>
68      <xs:element ref="im:collection_policy"/>
69      <xs:element ref="im:anonymization"/>
70      <xs:element ref="im:anonymization_method"/>
71      <xs:element ref="im:sharing"/>
72      <xs:element ref="im:sharing_policy"/>
73      <xs:element ref="im:disposal"/>
74      <xs:element ref="im:disposal_policy"/>
75      <xs:element ref="im:transaction"/>
76    </xs:choice>
77    <xs:attributeGroup ref="im:MDOD_id"/>
78    <xs:attributeGroup ref="im:MDOD_order"/>
79    <xs:attributeGroup ref="im:MDOD_domain"/>
80    <xs:attributeGroup ref="im:MDOD_subdomain"/>
81    <xs:attribute name="project_id" type="xs:string"/>
82    <xs:attribute name="slice_id" type="xs:string"/>
83    <xs:attribute name="service_id" type="xs:string"/>
84    <xs:attribute name="user_id" type="xs:string"/>
85  </xs:complexType>
86</xs:schema>