visible
[jalview.git] / schemas / vamsas.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- edited with XMLSpy v2006 sp1 U (http://www.altova.com) by ioh[ (o[ih[oh) -->
3 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vamsas="www.vamsas.ac.uk/jalview/version2" targetNamespace="www.vamsas.ac.uk/jalview/version2" elementFormDefault="qualified" attributeFormDefault="unqualified">
4         <xs:complexType name="VAMSAS">
5                 <xs:sequence>
6                         <xs:element name="Tree" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
7                         <xs:element ref="vamsas:SequenceSet" minOccurs="0" maxOccurs="unbounded"/>
8                 </xs:sequence>
9         </xs:complexType>
10         <xs:element name="SequenceSet">
11                 <xs:complexType>
12                         <xs:sequence>
13                                 <xs:element name="Sequence" minOccurs="0" maxOccurs="unbounded">
14                                         <xs:complexType>
15                                                 <xs:complexContent>
16                                                         <xs:extension base="vamsas:SequenceType">
17                                                                 <xs:sequence>
18                                                                         <xs:element name="DBRef" minOccurs="0" maxOccurs="unbounded">
19                                                                                 <xs:complexType>
20                                                                                         <xs:attribute name="source" type="xs:string"/>
21                                                                                         <xs:attribute name="version" type="xs:string"/>
22                                                                                         <xs:attribute name="accessionId" type="xs:string"/>
23                                                                                 </xs:complexType>
24                                                                         </xs:element>
25                                                                 </xs:sequence>
26                                                         </xs:extension>
27                                                 </xs:complexContent>
28                                         </xs:complexType>
29                                 </xs:element>
30                                 <xs:element name="Annotation" minOccurs="0" maxOccurs="unbounded">
31                                         <xs:complexType>
32                                                 <xs:sequence>
33                                                         <xs:element ref="vamsas:annotationElement" minOccurs="0" maxOccurs="unbounded"/>
34                                                         <xs:element name="label" type="xs:string"/>
35                                                         <xs:element name="description" type="xs:string" minOccurs="0"/>
36                                                         <xs:element name="thresholdLine" minOccurs="0">
37                                                                 <xs:complexType>
38                                                                         <xs:attribute name="label" type="xs:string"/>
39                                                                         <xs:attribute name="value" type="xs:float"/>
40                                                                         <xs:attribute name="colour" type="xs:int"/>
41                                                                 </xs:complexType>
42                                                         </xs:element>
43                                                 </xs:sequence>
44                                                 <xs:attribute name="graph" type="xs:boolean" use="required"/>
45                                                 <xs:attribute name="graphType" type="xs:int" use="optional"/>
46                                                 <xs:attribute name="sequenceRef" type="xs:string" use="optional"/>
47                                                 <xs:attribute name="graphColour" type="xs:int" use="optional"/>
48                                                 <xs:attribute name="graphGroup" type="xs:int" use="optional"/>
49                                                 <xs:attribute name="id" type="xs:string" use="optional"/>
50                                                 <xs:attribute name="scoreOnly" type="xs:boolean" use="optional" default="false"/>
51                                                 <xs:attribute name="score" type="xs:double" use="optional"/>
52                                                 <xs:attribute name="visible" type="xs:boolean" use="optional"/>
53                                         </xs:complexType>
54                                 </xs:element>
55                                 <xs:element name="sequenceSetProperties" minOccurs="0" maxOccurs="unbounded">
56                                         <xs:complexType>
57                                                 <xs:attribute name="key" type="xs:string"/>
58                                                 <xs:attribute name="value" type="xs:string"/>
59                                         </xs:complexType>
60                                 </xs:element>
61                         </xs:sequence>
62                         <xs:attribute name="gapChar" type="xs:string" use="required"/>
63                 </xs:complexType>
64         </xs:element>
65         <xs:element name="annotationElement">
66                 <xs:complexType>
67                         <xs:sequence>
68                                 <xs:element name="displayCharacter" type="xs:string" minOccurs="0"/>
69                                 <xs:element name="description" type="xs:string" minOccurs="0"/>
70                                 <xs:element name="secondaryStructure" minOccurs="0">
71                                         <xs:simpleType>
72                                                 <xs:restriction base="xs:string">
73                                                         <xs:length value="1"/>
74                                                 </xs:restriction>
75                                         </xs:simpleType>
76                                 </xs:element>
77                                 <xs:element name="value" type="xs:float" minOccurs="0"/>
78                         </xs:sequence>
79                         <xs:attribute name="position" type="xs:int" use="required"/>
80                         <xs:attribute name="colour" type="xs:int" use="optional"/>
81                 </xs:complexType>
82         </xs:element>
83         <xs:complexType name="SequenceType">
84                 <xs:sequence>
85                         <xs:element name="sequence" type="xs:string" minOccurs="0"/>
86                         <xs:element name="name" type="xs:string" minOccurs="0"/>
87                 </xs:sequence>
88                 <xs:attribute name="id" type="xs:string"/>
89                 <xs:attribute name="description" type="xs:string"/>
90         </xs:complexType>
91 </xs:schema>