apply gpl development license
[jalview.git] / schemas / vamsasJvV1.xsd
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3   Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)\r
4   Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
5   \r
6   This program is free software; you can redistribute it and/or\r
7   modify it under the terms of the GNU General Public License\r
8   as published by the Free Software Foundation; either version 2\r
9   of the License, or (at your option) any later version.\r
10   \r
11   This program is distributed in the hope that it will be useful,\r
12   but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14   GNU General Public License for more details.\r
15   \r
16   You should have received a copy of the GNU General Public License\r
17   along with this program; if not, write to the Free Software\r
18   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
19 -->\r
20 \r
21 <!-- edited with XMLSpy v2006 sp1 U (http://www.altova.com) by ioh[ (o[ih[oh) -->\r
22 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vamsas="www.vamsas.org" targetNamespace="www.vamsas.org" elementFormDefault="qualified" attributeFormDefault="unqualified">\r
23         <xs:complexType name="VAMSAS">\r
24                 <xs:sequence>\r
25                         <xs:element name="Alignment" minOccurs="0" maxOccurs="unbounded">\r
26                                 <xs:complexType>\r
27                                         <xs:sequence>\r
28                                                 <xs:element name="Annotation" minOccurs="0">\r
29                                                         <xs:complexType>\r
30                                                                 <xs:sequence>\r
31                                                                         <xs:element ref="vamsas:annotationElement" maxOccurs="unbounded"/>\r
32                                                                         <xs:element name="label" type="xs:string"/>\r
33                                                                         <xs:element name="description" type="xs:string"/>\r
34                                                                 </xs:sequence>\r
35                                                                 <xs:attribute name="graph" type="xs:boolean" use="required"/>\r
36                                                                 <xs:attribute name="graphType" type="xs:int" use="optional"/>\r
37                                                         </xs:complexType>\r
38                                                 </xs:element>\r
39                                                 <xs:element ref="vamsas:SequenceSet"/>\r
40                                         </xs:sequence>\r
41                                 </xs:complexType>\r
42                         </xs:element>\r
43                         <xs:element name="Tree" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>\r
44                         <xs:element ref="vamsas:SequenceSet" minOccurs="0" maxOccurs="unbounded"/>\r
45                 </xs:sequence>\r
46         </xs:complexType>\r
47         <xs:element name="SequenceSet">\r
48                 <xs:complexType>\r
49                         <xs:sequence>\r
50                                 <xs:element name="Sequence" type="vamsas:SequenceType" maxOccurs="unbounded"/>\r
51                                 <xs:element name="Annotation" minOccurs="0" maxOccurs="unbounded">\r
52                                         <xs:complexType>\r
53                                                 <xs:sequence>\r
54                                                         <xs:element name="description" type="xs:string" minOccurs="0"/>\r
55                                                         <xs:element name="status" type="xs:string" minOccurs="0"/>\r
56                                                         <xs:element ref="vamsas:annotationElement" minOccurs="0" maxOccurs="unbounded"/>\r
57                                                 </xs:sequence>\r
58                                                 <xs:attribute name="type" type="xs:string" use="required"/>\r
59                                                 <xs:attribute name="end" type="xs:string" use="required"/>\r
60                                                 <xs:attribute name="begin" type="xs:string" use="required"/>\r
61                                                 <xs:attribute name="seqRef" type="xs:string" use="required"/>\r
62                                         </xs:complexType>\r
63                                 </xs:element>\r
64                         </xs:sequence>\r
65                         <xs:attribute name="gapChar" type="xs:string" use="required"/>\r
66                         <xs:attribute name="aligned" type="xs:boolean" use="optional"/>\r
67                 </xs:complexType>\r
68         </xs:element>\r
69         <xs:element name="annotationElement">\r
70                 <xs:complexType>\r
71                         <xs:sequence>\r
72                                 <xs:element name="displayCharacter" type="xs:string"/>\r
73                                 <xs:element name="description" type="xs:string"/>\r
74                                 <xs:element name="secondaryStructure">\r
75                                         <xs:simpleType>\r
76                                                 <xs:restriction base="xs:string">\r
77                                                         <xs:length value="1"/>\r
78                                                 </xs:restriction>\r
79                                         </xs:simpleType>\r
80                                 </xs:element>\r
81                                 <xs:element name="value" type="xs:float"/>\r
82                         </xs:sequence>\r
83                         <xs:attribute name="position" type="xs:int" use="required"/>\r
84                 </xs:complexType>\r
85         </xs:element>\r
86         <xs:complexType name="SequenceType">\r
87                 <xs:sequence>\r
88                         <xs:element name="sequence" type="xs:string"/>\r
89                         <xs:element name="name" type="xs:string"/>\r
90                 </xs:sequence>\r
91                 <xs:attribute name="id" type="xs:string"/>\r
92         </xs:complexType>\r
93 </xs:schema>\r