Schema DocumentStructure.xsd


schema location:  http://www.ebi.ac.uk/~pierre/adf_converter/release/DocumentStructure.xsd
targetNamespace:  http://www.ebi.ac.uk/ADFConverter
 
Elements  Complex types  Simple types 
documentStructure  CardinalityType  dataFormatType 
filer  CheckRuleType  fieldTypeName 
header  ConstraintType  fileFormatType 
itemTemp  DataType  SubNameTypeName 
documentStructureType  TableOrientationType 
FieldType 
FileType 
headerType 
ItemType 
LocationType 
SubNameType 
tableType 


element documentStructure
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:documentStructureType
children files
annotation
documentation 
 data structure in a or several files
source
<xs:element name="documentStructure" type="ADFConv:documentStructureType">  <xs:annotation>    <xs:documentation> data structure in a or several files</xs:documentation>  </xs:annotation></xs:element>

element filer
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:FileType
children dataSet
attributes
Name  Type  Use  Default  Fixed  Annotation
extension  xs:string  required      
name  xs:string         
fileFormat  ADFConv:fileFormatType  required      
annotation
documentation 
data file strucuture definition
source
<xs:element name="filer" type="ADFConv:FileType">  <xs:annotation>    <xs:documentation>data file strucuture definition</xs:documentation>  </xs:annotation></xs:element>

element header
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:headerType
children items
annotation
documentation 
 list of header item of data table contained in a file
source
<xs:element name="header" type="ADFConv:headerType">  <xs:annotation>    <xs:documentation> list of header item of data table contained in a file</xs:documentation>  </xs:annotation></xs:element>

element itemTemp
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:ItemType
children relaxCheckRules strictCheck itemType exactName fieldValueType cardinality fieldCardinality location multiplicity valueFieldSeparator innerValueFieldSeparator fieldDependence subNames simpleMicroarrayLayoutRelatedItem
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:ID  required      
element  xs:string    default    
source
<xs:element name="itemTemp" type="ADFConv:ItemType"/>

complexType CardinalityType
diagram
namespace http://www.ebi.ac.uk/ADFConverter
used by
elements ItemType/cardinality ItemType/fieldCardinality
attributes
Name  Type  Use  Default  Fixed  Annotation
lowerBound  xs:nonNegativeInteger  required      
upperBound  xs:int    -1    
annotation
documentation 
Cardinality of an item or value in a field Represent by a minimal occur and a maximal
source
<xs:complexType name="CardinalityType">  <xs:annotation>    <xs:documentation>Cardinality of an item or value in a field Represent by a minimal occur and a maximal</xs:documentation>  </xs:annotation>  <xs:attribute name="lowerBound" type="xs:nonNegativeInteger" use="required"/>  <xs:attribute name="upperBound" type="xs:int" default="-1"/>  <!-- integer from 0 to 126789 shoulb enough-->  <!--<xs:restriction base="xs:string">			<xs:pattern value="\d\.\.\d{1,}"/>		</xs:restriction>--></xs:complexType>

complexType CheckRuleType
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children regex description
used by
elements ItemType/relaxCheckRules/relaxCheck ConstraintType/rule ItemType/strictCheck
annotation
documentation 
Rule for checking
source
<xs:complexType name="CheckRuleType">  <xs:annotation>    <xs:documentation>Rule for checking</xs:documentation>  </xs:annotation>  <xs:sequence>    <xs:element name="regex">      <xs:simpleType>        <xs:restriction base="xs:string">          <xs:pattern value="[^/].+[^/]"/>          <xs:pattern value="/.+/"/>        </xs:restriction>      </xs:simpleType>    </xs:element>    <xs:element name="description" type="xs:string" minOccurs="0"/>  </xs:sequence></xs:complexType>

