activefacts-examples 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +10 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +22 -0
  8. data/Rakefile +6 -0
  9. data/activefacts-examples.gemspec +26 -0
  10. data/cql/Address.cql +44 -0
  11. data/cql/Astronomy.cql +35 -0
  12. data/cql/Blog.cql +54 -0
  13. data/cql/CinemaBookings.cql +64 -0
  14. data/cql/CinemaTickets.cql +127 -0
  15. data/cql/CompanyDirectorEmployee.cql +56 -0
  16. data/cql/Death.cql +17 -0
  17. data/cql/Diplomacy.cql +48 -0
  18. data/cql/Genealogy.cql +98 -0
  19. data/cql/Health.cql +78 -0
  20. data/cql/Insurance.cql +320 -0
  21. data/cql/Marriage.cql +18 -0
  22. data/cql/Metamodel.cql +567 -0
  23. data/cql/Monogamy.cql +24 -0
  24. data/cql/MultiInheritance.cql +22 -0
  25. data/cql/MultipleSubtyping.cql +30 -0
  26. data/cql/NonRoleId.cql +14 -0
  27. data/cql/OddIdentifier.cql +18 -0
  28. data/cql/OilSupply.cql +53 -0
  29. data/cql/OneRoleNesting.cql +38 -0
  30. data/cql/OneToOnes.cql +17 -0
  31. data/cql/Orienteering.cql +111 -0
  32. data/cql/PartyModel.cql +38 -0
  33. data/cql/PersonPlaysGame.cql +18 -0
  34. data/cql/RedundantDependency.cql +34 -0
  35. data/cql/SchoolActivities.cql +33 -0
  36. data/cql/SeparateSubtype.cql +30 -0
  37. data/cql/ServiceDirector.cql +276 -0
  38. data/cql/SimplestUnary.cql +12 -0
  39. data/cql/Supervision.cql +34 -0
  40. data/cql/VenueSeating.cql +45 -0
  41. data/cql/WaiterTips.cql +33 -0
  42. data/cql/Warehousing.cql +101 -0
  43. data/cql/WindowInRoomInBldg.cql +28 -0
  44. data/cql/unit.cql +474 -0
  45. data/diagrams/json/Address.json +41 -0
  46. data/diagrams/json/Astronomy.json +31 -0
  47. data/diagrams/json/Blog.json +46 -0
  48. data/diagrams/json/CinemaBookings.json +53 -0
  49. data/diagrams/json/CinemaTickets.json +101 -0
  50. data/diagrams/json/CompanyDirectorEmployee.json +44 -0
  51. data/diagrams/json/Death.json +20 -0
  52. data/diagrams/json/Diplomacy.json +34 -0
  53. data/diagrams/json/Genealogy.json +78 -0
  54. data/diagrams/json/Insurance.json +259 -0
  55. data/diagrams/json/Marriage.json +21 -0
  56. data/diagrams/json/Metamodel.json +318 -0
  57. data/diagrams/json/Monogamy.json +22 -0
  58. data/diagrams/json/MultiInheritance.json +25 -0
  59. data/diagrams/json/MultipleSubtyping.json +22 -0
  60. data/diagrams/json/OilSupply.json +49 -0
  61. data/diagrams/json/OneRoleNesting.json +37 -0
  62. data/diagrams/json/Orienteering.json +94 -0
  63. data/diagrams/json/PersonPlaysGame.json +22 -0
  64. data/diagrams/json/RedundantDependency.json +33 -0
  65. data/diagrams/json/SchoolActivities.json +28 -0
  66. data/diagrams/json/SeparateSubtype.json +29 -0
  67. data/diagrams/json/SimplestUnary.json +15 -0
  68. data/diagrams/json/Supervision.json +27 -0
  69. data/diagrams/json/VenueSeating.json +40 -0
  70. data/diagrams/json/WaiterTips.json +29 -0
  71. data/diagrams/json/Warehousing.json +86 -0
  72. data/diagrams/json/WindowInRoomInBldg.json +31 -0
  73. data/images/Address.SQL.png +0 -0
  74. data/images/Address.png +0 -0
  75. data/images/Blog.png +0 -0
  76. data/images/CinemaBookings.png +0 -0
  77. data/images/CinemaTickets.png +0 -0
  78. data/images/CompanyDirectorEmployee.png +0 -0
  79. data/images/Death.png +0 -0
  80. data/images/Diplomacy.png +0 -0
  81. data/images/DumpMetamodel.bat +2 -0
  82. data/images/Genealogy.png +0 -0
  83. data/images/Insurance/Claim.png +0 -0
  84. data/images/Insurance/Insurance.png +0 -0
  85. data/images/Insurance/Person.png +0 -0
  86. data/images/Insurance/Policy.png +0 -0
  87. data/images/Insurance/Related.png +0 -0
  88. data/images/Insurance/VehicleIncident.png +0 -0
  89. data/images/Marriage.png +0 -0
  90. data/images/Metamodel/Concepts.png +0 -0
  91. data/images/Metamodel/Constraints.png +0 -0
  92. data/images/Metamodel/ContextNote.png +0 -0
  93. data/images/Metamodel/Diagrams.png +0 -0
  94. data/images/Metamodel/Language.png +0 -0
  95. data/images/Metamodel/Legacy.png +0 -0
  96. data/images/Metamodel/Objects.png +0 -0
  97. data/images/Metamodel/Populations.png +0 -0
  98. data/images/Metamodel/Query.png +0 -0
  99. data/images/Metamodel/Units.png +0 -0
  100. data/images/Metamodel/ValueConstraints.png +0 -0
  101. data/images/Metamodel/ValueTypes.png +0 -0
  102. data/images/MetamodelER.bcp +1 -0
  103. data/images/MetamodelER.pdf +0 -0
  104. data/images/MultiInheritance.png +0 -0
  105. data/images/NorthwindER.png +0 -0
  106. data/images/OilSupply.png +0 -0
  107. data/images/Orienteering/Administration.png +0 -0
  108. data/images/Orienteering/Registration.png +0 -0
  109. data/images/Orienteering/Scoring.png +0 -0
  110. data/images/PersonPlaysGame.png +0 -0
  111. data/images/RedundantDependency.png +0 -0
  112. data/images/SchoolActivities.png +0 -0
  113. data/images/SeparateSubtype.png +0 -0
  114. data/images/SimplestUnary.png +0 -0
  115. data/images/Supervision.png +0 -0
  116. data/images/VenueSeating.png +0 -0
  117. data/images/WaiterTips.png +0 -0
  118. data/images/Warehousing.png +0 -0
  119. data/images/WindowInRoomInBldg.png +0 -0
  120. data/metadata/json/Astronomy.json +175 -0
  121. data/metadata/json/CinemaBookings.json +354 -0
  122. data/metadata/json/CinemaTickets.json +768 -0
  123. data/metadata/json/CompanyDirectorEmployee.json +270 -0
  124. data/metadata/json/Diplomacy.json +186 -0
  125. data/metadata/json/Metamodel.json +3214 -0
  126. data/metadata/json/OilSupply.json +411 -0
  127. data/metadata/json/SeparateSubtype.json +157 -0
  128. data/metadata/json/Supervision.json +128 -0
  129. data/metadata/json/VenueSeating.json +209 -0
  130. data/orm/.gitignore +11 -0
  131. data/orm/Address.orm +1268 -0
  132. data/orm/Astronomy.orm +925 -0
  133. data/orm/Blog.orm +1711 -0
  134. data/orm/CinemaBookings.orm +1998 -0
  135. data/orm/CinemaTickets.orm +5060 -0
  136. data/orm/CompanyDirectorEmployee.orm +2094 -0
  137. data/orm/Death.orm +386 -0
  138. data/orm/Diplomacy.orm +1478 -0
  139. data/orm/ExampleModels2010.csproj +764 -0
  140. data/orm/ExampleModels2010.sln +16 -0
  141. data/orm/Genealogy.orm +3209 -0
  142. data/orm/Health.orm +2407 -0
  143. data/orm/Insurance.orm +12727 -0
  144. data/orm/Marriage.orm +493 -0
  145. data/orm/Metamodel.orm +20998 -0
  146. data/orm/Monogamy.orm +328 -0
  147. data/orm/MultiInheritance.orm +537 -0
  148. data/orm/MultipleSubtyping.orm +347 -0
  149. data/orm/OilSupply.orm +2533 -0
  150. data/orm/OneRoleNesting.orm +1237 -0
  151. data/orm/Orienteering.orm +3976 -0
  152. data/orm/PersonPlaysGame.orm +426 -0
  153. data/orm/RedundantDependency.orm +844 -0
  154. data/orm/SchoolActivities.orm +961 -0
  155. data/orm/SeparateSubtype.orm +821 -0
  156. data/orm/SimplestUnary.orm +172 -0
  157. data/orm/Supervision.orm +734 -0
  158. data/orm/VenueSeating.orm +1289 -0
  159. data/orm/WaiterTips.orm +789 -0
  160. data/orm/Warehousing.orm +3792 -0
  161. data/orm/WindowInRoomInBldg.orm +772 -0
  162. data/rails/models/Astronomy.models +17 -0
  163. data/rails/models/CinemaBookings.models +123 -0
  164. data/rails/models/CinemaTickets.models +192 -0
  165. data/rails/models/Diplomacy.models +126 -0
  166. data/rails/models/Metamodel.models +894 -0
  167. data/rails/models/OneRoleNesting.models +18 -0
  168. data/rails/models/SeparateSubtype.models +49 -0
  169. data/rails/models/VenueSeating.models +70 -0
  170. data/rails/schema/Astronomy.schema.rb +25 -0
  171. data/rails/schema/CinemaBookings.schema.rb +78 -0
  172. data/rails/schema/CinemaTickets.schema.rb +132 -0
  173. data/rails/schema/Diplomacy.schema.rb +74 -0
  174. data/rails/schema/Metamodel.schema.rb +538 -0
  175. data/rails/schema/OneRoleNesting.rb +20 -0
  176. data/rails/schema/SeparateSubtype.schema.rb +35 -0
  177. data/rails/schema/VenueSeating.schema.rb +46 -0
  178. data/rails/schema/Warehousing.schema.rb +145 -0
  179. data/ruby/Address.rb +68 -0
  180. data/ruby/Astronomy.rb +55 -0
  181. data/ruby/Blog.rb +84 -0
  182. data/ruby/CinemaBookings.rb +109 -0
  183. data/ruby/CinemaTickets.rb +218 -0
  184. data/ruby/CompanyDirectorEmployee.rb +73 -0
  185. data/ruby/Death.rb +26 -0
  186. data/ruby/Diplomacy.rb +59 -0
  187. data/ruby/Genealogy.rb +173 -0
  188. data/ruby/Insurance.rb +562 -0
  189. data/ruby/Marriage.rb +21 -0
  190. data/ruby/Metamodel.rb +621 -0
  191. data/ruby/Monogamy.rb +27 -0
  192. data/ruby/MultiInheritance.rb +38 -0
  193. data/ruby/OilSupply.rb +112 -0
  194. data/ruby/OneRoleNesting.rb +66 -0
  195. data/ruby/Orienteering.rb +216 -0
  196. data/ruby/PersonPlaysGame.rb +31 -0
  197. data/ruby/RedundantDependency.rb +53 -0
  198. data/ruby/SchoolActivities.rb +49 -0
  199. data/ruby/SeparateSubtype.rb +46 -0
  200. data/ruby/SimplestUnary.rb +10 -0
  201. data/ruby/Supervision.rb +33 -0
  202. data/ruby/TwoValues.rb +14 -0
  203. data/ruby/VenueSeating.rb +64 -0
  204. data/ruby/WaiterTips.rb +49 -0
  205. data/ruby/Warehousing.rb +167 -0
  206. data/ruby/WindowInRoomInBldg.rb +45 -0
  207. data/sql/server/Address.sql +40 -0
  208. data/sql/server/Astronomy.sql +36 -0
  209. data/sql/server/Blog.sql +78 -0
  210. data/sql/server/CinemaBookings.sql +95 -0
  211. data/sql/server/CinemaTickets.sql +191 -0
  212. data/sql/server/CompanyDirectorEmployee.sql +104 -0
  213. data/sql/server/Death.sql +11 -0
  214. data/sql/server/Diplomacy.sql +66 -0
  215. data/sql/server/Genealogy.sql +138 -0
  216. data/sql/server/Health.sql +169 -0
  217. data/sql/server/Insurance.sql +484 -0
  218. data/sql/server/Marriage.sql +30 -0
  219. data/sql/server/Metamodel.sql +1000 -0
  220. data/sql/server/Monogamy.sql +20 -0
  221. data/sql/server/MultiInheritance.sql +27 -0
  222. data/sql/server/OilSupply.sql +105 -0
  223. data/sql/server/OneRoleNesting.sql +29 -0
  224. data/sql/server/Orienteering.sql +186 -0
  225. data/sql/server/PersonPlaysGame.sql +9 -0
  226. data/sql/server/RedundantDependency.sql +54 -0
  227. data/sql/server/SchoolActivities.sql +30 -0
  228. data/sql/server/SeparateSubtype.sql +33 -0
  229. data/sql/server/SimplestUnary.sql +9 -0
  230. data/sql/server/Supervision.sql +30 -0
  231. data/sql/server/VenueSeating.sql +54 -0
  232. data/sql/server/WaiterTips.sql +31 -0
  233. data/sql/server/Warehousing.sql +203 -0
  234. data/sql/server/WindowInRoomInBldg.sql +13 -0
  235. data/transform/surrogate/Address.absorption +2 -0
  236. data/transform/surrogate/Blog.absorption +5 -0
  237. data/transform/surrogate/CinemaBookings.absorption +7 -0
  238. data/transform/surrogate/CompanyDirectorEmployee.absorption +7 -0
  239. data/transform/surrogate/Death.absorption +1 -0
  240. data/transform/surrogate/Diplomacy-revised.absorption +6 -0
  241. data/transform/surrogate/Diplomacy.absorption +6 -0
  242. data/transform/surrogate/Genealogy.absorption +8 -0
  243. data/transform/surrogate/Insurance.absorption +18 -0
  244. data/transform/surrogate/Marriage.absorption +2 -0
  245. data/transform/surrogate/Metamodel.absorption +25 -0
  246. data/transform/surrogate/Monogamy.absorption +1 -0
  247. data/transform/surrogate/MultiInheritance.absorption +1 -0
  248. data/transform/surrogate/MultipleSubtyping.absorption +1 -0
  249. data/transform/surrogate/OilSupply.absorption +8 -0
  250. data/transform/surrogate/OneRoleNesting.absorption +1 -0
  251. data/transform/surrogate/Orienteering.absorption +11 -0
  252. data/transform/surrogate/PersonPlaysGame.absorption +1 -0
  253. data/transform/surrogate/RedundantDependency.absorption +3 -0
  254. data/transform/surrogate/SchoolActivities.absorption +3 -0
  255. data/transform/surrogate/SeparateSubtype.absorption +3 -0
  256. data/transform/surrogate/SimplestUnary.absorption +1 -0
  257. data/transform/surrogate/Supervision.absorption +2 -0
  258. data/transform/surrogate/WaiterTips.absorption +3 -0
  259. data/transform/surrogate/Warehousing.absorption +12 -0
  260. data/transform/surrogate/WindowInRoomInBldg.absorption +1 -0
  261. data/transform/surrogate/unit.absorption +0 -0
  262. metadata +374 -0
