activefacts-examples 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +8 -0
- data/Gemfile +1 -2
- data/activefacts-examples.gemspec +2 -2
- data/diagrams/json/Address.json +28 -28
- data/diagrams/json/Astronomy.json +12 -12
- data/diagrams/json/Blog.json +29 -29
- data/diagrams/json/CinemaBookings.json +25 -25
- data/diagrams/json/CinemaTickets.json +74 -74
- data/diagrams/json/CompanyDirectorEmployee.json +25 -25
- data/diagrams/json/Death.json +7 -7
- data/diagrams/json/Diplomacy.json +20 -20
- data/diagrams/json/Genealogy.json +57 -57
- data/diagrams/json/Insurance.json +222 -227
- data/diagrams/json/Marriage.json +10 -10
- data/diagrams/json/Metamodel.json +300 -278
- data/diagrams/json/Monogamy.json +9 -9
- data/diagrams/json/MultiInheritance.json +9 -9
- data/diagrams/json/MultipleSubtyping.json +9 -9
- data/diagrams/json/OilSupply.json +21 -21
- data/diagrams/json/OneRoleNesting.json +19 -19
- data/diagrams/json/Orienteering.json +69 -71
- data/diagrams/json/PersonPlaysGame.json +7 -7
- data/diagrams/json/RedundantDependency.json +18 -18
- data/diagrams/json/SchoolActivities.json +9 -9
- data/diagrams/json/SeparateSubtype.json +12 -12
- data/diagrams/json/SimplestUnary.json +3 -3
- data/diagrams/json/Supervision.json +14 -14
- data/diagrams/json/VenueSeating.json +22 -22
- data/diagrams/json/WaiterTips.json +13 -13
- data/diagrams/json/Warehousing.json +51 -51
- data/diagrams/json/WindowInRoomInBldg.json +19 -19
- data/metadata/json/Metamodel.json +457 -431
- data/metadata/json/OilSupply.json +54 -54
- metadata +15 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
"types": {
|
3
3
|
"Acceptable Substitution": {
|
4
4
|
"is_main": true,
|
5
|
-
"id": "
|
5
|
+
"id": "46299C4A-9F69-4F4F-85D7-43B33DAAE15D",
|
6
6
|
"functions": [
|
7
7
|
{
|
8
8
|
"title": "involving Product",
|
@@ -23,116 +23,116 @@
|
|
23
23
|
},
|
24
24
|
"Cost": {
|
25
25
|
"is_main": false,
|
26
|
-
"id": "
|
26
|
+
"id": "1C145D4D-F6A3-455A-B103-6FB654F45671",
|
27
27
|
"functions": [
|
28
28
|
{
|
29
29
|
"title": "all Production Forecast",
|
30
30
|
"type": "Production Forecast",
|
31
31
|
"where": "some Production Forecast predicts this Cost",
|
32
|
-
"role_id": "
|
32
|
+
"role_id": "08FEE9C7-B0BF-4AD6-95B2-EC99B7AE46EC",
|
33
33
|
"is_list": true
|
34
34
|
},
|
35
35
|
{
|
36
36
|
"title": "all Transport Route",
|
37
37
|
"type": "Transport Route",
|
38
38
|
"where": "some Transport Route incurs this Cost per kl",
|
39
|
-
"role_id": "
|
39
|
+
"role_id": "256FB476-D5EE-463B-87ED-3BD6494F2EC8",
|
40
40
|
"is_list": true
|
41
41
|
}
|
42
42
|
]
|
43
43
|
},
|
44
44
|
"Month": {
|
45
45
|
"is_main": true,
|
46
|
-
"id": "
|
46
|
+
"id": "CDF8EE98-34F1-4989-9B58-61B99A61E8E2",
|
47
47
|
"functions": [
|
48
48
|
{
|
49
49
|
"title": "Month Nr",
|
50
50
|
"type": "Month Nr",
|
51
51
|
"where": "this Month has one Month Nr",
|
52
|
-
"role_id": "
|
52
|
+
"role_id": "3CAF1B93-3F96-4E7C-A8AF-FFAC4935E9E2"
|
53
53
|
},
|
54
54
|
{
|
55
55
|
"title": "Season",
|
56
56
|
"type": "Season",
|
57
57
|
"where": "this Month is in one Season",
|
58
|
-
"role_id": "
|
58
|
+
"role_id": "25811225-AD77-45D7-879F-31161027F3E6"
|
59
59
|
},
|
60
60
|
{
|
61
61
|
"title": "all Supply Period",
|
62
62
|
"type": "Supply Period",
|
63
63
|
"where": "some Supply Period is in this Month",
|
64
|
-
"role_id": "
|
64
|
+
"role_id": "2B21C4CA-81D9-4924-81C1-23650B3022A1",
|
65
65
|
"is_list": true
|
66
66
|
}
|
67
67
|
]
|
68
68
|
},
|
69
69
|
"Month Nr": {
|
70
70
|
"is_main": false,
|
71
|
-
"id": "
|
71
|
+
"id": "2EC24502-C9BE-40A3-9430-61A1CA23C415",
|
72
72
|
"functions": [
|
73
73
|
{
|
74
74
|
"title": "Month",
|
75
75
|
"type": "Month",
|
76
76
|
"where": "this Month Nr is of one Month",
|
77
|
-
"role_id": "
|
77
|
+
"role_id": "76A3933A-EDD4-4420-ABFC-2CA82AC84F27"
|
78
78
|
}
|
79
79
|
]
|
80
80
|
},
|
81
81
|
"Product": {
|
82
82
|
"is_main": true,
|
83
|
-
"id": "
|
83
|
+
"id": "9B9E96D3-43A4-4B06-AF7B-540EBBED56C1",
|
84
84
|
"functions": [
|
85
85
|
{
|
86
86
|
"title": "Product Name",
|
87
87
|
"type": "Product Name",
|
88
88
|
"where": "this Product has one Product Name",
|
89
|
-
"role_id": "
|
89
|
+
"role_id": "272C72C4-CB90-4B5E-95B7-788C021035B6"
|
90
90
|
},
|
91
91
|
{
|
92
92
|
"title": "all Acceptable Substitution",
|
93
93
|
"type": "Acceptable Substitution",
|
94
94
|
"where": "this Product may be substituted by some alternate-Product in some Season",
|
95
|
-
"role_id": "
|
95
|
+
"role_id": "914D38B5-B8A6-4E3D-84E3-D18F4BD8C9B5",
|
96
96
|
"is_list": true
|
97
97
|
},
|
98
98
|
{
|
99
99
|
"title": "all Acceptable Substitution",
|
100
100
|
"type": "Acceptable Substitution",
|
101
101
|
"where": "this alternate-Product is an acceptable substitute for some Product in some Season",
|
102
|
-
"role_id": "
|
102
|
+
"role_id": "D479C192-1292-4A30-AB90-D8EB3DC9B857",
|
103
103
|
"is_list": true
|
104
104
|
},
|
105
105
|
{
|
106
106
|
"title": "all Production Forecast",
|
107
107
|
"type": "Production Forecast",
|
108
108
|
"where": "some Refinery in some Supply Period will make this Product in some Quantity",
|
109
|
-
"role_id": "
|
109
|
+
"role_id": "76D25543-5651-413A-940A-05E3A2F8F482",
|
110
110
|
"is_list": true
|
111
111
|
},
|
112
112
|
{
|
113
113
|
"title": "all Regional Demand",
|
114
114
|
"type": "Regional Demand",
|
115
115
|
"where": "some Region in some Supply Period will need this Product in some Quantity",
|
116
|
-
"role_id": "
|
116
|
+
"role_id": "A1CDE33D-5654-41A3-86C2-1F1D5A58ED90",
|
117
117
|
"is_list": true
|
118
118
|
}
|
119
119
|
]
|
120
120
|
},
|
121
121
|
"Product Name": {
|
122
122
|
"is_main": false,
|
123
|
-
"id": "
|
123
|
+
"id": "56E07B5D-B848-4637-A7CE-6575EAA287E6",
|
124
124
|
"functions": [
|
125
125
|
{
|
126
126
|
"title": "Product",
|
127
127
|
"type": "Product",
|
128
128
|
"where": "this Product Name is of one Product",
|
129
|
-
"role_id": "
|
129
|
+
"role_id": "E7C93935-5478-4ED1-B02B-4A8B0DCE1DA7"
|
130
130
|
}
|
131
131
|
]
|
132
132
|
},
|
133
133
|
"Production Forecast": {
|
134
134
|
"is_main": true,
|
135
|
-
"id": "
|
135
|
+
"id": "0AB026AB-90F9-48B3-9D0A-3791387E0014",
|
136
136
|
"functions": [
|
137
137
|
{
|
138
138
|
"title": "involving Refinery",
|
@@ -158,109 +158,109 @@
|
|
158
158
|
"title": "Cost",
|
159
159
|
"type": "Cost",
|
160
160
|
"where": "this Production Forecast predicts one Cost",
|
161
|
-
"role_id": "
|
161
|
+
"role_id": "D7E826EB-30A0-4F38-9DAC-B6AA4CB73812"
|
162
162
|
}
|
163
163
|
]
|
164
164
|
},
|
165
165
|
"Quantity": {
|
166
166
|
"is_main": false,
|
167
|
-
"id": "
|
167
|
+
"id": "A3464012-E2A4-4A5C-822B-93F1732BD985",
|
168
168
|
"functions": [
|
169
169
|
{
|
170
170
|
"title": "all Production Forecast",
|
171
171
|
"type": "Production Forecast",
|
172
172
|
"where": "some Refinery in some Supply Period will make some Product in this Quantity",
|
173
|
-
"role_id": "
|
173
|
+
"role_id": "6D4CAB3C-817F-4D6F-BB25-C33A8FDAE503",
|
174
174
|
"is_list": true
|
175
175
|
},
|
176
176
|
{
|
177
177
|
"title": "all Regional Demand",
|
178
178
|
"type": "Regional Demand",
|
179
179
|
"where": "some Region in some Supply Period will need some Product in this Quantity",
|
180
|
-
"role_id": "
|
180
|
+
"role_id": "1F4635EC-FB50-481D-9BAB-78CFF3D286AA",
|
181
181
|
"is_list": true
|
182
182
|
}
|
183
183
|
]
|
184
184
|
},
|
185
185
|
"Refinery": {
|
186
186
|
"is_main": true,
|
187
|
-
"id": "
|
187
|
+
"id": "1B0862C1-8C10-4545-968D-DE6F87785FED",
|
188
188
|
"functions": [
|
189
189
|
{
|
190
190
|
"title": "Refinery Name",
|
191
191
|
"type": "Refinery Name",
|
192
192
|
"where": "this Refinery has one Refinery Name",
|
193
|
-
"role_id": "
|
193
|
+
"role_id": "0C199902-6257-4D78-A418-7D05E5FA8B5C"
|
194
194
|
},
|
195
195
|
{
|
196
196
|
"title": "all Production Forecast",
|
197
197
|
"type": "Production Forecast",
|
198
198
|
"where": "this Refinery in some Supply Period will make some Product in some Quantity",
|
199
|
-
"role_id": "
|
199
|
+
"role_id": "1B194D02-93A2-49CC-9BD5-735C489F44E9",
|
200
200
|
"is_list": true
|
201
201
|
},
|
202
202
|
{
|
203
203
|
"title": "all Transport Route",
|
204
204
|
"type": "Transport Route",
|
205
205
|
"where": "some Transport Method transportation is available from this Refinery to some Region",
|
206
|
-
"role_id": "
|
206
|
+
"role_id": "E15056F5-DAA6-4DA0-9618-A7484473FD2C",
|
207
207
|
"is_list": true
|
208
208
|
}
|
209
209
|
]
|
210
210
|
},
|
211
211
|
"Refinery Name": {
|
212
212
|
"is_main": false,
|
213
|
-
"id": "
|
213
|
+
"id": "75CF9EFE-9ACF-4C9B-9B57-A3B033E4C1EB",
|
214
214
|
"functions": [
|
215
215
|
{
|
216
216
|
"title": "Refinery",
|
217
217
|
"type": "Refinery",
|
218
218
|
"where": "this Refinery Name is of one Refinery",
|
219
|
-
"role_id": "
|
219
|
+
"role_id": "343CACDB-6F2C-4DC1-A55F-80652B3E52D8"
|
220
220
|
}
|
221
221
|
]
|
222
222
|
},
|
223
223
|
"Region": {
|
224
224
|
"is_main": true,
|
225
|
-
"id": "
|
225
|
+
"id": "407948D2-73D0-4D6E-8E0A-B38EAA06447B",
|
226
226
|
"functions": [
|
227
227
|
{
|
228
228
|
"title": "Region Name",
|
229
229
|
"type": "Region Name",
|
230
230
|
"where": "this Region has one Region Name",
|
231
|
-
"role_id": "
|
231
|
+
"role_id": "C1227CDE-A69F-4C6A-A0D8-9BF2BFEC78BC"
|
232
232
|
},
|
233
233
|
{
|
234
234
|
"title": "all Regional Demand",
|
235
235
|
"type": "Regional Demand",
|
236
236
|
"where": "this Region in some Supply Period will need some Product in some Quantity",
|
237
|
-
"role_id": "
|
237
|
+
"role_id": "17D7B6F7-4B5E-444B-B839-48F2C194E43B",
|
238
238
|
"is_list": true
|
239
239
|
},
|
240
240
|
{
|
241
241
|
"title": "all Transport Route",
|
242
242
|
"type": "Transport Route",
|
243
243
|
"where": "some Transport Method transportation is available from some Refinery to this Region",
|
244
|
-
"role_id": "
|
244
|
+
"role_id": "511FBFE1-3B82-4EC9-A633-E8662E4E198E",
|
245
245
|
"is_list": true
|
246
246
|
}
|
247
247
|
]
|
248
248
|
},
|
249
249
|
"Region Name": {
|
250
250
|
"is_main": false,
|
251
|
-
"id": "
|
251
|
+
"id": "BA574B2E-1C23-42C3-BCB9-B6C46009E51B",
|
252
252
|
"functions": [
|
253
253
|
{
|
254
254
|
"title": "Region",
|
255
255
|
"type": "Region",
|
256
256
|
"where": "this Region Name is of one Region",
|
257
|
-
"role_id": "
|
257
|
+
"role_id": "1D55A045-CF04-443F-B786-0B1634268AF9"
|
258
258
|
}
|
259
259
|
]
|
260
260
|
},
|
261
261
|
"Regional Demand": {
|
262
262
|
"is_main": true,
|
263
|
-
"id": "
|
263
|
+
"id": "A0D45DFC-4DB4-4DB8-8E1B-D9FE94CB67E3",
|
264
264
|
"functions": [
|
265
265
|
{
|
266
266
|
"title": "involving Region",
|
@@ -286,72 +286,72 @@
|
|
286
286
|
},
|
287
287
|
"Season": {
|
288
288
|
"is_main": false,
|
289
|
-
"id": "
|
289
|
+
"id": "97C68700-C3CF-4E26-B7E5-FA6CACB2290A",
|
290
290
|
"functions": [
|
291
291
|
{
|
292
292
|
"title": "all Month",
|
293
293
|
"type": "Month",
|
294
294
|
"where": "some Month is in this Season",
|
295
|
-
"role_id": "
|
295
|
+
"role_id": "C55C16BC-FEF6-4181-91B3-209EFEDCEF74",
|
296
296
|
"is_list": true
|
297
297
|
},
|
298
298
|
{
|
299
299
|
"title": "all Acceptable Substitution",
|
300
300
|
"type": "Acceptable Substitution",
|
301
301
|
"where": "some Product may be substituted by some alternate-Product in this Season",
|
302
|
-
"role_id": "
|
302
|
+
"role_id": "406229F4-9CC1-4255-8A07-DFE69E67D5E1",
|
303
303
|
"is_list": true
|
304
304
|
}
|
305
305
|
]
|
306
306
|
},
|
307
307
|
"Supply Period": {
|
308
|
-
"is_main":
|
309
|
-
"id": "
|
308
|
+
"is_main": false,
|
309
|
+
"id": "0542D7A4-AC6E-4BED-B5B0-242C74EB0D3B",
|
310
310
|
"functions": [
|
311
311
|
{
|
312
312
|
"title": "all Production Forecast",
|
313
313
|
"type": "Production Forecast",
|
314
314
|
"where": "some Refinery in this Supply Period will make some Product in some Quantity",
|
315
|
-
"role_id": "
|
315
|
+
"role_id": "220D9070-E28D-42E4-BCB5-0294DFAA9465",
|
316
316
|
"is_list": true
|
317
317
|
},
|
318
318
|
{
|
319
319
|
"title": "all Regional Demand",
|
320
320
|
"type": "Regional Demand",
|
321
321
|
"where": "some Region in this Supply Period will need some Product in some Quantity",
|
322
|
-
"role_id": "
|
322
|
+
"role_id": "11D91447-7AF5-4D9D-B335-A88DC1BA2493",
|
323
323
|
"is_list": true
|
324
324
|
},
|
325
325
|
{
|
326
326
|
"title": "Month",
|
327
327
|
"type": "Month",
|
328
328
|
"where": "this Supply Period is in one Month",
|
329
|
-
"role_id": "
|
329
|
+
"role_id": "A731F142-EF35-4C6B-ADE6-25DB10222CD3"
|
330
330
|
},
|
331
331
|
{
|
332
332
|
"title": "Year",
|
333
333
|
"type": "Year",
|
334
334
|
"where": "this Supply Period is in one Year",
|
335
|
-
"role_id": "
|
335
|
+
"role_id": "13696B65-1C70-4B8B-8D75-32565F852F83"
|
336
336
|
}
|
337
337
|
]
|
338
338
|
},
|
339
339
|
"Transport Method": {
|
340
340
|
"is_main": false,
|
341
|
-
"id": "
|
341
|
+
"id": "149E788B-81B7-48FF-A081-BE4178E4147B",
|
342
342
|
"functions": [
|
343
343
|
{
|
344
344
|
"title": "all Transport Route",
|
345
345
|
"type": "Transport Route",
|
346
346
|
"where": "this Transport Method transportation is available from some Refinery to some Region",
|
347
|
-
"role_id": "
|
347
|
+
"role_id": "B2681E73-13DF-49E7-8A35-39A1D2FF1B6A",
|
348
348
|
"is_list": true
|
349
349
|
}
|
350
350
|
]
|
351
351
|
},
|
352
352
|
"Transport Route": {
|
353
353
|
"is_main": true,
|
354
|
-
"id": "
|
354
|
+
"id": "C878B756-DF3F-4D4B-80D3-2701240F1A45",
|
355
355
|
"functions": [
|
356
356
|
{
|
357
357
|
"title": "involving Transport Method",
|
@@ -372,38 +372,38 @@
|
|
372
372
|
"title": "Cost",
|
373
373
|
"type": "Cost",
|
374
374
|
"where": "this Transport Route incurs one Cost per kl",
|
375
|
-
"role_id": "
|
375
|
+
"role_id": "73DCFE2A-F68B-4457-9E51-0755CDE2D67E"
|
376
376
|
}
|
377
377
|
]
|
378
378
|
},
|
379
379
|
"Year": {
|
380
380
|
"is_main": false,
|
381
|
-
"id": "
|
381
|
+
"id": "0A48198E-095F-4753-9662-8A4DEC436074",
|
382
382
|
"functions": [
|
383
383
|
{
|
384
384
|
"title": "all Supply Period",
|
385
385
|
"type": "Supply Period",
|
386
386
|
"where": "some Supply Period is in this Year",
|
387
|
-
"role_id": "
|
387
|
+
"role_id": "69E48469-5D76-4E4D-B812-A0E54474112C",
|
388
388
|
"is_list": true
|
389
389
|
},
|
390
390
|
{
|
391
391
|
"title": "Year Nr",
|
392
392
|
"type": "Year Nr",
|
393
393
|
"where": "this Year has one Year Nr",
|
394
|
-
"role_id": "
|
394
|
+
"role_id": "08CF37AA-D541-4ACD-9A99-54C5A6F9911A"
|
395
395
|
}
|
396
396
|
]
|
397
397
|
},
|
398
398
|
"Year Nr": {
|
399
399
|
"is_main": false,
|
400
|
-
"id": "
|
400
|
+
"id": "0DD79E94-57BB-4F44-A4B9-120CE7D21CD0",
|
401
401
|
"functions": [
|
402
402
|
{
|
403
403
|
"title": "Year",
|
404
404
|
"type": "Year",
|
405
405
|
"where": "this Year Nr is of one Year",
|
406
|
-
"role_id": "
|
406
|
+
"role_id": "27166569-0EB0-4A91-8CA0-5474623875DE"
|
407
407
|
}
|
408
408
|
]
|
409
409
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activefacts-examples
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clifford Heath
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: activefacts-orm
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: activefacts-generators
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|