
Thanks Andy, I'll take a look at it in detail. -gary On Wed, Mar 10, 2010 at 8:27 AM, Andy Edmonds <andy.edmonds@gmail.com>wrote:
Gary, Linked is a OCCI schema that we are using in SLA@SOI currently. HTH,
Andy
http://dl.dropbox.com/u/165239/sla%40soi-a4-occi.xsd
On Mar 8, 7:04 am, Gary Mazz <garymazzafe...@gmail.com> wrote:
Hi,
This is the first draft of the occi xml scheme. Its not the final version but, its about 100% of what occi defines. I'll be following up with the xml reference file.
Notes: 1) This version of the scheme is based on assigning all occi resources xml elements and occi metadata to XML attributes. This creates a problem in XML scheme version 1.0. Defining the "id" attributes as unique and defining enumerated values for attributes is unsupported. 2)I'll move to the 1.1 version as soon as I figure out 1.1 constraints 3) Occi float values are currently defined as decimal, just to make parsing easier.
cheers, gary
<?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs=" http://www.w3.org/2001/XMLSchema"> <xs:element name="collection"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="compute"> <xs:complexType> <xs:attribute name="id" type="xs:string" use="required" /> <xs:attribute name="title" type="xs:string" use="optional" /> <xs:attribute name="summary" type="xs:string" use="optional" /> <xs:attribute name="cores" type="xs:positiveInteger" use="optional" /> <xs:attribute name="architecture" type="xs:string" use="optional" /> <xs:attribute name="hostname" type="xs:string" use="required" /> </xs:complexType> </xs:element> <xs:element maxOccurs="unbounded" name="network"> <xs:complexType> <xs:attribute name="id" type="xs:string" use="required" /> <xs:attribute name="allocation" type="xs:string" use="optional" /> <xs:attribute name="title" type="xs:string" use="optional" /> <xs:attribute name="summary" type="xs:string" use="optional" /> <xs:attribute name="address" type="xs:string" use="optional" /> <xs:attribute name="gateway" type="xs:string" use="optional" /> <xs:attribute name="vlan" type="xs:unsignedInteger" use="optional" /> <xs:attribute name="label" type="xs:string" use="optional" /> </xs:complexType> </xs:element> <xs:element maxOccurs="unbounded" name="memory"> <xs:complexType> <xs:attribute name="id" type="xs:string" use="required" /> <xs:attribute name="title" type="xs:string" use="optional" /> <xs:attribute name="summary" type="xs:string" use="optional" /> <xs:attribute name="size" type="xs:decimal" use="optional" /> </xs:complexType> </xs:element> <xs:element maxOccurs="unbounded" name="storage"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element name="link" type="xs:anyurl" /> </xs:sequence> <xs:attribute name="id" type="xs:string" use="required" /> <xs:attribute name="title" type="xs:string" use="optional" /> <xs:attribute name="summary" type="xs:string" use="optional" /> <xs:attribute name="size" type="xs:decimal" use="optional" /> <xs:attribute name="status" type="xs:string" use="optional" >
</xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="id" type="xs:string" use="required" /> <xs:attribute name="title" type="xs:string" use="optional" /> <xs:attribute name="summary" type="xs:string" use="optional" /> </xs:complexType> </xs:element> </xs:schema>
OCCI-XML-01.xsd 3KViewDownload