Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://www.opengis.net/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="3.2.0">
3
	<annotation>
4
		<appinfo source="urn:ogc:specification:gml:schema-xsd:temporal:3.2.0">temporal.xsd</appinfo>
5
		<documentation>See ISO/DIS 19136 15.2.
6
The GML temporal schemas include components for describing temporal geometry and topology, temporal reference systems, and the temporal characteristics of geographic data. The model underlying the representation constitutes a profile of the conceptual schema described in ISO 19108. The underlying spatiotemporal model strives to accommodate both feature-level and attribute-level time stamping; basic support for tracking moving objects is also included. 
7
Time is measured on two types of scales: interval and ordinal.  An interval scale offers a basis for measuring duration, an ordinal scale provides information only about relative position in time.
8
Two other ISO standards are relevant to describing temporal objects:  ISO 8601 describes encodings for time instants and time periods, as text strings with particular structure and punctuation; ISO 11404 provides a detailed description of time intervals as part of a general discussion of language independent datatypes.  
9
The temporal schemas cover two interrelated topics and provide basic schema components for representing temporal instants and periods, temporal topology, and reference systems; more specialized schema components defines components used for dynamic features. Instances of temporal geometric types are used as values for the temporal properties of geographic features. </documentation>
10
	</annotation>
11
	<include schemaLocation="gmlBase.xsd"/>
12
	<element name="AbstractTimeObject" type="gml:AbstractTimeObjectType" abstract="true" substitutionGroup="gml:AbstractGML">
13
		<annotation>
14
			<documentation>gml:AbstractTimeObject acts as the head of a substitution group for all temporal primitives and complexes.</documentation>
15
		</annotation>
16
	</element>
17
	<complexType name="AbstractTimeObjectType" abstract="true">
18
		<complexContent>
19
			<extension base="gml:AbstractGMLType"/>
20
		</complexContent>
21
	</complexType>
22
	<element name="AbstractTimePrimitive" type="gml:AbstractTimePrimitiveType" abstract="true" substitutionGroup="gml:AbstractTimeObject">
23
		<annotation>
24
			<documentation>gml:AbstractTimePrimitive acts as the head of a substitution group for geometric and topological temporal primitives.</documentation>
25
		</annotation>
26
	</element>
27
	<complexType name="AbstractTimePrimitiveType" abstract="true">
28
		<complexContent>
29
			<extension base="gml:AbstractTimeObjectType">
30
				<sequence>
31
					<element name="relatedTime" type="gml:RelatedTimeType" minOccurs="0" maxOccurs="unbounded"/>
32
				</sequence>
33
			</extension>
34
		</complexContent>
35
	</complexType>
36
	<complexType name="TimePrimitivePropertyType">
37
		<annotation>
38
			<documentation>gml:TimePrimitivePropertyType provides a standard content model for associations between an arbitrary member of the substitution group whose head is gml:AbstractTimePrimitive and another object.</documentation>
39
		</annotation>
40
		<sequence minOccurs="0">
41
			<element ref="gml:AbstractTimePrimitive"/>
42
		</sequence>
43
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
44
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
45
	</complexType>
46
	<element name="validTime" type="gml:TimePrimitivePropertyType">
47
		<annotation>
48
			<documentation>gml:validTime is a convenience property element.</documentation>
49
		</annotation>
50
	</element>
51
	<complexType name="RelatedTimeType">
52
		<annotation>
53
			<documentation>gml:RelatedTimeType provides a content model for indicating the relative position of an arbitrary member of the substitution group whose head is gml:AbstractTimePrimitive. It extends the generic gml:TimePrimitivePropertyType with an XML attribute relativePosition, whose value is selected from the set of 13 temporal relationships identified by Allen (1983)</documentation>
54
		</annotation>
55
		<complexContent>
56
			<extension base="gml:TimePrimitivePropertyType">
57
				<attribute name="relativePosition">
58
					<simpleType>
59
						<restriction base="string">
60
							<enumeration value="Before"/>
61
							<enumeration value="After"/>
62
							<enumeration value="Begins"/>
63
							<enumeration value="Ends"/>
64
							<enumeration value="During"/>
65
							<enumeration value="Equals"/>
66
							<enumeration value="Contains"/>
67
							<enumeration value="Overlaps"/>
68
							<enumeration value="Meets"/>
69
							<enumeration value="OverlappedBy"/>
70
							<enumeration value="MetBy"/>
71
							<enumeration value="BegunBy"/>
72
							<enumeration value="EndedBy"/>
73
						</restriction>
74
					</simpleType>
75
				</attribute>
76
			</extension>
77
		</complexContent>
78
	</complexType>
79
	<element name="AbstractTimeComplex" type="gml:AbstractTimeComplexType" abstract="true" substitutionGroup="gml:AbstractTimeObject">
80
		<annotation>
81
			<documentation>gml:AbstractTimeComplex is an aggregation of temporal primitives and acts as the head of a substitution group for temporal complexes.</documentation>
82
		</annotation>
83
	</element>
84
	<complexType name="AbstractTimeComplexType" abstract="true">
