<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Aydin Galip (cgl) -->
<schema xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:om="http://www.opengis.net/om" xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.opengis.net/om" elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.5">
	<annotation>
		<appinfo>ObservedValue.xsd</appinfo>
		<documentation>
GML conformant schema for Observed Values 
Adds "quality" and observable to a Value.   

SJDC  2002-12-24
</documentation>
	</annotation>
	<!-- ====================================================================== -->
	<include schemaLocation="phenomenon.xsd"/>
	<import namespace="http://www.opengis.net/gml" schemaLocation="includes.xsd"/>
	<!-- ====================================================================== -->
	<element name="observable" type="om:PhenomenonPropertyType" substitutionGroup="om:axis"/>
	<!-- ====================================================================== -->
	<element name="ObservedValue" type="om:ObservedValueType" substitutionGroup="gml:CompositeValue">
		<annotation>
			<documentation>Observed value has optional semantic and quality indicators.  
      The concrete element ObservedValue is added to the gml:_Value substitution group in order that it may be used in place of the standard value types.  
The semantic property "axis" or "observable" may be useful in disaggregating the members of a valueCollection. </documentation>
		</annotation>
	</element>
	
	<complexType name="ObservedValueType">
		<complexContent>
			<extension base="gml:CompositeValueType">
				<sequence>
					<element ref="gml:valueProperty"/>
					<element ref="om:observable"/>
					<element ref="om:quality" maxOccurs="unbounded">
						<annotation>
							<documentation>Observed value has optional quality indicators.  
              Using this component, the components of an aggregate value may have independent quality indicators.</documentation>
						</annotation>
					</element>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<!-- ====================================================================== -->
	<element name="quality">
		<annotation>
			<documentation>
    Intended to store information concerning the quality of the value.  
    An attribute "method" allows the user to indicate what kind of quality indicator this is: absolute limits, SD, 
    95% confidence, qualitative code, etc.  </documentation>
		</annotation>
		<complexType>
			<choice>
				<element name="Description" type="gml:StringOrRefType">
					<annotation>
						<documentation>Descriptive assessment of data quality</documentation>
					</annotation>
				</element>
				<element name="Rank" type="gml:CodeType">
					<annotation>
						<documentation>Qualitative assessment of data quality</documentation>
					</annotation>
				</element>
				<element name="Error" type="gml:MeasureType">
					<annotation>
						<documentation>Used for error measurements requiring one quantity</documentation>
					</annotation>
				</element>
				<element name="Bounds" type="gml:QuantityExtentType">
					<annotation>
						<documentation>Used for error measurements requiring two quantities on the same scale</documentation>
					</annotation>
				</element>
				<element name="Errors" type="gml:MeasureListType">
					<annotation>
						<documentation>Used for error measurements requiring multiple quantities on the same scale</documentation>
					</annotation>
				</element>
			</choice>
			<attribute name="method" type="anyURI" use="required"/>
		</complexType>
	</element>
	<!-- ====================================================================== -->
</schema>
