Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://www.opengis.net/gml" elementFormDefault="qualified" version="3.1.1.2" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml">
3
	<annotation>
4
		<appinfo source="urn:opengis:specification:gml:schema-xsd:dictionary:3.1.1"/>
5
		<documentation>
6
			Dictionary schema for GML 3.1.1 
7
			Components to support the lists of definitions.
8
			
9
			GML is an OGC Standard.
10
			Copyright (c) 2001,2005,2010 Open Geospatial Consortium.
11
			To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
12
		</documentation>
13
	</annotation>
14
	<!-- ========================================================
15
       includes and imports
16
	======================================================== -->
17
	<include schemaLocation="gml.xsd"/>
18
	<include schemaLocation="gmlBase.xsd"/>
19
	<!-- ===================================================== -->
20
	<!-- ===================================================== -->
21
	<!-- === Dictionary and Definition components === -->
22
	<!-- ===================================================== -->
23
	<group name="StandardDefinitionProperties">
24
		<annotation>
25
			<documentation>This content model group makes it easier to construct types that 
26
      derive from DefinitionType and its descendents "by restriction".  
27
      A reference to the group saves having to enumerate the standard definition properties. 
28
      See definition of StandardObjectProperties for more documentation</documentation>
29
		</annotation>
30
		<sequence>
31
			<element ref="gml:metaDataProperty" minOccurs="0" maxOccurs="unbounded"/>
32
			<element ref="gml:description" minOccurs="0"/>
33
			<element ref="gml:name" maxOccurs="unbounded"/>
34
		</sequence>
35
	</group>
36
	<!-- ===================================================== -->
37
	<element name="Definition" type="gml:DefinitionType" substitutionGroup="gml:_GML"/>
38
	<!-- ===================================================== -->
39
	<complexType name="DefinitionType">
40
		<annotation>
41
			<documentation>A definition, which can be included in or referenced by a dictionary. In this extended type, the inherited "description" optional element can hold the definition whenever only text is needed. The inherited "name" elements can provide one or more brief terms for which this is the definition. The inherited "metaDataProperty" elements can be used to reference or include more information about this definition.  
42
The gml:id attribute is required - it must be possible to reference this definition using this handle.  </documentation>
43
		</annotation>
44
		<complexContent>
45
			<restriction base="gml:AbstractGMLType">
46
				<sequence>
47
					<element ref="gml:metaDataProperty" minOccurs="0" maxOccurs="unbounded"/>
48
					<element ref="gml:description" minOccurs="0"/>
49
					<element ref="gml:name" maxOccurs="unbounded"/>
50
				</sequence>
51
				<attribute ref="gml:id" use="required"/>
52
			</restriction>
53
		</complexContent>
54
	</complexType>
55
	<!-- ===================================================== -->
56
	<element name="Dictionary" type="gml:DictionaryType" substitutionGroup="gml:Definition"/>
57
	<element name="DefinitionCollection" type="gml:DictionaryType" substitutionGroup="gml:Definition"/>
58
	<!-- ===================================================== -->
59
	<complexType name="DictionaryType">
60
		<annotation>
61
			<documentation>A non-abstract bag that is specialized for use as a dictionary which contains a set of definitions. These definitions are referenced from other places, in the same and different XML documents. In this restricted type, the inherited optional "description" element can be used for a description of this dictionary. The inherited optional "name" element can be used for the name(s) of this dictionary. The inherited "metaDataProperty" elements can be used to reference or contain more information about this dictionary. The inherited required gml:id attribute allows the dictionary to be referenced using this handle. </documentation>
62
		</annotation>
63
		<complexContent>
64
			<extension base="gml:DefinitionType">
65
				<sequence minOccurs="0" maxOccurs="unbounded">
66
					<choice>
67
						<element ref="gml:dictionaryEntry">
68
							<annotation>
69
								<documentation>An entry in this dictionary. The content of an entry can itself be a lower level dictionary or definition collection. This element follows the standard GML property model, so the value may be provided directly or by reference. Note that if the value is provided by reference, this definition does not carry a handle (gml:id) in this context, so does not allow external references to this specific entry in this context. When used in this way the referenced definition will usually be in a dictionary in the same XML document. </documentation>