85
		<complexContent>
86
			<extension base="gml:AbstractTimeObjectType"/>
87
		</complexContent>
88
	</complexType>
89
	<element name="AbstractTimeGeometricPrimitive" type="gml:AbstractTimeGeometricPrimitiveType" abstract="true" substitutionGroup="gml:AbstractTimePrimitive">
90
		<annotation>
91
			<documentation>gml:TimeGeometricPrimitive acts as the head of a substitution group for geometric temporal primitives.
92
A temporal geometry shall be associated with a temporal reference system through the frame attribute that provides a URI reference that identifies a description of the reference system. Following ISO 19108, the Gregorian calendar with UTC is the default reference system, but others may also be used. The GPS calendar is an alternative reference systems in common use.
93
The two geometric primitives in the temporal dimension are the instant and the period. GML components are defined to support these as follows.</documentation>
94
		</annotation>
95
	</element>
96
	<complexType name="AbstractTimeGeometricPrimitiveType" abstract="true">
97
		<complexContent>
98
			<extension base="gml:AbstractTimePrimitiveType">
99
				<attribute name="frame" type="anyURI" default="#ISO-8601"/>
100
			</extension>
101
		</complexContent>
102
	</complexType>
103
	<element name="TimeInstant" type="gml:TimeInstantType" substitutionGroup="gml:AbstractTimeGeometricPrimitive">
104
		<annotation>
105
			<documentation>gml:TimeInstant acts as a zero-dimensional geometric primitive that represents an identifiable position in time.</documentation>
106
		</annotation>
107
	</element>
108
	<complexType name="TimeInstantType" final="#all">
109
		<complexContent>
110
			<extension base="gml:AbstractTimeGeometricPrimitiveType">
111
				<sequence>
112
					<element ref="gml:timePosition"/>
113
				</sequence>
114
			</extension>
115
		</complexContent>
116
	</complexType>
117
	<complexType name="TimeInstantPropertyType">
118
		<annotation>
119
			<documentation>gml:TimeInstantPropertyType provides for associating a gml:TimeInstant with an object.</documentation>
120
		</annotation>
121
		<sequence minOccurs="0">
122
			<element ref="gml:TimeInstant"/>
123
		</sequence>
124
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
125
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
126
	</complexType>
127
	<element name="TimePeriod" type="gml:TimePeriodType" substitutionGroup="gml:AbstractTimeGeometricPrimitive">
128
		<annotation>
129
			<documentation>gml:TimePeriod acts as a one-dimensional geometric primitive that represents an identifiable extent in time.
130
The location in of a gml:TimePeriod is described by the temporal positions of the instants at which it begins and ends. The length of the period is equal to the temporal distance between the two bounding temporal positions. 
131
Both beginning and end may be described in terms of their direct position using gml:TimePositionType which is an XML Schema simple content type, or by reference to an indentifiable time instant using gml:TimeInstantPropertyType.
132
Alternatively a limit of a gml:TimePeriod may use the conventional GML property model to make a reference to a time instant described elsewhere, or a limit may be indicated as a direct position.</documentation>
133
		</annotation>
134
	</element>
135
	<complexType name="TimePeriodType">
136
		<complexContent>
137
			<extension base="gml:AbstractTimeGeometricPrimitiveType">
138
				<sequence>
139
					<choice>
140
						<element name="beginPosition" type="gml:TimePositionType"/>
141
						<element name="begin" type="gml:TimeInstantPropertyType"/>
142
					</choice>
143
					<choice>
144
						<element name="endPosition" type="gml:TimePositionType"/>
145
						<element name="end" type="gml:TimeInstantPropertyType"/>
146
					</choice>
147
					<group ref="gml:timeLength" minOccurs="0"/>
148
				</sequence>
149
			</extension>
150
		</complexContent>
151
	</complexType>
152
	<complexType name="TimePeriodPropertyType">
153
		<annotation>
154
			<documentation>gml:TimePeriodPropertyType provides for associating a gml:TimePeriod with an object.</documentation>
155
		</annotation>
156
		<sequence minOccurs="0">
157
			<element ref="gml:TimePeriod"/>
158
		</sequence>
159
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
160
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
161
	</complexType>
162
	<complexType name="TimePositionType" final="#all">
163
		<annotation>
164
			<documentation>The method for identifying a temporal position is specific to each temporal reference system.  gml:TimePositionType supports the description of temporal position according to the subtypes described in ISO 19108.
165
Values based on calendars and clocks use lexical formats that are based on ISO 8601, as described in XML Schema Part 2:2001. A decimal value may be used with coordinate systems such as GPS time or UNIX time. A URI may be used to provide a reference to some era in an ordinal reference system . 
166
In common with many of the components modelled as data types in the ISO 19100 series of International Standards, the corresponding GML component has simple content. However, the content model gml:TimePositionType is defined in several steps.
167
Three XML attributes appear on gml:TimePositionType:
168
A time value shall be associated with a temporal reference system through the frame attribute that provides a URI reference that identifies a description of the reference system. Following ISO 19108, the Gregorian calendar with UTC is the default reference system, but others may also be used. Components for describing temporal reference systems are described in 14.4, but it is not required that the reference system be described in this, as the reference may refer to anything that may be indentified with a URI.  
169
For time values using a calendar containing more than one era, the (optional) calendarEraName attribute provides the name of the calendar era.  
170
Inexact temporal positions may be expressed using the optional indeterminatePosition attribute.  This takes a value from an enumeration.</documentation>
171
		</annotation>
