<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 sp1 U (http://www.xmlspy.com) by Steve O'Hagan (The University of Manchester) -->
<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Irena Spasic (UMIST) -->
<!-- 
    SCHEMA: metabolomics.xsd
    AUTHOR: Irena Spasic
    LAST CHANGE: 28-09-2004
    DESCRIPTION: This document provides an XML schema for metabolomic footprinting.
-->
<xs:schema xmlns:DAN="http://www.datamining.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ADM="http://www.admin.com" xmlns:ANL="http://www.analysis.com" targetNamespace="http://www.datamining.com" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://www.admin.com" schemaLocation="admin.xsd"/>
	<xs:import namespace="http://www.analysis.com" schemaLocation="analysis.xsd"/>
	<xs:element name="DataAnalysis">
		<xs:complexType>
			<xs:annotation>
				<xs:documentation>Data that describe the parameter settings of software used for data processing and the generated results</xs:documentation>
			</xs:annotation>
			<xs:sequence>
				<xs:element name="input">
					<xs:annotation>
						<xs:documentation>A reference to a set of analytical experiment whose results are processed by the given data mining experiment</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="analysis" maxOccurs="unbounded">
								<xs:complexType>
									<xs:attribute name="ID" type="xs:ID" use="required"/>
								</xs:complexType>
								<xs:keyref name="InputAnalysis" refer="ANL:AnalysisID">
									<xs:selector xpath="."/>
									<xs:field xpath="@ID"/>
								</xs:keyref>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="Output" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="file">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="file_url" type="xs:string"/>
										<xs:element name="file_type" type="xs:string"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="hypotheses" type="xs:string"/>
							<xs:element name="results" type="xs:string"/>
							<xs:element ref="ADM:comment"/>
						</xs:sequence>
						<xs:attribute name="ID">
							<xs:annotation>
								<xs:documentation>An ID for the output of a data mining experiment and a reference to the given experiment</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="input"/>
					</xs:complexType>
					<xs:keyref name="DataAnalysisExperiment" refer="ADM:ExperimentID">
						<xs:selector xpath="."/>
						<xs:field xpath="@input"/>
					</xs:keyref>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="ID" type="xs:IDREF" use="required">
				<xs:annotation>
					<xs:documentation>An ID for the results of data mining and a reference to the set of the corresponding data mining experiments</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
		<xs:keyref name="DataMiningSet" refer="ADM:ExperimentSetID">
			<xs:selector xpath="."/>
			<xs:field xpath="@ID"/>
		</xs:keyref>
		<xs:keyref name="AnalyticalSet" refer="ADM:ExperimentSetID">
			<xs:selector xpath="."/>
			<xs:field xpath="@input"/>
		</xs:keyref>
	</xs:element>
</xs:schema>
