<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:adx="http://xml.arrc.csiro.au/adx" targetNamespace="http://xml.arrc.csiro.au/adx" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
	<!-- ==================================================== -->
	<annotation>
		<documentation> Description of 
    general assay specimens 
    mineral assay specimens 
    specimen preparation procedures 
    
2005-11-13

Copyright (c) 2006 CSIRO - see https://www.seegrid.csiro.au/twiki/bin/view/Xmml/LegalNotices#Software_Notice
</documentation>
	</annotation>
	<!-- ==================================================== -->
	<!-- ==================================================== -->
	<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/>
	<import namespace="http://www.isotc211.org/2005/gmd" schemaLocation="../../../../gml/trunk/gml/3.1.1/gmd/citation.xsd"/>
	<include schemaLocation="adxBase.xsd"/>
	<include schemaLocation="LUTsampling.xsd"/>
	<!-- ==================================================== -->
	<complexType name="SpecimenListType">
		<annotation>
			<documentation>A list of specimens</documentation>
		</annotation>
		<sequence maxOccurs="unbounded">
			<choice>
				<element ref="adx:AssaySpecimen"/>
				<element ref="adx:MineralAssaySpecimen"/>
			</choice>
		</sequence>
		<attribute name="count" type="adx:count" use="required">
			<annotation>
				<documentation>The number of specimens in the list.</documentation>
			</annotation>
		</attribute>
	</complexType>
	<!-- ==================================================== -->
	<element name="AssaySpecimen" type="adx:AssaySpecimenType"/>
	<!-- ==================================================== -->
	<complexType name="AssaySpecimenType">
		<annotation>
			<documentation>Description of assay specimen, including chain-of-custody if required.</documentation>
		</annotation>
		<complexContent>
			<extension base="gml:AbstractGMLType">
				<sequence>
					<element name="labID" type="adx:identifier" minOccurs="0">
						<annotation>
							<documentation>The label or ID used by the provider to identify the specimen.</documentation>
						</annotation>
					</element>
					<element name="purpose" type="adx:specimenPurposeCode" default="normal">
						<annotation>
							<documentation>Indicates if the specimen is one in which the concentration of analyte has been pre-determined in some way - blank, standard, spike - or is "normal". </documentation>
						</annotation>
					</element>
					<element name="relatedSpecimen" type="gml:ReferenceType" minOccurs="0" maxOccurs="unbounded">
						<annotation>
							<documentation>Pointer to a related specimen, siblings, descendents and ancestors, for handling splits, repeats or duplicate specimens.</documentation>
						</annotation>
					</element>
					<element name="material" type="adx:generalAssaySpecimenMaterialCode">
						<annotation>
							<documentation>The primary material type.</documentation>
						</annotation>
					</element>
					<element name="preservative" type="token" minOccurs="0">
						<annotation>
							<documentation>This preservative code is required to indicate the exact preservative used to maintain stability of the specimen. </documentation>
						</annotation>
					</element>
					<element name="matrix" type="token" minOccurs="0">
						<annotation>
							<documentation>The specimen matrix information is required to provide the USA EPA with environmental reference material from compliant laboratories</documentation>
						</annotation>
					</element>
					<element name="media" type="token" minOccurs="0">
						<annotation>
							<documentation>The specimen media information is required to provide the USA EPA with environmental reference material from compliant laboratories</documentation>
						</annotation>
					</element>
					<element name="concentrationLevel" minOccurs="0">
						<annotation>
							<documentation>This may be required for environmental specimen processing</documentation>
						</annotation>
						<simpleType>
							<restriction base="token">
								<enumeration value="HIGH"/>
								<enumeration value="MEDIUM"/>
								<enumeration value="LOW"/>
							</restriction>
						</simpleType>
					</element>
					<element name="massSupplied" type="gml:MeasureType">
						<annotation>
							<documentation>The original specimen weight allows the field supplied weight to be recorded to allow QA/QC checks to determine if too much or too little specimen was supplied.</documentation>
						</annotation>
					</element>
					<element name="massSuppliedTared" type="gml:MeasureType" minOccurs="0">
						<annotation>
							<documentation>Original specimen weight in a container, with the container weight Tared out, commonly used for small or environmental specimens to determine the actual  true weight of the specimen minus the enclosure</documentation>
						</annotation>
					</element>
					<element name="preparation" type="gml:ReferenceType" minOccurs="0">
						<annotation>
							<documentation>Pointer to the specimen preparation procedure.  This will normally be a link to the description of a procedure expressed as a adx:AssaySpecimenPreparation element</documentation>
						</annotation>
					</element>
					<element name="sizeDistribution" type="adx:SizeDistributionPropertyType" minOccurs="0">
						<annotation>
							<documentation>A description of the size-distribution of the prepared specimen (if known).</documentation>
						</annotation>
					</element>
					<element name="time" type="gml:ReferenceType" minOccurs="0">
						<annotation>
							<documentation>The period or instant during which specimen was prepared</documentation>
						</annotation>
					</element>
					<element name="operator" type="gmd:CI_ResponsibleParty_PropertyType" minOccurs="0">
						<annotation>
							<documentation>The party responsible for preparing the specimen</documentation>
						</annotation>
					</element>
					<element name="custodyEvent" minOccurs="0" maxOccurs="unbounded">
						<annotation>
							<documentation>An event in the lifetime of the specimen: 
              acquisition, transportation, preparation, disposal, etc.  
          Provided the associated time periods are complete and contiguous, 
          this provides a chain-of-custody record for the specimen. </documentation>
						</annotation>
						<complexType>
							<sequence>
								<element ref="adx:Event"/>
							</sequence>
						</complexType>
					</element>
					<element name="status" type="adx:specimenStatusCode">
						<annotation>
							<documentation>The current status of the specimen.  
          If the custody chain is complete, then this will reflect the outcome of the most recent custody operation.  </documentation>
						</annotation>
					</element>
					<element name="comment" type="string" minOccurs="0"/>
				</sequence>
			</extension>
			<!--
			<extension base="adx:ADXnamedObjectType">
			-->
		</complexContent>
	</complexType>
	<!-- ==================================================== -->
	<element name="MineralAssaySpecimen" type="adx:MineralAssaySpecimenType"/>
	<!-- ==================================================== -->
	<complexType name="MineralAssaySpecimenType">
		<annotation>
			<documentation>Specialised assay specimen for the mineral exploration industry, including chain-of-custody if required.</documentation>
		</annotation>
		<complexContent>
			<extension base="gml:AbstractGMLType">
				<sequence>
					<element name="labID" type="adx:identifier" minOccurs="0">
						<annotation>
							<documentation>The label or ID used by the provider to identify the specimen.</documentation>
						</annotation>
					</element>
					<element name="purpose" type="adx:specimenPurposeCode" default="normal">
						<annotation>
							<documentation>Indicates if the specimen is one in which the concentration of analyte has been pre-determined in some way - blank, standard, spike - or is "normal". </documentation>
						</annotation>
					</element>
					<element name="relatedSpecimen" type="gml:ReferenceType" minOccurs="0" maxOccurs="unbounded">
						<annotation>
							<documentation>Pointer to a related specimen, siblings, descendents and ancestors, for handling splits, repeats or duplicate specimens.</documentation>
						</annotation>
					</element>
					<element name="material" type="adx:mineralAssaySpecimenMaterialCode">
						<annotation>
							<documentation>The primary material type.</documentation>
						</annotation>
					</element>
					<element name="preservative" type="token" minOccurs="0">
						<annotation>
							<documentation>This preservative code is required to indicate the exact preservative used to maintain stability of the specimen. </documentation>
						</annotation>
					</element>
					<element name="matrix" type="token" minOccurs="0">
						<annotation>
							<documentation>The specimen matrix information is required to provide the USA EPA with environmental reference material from compliant laboratories</documentation>
						</annotation>
					</element>
					<element name="media" type="token" minOccurs="0">
						<annotation>
							<documentation>The specimen media information is required to provide the USA EPA with environmental reference material from compliant laboratories</documentation>
						</annotation>
					</element>
					<element name="concentrationLevel" minOccurs="0">
						<annotation>
							<documentation>This may be required for environmental specimen processing</documentation>
						</annotation>
						<simpleType>
							<restriction base="token">
								<enumeration value="HIGH"/>
								<enumeration value="MEDIUM"/>
								<enumeration value="LOW"/>
							</restriction>
						</simpleType>
					</element>
					<element name="massSupplied" type="gml:MeasureType">
						<annotation>
							<documentation>The original specimen weight allows the field supplied weight to be recorded to allow QA/QC checks to determine if too much or too little specimen was supplied.</documentation>
						</annotation>
					</element>
					<element name="massSuppliedTared" type="gml:MeasureType" minOccurs="0">
						<annotation>
							<documentation>Original specimen weight in a container, with the container weight Tared out, commonly used for small or environmental specimens to determine the actual  true weight of the specimen minus the enclosure</documentation>
						</annotation>
					</element>
					<element name="preparation" type="gml:ReferenceType" minOccurs="0">
						<annotation>
							<documentation>Pointer to the specimen preparation procedure.  This will normally be a link to the description of a procedure expressed as a adx:AssaySpecimenPreparation element</documentation>
						</annotation>
					</element>
					<element name="sizeDistribution" type="adx:SizeDistributionPropertyType" minOccurs="0">
						<annotation>
							<documentation>A description of the size-distribution of the prepared specimen (if known).</documentation>
						</annotation>
					</element>
					<element name="time" type="gml:ReferenceType" minOccurs="0">
						<annotation>
							<documentation>The period or instant during which specimen was prepared</documentation>
						</annotation>
					</element>
					<element name="operator" type="gmd:CI_ResponsibleParty_PropertyType" minOccurs="0">
						<annotation>
							<documentation>The party responsible for preparing the specimen</documentation>
						</annotation>
					</element>
					<element name="custodyEvent" minOccurs="0" maxOccurs="unbounded">
						<annotation>
							<documentation>An event in the lifetime of the specimen: 
              acquisition, transportation, preparation, disposal, etc.  
          Provided the associated time periods are complete and contiguous, 
          this provides a chain-of-custody record for the specimen. </documentation>
						</annotation>
						<complexType>
							<sequence>
								<element ref="adx:Event"/>
							</sequence>
						</complexType>
					</element>
					<element name="status" type="adx:specimenStatusCode">
						<annotation>
							<documentation>The current status of the specimen.  
          If the custody chain is complete, then this will reflect the outcome of the most recent custody operation.  </documentation>
						</annotation>
					</element>
					<element name="comment" type="string" minOccurs="0"/>
				</sequence>
			</extension>
			<!--
			<extension base="adx:ADXnamedObjectType">
			-->
		</complexContent>
	</complexType>
	<!-- ==================================================== -->
	<complexType name="SizeDistributionPropertyType">
		<annotation>
			<documentation>Choose:
          adx:CrushedMaterial for rock, cuttings, core, and other materials that are prepared by crushing
          adx:SeivedMaterial for soil, sediment, umus, vegetation, and other materials that are prepared by seiving</documentation>
		</annotation>
		<choice>
			<element ref="adx:CrushedMaterial"/>
			<element ref="adx:SeivedMaterial"/>
		</choice>
	</complexType>
	<!-- ==================================================== -->
	<element name="CrushedMaterial" type="adx:CrushedMaterialType">
		<annotation>
			<documentation>Size distribution for rock, cuttings, core, and other materials that are prepared by crushing
