-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdataTypes.json
437 lines (436 loc) · 16.6 KB
/
dataTypes.json
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
{
"Boolean": {
"comment": "Boolean has the value space required to support the mathematical concept of binary-valued logic.",
"instances": [
"false",
"true"
],
"label": "Boolean",
"properties": {},
"url": "https://www.w3.org/TR/xmlschema-2/#boolean",
"edmtype": "Edm.Boolean",
"type": "boolean",
"sqltype":"Boolean",
"version":"1.0"
},
"Date": {
"comment": "Represents a date only value.",
"label": "Date",
"properties": {
"pattern":"^(\\d{4})(?:-?W(\\d+)(?:-?(\\d+)D?)?|(?:-(\\d+))?-(\\d+))(?:[T ](\\d+):(\\d+)(?::(\\d+)(?:\\.(\\d+))?)?)?(?:Z(-?\\d*))?([+-](\\d+):(\\d+))?$"
},
"url": "https://www.w3.org/TR/xmlschema-2/#date",
"edmtype": "Edm.Date",
"type": "Date",
"sqltype":"Date",
"version":"1.0"
},
"DateTime": {
"comment": "Represents a date and time value.",
"label": "Date Time",
"url": "https://www.w3.org/TR/xmlschema-2/#dateTime",
"properties": {
"pattern":"^(\\d{4})(?:-?W(\\d+)(?:-?(\\d+)D?)?|(?:-(\\d+))?-(\\d+))(?:[T ](\\d+):(\\d+)(?::(\\d+)(?:\\.(\\d+))?)?)?(?:Z(-?\\d*))?([+-](\\d+):(\\d+))?$"
},
"edmtype": "Edm.DateTimeOffset",
"type": "Date",
"sqltype":"DateTime",
"version":"1.0"
},
"Float": {
"comment": "Float data type is a single-precision 32-bit floating point.",
"label": "Float",
"properties": {
"pattern":"^[+-]?[0-9]*\\.?[0-9]*$"
},
"url": "https://www.w3.org/TR/xmlschema-2/#float",
"edmtype": "Edm.Single",
"type": "number",
"sqltype":"Float",
"version":"1.0"
},
"Integer": {
"comment": "Integer data type is a 32-bit signed two's complement integer.",
"label": "Integer",
"properties": {
"pattern":"^[+-]?[0-9]*$"
},
"url": "https://www.w3.org/TR/xmlschema-2/#integer",
"type": "number",
"edmtype":"Edm.Int32",
"sqltype":"Integer",
"version":"1.0"
},
"Short": {
"comment": "Short data type is a 16-bit signed two's complement integer. It has a minimum value of -32,768 and a maximum value of 32,767 (inclusive).",
"label": "Short",
"properties": {
"pattern":"^[+-]?[0-9]*$"
},
"url": "https://www.w3.org/TR/xmlschema-2/#short",
"edmtype":"Edm.Int16",
"type": "number",
"sqltype":"Integer",
"version":"1.0"
},
"Counter": {
"comment": "An integer which is generated automatically.",
"label": "Counter",
"supertypes": [
"Integer"
],
"properties": {},
"url": "https://www.w3.org/TR/xmlschema-2/#integer",
"type": "number",
"edmtype": "Edm.Int32",
"sqltype":"Counter",
"version":"1.0"
},
"Duration": {
"comment": "A string which represents a duration of time (e.g. P1Y1M10D, P10D, -P0Y1M10D2H15M30S etc)",
"label": "Duration",
"properties": {
"pattern":"^([-])?P([0-9]+Y)?([0-9]+M)?([0-9]+D)?(T)?([0-9]+H)?([0-9]+M)?([0-9]+S)?$",
"patternMessage":"The value should be a valid duration (e.g. P1Y1M15D or -PT2H30M0S)."
},
"supertypes": [
"Text"
],
"url": "http://www.w3.org/TR/xmlschema-2/#duration",
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"Number": {
"comment": "A general number.",
"label": "Number",
"supertypes": [
"DataType"
],
"properties": {
"pattern":"^[+-]?[0-9]*\\.?[0-9]*$"
},
"url": "https://www.w3.org/TR/xmlschema-2/#float",
"edmtype": "Edm.Single",
"type": "number",
"sqltype":"Number",
"version":"1.0"
},
"Text": {
"comment": "A sequence of characters",
"label": "Text",
"url": "https://www.w3.org/TR/xmlschema-2/#string",
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"Time": {
"comment": "A string which represents an instant of time that recurs every day (e.g. 13:20:45)",
"label": "Time",
"properties": {
"pattern":"^([01]?\\d|2[0-3])\\:([0-5][0-9])\\:([0-5][0-9])?\\.?(\\d+)?([-+][0-1][0-9]\\:[0-5][0-9])?$"
},
"supertypes": [
"Text"
],
"url": "https://www.w3.org/TR/xmlschema-2/#time",
"edmtype": "Edm.String",
"type": "Duration",
"sqltype":"Time",
"version":"1.0"
},
"URL": {
"comment": "A reference to a web resource that specifies its location on a computer network and a mechanism for retrieving it.",
"label": "URL",
"supertypes": [
"Text"
],
"url": "http://schema.org/URL",
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"Language": {
"comment": "Represents natural language identifiers",
"instances": { "af":"Afrikaans", "ar-ae":"Arabic (U.A.E.)", "ar-bh":"Arabic (Kingdom of Bahrain)", "ar-dz":"Arabic (Algeria)", "ar-eg":"Arabic (Egypt)", "ar-iq":"Arabic (Iraq)", "ar-jo":"Arabic (Jordan)", "ar-kw":"Arabic (Kuwait)", "ar-lb":"Arabic (Lebanon)", "ar-ly":"Arabic (Libya)", "ar-ma":"Arabic (Morocco)", "ar-om":"Arabic (Oman)", "ar-qa":"Arabic (Qatar)", "ar-sa":"Arabic (Saudi Arabia)", "ar-sy":"Arabic (Syria)", "ar-tn":"Arabic (Tunisia)", "ar-ye":"Arabic (Yemen)", "ar":"Arabic", "as":"Assamese", "az":"Azerbaijani", "be":"Belarusian", "bg":"Bulgarian", "bn":"Bangla", "ca":"Catalan", "cs":"Czech", "da":"Danish", "de-at":"German (Austria)", "de-ch":"German (Switzerland)", "de-li":"German (Liechtenstein)", "de-lu":"German (Luxembourg)", "de":"German (Germany)", "el":"Greek", "en-au":"English (Australia)", "en-bz":"English (Belize)", "en-ca":"English (Canada)", "en-gb":"English (United Kingdom)", "en-ie":"English (Ireland)", "en-jm":"English (Jamaica)", "en-nz":"English (New Zealand)", "en-ph":"English (Philippines)", "en-tt":"English (Trinidad)", "en-us":"English (United States)", "en-za":"English (South Africa)", "en-zw":"English (Zimbabwe)", "en":"English", "es-ar":"Spanish (Argentina)", "es-bo":"Spanish (Bolivia)", "es-cl":"Spanish (Chile)", "es-co":"Spanish (Colombia)", "es-cr":"Spanish (Costa Rica)", "es-do":"Spanish (Dominican Republic)", "es-ec":"Spanish (Ecuador)", "es-gt":"Spanish (Guatemala)", "es-hn":"Spanish (Honduras)", "es-mx":"Spanish (Mexico)", "es-ni":"Spanish (Nicaragua)", "es-pa":"Spanish (Panama)", "es-pe":"Spanish (Peru)", "es-pr":"Spanish (Puerto Rico)", "es-py":"Spanish (Paraguay)", "es-sv":"Spanish (El Salvador)", "es-us":"Spanish (United States)", "es-uy":"Spanish (Uruguay)", "es-ve":"Spanish (Venezuela)", "es":"Spanish", "et":"Estonian", "eu":"Basque (Basque)", "fa":"Persian", "fi":"Finnish", "fo":"Faeroese", "fr-be":"French (Belgium)", "fr-ca":"French (Canada)", "fr-ch":"French (Switzerland)", "fr-lu":"French (Luxembourg)", "fr-mc":"French (Monaco)", "fr":"French (France)", "gd":"Scottish Gaelic", "gl":"Galician", "gu":"Gujarati", "he":"Hebrew", "hi":"Hindi", "hr":"Croatian", "hu":"Hungarian", "hy":"Armenian", "id":"Indonesian", "is":"Icelandic", "it-ch":"Italian (Switzerland)", "it":"Italian (Italy)", "ja":"Japanese", "ka":"Georgian", "kk":"Kazakh", "kn":"Kannada", "ko":"Korean", "kok":"Konkani", "kz":"Kyrgyz", "lt":"Lithuanian", "lv":"Latvian", "mk":"Macedonian Slavic", "ml":"Malayalam", "mn":"Mongolian (Cyrillic)", "mr":"Marathi", "ms":"Malay", "mt":"Maltese", "nb-no":"Norwegian (Bokmal)", "ne":"Nepali (India)", "nl-be":"Dutch (Belgium)", "nl":"Dutch (Netherlands)", "nn-no":"Norwegian (Nynorsk)", "no":"Norwegian (Bokmal)", "or":"Odia", "pa":"Punjabi", "pl":"Polish", "pt-br":"Portuguese (Brazil)", "pt":"Portuguese (Portugal)", "rm":"Rhaeto-Romanic", "ro-md":"Romanian (Moldova)", "ro":"Romanian", "ru-md":"Russian (Moldova)", "ru":"Russian", "sa":"Sanskrit", "sb":"Sorbian", "sk":"Slovak", "sl":"Slovenian", "sq":"Albanian", "sr":"Serbian", "sv-fi":"Swedish (Finland)", "sv":"Swedish", "sw":"Swahili", "sx":"Sutu", "syr":"Syriac", "ta":"Tamil", "te":"Telugu", "th":"Thai", "tn":"Tswana", "tr":"Turkish", "ts":"Tsonga", "tt":"Tatar", "uk":"Ukrainian", "ur":"Urdu", "uz":"Uzbek", "vi":"Vietnamese", "xh":"Xhosa", "yi":"Yiddish", "zh-cn":"Chinese (China)", "zh-hk":"Chinese (Hong Kong SAR)", "zh-mo":"Chinese (Macao SAR)", "zh-sg":"Chinese (Singapore)", "zh-tw":"Chinese (Taiwan)", "zh":"Chinese", "zu":"Zulu" },
"label": "Language",
"properties": {
"pattern":"^([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*$"
},
"supertypes": [
"Text"
],
"url": "https://www.w3.org/TR/xmlschema-2/#language",
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"Model": {
"comment": "A string which represents the name of a data model.",
"label": "Model",
"properties": {
"pattern": "^(\\w+)$"
},
"supertypes": [
"Text"
],
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"Guid": {
"comment": "A string which represents a global unique identifier (e.g. 21EC2020-3AEA-4069-A2DD-08002B30309D).",
"label": "Guid",
"properties": {
"pattern": "^(\\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\\}{0,1})$"
},
"supertypes": [
"Text"
],
"edmtype": "Edm.Guid",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"Object": {
"comment": "A value which represents an unknown object reference.",
"label": "Object",
"properties": {
},
"supertypes": [
"Integer"
],
"edmtype": "Edm.Int32",
"type": "number",
"sqltype":"Integer",
"version":"1.0"
},
"ObjectURI": {
"comment": "A string which represents a relative object URI e.g. /User/100 or /Order/12345 where the first segment represents a model associated an object and the second an object identifier like object ID.",
"label": "Object URI",
"properties": {
"pattern": "^\\/(\\w+)\\/(\\w+)$"
},
"supertypes": [
"Text"
],
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"NegativeInteger": {
"comment": "An integer containing only negative values (..,-2,-1)",
"label": "NegativeInteger",
"properties": {
"pattern":"^[-][0-9]*$",
"patternMessage":"The value should be an integer lower than zero.",
"minValue":-2147483648,
"maxValue":-1
},
"supertypes": [
"Integer"
],
"url": "http://www.w3.org/TR/xmlschema-2/#negativeInteger",
"edmtype": "Edm.Int32",
"type": "int",
"sqltype":"Integer",
"version":"1.0"
},
"NegativeNumber": {
"comment": "A number containing only negative values (..,-2,-1)",
"label": "NegativeNumber",
"properties": {
"pattern":"^[-][0-9]*\\.?[0-9]*$",
"patternMessage":"The value should be a number lower than zero."
},
"supertypes": [
"Number"
],
"url": "http://www.w3.org/TR/xmlschema-2/#negativeNumber",
"edmtype": "Edm.Double",
"type": "number",
"sqltype":"Number",
"version":"1.0"
},
"NonNegativeInteger": {
"comment": "An integer containing only non-negative values (0,1,2,..)",
"label": "NonNegativeInteger",
"properties": {
"pattern":"^[+]?[0-9]*$",
"patternMessage":"The value should be an integer greater or equal to zero.",
"minValue":0,
"maxValue":2147483647
},
"supertypes": [
"Integer"
],
"url": "http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger",
"edmtype": "Edm.Int32",
"type": "int",
"sqltype":"Integer",
"version":"1.0"
},
"NonNegativeNumber": {
"comment": "A number containing only non-negative values (0,1,2,..)",
"label": "NonNegativeNumber",
"properties": {
"pattern":"^[+]?[0-9]*\\.?[0-9]*$",
"patternMessage":"The value should be a number greater or equal to zero."
},
"supertypes": [
"Number"
],
"url": "http://www.w3.org/TR/xmlschema-2/#nonNegativeNumber",
"edmtype": "Edm.Double",
"type": "number",
"sqltype":"Number",
"version":"1.0"
},
"NonPositiveInteger": {
"comment": "An integer containing only non-positive values (..,-2,-1,0)",
"label": "NonPositiveInteger",
"properties": {
"pattern":"^[-][0-9]*$",
"patternMessage":"The value should be an integer lower or equal to zero.",
"minValue":-2147483648,
"maxValue":0
},
"supertypes": [
"Integer"
],
"url": "http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger",
"edmtype": "Edm.Int32",
"type": "int",
"sqltype":"Integer",
"version":"1.0"
},
"NonPositiveNumber": {
"comment": "A number containing only non-positive values (..,-2,-1,0)",
"label": "NonPositiveNumber",
"properties": {
"pattern":"^[-][0-9]*\\.?[0-9]*$",
"patternMessage":"The value should be a number lower or equal to zero.",
"minValue":0
},
"supertypes": [
"Number"
],
"url": "http://www.w3.org/TR/xmlschema-2/#nonPositiveNumber",
"edmtype": "Edm.Double",
"type": "number",
"sqltype":"Number",
"version":"1.0"
},
"PositiveInteger": {
"comment": "An integer containing only positive values (1,2,..)",
"label": "PositiveInteger",
"properties": {
"pattern":"^[+]?[1-9][0-9]*$",
"patternMessage":"The value should be an integer greater than zero.",
"minValue":1,
"maxValue":2147483647
},
"supertypes": [
"Integer"
],
"url": "http://www.w3.org/TR/xmlschema-2/#positiveInteger",
"edmtype": "Edm.Int32",
"type": "int",
"sqltype":"Integer",
"version":"1.0"
},
"PositiveNumber": {
"comment": "A number containing only positive values (0.1,+1,2,..)",
"label": "PositiveNumber",
"properties": {
"pattern":"^[+]?[0-9]*\\.?[0-9]*$",
"patternMessage":"The value should be a number greater than zero."
},
"supertypes": [
"Number"
],
"url": "http://www.w3.org/TR/xmlschema-2/#positiveNumber",
"edmtype": "Edm.Double",
"type": "number",
"sqltype":"Number",
"version":"1.0"
},
"Email": {
"comment": "A string which represents an email address (e.g. [email protected])",
"label": "Email",
"properties": {
"pattern":"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$",
"patternMessage":"The value should be a valid email address."
},
"supertypes": [
"Text"
],
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"AbsoluteURI": {
"comment": "A string which represents an absolute URI address (e.g. https://www.example.com/help?article=1001)",
"label": "AbsoluteURI",
"properties": {
"pattern":"^((https?|ftps?):\\/\\/)([\\da-z.-]+)\\.([a-z.]{2,6})([\\/\\w .-]*)*\\/?$",
"patternMessage":"The value should be a valid absolute URI (e.g. https://www.example.com/help?article=1001)."
},
"supertypes": [
"Text"
],
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"RelativeURI": {
"comment": "A string which represents a relative URI address (e.g. /help?article=1001)",
"label": "RelativeURI",
"properties": {
"pattern":"^([\\/\\w .-]*)*\\/?$",
"patternMessage":"The value should be a valid relative URI (e.g. /help?article=1001)."
},
"supertypes": [
"Text"
],
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"IP": {
"comment": "A string which represents an IPv4 address (e.g. 127.0.0.1)",
"label": "IP",
"properties": {
"pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
"patternMessage":"The value should be a valid IPv4 address (e.g. 127.0.0.1)."
},
"supertypes": [
"Text"
],
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
},
"Json": {
"comment": "A string which represents a JSON object.",
"label": "Json",
"supertypes": [
"Text"
],
"url": "https://www.json.org/json-en.html",
"edmtype": "Edm.String",
"type": "string",
"sqltype":"Text",
"version":"1.0"
}
}