<?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) -->
<!-- 
    SCHEMA: bio.xsd
    AUTHOR: Irena Spasic
    LAST CHANGE: 16-11-2005
    DESCRIPTION: This document provides an XML schema for description of biological metadata.
-->
<xs:schema xmlns:BIO="http://www.bio.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ADM="http://www.admin.com" xmlns:HMN="http://www.Human.com" targetNamespace="http://www.bio.com" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://www.admin.com" schemaLocation="admin.xsd"/>
	<xs:import namespace="http://www.Human.com" schemaLocation="human.xsd"/>
	<xs:annotation>
		<xs:documentation>Genotype, cultivation and identification data that describe the biological source material used in metabolomics experiments.
</xs:documentation>
	</xs:annotation>
	<xs:element name="Population">
		<xs:annotation>
			<xs:documentation>Description of a particular genotype (for yeast it refers to the wild type).</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="description" type="xs:string"/>
				<xs:element ref="ADM:comment"/>
				<xs:element name="Source" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>Description of a specific genetic strain. There will be a Strain element for each strain used during the project.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="description" type="xs:string">
								<xs:annotation>
									<xs:documentation>A description of the observable struc-ture, function or behaviour of the given biological source</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element ref="ADM:comment"/>
							<xs:element name="MetaData">
								<xs:complexType>
									<xs:choice>
										<xs:element name="Mutations">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="mutation" minOccurs="0" maxOccurs="unbounded">
														<xs:annotation>
															<xs:documentation>A gene mutated in a given strain.</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="gene" type="xs:string"/>
																<xs:element name="mutation_type" type="xs:string"/>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element ref="HMN:human"/>
									</xs:choice>
								</xs:complexType>
							</xs:element>
							<xs:element name="BioSample" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Description of a biological sample taken from the source</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="description" type="xs:string"/>
										<xs:element ref="ADM:comment"/>
										<xs:element name="growth_progress" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Records the observations of growth progress throughout a number of specified stages</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="stage" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="check_date" type="xs:date" minOccurs="0"/>
																<xs:element name="check_time" type="xs:time" minOccurs="0"/>
																<xs:element name="observation" type="xs:string">
																	<xs:annotation>
																		<xs:documentation>A brief description of the observable structure, function or behaviour of the given replicate at the given stage</xs:documentation>
																	</xs:annotation>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="ID" type="xs:ID" use="required"/>
									<xs:attribute name="external_ID" type="xs:string"/>
									<xs:attribute name="bar_code" type="xs:string"/>
									<xs:attribute name="name" type="xs:string"/>
									<xs:attribute name="experiment" type="xs:IDREF" use="required">
										<xs:annotation>
											<xs:documentation>A reference to a biological experiment used to obtain the given sample</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="sample_no" type="xs:int"/>
									<xs:attribute name="class_label" type="xs:string"/>
									<xs:attribute name="sample_type" type="xs:string"/>
									<xs:attribute name="quantity" type="xs:int"/>
									<xs:attribute name="storage_conditions" type="xs:string"/>
								</xs:complexType>
								<xs:key name="BioSampleID">
									<xs:selector xpath="."/>
									<xs:field xpath="@ID"/>
								</xs:key>
								<xs:keyref name="BioExperiment" refer="ADM:ExperimentID">
									<xs:selector xpath="."/>
									<xs:field xpath="@experiment"/>
								</xs:keyref>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="ID" type="xs:ID" use="required"/>
						<xs:attribute name="name" type="xs:string" use="optional"/>
					</xs:complexType>
					<xs:key name="SourceID">
						<xs:selector xpath="."/>
						<xs:field xpath="@ID"/>
					</xs:key>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="ID" type="xs:ID" use="required"/>
			<xs:attribute name="name" type="xs:string" use="required"/>
			<xs:attribute name="organism" type="xs:string" use="optional" default="Saccharomyces cerevisiae"/>
			<xs:attribute name="set">
				<xs:annotation>
					<xs:documentation>A reference to a set of experiments used to obtain biological samples of the given source</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
		<xs:key name="GenotypeID">
			<xs:selector xpath="."/>
			<xs:field xpath="@ID"/>
		</xs:key>
		<xs:keyref name="BioSet" refer="ADM:ExperimentSetID">
			<xs:selector xpath="."/>
			<xs:field xpath="@set"/>
		</xs:keyref>
	</xs:element>
</xs:schema>