</documentation>
		</annotation>
	</element>
	<!-- ==================================================== -->
	<complexType name="CrushedMaterialType">
		<sequence>
			<element name="primaryCrushFraction" type="adx:TypedMeasureType">
				<annotation>
					<documentation>Indicate proportion of material that would satisfy the size specified 
          after primary crushing
          
          e.g. *primaryCrushFraction uom="percent" property="Tyler200"*65.*/primaryCrushFraction*
					</documentation>
				</annotation>
			</element>
			<element name="secondaryCrushFraction" type="adx:TypedMeasureType">
				<annotation>
					<documentation>Indicate proportion of material that would satisfy the size specified 
          after secondary crushing
          
          e.g. *secondaryCrushFraction uom="percent" property="Tyler200"*95.*/secondaryCrushFraction*
					</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<!-- ==================================================== -->
	<element name="SeivedMaterial" type="adx:SeivedMaterialType">
		<annotation>
			<documentation>Size distribution for soil, sediment, umus, vegetation, and other materials that are prepared by seiving </documentation>
		</annotation>
	</element>
	<!-- ==================================================== -->
	<complexType name="SeivedMaterialType">
		<sequence>
			<element name="sizeRange" type="adx:MeasureIntervalType">
				<annotation>
					<documentation>two numbers that indicate the size range (upper and lower screens) 
          of material analysed in the given units-of-measure: 
          
          e.g. *sizeRange uom="TylerMeshNumber"*200 80*/sizeRange*
					</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<!-- ==================================================== -->
	<!-- ==================================================== -->
	<element name="AssaySpecimenPreparation" type="adx:AssaySpecimenPreparationType"/>
	<!-- ==================================================== -->
	<complexType name="AssaySpecimenPreparationType">
		<complexContent>
			<extension base="gml:DefinitionType">
				<sequence>
					<element name="preparation" type="adx:specimenPreparationCode" maxOccurs="unbounded">
						<annotation>
							<documentation>XML document-ordered list of preps</documentation>
						</annotation>
					</element>
					<element name="dryingTemperature" type="gml:MeasureType" minOccurs="0">
						<annotation>
							<documentation>The drying temperature is recorded per specimen to enable QA/QC checks to be performed to ensure the specimens were not damaged or met the criteria required for the method during pre-processing drying stages</documentation>
						</annotation>
					</element>
					<element name="operator" type="gmd:CI_ResponsibleParty_PropertyType" minOccurs="0">
						<annotation>
							<documentation>The party responsible for specimen preparation and/ or specific laboratory location.</documentation>
						</annotation>
					</element>
					<element name="comment" type="string" minOccurs="0"/>
				</sequence>
			</extension>
			<!--
			<extension base="adx:ADXnamedObjectType">
			-->
		</complexContent>
	</complexType>
	<!-- ==================================================== -->
</schema>