element CheckRuleType/regex
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type restriction of xs:string
facets
pattern [^/].+[^/]
pattern /.+/
source
<xs:element name="regex">  <xs:simpleType>    <xs:restriction base="xs:string">      <xs:pattern value="[^/].+[^/]"/>      <xs:pattern value="/.+/"/>    </xs:restriction>  </xs:simpleType></xs:element>

element CheckRuleType/description
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type xs:string
source
<xs:element name="description" type="xs:string" minOccurs="0"/>

complexType ConstraintType
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children rule curatedValue
used by
elements SubNameType/constraints/constraint FieldType/constraints/constraint
source
<xs:complexType name="ConstraintType">  <xs:sequence>    <xs:element name="rule" type="ADFConv:CheckRuleType"/>    <xs:element name="curatedValue" type="xs:string" minOccurs="0"/>  </xs:sequence></xs:complexType>

element ConstraintType/rule
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:CheckRuleType
children regex description
source
<xs:element name="rule" type="ADFConv:CheckRuleType"/>

element ConstraintType/curatedValue
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type xs:string
source
<xs:element name="curatedValue" type="xs:string" minOccurs="0"/>

complexType DataType
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children tables
used by
element FileType/dataSet/data
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string        
tableDelimiter  xs:string        
dataFormat  ADFConv:dataFormatType  required      
annotation
documentation 
structure of data: can be composed of several table
source
<xs:complexType name="DataType">  <xs:annotation>    <xs:documentation>structure of data: can be composed of several table</xs:documentation>  </xs:annotation>  <xs:sequence>    <xs:element name="tables">      <xs:complexType>        <xs:sequence>          <xs:element name="table" type="ADFConv:tableType" maxOccurs="unbounded"/>        </xs:sequence>      </xs:complexType>    </xs:element>  </xs:sequence>  <xs:attribute name="name" type="xs:string"/>  <xs:attribute name="tableDelimiter" type="xs:string"/>  <xs:attribute name="dataFormat" type="ADFConv:dataFormatType" use="required"/></xs:complexType>

element DataType/tables
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children table
source
<xs:element name="tables">  <xs:complexType>    <xs:sequence>      <xs:element name="table" type="ADFConv:tableType" maxOccurs="unbounded"/>    </xs:sequence>  </xs:complexType></xs:element>

element DataType/tables/table
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:tableType
children header
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string        
sheetNumber  xs:int        
dataDelimiter  xs:string        
orientation  ADFConv:TableOrientationType    horizontal    
haveHeader  xs:boolean    true    
source
<xs:element name="table" type="ADFConv:tableType" maxOccurs="unbounded"/>

complexType documentStructureType
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children files
used by
element documentStructure
annotation
documentation 
definition of a data document: can contain several data table (in several files) 
source
<xs:complexType name="documentStructureType">  <xs:annotation>    <xs:documentation>definition of a data document: can contain several data table (in several files) </xs:documentation>  </xs:annotation>  <xs:sequence>    <xs:element name="files">      <xs:complexType>        <xs:sequence>          <xs:element name="file" type="ADFConv:FileType" maxOccurs="unbounded"/>        </xs:sequence>      </xs:complexType>    </xs:element>  </xs:sequence></xs:complexType>

element documentStructureType/files
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children file
source
<xs:element name="files">  <xs:complexType>    <xs:sequence>      <xs:element name="file" type="ADFConv:FileType" maxOccurs="unbounded"/>    </xs:sequence>  </xs:complexType></xs:element>

element documentStructureType/files/file
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:FileType
children dataSet
attributes
Name  Type  Use  Default  Fixed  Annotation
extension  xs:string  required      
name  xs:string         
fileFormat  ADFConv:fileFormatType  required      
source
<xs:element name="file" type="ADFConv:FileType" maxOccurs="unbounded"/>