172
		<simpleContent>
173
			<extension base="gml:TimePositionUnion">
174
				<attribute name="frame" type="anyURI" default="#ISO-8601"/>
175
				<attribute name="calendarEraName" type="string"/>
176
				<attribute name="indeterminatePosition" type="gml:TimeIndeterminateValueType"/>
177
			</extension>
178
		</simpleContent>
179
	</complexType>
180
	<simpleType name="TimeIndeterminateValueType">
181
		<annotation>
182
			<documentation>These values are interpreted as follows: 
183
-	“unknown” indicates that no specific value for temporal position is provided.
184
-	“now” indicates that the specified value shall be replaced with the current temporal position whenever the value is accessed.
185
-	“before” indicates that the actual temporal position is unknown, but it is known to be before the specified value.
186
-	“after” indicates that the actual temporal position is unknown, but it is known to be after the specified value.
187
A value for indeterminatePosition may 
188
-	be used either alone, or 
189
-	qualify a specific value for temporal position.</documentation>
190
		</annotation>
191
		<restriction base="string">
192
			<enumeration value="after"/>
193
			<enumeration value="before"/>
194
			<enumeration value="now"/>
195
			<enumeration value="unknown"/>
196
		</restriction>
197
	</simpleType>
198
	<simpleType name="TimePositionUnion">
199
		<annotation>
200
			<documentation>The simple type gml:TimePositionUnion is a union of XML Schema simple types which instantiate the subtypes for temporal position described in ISO 19108.
201
 An ordinal era may be referenced via URI.  A decimal value may be used to indicate the distance from the scale origin .  time is used for a position that recurs daily (see ISO 19108:2002 5.4.4.2).
202
 Finally, calendar and clock forms that support the representation of time in systems based on years, months, days, hours, minutes and seconds, in a notation following ISO 8601, are assembled by gml:CalDate</documentation>
203
		</annotation>
204
		<union memberTypes="gml:CalDate time dateTime anyURI decimal"/>
205
	</simpleType>
206
	<simpleType name="CalDate">
207
		<union memberTypes="date gYearMonth gYear"/>
208
	</simpleType>
209
	<element name="timePosition" type="gml:TimePositionType">
210
		<annotation>
211
			<documentation>This element is used directly as a property of gml:TimeInstant (see 15.2.2.3), and may also be used in application schemas.</documentation>
212
		</annotation>
213
	</element>
214
	<group name="timeLength">
215
		<annotation>
216
			<documentation>The length of a time period.</documentation>
217
		</annotation>
218
		<choice>
219
			<element ref="gml:duration"/>
220
			<element ref="gml:timeInterval"/>
221
		</choice>
222
	</group>
223
	<element name="duration" type="duration">
224
		<annotation>
225
			<documentation>gml:duration conforms to the ISO 8601 syntax for temporal length as implemented by the XML Schema duration type.</documentation>
226
		</annotation>
227
	</element>
228
	<element name="timeInterval" type="gml:TimeIntervalLengthType">
229
		<annotation>
230
			<documentation> gml:timeInterval conforms to ISO 11404 which is based on floating point values for temporal length.
231
ISO 11404 syntax specifies the use of a positiveInteger together with appropriate values for radix and factor. The resolution of the time interval is to one radix ^(-factor) of the specified time unit.
232
The value of the unit is either selected from the units for time intervals from ISO 31-1:1992, or is another suitable unit.  The encoding is defined for GML in gml:TimeUnitType. The second component of this union type provides a method for indicating time units other than the six standard units given in the enumeration.</documentation>
233
		</annotation>
234
	</element>
235
	<complexType name="TimeIntervalLengthType" final="#all">
236
		<simpleContent>
237
			<extension base="decimal">
238
				<attribute name="unit" type="gml:TimeUnitType" use="required"/>
239
				<attribute name="radix" type="positiveInteger"/>
240
				<attribute name="factor" type="integer"/>
241
			</extension>
242
		</simpleContent>
243
	</complexType>
244
	<simpleType name="TimeUnitType">
245
		<union>
246
			<simpleType>
247
				<restriction base="string">
248
					<enumeration value="year"/>
249
					<enumeration value="month"/>
250
					<enumeration value="day"/>
251
					<enumeration value="hour"/>
252
					<enumeration value="minute"/>
253
					<enumeration value="second"/>
254
				</restriction>
255
			</simpleType>
256
			<simpleType>
257
				<restriction base="string">
258
					<pattern value="other:\w{2,}"/>
259
				</restriction>
260
			</simpleType>
261
		</union>
262
	</simpleType>
263
</schema>
(47-47/54)