70
							</annotation>
71
						</element>
72
						<element ref="gml:indirectEntry">
73
							<annotation>
74
								<documentation>An identified reference to a remote entry in this dictionary, to be used when this entry should be identified to allow external references to this specific entry. </documentation>
75
							</annotation>
76
						</element>
77
					</choice>
78
				</sequence>
79
			</extension>
80
		</complexContent>
81
	</complexType>
82
	<!-- ===================================================== -->
83
	<element name="dictionaryEntry" type="gml:DictionaryEntryType"/>
84
	<element name="definitionMember" type="gml:DictionaryEntryType" substitutionGroup="gml:dictionaryEntry"/>
85
	<!-- ===================================================== -->
86
	<complexType name="DictionaryEntryType">
87
		<annotation>
88
			<documentation>An entry in a dictionary of definitions. An instance of this type contains or refers to a definition object.  
89

    
90
The number of definitions contained in this dictionaryEntry is restricted to one, but a DefinitionCollection or Dictionary that contains multiple definitions can be substituted if needed. Specialized descendents of this dictionaryEntry might be restricted in an application schema to allow only including specified types of definitions as valid entries in a dictionary. </documentation>
91
		</annotation>
92
		<sequence minOccurs="0">
93
			<element ref="gml:Definition">
94
				<annotation>
95
					<documentation>This element in a dictionary entry contains the actual definition. </documentation>
96
				</annotation>
97
			</element>
98
		</sequence>
99
		<attributeGroup ref="gml:AssociationAttributeGroup">
100
			<annotation>
101
				<documentation>A non-identified reference to a remote entry in this dictionary, to be used when this entry need not be identified to allow external references to this specific entry. The remote entry referenced will usually be in a dictionary in the same XML document. This element will usually be used in dictionaries that are inside of another dictionary. </documentation>
102
			</annotation>
103
		</attributeGroup>
104
	</complexType>
105
	<!-- ===================================================== -->
106
	<element name="indirectEntry" type="gml:IndirectEntryType"/>
107
	<!-- ===================================================== -->
108
	<complexType name="IndirectEntryType">
109
		<annotation>
110
			<documentation>An entry in a dictionary of definitions that contains a GML object which references a remote definition object. This entry is expected to be convenient in allowing multiple elements in one XML document to contain short (abbreviated XPointer) references, which are resolved to an external definition provided in a Dictionary element in the same XML document. Specialized descendents of this dictionaryEntry might be restricted in an application schema to allow only including specified types of definitions as valid entries in a dictionary. </documentation>
111
		</annotation>
112
		<sequence>
113
			<element ref="gml:DefinitionProxy"/>
114
		</sequence>
115
	</complexType>
116
	<!-- ===================================================== -->
117
	<element name="DefinitionProxy" type="gml:DefinitionProxyType" substitutionGroup="gml:Definition"/>
118
	<!-- ===================================================== -->
119
	<complexType name="DefinitionProxyType">
120
		<annotation>
121
			<documentation>A proxy entry in a dictionary of definitions. An element of this type contains a reference to a remote definition object. This entry is expected to be convenient in allowing multiple elements in one XML document to contain short (abbreviated XPointer) references, which are resolved to an external definition provided in a Dictionary element in the same XML document. </documentation>
122
		</annotation>
123
		<complexContent>
124
			<extension base="gml:DefinitionType">
125
				<sequence>
126
					<element ref="gml:definitionRef">
127
						<annotation>
128
							<documentation>A reference to a remote entry in this dictionary, used when this dictionary entry is identified to allow external references to this specific entry. The remote entry referenced can be in a dictionary in the same or different XML document. </documentation>
129
						</annotation>
130
					</element>
131
				</sequence>
132
			</extension>
133
		</complexContent>
134
	</complexType>
135
	<!-- ===================================================== -->
136
	<element name="definitionRef" type="gml:ReferenceType"/>
137
	<!-- =========================================================== -->
138
</schema>
(9-9/29)