@@ -0,0 +1,411 @@
1
+ {
2
+ "types": {
3
+ "Acceptable Substitution": {
4
+ "is_main": true,
5
+ "id": "40e49157-6450-4d2c-b85b-3c299e492663",
6
+ "functions": [
7
+ {
8
+ "title": "involving Product",
9
+ "type": "Product",
10
+ "where": "this Product may be substituted by some alternate-Product in some Season"
11
+ },
12
+ {
13
+ "title": "involving Alternate Product",
14
+ "type": "Product",
15
+ "where": "this alternate-Product is an acceptable substitute for some Product in some Season"
16
+ },
17
+ {
18
+ "title": "involving Season",
19
+ "type": "Season",
20
+ "where": "some Product may be substituted by some alternate-Product in this Season"
21
+ }
22
+ ]
23
+ },
24
+ "Cost": {
25
+ "is_main": false,
26
+ "id": "716e46dc-38dc-4517-ae5f-2e455f8fcac3",
27
+ "functions": [
28
+ {
29
+ "title": "all Production Forecast",
30
+ "type": "Production Forecast",
31
+ "where": "some Production Forecast predicts this Cost",
32
+ "role_id": "f99606fa-b75f-4e02-8a57-de57761158ea",
33
+ "is_list": true
34
+ },
35
+ {
36
+ "title": "all Transport Route",
37
+ "type": "Transport Route",
38
+ "where": "some Transport Route incurs this Cost per kl",
39
+ "role_id": "d7613018-f6b0-49fa-ad78-3d698da6d72b",
40
+ "is_list": true
41
+ }
42
+ ]
43
+ },
44
+ "Month": {
45
+ "is_main": true,
46
+ "id": "4b128c89-e64d-42c9-8fb0-1e8e72cb0712",
47
+ "functions": [
48
+ {
49
+ "title": "Month Nr",
50
+ "type": "Month Nr",
51
+ "where": "this Month has one Month Nr",
52
+ "role_id": "60d15497-91ac-446e-9374-bc0793d43ba3"
53
+ },
54
+ {
55
+ "title": "Season",
56
+ "type": "Season",
57
+ "where": "this Month is in one Season",
58
+ "role_id": "b6dba1ae-390b-4304-be5e-4d7807963439"
59
+ },
60
+ {
61
+ "title": "all Supply Period",
62
+ "type": "Supply Period",
63
+ "where": "some Supply Period is in this Month",
64
+ "role_id": "66608cb1-e637-4c3f-be7a-4447ec82b4f5",
65
+ "is_list": true
66
+ }
67
+ ]
68
+ },
69
+ "Month Nr": {
70
+ "is_main": false,
71
+ "id": "6e14a2ab-fd39-43ed-8fb6-f0e6f25c70bb",
72
+ "functions": [
73
+ {
74
+ "title": "Month",
75
+ "type": "Month",
76
+ "where": "this Month Nr is of one Month",
77
+ "role_id": "740d8591-6f51-4d81-9009-26768683d00e"
78
+ }
79
+ ]
80
+ },
81
+ "Product": {
82
+ "is_main": true,
83
+ "id": "aaf81a10-5093-45a8-94d8-efe6cb17445e",
84
+ "functions": [
85
+ {
86
+ "title": "Product Name",
87
+ "type": "Product Name",
88
+ "where": "this Product has one Product Name",
89
+ "role_id": "1dacaac2-41c9-43a5-8fdc-b6d95352c058"
90
+ },
91
+ {
92
+ "title": "all Acceptable Substitution",
93
+ "type": "Acceptable Substitution",
94
+ "where": "this Product may be substituted by some alternate-Product in some Season",
95
+ "role_id": "7138d862-b11b-4625-bb6d-7d63ea39b9b9",
96
+ "is_list": true
97
+ },
98
+ {
99
+ "title": "all Acceptable Substitution",
100
+ "type": "Acceptable Substitution",
101
+ "where": "this alternate-Product is an acceptable substitute for some Product in some Season",
102
+ "role_id": "09681795-a2c5-4429-9709-d5a9a993c077",
103
+ "is_list": true
104
+ },
105
+ {
106
+ "title": "all Production Forecast",
107
+ "type": "Production Forecast",
108
+ "where": "some Refinery in some Supply Period will make this Product in some Quantity",
109
+ "role_id": "c6b420de-fdf1-4cc5-ae5d-1eb300d133cd",
110
+ "is_list": true
111
+ },
112
+ {
113
+ "title": "all Regional Demand",
114
+ "type": "Regional Demand",
115
+ "where": "some Region in some Supply Period will need this Product in some Quantity",
116
+ "role_id": "5753937f-6ed8-40c6-bc99-82b16ebf6f60",
117
+ "is_list": true
118
+ }
119
+ ]
120
+ },
121
+ "Product Name": {
122
+ "is_main": false,
123
+ "id": "0792678a-f609-44c9-80ed-3ffa964b310e",
124
+ "functions": [
125
+ {
126
+ "title": "Product",
127
+ "type": "Product",
128
+ "where": "this Product Name is of one Product",
129
+ "role_id": "3ad2fc0a-a2e4-437a-b3a7-6595e6d00a1b"
130
+ }
131
+ ]
132
+ },
133
+ "Production Forecast": {
134
+ "is_main": true,
135
+ "id": "fde0132b-695f-44f9-bdb9-5732f7b31118",
136
+ "functions": [
137
+ {
138
+ "title": "involving Refinery",
139
+ "type": "Refinery",
140
+ "where": "this Refinery in some Supply Period will make some Product in some Quantity"
141
+ },
142
+ {
143
+ "title": "involving Supply Period",
144
+ "type": "Supply Period",
145
+ "where": "some Refinery in this Supply Period will make some Product in some Quantity"
146
+ },
147
+ {
148
+ "title": "involving Product",
149
+ "type": "Product",
150
+ "where": "some Refinery in some Supply Period will make this Product in some Quantity"
151
+ },
152
+ {
153
+ "title": "involving Quantity",
154
+ "type": "Quantity",
155
+ "where": "some Refinery in some Supply Period will make some Product in this Quantity"
156
+ },
157
+ {
158
+ "title": "Cost",
159
+ "type": "Cost",
160
+ "where": "this Production Forecast predicts one Cost",
161
+ "role_id": "5efdf306-1211-4ecd-b3cc-6db6e01c4e6d"
162
+ }
163
+ ]
164
+ },
165
+ "Quantity": {
166
+ "is_main": false,
167
+ "id": "8279123e-1c02-42e9-9ffb-880abe057917",
168
+ "functions": [
169
+ {
170
+ "title": "all Production Forecast",
171
+ "type": "Production Forecast",
172
+ "where": "some Refinery in some Supply Period will make some Product in this Quantity",
173
+ "role_id": "1ceab24c-c108-455f-9681-105090f7f21d",
174
+ "is_list": true
175
+ },
176
+ {
177
+ "title": "all Regional Demand",
178
+ "type": "Regional Demand",
179
+ "where": "some Region in some Supply Period will need some Product in this Quantity",
180
+ "role_id": "770d2abd-a25a-4262-8e6f-825a5cb163f4",
181
+ "is_list": true
182
+ }
183
+ ]
184
+ },
185
+ "Refinery": {
186
+ "is_main": true,
187
+ "id": "5d9f65d2-d38f-4aee-8ee3-464d56f3891f",
188
+ "functions": [
189
+ {
190
+ "title": "Refinery Name",
191
+ "type": "Refinery Name",
192
+ "where": "this Refinery has one Refinery Name",
193
+ "role_id": "cbbbeebd-8444-426e-a63f-85ae318ecc20"
194
+ },
195
+ {
196
+ "title": "all Production Forecast",
197
+ "type": "Production Forecast",
198
+ "where": "this Refinery in some Supply Period will make some Product in some Quantity",
199
+ "role_id": "aae4cb21-a2cd-4225-a035-d0aeaf490337",
200
+ "is_list": true
201
+ },
202
+ {
203
+ "title": "all Transport Route",
204
+ "type": "Transport Route",
205
+ "where": "some Transport Method transportation is available from this Refinery to some Region",
206
+ "role_id": "b8a2d8e9-adf3-49ee-97c7-4e27be294d72",
207
+ "is_list": true
208
+ }
209
+ ]
210
+ },
211
+ "Refinery Name": {
212
+ "is_main": false,
213
+ "id": "dd09ebcd-b9f2-4780-9a03-e9208aa94bbb",
214
+ "functions": [
215
+ {
216
+ "title": "Refinery",
217
+ "type": "Refinery",
218
+ "where": "this Refinery Name is of one Refinery",
219
+ "role_id": "29eef4b5-5ddf-4c0e-a2bd-21f4785ae6a9"
220
+ }
221
+ ]
222
+ },
223
+ "Region": {
224
+ "is_main": true,
225
+ "id": "27effba9-2a82-40cc-be4a-2d681811afd4",
226
+ "functions": [
227
+ {
228
+ "title": "Region Name",
229
+ "type": "Region Name",
230
+ "where": "this Region has one Region Name",
231
+ "role_id": "8cdf335c-8622-4e68-9c8d-76161b3474b9"
232
+ },
233
+ {
234
+ "title": "all Regional Demand",
235
+ "type": "Regional Demand",
236
+ "where": "this Region in some Supply Period will need some Product in some Quantity",
237
+ "role_id": "32b3f496-e1a0-4ea8-ab52-7f7ea27d6f5e",
238
+ "is_list": true
239
+ },
240
+ {
241
+ "title": "all Transport Route",
242
+ "type": "Transport Route",
243
+ "where": "some Transport Method transportation is available from some Refinery to this Region",
244
+ "role_id": "15758b1e-8f4e-423c-9537-7ada53a0bb57",
245
+ "is_list": true
246
+ }
247
+ ]
248
+ },
249
+ "Region Name": {
250
+ "is_main": false,
251
+ "id": "a7d2f321-c1ec-4e71-9fe9-af622757ed9d",
252
+ "functions": [
253
+ {
254
+ "title": "Region",
255
+ "type": "Region",
256
+ "where": "this Region Name is of one Region",
257
+ "role_id": "1ad30fff-5230-4b7c-a340-df62d5f1c21e"
258
+ }
259
+ ]
260
+ },
261
+ "Regional Demand": {
262
+ "is_main": true,
263
+ "id": "c2d03b37-b913-4597-bb6b-ac2b971898cd",
264
+ "functions": [
265
+ {
266
+ "title": "involving Region",
267
+ "type": "Region",
268
+ "where": "this Region in some Supply Period will need some Product in some Quantity"
269
+ },
270
+ {
271
+ "title": "involving Supply Period",
272
+ "type": "Supply Period",
273
+ "where": "some Region in this Supply Period will need some Product in some Quantity"
274
+ },
275
+ {
276
+ "title": "involving Product",
277
+ "type": "Product",
278
+ "where": "some Region in some Supply Period will need this Product in some Quantity"
279
+ },
280
+ {
281
+ "title": "involving Quantity",
282
+ "type": "Quantity",
283
+ "where": "some Region in some Supply Period will need some Product in this Quantity"
284
+ }
285
+ ]
286
+ },
287
+ "Season": {
288
+ "is_main": false,
289
+ "id": "db77e3b4-3412-46fa-be0f-5eba35639115",
290
+ "functions": [
291
+ {
292
+ "title": "all Month",
293
+ "type": "Month",
294
+ "where": "some Month is in this Season",
295
+ "role_id": "cc597414-58f0-4ae4-8818-52f08b99fa00",
296
+ "is_list": true
297
+ },
298
+ {
299
+ "title": "all Acceptable Substitution",
300
+ "type": "Acceptable Substitution",
301
+ "where": "some Product may be substituted by some alternate-Product in this Season",
302
+ "role_id": "a99e4013-6692-49fa-8beb-613e2d83a87d",
303
+ "is_list": true
304
+ }
305
+ ]
306
+ },
307
+ "Supply Period": {
308
+ "is_main": true,
309
+ "id": "b8aedd69-21f5-4285-a7a5-fd3f079bf290",
310
+ "functions": [
311
+ {
312
+ "title": "all Production Forecast",
313
+ "type": "Production Forecast",
314
+ "where": "some Refinery in this Supply Period will make some Product in some Quantity",
315
+ "role_id": "d922f32f-6c9c-40e1-8062-2e0c9c3398f9",
316
+ "is_list": true
317
+ },
318
+ {
319
+ "title": "all Regional Demand",
320
+ "type": "Regional Demand",
321
+ "where": "some Region in this Supply Period will need some Product in some Quantity",
322
+ "role_id": "75a88f4f-007d-4f19-8edb-8e8e0b81122e",
323
+ "is_list": true
324
+ },
325
+ {
326
+ "title": "Month",
327
+ "type": "Month",
328
+ "where": "this Supply Period is in one Month",
329
+ "role_id": "a284c9c8-f5cf-4f4d-9645-8ec72fa68b3d"
330
+ },
331
+ {
332
+ "title": "Year",
333
+ "type": "Year",
334
+ "where": "this Supply Period is in one Year",
335
+ "role_id": "4f5fdced-0d4e-4e2f-8963-09d7e8905684"
336
+ }
337
+ ]
338
+ },
339
+ "Transport Method": {
340
+ "is_main": false,
341
+ "id": "62d8c19f-e40e-45b5-9b57-66e0b0134b4b",
342
+ "functions": [
343
+ {
344
+ "title": "all Transport Route",
345
+ "type": "Transport Route",
346
+ "where": "this Transport Method transportation is available from some Refinery to some Region",
347
+ "role_id": "8b46afa0-9f94-4739-a573-2e2dcaff6951",
348
+ "is_list": true
349
+ }
350
+ ]
351
+ },
352
+ "Transport Route": {
353
+ "is_main": true,
354
+ "id": "0c7f3e46-84dc-416a-8ee5-659c4b9ed4db",
355
+ "functions": [
356
+ {
357
+ "title": "involving Transport Method",
358
+ "type": "Transport Method",
359
+ "where": "this Transport Method transportation is available from some Refinery to some Region"
360
+ },
361
+ {
362
+ "title": "involving Refinery",
363
+ "type": "Refinery",
364
+ "where": "some Transport Method transportation is available from this Refinery to some Region"
365
+ },
366
+ {
367
+ "title": "involving Region",
368
+ "type": "Region",
369
+ "where": "some Transport Method transportation is available from some Refinery to this Region"
370
+ },
371
+ {
372
+ "title": "Cost",
373
+ "type": "Cost",
374
+ "where": "this Transport Route incurs one Cost per kl",
375
+ "role_id": "8ca58acf-67b4-4dff-ae7b-59e59a8632ef"
376
+ }
377
+ ]
378
+ },
379
+ "Year": {
380
+ "is_main": false,
381
+ "id": "a3f9303c-6fd9-42f8-b30d-ea0c41f32c82",
382
+ "functions": [
383
+ {
384
+ "title": "all Supply Period",
385
+ "type": "Supply Period",
386
+ "where": "some Supply Period is in this Year",
387
+ "role_id": "bfb58f99-dd83-4458-9c72-bd67943e88bd",
388
+ "is_list": true
389
+ },
390
+ {
391
+ "title": "Year Nr",
392
+ "type": "Year Nr",
393
+ "where": "this Year has one Year Nr",
394
+ "role_id": "b9487343-5c56-40fc-bd20-4f547d6f0ff6"
395
+ }
396
+ ]
397
+ },
398
+ "Year Nr": {
399
+ "is_main": false,
400
+ "id": "e28c77da-08ea-45a5-883b-5db08b734d49",
401
+ "functions": [
402
+ {
403
+ "title": "Year",
404
+ "type": "Year",
405
+ "where": "this Year Nr is of one Year",
406
+ "role_id": "d0cf514c-5fe1-40ed-85d0-bff9018fae5f"
407
+ }
408
+ ]
409
+ }
410
+ }
411
+ }
@@ -0,0 +1,157 @@
1
+ {
2
+ "types": {
3
+ "Claim": {
4
+ "is_main": true,
5
+ "id": "6E4019BD-8054-40CD-833D-8512F2F0405A",
6
+ "functions": [
7
+ {
8
+ "title": "Incident",
9
+ "type": "Incident",
10
+ "where": "this Claim concerns one Incident",
11
+ "role_id": "C40A0280-B67D-4EEA-A9F9-47C026AC28A7"
12
+ },
13
+ {
14
+ "title": "Claim ID",
15
+ "type": "Claim ID",
16
+ "where": "this Claim has one Claim ID",
17
+ "role_id": "878FC2CB-4C3B-44EA-A70F-25ECABB5076B"
18
+ }
19
+ ]
20
+ },
21
+ "Claim ID": {
22
+ "is_main": false,
23
+ "id": "9053B849-161D-43B6-B077-2FF669A15714",
24
+ "functions": [
25
+ {
26
+ "title": "Claim",
27
+ "type": "Claim",
28
+ "where": "this Claim ID is of one Claim",
29
+ "role_id": "5C549E52-EDEE-445F-B1E8-025129D5E1AB"
30
+ }
31
+ ]
32
+ },
33
+ "Date Time": {
34
+ "is_main": false,
35
+ "id": "0BF8578B-D8C5-475B-A888-CC14CE2BC714",
36
+ "functions": [
37
+ {
38
+ "title": "all Incident",
39
+ "type": "Incident",
40
+ "where": "some Incident occurred on this Date Time",
41
+ "role_id": "53088D38-2103-44D0-A9E3-DF5E0C8D4849",
42
+ "is_list": true
43
+ }
44
+ ]
45
+ },
46
+ "Driver": {
47
+ "is_main": false,
48
+ "id": "6E2EBA40-F041-4420-A003-3303E36B6012",
49
+ "functions": [
50
+ {
51
+ "title": "as Person",
52
+ "type": "Person"
53
+ },
54
+ {
55
+ "title": "all Vehicle Incident",
56
+ "type": "Vehicle Incident",
57
+ "where": "some Vehicle Incident occurred while this Driver was in charge",
58
+ "role_id": "D765493D-0A9B-4795-884F-B117ED23677D",
59
+ "is_list": true
60
+ }
61
+ ]
62
+ },
63
+ "Incident": {
64
+ "is_main": false,
65
+ "id": "9A36B0C9-94E8-425A-A984-BEA72A9B4AA4",
66
+ "functions": [
67
+ {
68
+ "title": "as Vehicle Incident",
69
+ "type": "Vehicle Incident"
70
+ },
71
+ {
72
+ "title": "Claim",
73
+ "type": "Claim",
74
+ "where": "this Incident resulted in one Claim",
75
+ "role_id": "DD3E0200-C230-4268-8D17-1154286FD0AC"
76
+ },
77
+ {
78
+ "title": "Date Time",
79
+ "type": "Date Time",
80
+ "where": "this Incident occurred on one Date Time",
81
+ "role_id": "41C3F183-9BA7-4AC6-8527-C39889C6E245"
82
+ },
83
+ {
84
+ "title": "Witness",
85
+ "type": "Witness",
86
+ "where": "this Incident was independently witnessed by one Witness",
87
+ "role_id": "3BB15FA5-5DB2-43EE-A4F4-C1654480FEEF"
88
+ }
89
+ ]
90
+ },
91
+ "Person": {
92
+ "is_main": true,
93
+ "id": "F5E44F41-2BF1-4B4C-844E-08EBE84DD4DC",
94
+ "functions": [
95
+ {
96
+ "title": "as Driver",
97
+ "type": "Driver"
98
+ },
99
+ {
100
+ "title": "as Witness",
101
+ "type": "Witness"
102
+ },
103
+ {
104
+ "title": "Person Name",
105
+ "type": "Person Name",
106
+ "where": "this Person has one Person Name",
107
+ "role_id": "88C171A2-25CD-4774-B73C-72672ACDBB8E"
108
+ }
109
+ ]
110
+ },
111
+ "Person Name": {
112
+ "is_main": false,
113
+ "id": "A4F489BB-5A6B-4403-AB4B-0565A96059DF",
114
+ "functions": [
115
+ {
116
+ "title": "Person",
117
+ "type": "Person",
118
+ "where": "this Person Name is of one Person",
119
+ "role_id": "9AA7879D-4E16-43E4-883B-B8554FFD3DF0"
120
+ }
121
+ ]
122
+ },
123
+ "Vehicle Incident": {
124
+ "is_main": true,
125
+ "id": "A81218A6-64BE-4AE8-8FB5-2FE338A736EB",
126
+ "functions": [
127
+ {
128
+ "title": "as Incident",
129
+ "type": "Incident"
130
+ },
131
+ {
132
+ "title": "Driver",
133
+ "type": "Driver",
134
+ "where": "this Vehicle Incident occurred while one Driver was in charge",
135
+ "role_id": "76B4D681-B173-4DB7-BCA7-6A770C63F41E"
136
+ }
137
+ ]
138
+ },
139
+ "Witness": {
140
+ "is_main": false,
141
+ "id": "20C43F9B-7787-447B-A326-FA6B726D1E0F",
142
+ "functions": [
143
+ {
144
+ "title": "as Person",
145
+ "type": "Person"
146
+ },
147
+ {
148
+ "title": "all Incident",
149
+ "type": "Incident",
150
+ "where": "this Witness saw some Incident",
151
+ "role_id": "0FC66FDA-FD01-4731-BAC8-78A6BA2C14D5",
152
+ "is_list": true
153
+ }
154
+ ]
155
+ }
156
+ }
157
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "types": {
3
+ "CEO": {
4
+ "is_main": false,
5
+ "id": "9E7D3467-3958-4723-9A3A-BF959CEC2ADB",
6
+ "functions": [
7
+ {
8
+ "title": "as Employee",
9
+ "type": "Employee"
10
+ },
11
+ {
12
+ "title": "as Manager",
13
+ "type": "Manager"
14
+ },
15
+ {
16
+ "title": "all Company",
17
+ "type": "Company",
18
+ "where": "this CEO runs some Company",
19
+ "role_id": "0CA8DDBF-0AF8-45BE-A076-C967144A74F7",
20
+ "is_list": true
21
+ }
22
+ ]
23
+ },
24
+ "Company": {
25
+ "is_main": true,
26
+ "id": "2EEF1364-C38B-463A-A788-4D9125F7415F",
27
+ "functions": [
28
+ {
29
+ "title": "CEO",
30
+ "type": "CEO",
31
+ "where": "this Company is run by one CEO",
32
+ "role_id": "58B56A84-676D-4ACF-9574-2E9A1A62F13B"
33
+ },
34
+ {
35
+ "title": "CompanyName",
36
+ "type": "CompanyName",
37
+ "where": "this Company has one CompanyName",
38
+ "role_id": "8EE11F88-7B85-4AB2-B29B-3AED99F7D1C2"
39
+ },
40
+ {
41
+ "title": "all Employee",
42
+ "type": "Employee",
43
+ "where": "this Company employs some Employee",
44
+ "role_id": "99AE0FAA-FBDA-4E7E-BA8B-36A7536510E2",
45
+ "is_list": true
46
+ }
47
+ ]
48
+ },
49
+ "CompanyName": {
50
+ "is_main": false,
51
+ "id": "1B4DF375-EF40-40FA-AE02-8A694229C269",
52
+ "functions": [
53
+ {
54
+ "title": "Company",
55
+ "type": "Company",
56
+ "where": "this CompanyName is of one Company",
57
+ "role_id": "92CC272C-7EB9-4966-9764-074711CD0F62"
58
+ }
59
+ ]
60
+ },
61
+ "Employee": {
62
+ "is_main": true,
63
+ "id": "DE951F51-2BC1-49AE-BE50-63537CB31B4A",
64
+ "functions": [
65
+ {
66
+ "title": "as CEO",
67
+ "type": "CEO"
68
+ },
69
+ {
70
+ "title": "as Manager",
71
+ "type": "Manager"
72
+ },
73
+ {
74
+ "title": "EmployeeNr",
75
+ "type": "EmployeeNr",
76
+ "where": "this Employee has one EmployeeNr",
77
+ "role_id": "01D605F1-B540-46A6-90C4-0AB2E0277A7A"
78
+ },
79
+ {
80
+ "title": "Company",
81
+ "type": "Company",
82
+ "where": "this Employee works for one Company",
83
+ "role_id": "87651993-4C7D-4587-B700-22E24A8F2E26"
84
+ },
85
+ {
86
+ "title": "Manager",
87
+ "type": "Manager",
88
+ "where": "this Employee reports to one Manager",
89
+ "role_id": "F18C5E05-DDED-4583-AF93-509F9C1A534F"
90
+ }
91
+ ]
92
+ },
93
+ "EmployeeNr": {
94
+ "is_main": false,
95
+ "id": "819C61BD-9BA2-43A4-9AA1-2BED86D31A2F",
96
+ "functions": [
97
+ {
98
+ "title": "all Employee",
99
+ "type": "Employee",
100
+ "where": "this EmployeeNr is of some Employee",
101
+ "role_id": "EBC5494A-9AFD-4B8D-8205-D2B2B67BB29E",
102
+ "is_list": true
103
+ }
104
+ ]
105
+ },
106
+ "Manager": {
107
+ "is_main": false,
108
+ "id": "B8483284-E8FA-4438-BF19-9BCA1CC7E434",
109
+ "functions": [
110
+ {
111
+ "title": "as Employee",
112
+ "type": "Employee"
113
+ },
114
+ {
115
+ "title": "as CEO",
116
+ "type": "CEO"
117
+ },
118
+ {
119
+ "title": "all Employee",
120
+ "type": "Employee",
121
+ "where": "this Manager supervises some Employee",
122
+ "role_id": "777B175B-DF26-448F-99C0-16E3740D69C1",
123
+ "is_list": true
124
+ }
125
+ ]
126
+ }
127
+ }
128
+ }