4304 |
20 Mar 12 |
fredrik |
1 |
<?xml version="1.0" encoding="utf-8"?> |
4304 |
20 Mar 12 |
fredrik |
<!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid-technologies.com) --> |
4304 |
20 Mar 12 |
fredrik |
3 |
<xs:schema xmlns:dx="http://psi.hupo.org/ms/mzml" |
4304 |
20 Mar 12 |
fredrik |
4 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
4304 |
20 Mar 12 |
fredrik |
5 |
targetNamespace="http://psi.hupo.org/ms/mzml" |
4304 |
20 Mar 12 |
fredrik |
6 |
attributeFormDefault="unqualified" |
4304 |
20 Mar 12 |
fredrik |
7 |
elementFormDefault="qualified" |
4304 |
20 Mar 12 |
fredrik |
8 |
version="1.1.1"> |
4304 |
20 Mar 12 |
fredrik |
9 |
<xs:include schemaLocation="mzML1.1.0.xsd" /> |
4304 |
20 Mar 12 |
fredrik |
10 |
<xs:complexType name="IndexListType"> |
4304 |
20 Mar 12 |
fredrik |
11 |
<xs:sequence> |
4304 |
20 Mar 12 |
fredrik |
12 |
<xs:element minOccurs="1" maxOccurs="unbounded" name="index" type="dx:IndexType"> |
4304 |
20 Mar 12 |
fredrik |
13 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
14 |
<xs:documentation>Index element containing one or more offsets for random data access for the entity described in the 'name' attribute.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
15 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
16 |
</xs:element> |
4304 |
20 Mar 12 |
fredrik |
17 |
</xs:sequence> |
4304 |
20 Mar 12 |
fredrik |
18 |
<xs:attribute name="count" type="xs:nonNegativeInteger" use="required"> |
4304 |
20 Mar 12 |
fredrik |
19 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
20 |
<xs:documentation>Number of indices in this list.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
21 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
22 |
</xs:attribute> |
4304 |
20 Mar 12 |
fredrik |
23 |
</xs:complexType> |
4304 |
20 Mar 12 |
fredrik |
24 |
<xs:complexType name="IndexType"> |
4304 |
20 Mar 12 |
fredrik |
25 |
<xs:sequence> |
4304 |
20 Mar 12 |
fredrik |
26 |
<xs:element maxOccurs="unbounded" name="offset" type="dx:OffsetType"> |
4304 |
20 Mar 12 |
fredrik |
27 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
28 |
<xs:documentation>File pointer offset (in bytes) of the element identified by the 'id' attribute.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
29 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
30 |
</xs:element> |
4304 |
20 Mar 12 |
fredrik |
31 |
</xs:sequence> |
4304 |
20 Mar 12 |
fredrik |
32 |
<xs:attribute name="name" use="required"> |
4304 |
20 Mar 12 |
fredrik |
33 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
34 |
<xs:documentation>The name of the entity the index entries are pointing to.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
35 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
36 |
<xs:simpleType> |
4304 |
20 Mar 12 |
fredrik |
37 |
<xs:restriction base="xs:string"> |
4304 |
20 Mar 12 |
fredrik |
38 |
<xs:enumeration value="spectrum" /> |
4304 |
20 Mar 12 |
fredrik |
39 |
<xs:enumeration value="chromatogram" /> |
4304 |
20 Mar 12 |
fredrik |
40 |
</xs:restriction> |
4304 |
20 Mar 12 |
fredrik |
41 |
</xs:simpleType> |
4304 |
20 Mar 12 |
fredrik |
42 |
</xs:attribute> |
4304 |
20 Mar 12 |
fredrik |
43 |
</xs:complexType> |
4304 |
20 Mar 12 |
fredrik |
44 |
<xs:complexType name="OffsetType"> |
4304 |
20 Mar 12 |
fredrik |
45 |
<xs:simpleContent> |
4304 |
20 Mar 12 |
fredrik |
46 |
<xs:extension base="xs:long"> |
4304 |
20 Mar 12 |
fredrik |
47 |
<xs:attribute name="idRef" type="xs:string" use="required"> |
4304 |
20 Mar 12 |
fredrik |
48 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
49 |
<xs:documentation>Reference to the 'id' attribute of the indexed element.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
50 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
51 |
</xs:attribute> |
4304 |
20 Mar 12 |
fredrik |
52 |
<xs:attribute name="spotID" type="xs:string" use="optional"> |
4304 |
20 Mar 12 |
fredrik |
53 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
54 |
<xs:documentation>The identifier for the spot from which this spectrum was derived, if a MALDI or similar run.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
55 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
56 |
</xs:attribute> |
4304 |
20 Mar 12 |
fredrik |
57 |
<xs:attribute name="scanTime" type="xs:double" use="optional"> |
4304 |
20 Mar 12 |
fredrik |
58 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
59 |
<xs:documentation>In the case of a spectrum representing a single scan, this attribute may be used to reference it by the time at which the scan was acquired (a.k.a. scan time or retention time).</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
60 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
61 |
</xs:attribute> |
4304 |
20 Mar 12 |
fredrik |
62 |
</xs:extension> |
4304 |
20 Mar 12 |
fredrik |
63 |
</xs:simpleContent> |
4304 |
20 Mar 12 |
fredrik |
64 |
</xs:complexType> |
4304 |
20 Mar 12 |
fredrik |
65 |
<xs:element name="indexedmzML"> |
4304 |
20 Mar 12 |
fredrik |
66 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
67 |
<xs:documentation>Container element for mzML which allows the addition of an index.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
68 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
69 |
<xs:complexType> |
4304 |
20 Mar 12 |
fredrik |
70 |
<xs:sequence> |
4304 |
20 Mar 12 |
fredrik |
71 |
<xs:element ref="dx:mzML" /> |
4304 |
20 Mar 12 |
fredrik |
72 |
<xs:element minOccurs="1" name="indexList" type="dx:IndexListType"> |
4304 |
20 Mar 12 |
fredrik |
73 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
74 |
<xs:documentation>List of indices.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
75 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
76 |
</xs:element> |
4304 |
20 Mar 12 |
fredrik |
77 |
<xs:element name="indexListOffset" nillable="true" type="xs:long"> |
4304 |
20 Mar 12 |
fredrik |
78 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
79 |
<xs:documentation>File pointer offset (in bytes) of the 'indexList' element.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
80 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
81 |
</xs:element> |
4304 |
20 Mar 12 |
fredrik |
82 |
<xs:element name="fileChecksum" type="xs:string"> |
4304 |
20 Mar 12 |
fredrik |
83 |
<xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
84 |
<xs:documentation>SHA-1 checksum from beginning of file to end of 'fileChecksum' open tag.</xs:documentation> |
4304 |
20 Mar 12 |
fredrik |
85 |
</xs:annotation> |
4304 |
20 Mar 12 |
fredrik |
86 |
</xs:element> |
4304 |
20 Mar 12 |
fredrik |
87 |
</xs:sequence> |
4304 |
20 Mar 12 |
fredrik |
88 |
</xs:complexType> |
4304 |
20 Mar 12 |
fredrik |
89 |
<xs:key name="KEY_ID_IDX"> |
4304 |
20 Mar 12 |
fredrik |
90 |
<xs:selector xpath=".//dx:indexedmzML/dx:mzML/dx:run/dx:spectrumList/dx:spectrum | .//dx:indexedmzML/dx:mzML/dx:run/dx:chromatogramList/dx:chromatogram" /> |
4304 |
20 Mar 12 |
fredrik |
91 |
<xs:field xpath="@id" /> |
4304 |
20 Mar 12 |
fredrik |
92 |
</xs:key> |
4304 |
20 Mar 12 |
fredrik |
93 |
<xs:keyref name="FKNID" refer="dx:KEY_ID_IDX"> |
4304 |
20 Mar 12 |
fredrik |
94 |
<xs:selector xpath=".//dx:indexedmzML/dx:indexList/dx:index/dx:offset" /> |
4304 |
20 Mar 12 |
fredrik |
95 |
<xs:field xpath="@id" /> |
4304 |
20 Mar 12 |
fredrik |
96 |
</xs:keyref> |
4304 |
20 Mar 12 |
fredrik |
97 |
</xs:element> |
4304 |
20 Mar 12 |
fredrik |
98 |
</xs:schema> |