complexType FieldType
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children typeName constraints
used by
element ItemType/fieldValueType
annotation
documentation 
Specifies the field value type and constraints
source
<xs:complexType name="FieldType">  <xs:annotation>    <xs:documentation>Specifies the field value type and constraints</xs:documentation>  </xs:annotation>  <xs:sequence>    <xs:element name="typeName" type="ADFConv:fieldTypeName"/>    <xs:element name="constraints" minOccurs="0">      <xs:complexType>        <xs:sequence>          <xs:element name="constraint" type="ADFConv:ConstraintType" maxOccurs="unbounded"/>        </xs:sequence>      </xs:complexType>    </xs:element>  </xs:sequence></xs:complexType>

element FieldType/typeName
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:fieldTypeName
facets
enumeration Integer
enumeration Free Text
enumeration Website address
enumeration Email
enumeration Controlled vocabulary
enumeration MGED ontology term
enumeration Date
enumeration DatabaseEntry
enumeration Sequence
enumeration Species
enumeration Regex
enumeration Other
source
<xs:element name="typeName" type="ADFConv:fieldTypeName"/>

element FieldType/constraints
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children constraint
source
<xs:element name="constraints" minOccurs="0">  <xs:complexType>    <xs:sequence>      <xs:element name="constraint" type="ADFConv:ConstraintType" maxOccurs="unbounded"/>    </xs:sequence>  </xs:complexType></xs:element>

element FieldType/constraints/constraint
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:ConstraintType
children rule curatedValue
source
<xs:element name="constraint" type="ADFConv:ConstraintType" maxOccurs="unbounded"/>

complexType FileType
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children dataSet
used by
elements documentStructureType/files/file filer
attributes
Name  Type  Use  Default  Fixed  Annotation
extension  xs:string  required      
name  xs:string         
fileFormat  ADFConv:fileFormatType  required      
annotation
documentation 
table header of a data file 
source
<xs:complexType name="FileType">  <xs:annotation>    <xs:documentation>table header of a data file </xs:documentation>  </xs:annotation>  <xs:sequence>    <xs:element name="dataSet">      <xs:complexType>        <xs:sequence>          <xs:element name="data" type="ADFConv:DataType" maxOccurs="unbounded"/>          <!--<xs:element name="Header" type="ADFConv:HeaderType" minOccurs="1" maxOccurs="1"/>-->        </xs:sequence>      </xs:complexType>    </xs:element>  </xs:sequence>  <xs:attribute name="extension" type="xs:string" use="required"/>  <xs:attribute name="name" type="xs:string" default=" "/>  <xs:attribute name="fileFormat" type="ADFConv:fileFormatType" use="required"/></xs:complexType>

element FileType/dataSet
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children data
source
<xs:element name="dataSet">  <xs:complexType>    <xs:sequence>      <xs:element name="data" type="ADFConv:DataType" maxOccurs="unbounded"/>      <!--<xs:element name="Header" type="ADFConv:HeaderType" minOccurs="1" maxOccurs="1"/>-->    </xs:sequence>  </xs:complexType></xs:element>

element FileType/dataSet/data
diagram
namespace http://www.ebi.ac.uk/ADFConverter
type ADFConv:DataType
children tables
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string        
tableDelimiter  xs:string        
dataFormat  ADFConv:dataFormatType  required      
source
<xs:element name="data" type="ADFConv:DataType" maxOccurs="unbounded"/>

complexType headerType
diagram
namespace http://www.ebi.ac.uk/ADFConverter
children items
used by
elements header tableType/header
annotation
documentation 
Header list Structure: contains item
source
<xs:complexType name="headerType">  <xs:annotation>    <xs:documentation>Header list Structure: contains item</xs:documentation>  </xs:annotation>  <xs:sequence>    <xs:element name="items">      <xs:complexType>        <xs:sequence>          <xs:element name="item" type="ADFConv:ItemType" maxOccurs="unbounded"/>        </xs:sequence>      </xs:complexType>      <!--	 <xs:key name="ID">						  <xs:selector xpath="item"/>						  <xs:field xpath="@mame"/>					&l