Project

General

Profile

1 9559 tao
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://www.opengis.net/gml/3.2" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="3.2.1.2">
3
	<annotation>
4
		<appinfo source="urn:opengis:specification:gml:schema-xsd:dictionary:v3.2.1">dictionary.xsd</appinfo>
5
		<documentation>See ISO/DIS 19136 Clause 16.
6
Many applications require definitions of terms which are used within instance documents as the values of certain properties or as reference information to tie properties to standard information values in some way.  Units of measure and descriptions of measurable phenomena are two particular examples.
7
It will often be convenient to use definitions provided by external authorities. These may already be packaged for delivery in various ways, both online and offline. In order that they may be referred to from GML documents it is generally necessary that a URI be available for each definition. Where this is the case then it is usually preferable to refer to these directly.
8
Alternatively, it may be convenient or necessary to capture definitions in XML, either embedded within an instance document containing features or as a separate document. The definitions may be transcriptions from an external source, or may be new definitions for a local purpose. In order to support this case, some simple components are provided in GML in the form of
9
-	a generic gml:Definition, which may serve as the basis for more specialized definitions
10
-	a generic gml:Dictionary, which allows a set of definitions or references to definitions to be collected
11
These components may be used directly, but also serve as the basis for more specialised definition elements in GML, in particular: coordinate operations, coordinate reference systems, datums, temporal reference systems, and units of measure.
12
Note that the GML definition and dictionary components implement a simple nested hierarchy of definitions with identifiers. The latter provide handles which may be used in the description of more complex relationships between terms. However, the GML dictionary components are not intended to provide direct support for complex taxonomies, ontologies or thesauri.  Specialised XML tools are available to satisfy the more sophisticated requirements.
13
14
GML is an OGC Standard.
15
Copyright (c) 2007,2010 Open Geospatial Consortium.
16
To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
17
		</documentation>
18
	</annotation>
19
	<include schemaLocation="gml.xsd"/>
20
	<include schemaLocation="gmlBase.xsd"/>
21
	<element name="Definition" type="gml:DefinitionType" substitutionGroup="gml:AbstractGML">
22
		<annotation>
23
			<documentation>The basic gml:Definition element specifies a definition, which can be included in or referenced by a dictionary.
24
The content model for a generic definition is a derivation from gml:AbstractGMLType.
25
The gml:description property element shall hold the definition if this can be captured in a simple text string, or the gml:descriptionReference property element may carry a link to a description elsewhere.
26
The gml:identifier element shall provide one identifier identifying this definition. The identifier shall be unique within the dictionaries using this definition.
27
The gml:name elements shall provide zero or more terms and synonyms for which this is the definition.
28
The gml:remarks element shall be used to hold additional textual information that is not conceptually part of the definition but is useful in understanding the definition.</documentation>
29
		</annotation>
30
	</element>
31
	<complexType name="DefinitionBaseType">
32
		<complexContent>
33
			<restriction base="gml:AbstractGMLType">
34
				<sequence>
35
					<element ref="gml:metaDataProperty" minOccurs="0" maxOccurs="unbounded"/>
36
					<element ref="gml:description" minOccurs="0"/>
37
					<element ref="gml:descriptionReference" minOccurs="0"/>
38
					<element ref="gml:identifier"/>
39
					<element ref="gml:name" minOccurs="0" maxOccurs="unbounded"/>
40
				</sequence>
41
				<attribute ref="gml:id" use="required"/>
42
			</restriction>
43
		</complexContent>
44
	</complexType>
45
	<complexType name="DefinitionType">
46
		<complexContent>
47
			<extension base="gml:DefinitionBaseType">
48
				<sequence>
49
					<element ref="gml:remarks" minOccurs="0"/>
50
				</sequence>
51
			</extension>
52
		</complexContent>
53
	</complexType>
54
	<element name="remarks" type="string"/>
55
	<element name="Dictionary" type="gml:DictionaryType" substitutionGroup="gml:Definition">
56
		<annotation>
57
			<documentation>Sets of definitions may be collected into dictionaries or collections.
58
A gml:Dictionary is a non-abstract collection of definitions.
59
The gml:Dictionary content model adds a list of gml:dictionaryEntry properties that contain or reference gml:Definition objects.  A database handle (gml:id attribute) is required, in order that this collection may be referred to. The standard gml:identifier, gml:description, gml:descriptionReference and gml:name properties are available to reference or contain more information about this dictionary. The gml:description and gml:descriptionReference property elements may be used for a description of this dictionary. The derived gml:name element may be used for the name(s) of this dictionary. for remote definiton references gml:dictionaryEntry shall be used. If a Definition object contained within a Dictionary uses the descriptionReference property to refer to a remote definition, then this enables the inclusion of a remote definition in a local dictionary, giving a handle and identifier in the context of the local dictionary.</documentation>
60
		</annotation>
61
	</element>
62
	<complexType name="DictionaryType">
63
		<complexContent>
64
			<extension base="gml:DefinitionType">
65
				<choice minOccurs="0" maxOccurs="unbounded">
66
					<element ref="gml:dictionaryEntry"/>
67
					<element ref="gml:indirectEntry"/>
68
				</choice>
69
				<attributeGroup ref="gml:AggregationAttributeGroup"/>
70
			</extension>
71
		</complexContent>
72
	</complexType>
73
	<element name="dictionaryEntry" type="gml:DictionaryEntryType">
74
		<annotation>
75
			<documentation>This property element contains or refers to the definitions which are members of a dictionary.
76
The content model follows the standard GML property pattern, so a gml:dictionaryEntry may either contain or refer to a single gml:Definition. Since gml:Dictionary is substitutable for gml:Definition, the content of an entry may itself be a lower level dictionary.
77
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 definition in this context.  When used in this way the referenced definition will usually be in a dictionary in the same XML document.</documentation>
78
		</annotation>
79
	</element>
80
	<complexType name="DictionaryEntryType">
81
		<complexContent>
82
			<extension base="gml:AbstractMemberType">
83
				<sequence minOccurs="0">
84
					<element ref="gml:Definition"/>
85
				</sequence>
86
				<attributeGroup ref="gml:AssociationAttributeGroup"/>
87
			</extension>
88
		</complexContent>
89
	</complexType>
90
</schema>