forked from microsoft/CDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.1.0.0.manifest.cdm.json
552 lines (548 loc) · 22 KB
/
schema.1.0.0.manifest.cdm.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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
{
"$id": "http://microsoft.com/cdm/schema.manifest.cdm.json",
"$schema": "http://json-schema.org/draft-06/schema#",
"$version": "1.0.0",
"type": "object",
"definitions": {
"import": {
"type": "object",
"description": "used to bring referenced entity definitions into scope of this document",
"properties": {
"corpusPath": {
"type": "string",
"description": "The relative or absolute (from the root of the corpus folder hierarchy) location of a document file and object"
},
"moniker": {
"type": "string",
"description": "A prefix that can be added to disambiguate different imported objects that may share a name. References to object defined in this imported document (or in the documents it further imports) must start with the moniker name such as myMoniker/MyEntity"
}
},
"additionalProperties": false,
"required": [
"corpusPath"
]
},
"constant": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/entityClassReference"
}
]
},
"traitArgument": {
"type": "object",
"description": "",
"properties": {
"explanation": {
"type": "string",
"description": "Used to document the usage or meaning of the 'argument' within the context of this entity definition system."
},
"name": {
"type": "string"
},
"value": {
"$ref": "#/definitions/constant"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"traitReference": {
"oneOf": [
{
"type": "string"
}
]
},
"traitClassReference": {
"type": "object",
"description": "",
"properties": {
"traitReference": {
"$ref": "#/definitions/traitReference"
},
"arguments": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/traitArgument"
},
{
"$ref": "#/definitions/constant"
}
]
}
}
},
"additionalProperties": false,
"required": [
"traitReference"
]
},
"entityReference": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/constantEntity"
}
]
},
"entityClassReference": {
"type": "object",
"description": "",
"properties": {
"entityReference": {
"$ref": "#/definitions/entityReference"
},
"appliedTraits": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/traitClassReference"
},
{
"type": "string"
}
]
}
}
},
"additionalProperties": false,
"required": [
"entityReference"
]
},
"constantEntity": {
"type": "object",
"description": "Used to structure and describe a set of related constant values that may be used as trait arguments",
"properties": {
"explanation": {
"type": "string",
"description": "Used to document the usage or meaning of the 'constant entity' within the context of this entity definition system."
},
"constantEntityName": {
"type": "string"
},
"entityShape": {
"oneOf": [
{
"type": "string"
}
]
},
"constantValues": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"additionalProperties": false,
"required": [
"entityShape",
"constantValues"
]
},
"dataPartitionDefinition": {
"type": "object",
"description": "",
"properties": {
"explanation": {
"type": "string",
"description": "Used to document the usage or meaning of the 'dataPartition' within the context of this entity definition system."
},
"name": {
"type": "string",
"description": "a name for the partition"
},
"description": {
"type": "string",
"description": ""
},
"location": {
"type": "string",
"description": "a corpus path to the file of data"
},
"inferred": {
"type": "boolean",
"description": "true if this partition was discovered by a pattern in this session"
},
"arguments": {
"type": "array",
"description": "a list of name value pairs that give details about the meaning of this partition. These can be set by partition patterns",
"items": {
"dataPartitionArgument" : {
"type": "object",
"additionalProperties": {"type": "string"}
}
}
},
"specializedSchema": {
"type": "string",
"description": "the corpus path to a document/entity to use as the schema for just this partition of data. Different than the default schema for the entity"
},
"refreshTime": {
"type": "string",
"description": "the last time the data from this partition was read and consumed."
},
"LastFileStatusCheckTime": {
"type": "string",
"description": "The date and time at which the file modified date and time status of this object was checked"
},
"LastFileModifiedTime": {
"type": "string",
"description": "The date and time of the last modification for this object's associated file at the last time this status was checked."
},
"LastChildFileModifiedTime": {
"type": "string",
"description": "The most recent date and time reported by any of the children objects of this object when it was last checked."
},
"exhibitsTraits": {
"type": "array",
"description": "A list of the trait references are ascribed to this object to lend it semantic meaning or better describe it.",
"items": {
"oneOf": [
{
"$ref": "#/definitions/traitClassReference"
},
{
"type": "string"
}
]
}
}
},
"additionalProperties": false,
"required": [
"location"
]
},
"dataPartitionPatternDefinition": {
"type": "object",
"description": "",
"properties": {
"explanation": {
"type": "string",
"description": "Used to document the usage or meaning of the 'dataPartitionPattern' within the context of this entity definition system."
},
"name": {
"type": "string",
"description": "a name for the pattern"
},
"rootLocation": {
"type": "string",
"description": "the starting point for searching with this pattern"
},
"regularExpression": {
"type": "string",
"description": "a regular expression (with capture groups) that will be used to locate new partitions. This expression is relative to the rootLocation value"
},
"parameters": {
"type": "array",
"description": "a list of names that line up with the replacement captures in the regularExpression. These turn into arguments on resulting partitions",
"items": {
"type": "string"
}
},
"specializedSchema": {
"type": "string",
"description": "the corpus path to a document/entity to use as the schema for just the partitions that are found with this pattern"
},
"LastFileStatusCheckTime": {
"type": "string",
"description": "The date and time at which the file modified date and time status of this object was checked"
},
"LastFileModifiedTime": {
"type": "string",
"description": "The date and time of the last modification for this object's associated file at the last time this status was checked."
},
"LastChildFileModifiedTime": {
"type": "string",
"description": "The most recent date and time reported by any of the children objects of this object when it was last checked."
},
"exhibitsTraits": {
"type": "array",
"description": "A list of the trait references are ascribed to this object to lend it semantic meaning or better describe it.",
"items": {
"oneOf": [
{
"$ref": "#/definitions/traitClassReference"
},
{
"type": "string"
}
]
}
}
},
"additionalProperties": false,
"required": ["rootLocation", "regularExpression"]
},
"entityDeclarationDefinition": {
"type": "object",
"description": "details about the use of an entity schema and data files",
"properties": {
"type": {
"enum": [
"LocalEntity",
"ReferencedEntity"
],
"description": "",
"default": "LocalEntity"
},
"explanation": {
"type": "string",
"description": "Used to document the usage or meaning of the 'entityDeclaration' within the context of this entity definition system."
},
"entityName": {
"type": "string",
"description": "a name for this use of the entity"
},
"entityPath": {
"type": "string",
"description": "a corpus path to the document/entity for the detailed schema descriptions of the entity"
},
"LastFileStatusCheckTime": {
"type": "string",
"description": "The date and time at which the file modified date and time status of this object was checked"
},
"LastFileModifiedTime": {
"type": "string",
"description": "The date and time of the last modification for this object's associated file at the last time this status was checked."
},
"LastChildFileModifiedTime": {
"type": "string",
"description": "The most recent date and time reported by any of the children objects of this object when it was last checked."
},
"dataPartitions": {
"type": "array",
"description": "a list of known data partitions for the entity",
"items": {
"$ref": "#/definitions/dataPartitionDefinition"
}
},
"dataPartitionPatterns": {
"type": "array",
"description": "a list of data partition patterns that should be searched to discover new partitions",
"items": {
"$ref": "#/definitions/dataPartitionPatternDefinition"
}
},
"exhibitsTraits": {
"type": "array",
"description": "A list of the trait references are ascribed to this object to lend it semantic meaning or better describe it.",
"items": {
"oneOf": [
{
"$ref": "#/definitions/traitClassReference"
},
{
"type": "string"
}
]
}
}
},
"additionalProperties": false,
"required": [
"type",
"entityName",
"entityPath"
]
},
"entityRelationshipDefinition": {
"type": "object",
"description": "",
"properties": {
"explanation": {
"type": "string",
"description": "Used to document the usage or meaning of the 'relationship' within the context of this entity definition system."
},
"name": {
"type": "string",
"description": "a name for this relationship"
},
"fromEntity": {
"type": "string",
"description": "the name of the entity making a referenced in the relationship"
},
"fromEntityAttribute": {
"type": "string",
"description": "the name of the attribute in the entity making a referenced in the relationship"
},
"toEntity": {
"type": "string",
"description": "the name of the entity being referenced by the relationship"
},
"toEntityAttribute": {
"type": "string",
"description": "the name of the attribute in the entity being referenced by the relationship"
},
"exhibitsTraits": {
"type": "array",
"description": "A list of the trait references are ascribed to this object to lend it semantic meaning or better describe it.",
"items": {
"oneOf": [
{
"$ref": "#/definitions/traitClassReference"
},
{
"type": "string"
}
]
}
}
},
"additionalProperties": false,
"required": [
"fromEntity",
"fromEntityAttribute",
"toEntity",
"toEntityAttribute"
]
},
"manifestDeclarationDefinition": {
"type": "object",
"description": "",
"properties": {
"explanation": {
"type": "string",
"description": "Used to document the usage or meaning of the 'subManifest' within the context of this entity definition system."
},
"manifestName": {
"type": "string",
"description": "a display name for the sub manifest"
},
"definition": {
"type": "string",
"description": "a corpus path to the manifest document"
},
"LastFileStatusCheckTime": {
"type": "string",
"description": "The date and time at which the file modified date and time status of this object was checked"
},
"LastFileModifiedTime": {
"type": "string",
"description": "The date and time of the last modification for this object's associated file at the last time this status was checked."
},
"LastChildFileModifiedTime": {
"type": "string",
"description": "The most recent date and time reported by any of the children objects of this object when it was last checked."
},
"exhibitsTraits": {
"type": "array",
"description": "A list of the trait references are ascribed to this object to lend it semantic meaning or better describe it.",
"items": {
"oneOf": [
{
"$ref": "#/definitions/traitClassReference"
},
{
"type": "string"
}
]
}
}
},
"additionalProperties": false,
"required": [
"manifestName",
"definition"
]
}
},
"properties": {
"$schema": {
"type": "string",
"examples": [
"../schema.cdm.json"
]
},
"jsonSchemaSemanticVersion": {
"type": "string",
"description": "the semantic version (major.minor.patch) number of the $schema document dictating the shape of the json document describing the entity shapes",
"examples": [
"1.3.0"
]
},
"imports": {
"type": "array",
"description": "a list of references to other CDM documents that are being imported in order to make use of their defintions",
"items": {
"$ref": "#/definitions/import"
}
},
"manifestName": {
"type": "string",
"description": "a name for the manifest"
},
"explanation": {
"type": "string",
"description": "Used to document the usage or meaning of the 'manifest' within the context of this entity definition system."
},
"LastFileStatusCheckTime": {
"type": "string",
"description": "The date and time at which the file modified date and time status of this object was checked"
},
"LastFileModifiedTime": {
"type": "string",
"description": "The date and time of the last modification for this object's associated file at the last time this status was checked."
},
"LastChildFileModifiedTime": {
"type": "string",
"description": "The most recent date and time reported by any of the children objects of this object when it was last checked."
},
"exhibitsTraits": {
"type": "array",
"description": "A list of the trait references are ascribed to this object to lend it semantic meaning or better describe it.",
"items": {
"oneOf": [
{
"$ref": "#/definitions/traitClassReference"
},
{
"type": "string"
}
]
}
},
"entities": {
"type": "array",
"description": "a list of the entity declarations for the entities that are contained within the scope of this manifest",
"items": {
"$ref": "#/definitions/entityDeclarationDefinition"
}
},
"subManifests": {
"type": "array",
"description": "a list of child manifests",
"items": {
"$ref": "#/definitions/manifestDeclarationDefinition"
}
},
"relationships": {
"type": "array",
"description": "a list of the entity to entity key to key relationships for the entities in this manifest",
"items": {
"$ref": "#/definitions/entityRelationshipDefinition"
}
}
},
"additionalProperties": false,
"required": [
"jsonSchemaSemanticVersion",
"manifestName"
]
}