BonFIRE logo and link to main BonFIRE site

Previous topic

VM Images

Next topic

Experiment Lifecycle

This Page

XML Schema DefinitionΒΆ

Here is the XSD schema that describe all the elements and attributes supported in the Media Type. The schema is splitted into 2 files. You can download the first file, and second file .

The following is the first file.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://api.bonfire-project.eu/doc/schemas/occi">
  <xs:element name="experiment">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:description"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:user_id" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:walltime" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:status" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:routing_key" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:aggregator_password" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:networks" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:computes" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:storages" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:routers" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:site_links" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:slice_urn" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:slice_user_urn" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:link" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:aws_access_key_id" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:aws_secret_access_key" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:groups" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:reservation" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:string" name="href" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="network">
    <xs:complexType mixed="true">
      <xs:choice maxOccurs="unbounded" minOccurs="0">
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:address">
          <xs:annotation>
            <xs:documentation>&gt;&lt;cidr&gt;10.0.0.1/24&lt;/cidr&gt; //</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:size">
          <xs:annotation>
            <xs:documentation>&gt;&lt;cidr&gt;/24&lt;/cidr&gt; //</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:visibility">
          <xs:annotation>
            <xs:documentation>&lt;cidr&gt;10.0.0.1/24&lt;/cidr&gt;  &lt;cidr&gt;10.0.0.2/24&lt;/cidr&gt;  public|private</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:description"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:link"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:id"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:state"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:network_link"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:vlan"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:location">
          <xs:annotation>
            <xs:documentation>name&gt;Network name&lt;/name</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:groups"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:lossrate">
          <xs:annotation>
            <xs:documentation>VW specific - must be a percentage between 0 and 1</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:latency">
          <xs:annotation>
            <xs:documentation>VW specific - milliseconds</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:bandwidth">
          <xs:annotation>
            <xs:documentation>VW specific - Mbps</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
      <xs:attribute type="xs:string" name="href" use="optional"/>
      <xs:attribute type="xs:string" name="name" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="storage">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:description" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:groups" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:type" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:size" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:fstype" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:persistent" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:public" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:state" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:link" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:string" name="href" use="optional"/>
      <xs:attribute type="xs:string" name="name" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="compute">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:description" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:instance_type" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:state" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:cpu" minOccurs="0">
          <xs:annotation>
            <xs:documentation>http://tracker.bonfire-project.eu/issues/469</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:vcpu" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:memory" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:groups" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:cluster" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:host" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:disk" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:nic" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:resource_set" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:shared_allocation" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:best_effort_allocation" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:scheduling_id" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:context" minOccurs="0">
          <xs:annotation>
            <xs:documentation>This can contain any free-form element  This can contain any free-form element  This can contain any free-form element</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:startup" minOccurs="0">
          <xs:annotation>
            <xs:documentation>VWall specific: maybe this could be included in &lt;context&gt; element?  VWall specific: maybe this could be included in &lt;context&gt; element?  VWall specific: maybe this could be included in &lt;context&gt; element?</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:link" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:string" name="href" use="optional"/>
      <xs:attribute type="xs:string" name="name" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="location">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:description" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:longitude" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:latitude" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:link" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:string" name="href" use="optional"/>
      <xs:attribute type="xs:string" name="name" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="router">
    <xs:complexType mixed="true">
      <xs:choice maxOccurs="unbounded" minOccurs="0">
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:id"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:state"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:host"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:interface"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:config"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:link"/>
      </xs:choice>
      <xs:attribute type="xs:string" name="href" use="optional"/>
      <xs:attribute type="xs:string" name="name" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="site_link">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:id" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:description" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:endpoint" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:bandwidth" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:state" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:link" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:string" name="href" use="optional"/>
      <xs:attribute type="xs:string" name="name" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="items">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:experiment" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:network" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:storage" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:compute" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:location" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:router" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:site_link" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:configuration" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:byte" name="offset" use="optional"/>
      <xs:attribute type="xs:byte" name="total" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="link">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute type="xs:string" name="rel" use="optional"/>
          <xs:attribute type="xs:string" name="href" use="optional"/>
          <xs:attribute type="xs:string" name="type" use="optional"/>
          <xs:attribute type="xs:string" name="ref" use="optional"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="collection">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:items"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:link" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:string" name="href" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="save_as">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute type="xs:string" name="name" use="optional"/>
          <xs:attribute type="xs:string" name="href" use="optional"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="type" type="xs:string"/>
  <xs:element name="target">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute type="xs:string" name="href" use="optional"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="device" type="xs:string"/>
  <xs:element name="ip" type="xs:string"/>
  <xs:element name="mac" type="xs:string"/>
  
  
  <xs:element name="name" type="xs:string"/>
  <xs:element name="description" type="xs:string"/>
  <xs:element name="instance_type" type="xs:string"/>
  <xs:element name="disk">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded" minOccurs="0">
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:save_as"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:storage"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:type"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:target"/>
      </xs:choice>
      <xs:attribute type="xs:byte" name="id" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="nic">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:network"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:device" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:ip" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:mac" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:byte" name="id" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="context"><xs:complexType><xs:sequence><xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/></xs:sequence></xs:complexType></xs:element>
  <xs:element name="startup">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute type="xs:string" name="href" use="optional"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="state" type="xs:string"/>
  <xs:element name="cpu" type="xs:float"/>
  <xs:element name="vcpu" type="xs:float"/>
  <xs:element name="memory" type="xs:short"/>
  <xs:element name="groups" type="xs:string"/>
  <xs:element name="cluster" type="xs:string"/>
  <xs:element name="host">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:location" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:cluster" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:count" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="resource_set" type="xs:string"/>
  <xs:element name="shared_allocation" type="xs:string"/>
  <xs:element name="best_effort_allocation" type="xs:string"/>
  <xs:element name="scheduling_id" type="xs:string"/>
  <xs:element name="vmem" type="xs:short"/>
  <xs:element name="configuration">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:vcpu" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:vmem" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="user_id" type="xs:string"/>
  <xs:element name="walltime" type="xs:string"/>
  <xs:element name="status" type="xs:string"/>
  <xs:element name="routing_key" type="xs:string"/>
  <xs:element name="aggregator_password" type="xs:string"/>
  <xs:element name="networks">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:network" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="computes">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:compute" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="storages">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:storage" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="routers">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:router" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="site_links">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:site_link" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="aws_access_key_id" type="xs:string"/>
  <xs:element name="aws_secret_access_key" type="xs:string"/>
  <xs:element name="slice_urn" type="xs:string"/>
  <xs:element name="slice_user_urn" type="xs:string"/>
  <xs:element name="reservation">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:id" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:status" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:user" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:group" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:description" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:walltime" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:starttime" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:resources" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:string" name="href" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="longitude" type="xs:float"/>
  <xs:element name="latitude" type="xs:float"/>
  <xs:element name="address" type="xs:string"/>
  <xs:element name="size" type="xs:string"/>
  <xs:element name="visibility" type="xs:string"/>
  <xs:element name="router_interface" type="xs:string"/>
  <xs:element name="endpoint">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:router" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:router_interface" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:location" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:vlan" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="id" type="xs:string"/>
  <xs:element name="network_link">
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:endpoint" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="vlan">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute type="xs:string" name="rel" use="optional"/>
          <xs:attribute type="xs:string" name="href" use="optional"/>
          <xs:attribute type="xs:string" name="type" use="optional"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="lossrate" type="xs:float"/>
  <xs:element name="latency" type="xs:short"/>
  <xs:element name="bandwidth" type="xs:string"/>
  <xs:element name="physical_interface" type="xs:string"/>
  <xs:element name="connected_to">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:host"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:physical_interface"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="interface">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:connected_to" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:physical_interface" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:ip" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:netmask" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="physical_router">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:description"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:interface" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="physical_node">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:name"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:description"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:interface" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="physical_infrastructure">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:physical_router"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:physical_node"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="count" type="xs:byte"/>
  <xs:element name="scheduling_ids">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:scheduling_id" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="instance">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:resource_set" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:instance_type"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:cpu" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:memory" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:location"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:cluster" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:host" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:count"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:scheduling_ids" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="user" type="xs:string"/>
  <xs:element name="group" type="xs:string"/>
  <xs:element name="starttime" type="xs:dateTime"/>
  <xs:element name="resources">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:instance" maxOccurs="unbounded" minOccurs="0">
          <xs:annotation>
            <xs:documentation>instances     create two instance on different hosts  create two instance on the same host  create 6 instances over 2 clusters and 3 hosts on each cluster  custom instances  instances     create two instance on different hosts  create two instance on the same host  create 6 instances over 2 clusters and 3 hosts on each cluster  custom instances</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:host" maxOccurs="unbounded" minOccurs="0">
          <xs:annotation>
            <xs:documentation>hosts  reserve 3 hosts at Inria  reserve 3 hosts at Inria on a specific cluster  reserve 3 specific hosts at Inria request 6 hosts, 3 on each of 2 clusters  hosts  reserve 3 hosts at Inria  reserve 3 hosts at Inria on a specific cluster  reserve 3 specific hosts at Inria request 6 hosts, 3 on each of 2 clusters</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:core" maxOccurs="unbounded" minOccurs="0">
          <xs:annotation>
            <xs:documentation>cores  reserve 3 cores at Inria  reserve 3 cores at Inria on a specific cluster  reserve 1 core on each of specific hosts at Inria  request 6 cores, 3 on each of 2 clusters  cores  reserve 3 cores at Inria  reserve 3 cores at Inria on a specific cluster  reserve 1 core on each of specific hosts at Inria  request 6 cores, 3 on each of 2 clusters</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="core">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:location"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:cluster" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:host" minOccurs="0"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:count"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="version" type="xs:string"/>
  <xs:element name="root">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:version"/>
        <xs:element xmlns:occi="http://api.bonfire-project.eu/doc/schemas/occi" ref="occi:link" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute type="xs:string" name="href"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="netmask" type="xs:string"/>
  <xs:element name="config" type="xs:string"/>
  <xs:element name="fstype" type="xs:string"/>
  <xs:element name="public" type="xs:string"/>
  <xs:element name="persistent" type="xs:string"/>
</xs:schema>

The second file is below.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="location">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute type="xs:string" name="href" use="optional"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="name" type="xs:string"/>
  <xs:element name="description" type="xs:string"/>
  <xs:element name="endpoint">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="location"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="bandwidth" type="xs:string"/>
  <xs:element name="link">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute type="xs:string" name="rel"/>
          <xs:attribute type="xs:string" name="href"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="site_link">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="name"/>
        <xs:element ref="description"/>
        <xs:element ref="endpoint" maxOccurs="unbounded" minOccurs="0"/>
        <xs:element ref="bandwidth"/>
        <xs:element ref="link"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>