-
Notifications
You must be signed in to change notification settings - Fork 0
/
bienc_fc_1_0.xsd
260 lines (260 loc) · 9.49 KB
/
bienc_fc_1_0.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited by Friedhelm Moggert-Kaegeler (SevenCs GmbH, December 2014) -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://ienc.openecdis.org" targetNamespace="http://ienc.openecdis.org" elementFormDefault="qualified">
<!-- ROOT ELEMENT CATALOGUE -->
<!-- ********************** -->
<xsd:element name="Catalogue">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="Header"/>
<xsd:element name="Scope" type="xsd:string" minOccurs="0"/>
<xsd:element ref="Source"/>
<xsd:element name="Authority" type="contact"/>
<xsd:element ref="DataDictionaries"/>
<xsd:element ref="Attributes" minOccurs="0"/>
<xsd:element ref="Features"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- ELEMENT HEADER -->
<!-- ************** -->
<xsd:element name="Header">
<xsd:complexType>
<xsd:attribute name="title" type="xsd:string" use="required"/>
<xsd:attribute name="product" type="xsd:string" use="required"/>
<xsd:attribute name="edition" type="xsd:string" use="required"/>
<xsd:attribute name="date" type="xsd:date" use="required"/>
<xsd:attribute name="language" type="xsd:language"/>
</xsd:complexType>
</xsd:element>
<!-- ELEMENT SOURCE -->
<!-- ************* -->
<xsd:element name="Source">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="edition" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
<!-- ELEMENT DATADICTIONARIES WITH SUB-ELEMENTS DATADICTIONARY -->
<!-- **************************************************** -->
<xsd:element name="DataDictionaries">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="DataDictionary" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DataDictionary">
<xsd:complexType>
<xsd:attribute name="token" type="xsd:string" use="required"/>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="owner" type="xsd:string" use="required"/>
<xsd:attribute name="publishWeb" type="xsd:anyURI"/>
<xsd:attribute name="remark" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<!-- ELEMENT ATTRIBUTES WITH SUB-ELEMENTS ATTRIBUTE -->
<!-- ********************************************** -->
<xsd:element name="Attributes">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="Attribute" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Attribute">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="DataDictionaryReference"/>
<xsd:element ref="Enumeration" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="acronym" type="typeAcronym" use="required"/>
<xsd:attribute name="code" type="xsd:positiveInteger" use="required"/>
<xsd:attribute name="useType" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="F"/>
<xsd:enumeration value="N"/>
<xsd:enumeration value="S"/>
<xsd:enumeration value="F,S"/>
<xsd:enumeration value="C"/>
<!-- F= feature -->
<!-- N = national -->
<!-- S = spatial -->
<!-- C = cartographic -->
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="valueType" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="I"/>
<xsd:enumeration value="F"/>
<xsd:enumeration value="E"/>
<xsd:enumeration value="L"/>
<xsd:enumeration value="S"/>
<xsd:enumeration value="T"/>
<!-- I = integer -->
<!-- F = float -->
<!-- E = enumeration -->
<!-- L = list -->
<!-- S = structured text -->
<!-- T = text -->
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="Enumeration">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="DataDictionaryReference"/>
</xsd:sequence>
<xsd:attribute name="value" type="xsd:positiveInteger" use="required"/>
</xsd:complexType>
</xsd:element>
<!-- ELEMENT FEATURES WITH SUB-ELEMENTS FEATURE -->
<!-- ****************************************** -->
<xsd:element name="Features">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="Feature" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Feature">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="DataDictionaryReference"/>
<xsd:element ref="AttributeBinding" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="acronym" type="typeAcronym" use="required"/>
<xsd:attribute name="code" type="xsd:positiveInteger" use="required"/>
<xsd:attribute name="type" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="G"/>
<xsd:enumeration value="M"/>
<xsd:enumeration value="C"/>
<xsd:enumeration value="O"/>
<xsd:enumeration value="I"/>
<!-- G = geo -->
<!-- M = meta -->
<!-- C = cartographic -->
<!-- O = collection -->
<!-- I = information -->
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="primitive" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="N"/>
<xsd:enumeration value="P"/>
<xsd:enumeration value="P,L"/>
<xsd:enumeration value="P,A"/>
<xsd:enumeration value="P,L,A"/>
<xsd:enumeration value="L"/>
<xsd:enumeration value="L,A"/>
<xsd:enumeration value="A"/>
<!-- N = no -->
<!-- P = point -->
<!-- L = line -->
<!-- A = area -->
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="AttributeBinding">
<xsd:complexType>
<xsd:attribute name="acronym" type="typeAcronym" use="required"/>
<xsd:attribute name="usage" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="O"/>
<xsd:enumeration value="M"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
<xsd:enumeration value="C"/>
<!-- O = optional -->
<!-- M = mandatory -->
<!-- 1 = at least one of A -->
<!-- 2 = at least one of B -->
<!-- 3 = at least one of C -->
<!-- C = conditional mandatory -->
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="valueList" type="xsd:string"/>
<xsd:attribute name="unit">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="m"/>
<xsd:enumeration value="hm"/>
<xsd:enumeration value="km"/>
<xsd:enumeration value="ft"/>
<xsd:enumeration value="m,ft"/>
<xsd:enumeration value="nm"/>
<xsd:enumeration value="mi"/>
<xsd:enumeration value="km/h"/>
<xsd:enumeration value="s"/>
<xsd:enumeration value="deg"/>
<xsd:enumeration value="Hz"/>
<!-- m = meters -->
<!-- hm = hectometers -->
<!-- km = kilometers -->
<!-- ft = feet -->
<!-- m,ft = meters or feet -->
<!-- nm = nautical miles -->
<!-- mi = statute miles -->
<!-- km/h = kilmeters per hour -->
<!-- s = seconds -->
<!-- Hz = hertz-->
<!-- deg = degrees-->
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="format" type="xsd:string"/>
<xsd:attribute name="minimum" type="xsd:float"/>
<xsd:attribute name="maximum" type="xsd:float"/>
<xsd:attribute name="decimalDigits" type="xsd:float"/>
</xsd:complexType>
</xsd:element>
<!-- GENERAL ELEMENTS OR COMPLEX TYPE CONTACT FOR USE IN DIFFERENT ELEMENTS -->
<!-- ********************************************************************** -->
<xsd:simpleType name="typeAcronym">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[A-Za-z0-9_]{6}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="DataDictionaryReference">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Name"/>
<xsd:element name="Definition" minOccurs="0"/>
<xsd:element name="Remark" minOccurs="0"/>
<xsd:element name="Reference" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="token" type="xsd:string" use="required"/>
<xsd:attribute name="code" type="xsd:string"/>
<xsd:attribute name="dateAccepted" type="xsd:date" use="required"/>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="contact">
<xsd:sequence>
<xsd:element name="Name" type="xsd:string"/>
<xsd:element name="Poc" type="xsd:string" minOccurs="0"/>
<xsd:element name="Street" type="xsd:string" minOccurs="0"/>
<xsd:element name="Zip" type="xsd:string" minOccurs="0"/>
<xsd:element name="City" type="xsd:string" minOccurs="0"/>
<xsd:element name="Country" type="xsd:string" minOccurs="0"/>
<xsd:element name="Www" type="xsd:anyURI" minOccurs="0"/>
<xsd:element name="Phone" type="xsd:string" minOccurs="0"/>
<xsd:element name="Fax" type="xsd:string" minOccurs="0"/>
<xsd:element name="Email" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="token" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:schema>