AlignmentAnnotation: added annotation score attribute and allowed for annotation...
[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:float" use="optional"/>
52                                         </xs:complexType>
53                                 </xs:element>
54                         </xs:sequence>
55                         <xs:attribute name="gapChar" type="xs:string" use="required"/>
56                 </xs:complexType>
57         </xs:element>
58         <xs:element name="annotationElement">
59                 <xs:complexType>
60                         <xs:sequence>
61                                 <xs:element name="displayCharacter" type="xs:string" minOccurs="0"/>
62                                 <xs:element name="description" type="xs:string" minOccurs="0"/>
63                                 <xs:element name="secondaryStructure" minOccurs="0">
64                                         <xs:simpleType>
65                                                 <xs:restriction base="xs:string">
66                                                         <xs:length value="1"/>
67                                                 </xs:restriction>
68                                         </xs:simpleType>
69                                 </xs:element>
70                                 <xs:element name="value" type="xs:float" minOccurs="0"/>
71                         </xs:sequence>
72                         <xs:attribute name="position" type="xs:int" use="required"/>
73                         <xs:attribute name="colour" type="xs:int" use="optional"/>
74                 </xs:complexType>
75         </xs:element>
76         <xs:complexType name="SequenceType">
77                 <xs:sequence>
78                         <xs:element name="sequence" type="xs:string" minOccurs="0"/>
79                         <xs:element name="name" type="xs:string" minOccurs="0"/>
80                 </xs:sequence>
81                 <xs:attribute name="id" type="xs:string"/>
82                 <xs:attribute name="description" type="xs:string"/>
83         </xs:complexType>
84 </xs:schema>