activefacts-examples 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,45 @@
1
+ vocabulary VenueSeating;
2
+
3
+ /*
4
+ * Value Types
5
+ */
6
+ Event Id is written as Auto Counter;
7
+ Number is written as Unsigned Integer(16);
8
+ Reserve Name is written as String;
9
+ Row Code is written as Char;
10
+ Venue Id is written as Auto Counter;
11
+
12
+ /*
13
+ * Entity Types
14
+ */
15
+ Event is identified by its Id;
16
+
17
+ Reserve is identified by its Name;
18
+
19
+ Row is identified by its Code;
20
+
21
+ Venue is independent identified by its Id;
22
+ Event is held at one Venue,
23
+ Venue hosts Event;
24
+
25
+ Seat is independent identified by Venue and Reserve and Row and Number where
26
+ Seat is at one Venue,
27
+ Venue has Seat,
28
+ Seat is in one Reserve,
29
+ Reserve contains Seat,
30
+ Seat is in one Row,
31
+ Row contains Seat,
32
+ Seat has one Number,
33
+ Number is of Seat;
34
+
35
+ Ticket is identified by Event and Seat where
36
+ Ticket is for one Event,
37
+ Event issued Ticket,
38
+ Ticket is for one Seat;
39
+
40
+ /*
41
+ * Constraints:
42
+ */
43
+ Ticket is for Seat that is at Venue
44
+ if and only if
45
+ Ticket is for Event that is held at Venue;
@@ -0,0 +1,33 @@
1
+ vocabulary WaiterTips;
2
+
3
+ /*
4
+ * Value Types
5
+ */
6
+ AUDValue is written as Money;
7
+ MealId is written as Auto Counter;
8
+ WaiterNr is written as Signed Integer(32);
9
+
10
+ /*
11
+ * Entity Types
12
+ */
13
+ Amount is identified by AUDValue where
14
+ Amount has one AUDValue,
15
+ AUDValue is of at most one Amount;
16
+
17
+ Meal is identified by its Id;
18
+
19
+ Waiter is identified by its Nr;
20
+
21
+ WaiterTip is where
22
+ Waiter for serving Meal reported a tip of one Amount;
23
+
24
+ Service is where
25
+ Waiter served Meal;
26
+ Service earned a tip of at most one Amount;
27
+
28
+ /*
29
+ * Constraints:
30
+ */
31
+ Service (in which Waiter served Meal) earned a tip of Amount
32
+ if and only if
33
+ Waiter for serving Meal reported a tip of Amount;
@@ -0,0 +1,101 @@
1
+ vocabulary Warehousing;
2
+
3
+ /*
4
+ * Value Types
5
+ */
6
+ Bin ID is written as Auto Counter;
7
+ Dispatch ID is written as Auto Counter;
8
+ Dispatch Item ID is written as Auto Counter;
9
+ Party ID is written as Auto Counter;
10
+ Product ID is written as Auto Counter;
11
+ Purchase Order ID is written as Auto Counter;
12
+ Quantity is written as Unsigned Integer(32);
13
+ Receipt ID is written as Auto Counter;
14
+ Received Item ID is written as Auto Counter;
15
+ Sales Order ID is written as Auto Counter;
16
+ Transfer Request ID is written as Auto Counter;
17
+ Warehouse ID is written as Auto Counter;
18
+
19
+ /*
20
+ * Entity Types
21
+ */
22
+ Bin is identified by its ID;
23
+ Bin contains one Quantity,
24
+ Quantity is in Bin;
25
+
26
+ Dispatch is identified by its ID;
27
+
28
+ Dispatch Item is identified by its ID;
29
+ Dispatch is of at least one Dispatch Item,
30
+ Dispatch Item is for at most one Dispatch;
31
+ Dispatch Item is in one Quantity;
32
+
33
+ Party is identified by its ID;
34
+
35
+ Product is identified by its ID;
36
+ Dispatch Item is one Product;
37
+ Product is stocked in Bin,
38
+ Bin contains at most one Product;
39
+
40
+ Purchase Order is identified by its ID;
41
+
42
+ Purchase Order Item is identified by Purchase Order and Product where
43
+ Purchase Order includes Purchase Order Item,
44
+ Purchase Order Item is part of one Purchase Order,
45
+ Purchase Order Item is for one Product,
46
+ Product is in Purchase Order Item;
47
+ Purchase Order Item is in one Quantity;
48
+
49
+ Receipt is identified by its ID;
50
+
51
+ Received Item is identified by its ID;
52
+ Receipt is of at least one Received Item,
53
+ Received Item has at most one Receipt;
54
+ Received Item is one Product;
55
+ Received Item is for at most one Purchase Order Item;
56
+ Received Item is in one Quantity;
57
+
58
+ Sales Order is identified by its ID;
59
+
60
+ Sales Order Item is identified by Sales Order and Product where
61
+ Sales Order includes Sales Order Item,
62
+ Sales Order Item is part of one Sales Order,
63
+ Sales Order Item is for one Product,
64
+ Product is in Sales Order Item;
65
+ Dispatch Item is for at most one Sales Order Item;
66
+ Sales Order Item is in one Quantity;
67
+
68
+ Supplier is a kind of Party;
69
+ Purchase Order is to one Supplier,
70
+ Supplier supplies Purchase Order;
71
+
72
+ Transfer Request is identified by its ID;
73
+ Dispatch Item is for at most one Transfer Request;
74
+ Received Item is for at most one Transfer Request;
75
+ Transfer Request is for one Product;
76
+ Transfer Request is for one Quantity;
77
+
78
+ Warehouse is identified by its ID;
79
+ Purchase Order is to one Warehouse;
80
+ Sales Order is from one Warehouse;
81
+ Transfer Request is from one Warehouse (as From Warehouse);
82
+ Transfer Request is to one Warehouse (as To Warehouse);
83
+ Warehouse contains at least one Bin;
84
+
85
+ Back Order Allocation is where
86
+ Purchase Order Item is allocated to Sales Order Item;
87
+ Back Order Allocation is for one Quantity;
88
+
89
+ Customer is a kind of Party;
90
+ Customer made Sales Order,
91
+ Sales Order was made by one Customer;
92
+
93
+ /*
94
+ * Constraints:
95
+ */
96
+ either Dispatch Item is for Transfer Request or Dispatch Item is for Sales Order Item but not both;
97
+ either Received Item is for Purchase Order Item or Received Item is for Transfer Request but not both;
98
+ Purchase Order Item is allocated to Sales Order Item
99
+ only if Purchase Order Item is for Product that is in Sales Order Item;
100
+ each Bin occurs at most one time in
101
+ Warehouse contains Bin;
@@ -0,0 +1,28 @@
1
+ vocabulary WindowInRoomInBldg;
2
+
3
+ /*
4
+ * Value Types
5
+ */
6
+ Building Number is written as Signed Integer(32);
7
+ Room Number is written as Signed Integer(32);
8
+ Wall Number is written as Signed Integer(32);
9
+ Window Number is written as Unsigned Integer(32);
10
+
11
+ /*
12
+ * Entity Types
13
+ */
14
+ Building is identified by its Number;
15
+
16
+ Room is identified by Building and Room Number where
17
+ Room is in one Building,
18
+ Room has one Room Number;
19
+
20
+ Wall is identified by Room and Wall Number where
21
+ Wall is in one Room,
22
+ Room contains Wall,
23
+ Wall has one Wall Number;
24
+
25
+ Window is identified by Wall and Window Number where
26
+ Window is located in one Wall,
27
+ Window has one Window Number;
28
+
data/cql/unit.cql ADDED
@@ -0,0 +1,474 @@
1
+ vocabulary Units;
2
+
3
+ /*
4
+ * Units
5
+ */
6
+ 1000.0 converts to K;
7
+ 0.000000000000000001 converts to atto;
8
+ 13.0 converts to bakersdozen;
9
+ 1 converts to bit;
10
+ 8.0 bit converts to byte;
11
+ 1 converts to candela;
12
+ 1.02 candela converts to candle;
13
+ 1.0/24 converts to caratgold;
14
+ 1 candela converts to cd;
15
+ 0.01 converts to centi;
16
+ 1 converts to coul;
17
+ 1 coul converts to coulomb;
18
+ 0.1 converts to deci;
19
+ 1 K + 273.15 converts to degC;
20
+ 5.0/9 degC + 32.0 converts to degF;
21
+ 5.0/4 degC converts to degreaumur;
22
+ 1 degF converts to degreerankine;
23
+ 1 degF converts to degreesrankine;
24
+ 10.0 converts to deka;
25
+ 0.5 converts to demi;
26
+ 12.0 converts to dozen;
27
+ 0.00000000000000000016021917 coul converts to e approximately;
28
+ 1 converts to erlang;
29
+ 1000000000000000000.0 converts to exa;
30
+ 1152921504606846976.0 converts to exbi;
31
+ 96520.0 coul converts to faraday;
32
+ 0.000000000000001 converts to femto;
33
+ 0.000000000333564 coul converts to franklin;
34
+ 1073741824.0 converts to gibi;
35
+ 1000000000.0 converts to giga;
36
+ 144.0 converts to gross;
37
+ 100.0 converts to hecto;
38
+ 0.92 cd converts to hefnercandle;
39
+ 1.20095 converts to imperial;
40
+ 1.0/24 converts to karat;
41
+ 1024.0 byte converts to kbyte;
42
+ 1 K converts to kelvin;
43
+ 1 converts to kg;
44
+ 1024.0 converts to kibi;
45
+ 1000.0 converts to kilo;
46
+ 0.45359237 kg converts to lb;
47
+ 112.0 lb converts to longhundredweight;
48
+ 28.0 lb converts to longquarter;
49
+ 2240.0 lb converts to longton;
50
+ 1 converts to m;
51
+ 5972230000000000000000000.0 kg converts to m_earth;
52
+ 73400000000000000000000.0 kg converts to m_moon;
53
+ 1988430000000000000000000000000.0 kg converts to m_sun;
54
+ 1048576.0 converts to mebi;
55
+ 1000000.0 converts to mega;
56
+ 1024.0 kbyte converts to megabyte;
57
+ 1 m converts to meter;
58
+ 1 meter converts to metre;
59
+ 1000.0 kg converts to metricton;
60
+ 0.000001 converts to micro;
61
+ 0.000001 meter converts to micron;
62
+ 0.001 converts to milli;
63
+ 0.001 m converts to mm;
64
+ 602216900000000000000000.0 converts to mole approximately;
65
+ 10000.0 converts to myria;
66
+ 0.000000001 converts to nano;
67
+ 0.0000000000000000000000000016606 kg converts to neutronmass;
68
+ 1 cd m^-2 converts to nit;
69
+ 1852.0 m converts to nmile;
70
+ 1.0/16 lb converts to ounce;
71
+ 1 ounce converts to oz;
72
+ 1125899906842624.0 converts to pebi;
73
+ 1.0/20 oz converts to pennyweight;
74
+ 1000000000000000.0 converts to peta;
75
+ 3.14159265358979 converts to pi;
76
+ 0.000000000001 converts to pico;
77
+ 1 lb converts to pound;
78
+ 1.0/200 converts to proof;
79
+ 0.0000000000000000000000000016726 kg converts to protonmass;
80
+ 1 pennyweight converts to pwt;
81
+ 100.0 kg converts to quintal;
82
+ 25.0 converts to quire;
83
+ 0.5 pi^-1 converts to radian;
84
+ 500.0 converts to ream;
85
+ 1 converts to sec;
86
+ 1 sec converts to second;
87
+ 0.5 converts to semi;
88
+ 100.0 lb converts to shorthundredweight;
89
+ 25.0 lb converts to shortquarter;
90
+ 2000.0 lb converts to shortton;
91
+ 0.000001 sec converts to sigma;
92
+ 0.000000000333564095198152 coul converts to statcoul;
93
+ 1 statcoul converts to statcoulomb;
94
+ 1 radian^2 converts to steradian;
95
+ 1 m^3 converts to stere;
96
+ 100.0 cd m^-2 converts to stilb;
97
+ 0.0001 m^2 sec^-1 converts to stoke;
98
+ 14.0 lb converts to stone;
99
+ 1099511627776.0 converts to tebi;
100
+ 1000000000000.0 converts to tera;
101
+ 4600000.0 m^2 sec^-2 converts to tnt;
102
+ 1 shortton converts to ton;
103
+ 0.000001 sec converts to us;
104
+ 252.0 lb converts to weymass;
105
+ 0.000000000000000000000001 converts to yocto;
106
+ 1000000000000000000000000.0 converts to yotta;
107
+ 1000000000000000000000.0 converts to zetta;
108
+ 0.000000000000000000001 converts to zopto;
109
+ 1 coul converts to C;
110
+ 1 exa converts to E;
111
+ 1 exbi converts to Ei;
112
+ 1 giga converts to G;
113
+ 1 gibi converts to Gi;
114
+ 1 kibi converts to Ki;
115
+ 1 mega converts to M;
116
+ 1 mebi converts to Mi;
117
+ 1 peta converts to P;
118
+ 1 pebi converts to Pi;
119
+ 1 tera converts to T;
120
+ 1 tebi converts to Ti;
121
+ 0.000000000000100202 m converts to Xunit;
122
+ 1 yotta converts to Y;
123
+ 1 zetta converts to Z;
124
+ 1 atto converts to a;
125
+ 1 coul sec^-1 converts to ampere;
126
+ 0.0000000001 meter converts to angstrom;
127
+ 1 cd m^-2 pi^-1 converts to apostilb;
128
+ 100.0 m^2 converts to are;
129
+ 0.00000000000000000000000000166044 kg converts to atomicmassunit approximately;
130
+ 149597871000.0 m converts to au approximately;
131
+ 94.0 lb converts to bag;
132
+ 0.0000000000000000000000000001 m^2 converts to barn;
133
+ 1 bit sec^-1 converts to baud;
134
+ 0.000000000066739 kg^-1 m^3 sec^-2 converts to bigG;
135
+ 512.0 byte converts to block;
136
+ 1 cd m^-2 pi^-1 converts to blondel;
137
+ 1 centi converts to c;
138
+ 0.01 m^3 converts to cc;
139
+ 1.0/36 erlang converts to ccs;
140
+ 100.0 lb converts to cental;
141
+ 2.0 pi radian converts to circle;
142
+ 37000000000.0 sec^-1 converts to curie;
143
+ 1 deci converts to d;
144
+ 1 deka converts to da;
145
+ 0.000000000000000000000000000003336 coul m converts to debye;
146
+ 1 degreesrankine converts to degrankine;
147
+ 1.0/180 pi radian converts to degree;
148
+ 1 m^-1 converts to dipotre;
149
+ 100.0 kg converts to doppelzentner;
150
+ 1.0/16 oz converts to dram;
151
+ 0.0003 m^3 converts to drop;
152
+ 0.00000000000000000000000000000091095 kg converts to electronmass;
153
+ 100.0 cd m^-2 pi^-1 converts to equivalentphot;
154
+ 1 femto converts to f;
155
+ 0.000000000000001 m converts to fermi;
156
+ 9.80665 m sec^-2 converts to g;
157
+ 0.01 m sec^-2 converts to galileo;
158
+ 1852.0 m converts to geographicalmile;
159
+ 1024.0 megabyte converts to gigabyte;
160
+ 0.9 degree converts to grade;
161
+ 1.0/7000 lb converts to grain;
162
+ 0.001 kg converts to gram;
163
+ 1 gram converts to gramme;
164
+ 1 hecto converts to h;
165
+ 10000.0 m^2 converts to hectare;
166
+ 1 sec^-1 converts to hertz;
167
+ 1 sec^-1 converts to hz;
168
+ 25.4 mm converts to inch/inches;
169
+ 0.0000628 gram converts to iudiptheria;
170
+ 0.00004167 gram converts to iuinsulin;
171
+ 0.0000006 gram converts to iupenicillin;
172
+ 0.002 gram converts to jewlerspoint;
173
+ 1 kilo converts to k;
174
+ 1 kg converts to key;
175
+ 1000.0 sec^-1 converts to khz;
176
+ 100.0 cd m^-2 pi^-1 converts to lambert;
177
+ 1 g lb converts to lbf;
178
+ 299792458.0 m sec^-1 converts to lightspeed approximately;
179
+ 1000.0 cc converts to liter;
180
+ 1 liter converts to litre;
181
+ 331.46 m sec^-1 converts to mach;
182
+ 3.0 nmile converts to marineleague;
183
+ 1 megabyte converts to meg;
184
+ 133322.0 kg m^-2 sec^-2 converts to mercury;
185
+ 0.2 g converts to metriccarat;
186
+ 1 gram^-1 meter converts to metricyarncount;
187
+ 1000000.0 sec^-1 converts to mhz;
188
+ 60.0 sec converts to minute;
189
+ 0.001 liter converts to ml;
190
+ 1 nano converts to n;
191
+ 1 nmile converts to nauticalmile;
192
+ 1 kg m sec^-2 converts to newton;
193
+ 1 newton converts to nt;
194
+ 1 pico converts to p;
195
+ 1 m^-2 nt converts to pascal;
196
+ 1000.0 m^-2 nt converts to pieze;
197
+ 100.0 g kg m sec converts to poncelet;
198
+ 2.0 pi sec^-1 converts to pulsatance;
199
+ 10.0 m^2 nt^-1 sec^-1 converts to rhe;
200
+ 0.000258 curie kg^-1 converts to rontgen;
201
+ 1000000.0 sec^-1 converts to rutherford;
202
+ 1 sec converts to s;
203
+ 37.2 inch converts to scottishell;
204
+ 20.0 grain converts to scruple;
205
+ 8.4 rontgen converts to sievert;
206
+ 0.001 apostilb converts to skot;
207
+ 4.0 pi steradian converts to sphere;
208
+ 1 steradian converts to sr;
209
+ 1000.0 nt converts to sthene;
210
+ 0.001 gram m converts to tex;
211
+ 1 circle converts to turn;
212
+ 1 cc g gram converts to water;
213
+ 1 yocto converts to y;
214
+ 1 zopto converts to z;
215
+ 1 hertz converts to Hz;
216
+ 1 newton converts to N;
217
+ 1 ampere converts to amp;
218
+ 1 atomicmassunit converts to amu;
219
+ 60.0 grain converts to apdram;
220
+ 480.0 grain converts to apounce;
221
+ 5760.0 grain converts to appound;
222
+ 1 degree converts to arcdeg;
223
+ 1.0/60 arcdeg converts to arcmin;
224
+ 1.0/60 arcmin converts to arcsec;
225
+ 1 au converts to astronomicalunit;
226
+ 101325.0 m^-2 nt converts to atmosphere;
227
+ 100000.0 m^-2 nt converts to bar;
228
+ 0.1 m^-2 nt converts to barie;
229
+ 0.1 m^-2 nt converts to barye;
230
+ 0.000000000027027027027027 curie converts to becquerel;
231
+ 10.0 amp converts to biot;
232
+ 0.000000000001 m^2 newton^-1 converts to brewster;
233
+ 0.205 g converts to carat;
234
+ 0.01 grade converts to centesimalminute;
235
+ 0.0001 grade converts to centesimalsecond;
236
+ 1 amu converts to dalton;
237
+ 0.000111111111111111 gram m converts to denier;
238
+ 1 dram converts to dr;
239
+ 60.0 grain converts to drachm;
240
+ 1 lightspeed^2 converts to energy;
241
+ 45.0 inch converts to englishell;
242
+ 27.0 inch converts to flemishell;
243
+ 1 g converts to force;
244
+ 1000000000000.0 hertz converts to fresnel;
245
+ 0.795775 amp converts to gilbert;
246
+ 1 gram converts to gm;
247
+ 1 grain converts to gr;
248
+ 1 mercury converts to hg;
249
+ 1 force gm m^-1 sec^2 converts to hyl;
250
+ 1 inch converts to in;
251
+ 1 m nt converts to joule;
252
+ 1000.0 lbf converts to kip;
253
+ 1.0/12 in converts to line;
254
+ 1 cd sr converts to lumen;
255
+ 0.000000001 hg m s^-1 converts to lusec;
256
+ 1 cd m^-2 sr converts to lux;
257
+ 0.001 in converts to mil;
258
+ 1 minute converts to min;
259
+ 0.001 lux converts to nox;
260
+ 250.0 amp m^-1 pi converts to oersted;
261
+ 36.0 in converts to pace;
262
+ 3.0 in converts to palm;
263
+ 1 arcsec^-1 au radian converts to parsec;
264
+ 1 parsec converts to pc;
265
+ 100.0 lumen m^-2 converts to phot;
266
+ 1.0/6 in converts to pica;
267
+ 0.0000000000000000000000000000000006626 joule sec converts to planck;
268
+ 1.0/72 in converts to point;
269
+ 100.0 gm m^-1 sec^-1 converts to poise;
270
+ 1 g in^-2 lb converts to psi;
271
+ 9.0 in converts to quarter;
272
+ 1 turn converts to rev;
273
+ 1 turn converts to revolution;
274
+ 1 minute^-1 rev converts to rpm;
275
+ 1 rev sec^-1 converts to rps;
276
+ 9.0 in converts to span;
277
+ 4.0 pi sr converts to spat;
278
+ 0.000000000333564095198152 amp converts to statamp;
279
+ 1 statamp converts to statampere;
280
+ 1000000.0 gm converts to tonne;
281
+ 0.001 hg m converts to torr;
282
+ 1 appound converts to troypound;
283
+ 1 joule sec^-1 converts to watt;
284
+ 1 atmosphere converts to atm;
285
+ 1.0/3 in converts to barleycorn;
286
+ 144.0 in^3 converts to boardfoot;
287
+ 1.0/40 in converts to bottommeasure;
288
+ 277.42 in^3 converts to brgallon approximately;
289
+ 1055.06 joule converts to britishthermalunit approximately;
290
+ 554.84 in^3 converts to brpeck approximately;
291
+ 1.0/4 brgallon converts to brquart;
292
+ 1 britishthermalunit converts to btu;
293
+ 4.1868 joule converts to cal;
294
+ 0.01 in converts to caliber;
295
+ 1 cal converts to calorie;
296
+ 1.0/4 in^2 pi converts to circularinch;
297
+ 0.00000025 in^2 pi converts to circularmil;
298
+ 0.00000000001 hg m s^-1 converts to clusec;
299
+ 37.5 brgallon converts to cran;
300
+ 0.0906 gm converts to crith;
301
+ 18.0 in converts to cubit;
302
+ 0.01 gm m sec^-2 converts to dyne;
303
+ 45.0 in converts to ell;
304
+ 1 lumen m^-2 pi^-1 converts to equivalentlux;
305
+ 0.01 gm m^2 sec^-2 converts to erg;
306
+ 7.0/8 in converts to finger;
307
+ 12.0 in converts to foot/feet;
308
+ 1000.0 cal converts to frigorie;
309
+ 1 foot converts to ft;
310
+ 231.0 in^3 converts to gallon;
311
+ 4.0 in converts to hand;
312
+ 0.0000000000000000000000000000000001055 joule sec converts to hbar;
313
+ 550.0 ft g lb sec^-1 converts to horsepower;
314
+ 60.0 min converts to hour;
315
+ 1 horsepower converts to hp;
316
+ 1 hour converts to hr;
317
+ 1 hr^-1 nmile converts to knot;
318
+ 100.0 cal m^-2 converts to langley;
319
+ 900.0 ft pound^-1 converts to linenyarncount;
320
+ 33.0/50 ft converts to link;
321
+ 5280.0 ft converts to mile;
322
+ 2.5 foot converts to militarypace;
323
+ 1.5 ft^3 min^-1 converts to minersinch;
324
+ 1 hr^-1 mile converts to mph;
325
+ 1 oersted converts to oe;
326
+ 1 ft lb sec^-2 converts to poundal;
327
+ 100.0 erg gm^-1 converts to rad;
328
+ 12000.0 btu hour^-1 ton^-1 converts to refrigeration;
329
+ 100.0 ft^3 converts to registerton;
330
+ 20.0 ft converts to rope;
331
+ 1 ft^2 converts to sabin;
332
+ 40.0 ft^3 converts to shippington;
333
+ 23.934469444 hour converts to siderealday;
334
+ 1.0/24 siderealday converts to siderealhour;
335
+ 1 ft^-1 g lb sec^2 converts to slug;
336
+ 100.0 ft^2 converts to square;
337
+ 66.0 ft converts to surveyorschain;
338
+ 33.0/50 ft converts to surveyorslink;
339
+ 100000.0 btu converts to therm;
340
+ 1000000.0 cal converts to thermie;
341
+ 1 ft^3 converts to timberfoot;
342
+ 1 amp^-1 watt converts to volt;
343
+ 1 sec volt converts to weber;
344
+ 1680.0 ft pound^-1 converts to worstedyarncount;
345
+ 3.0 ft converts to yard;
346
+ 1 yard converts to yd;
347
+ 1 volt converts to V;
348
+ 4840.0 yd^2 converts to acre;
349
+ 6080.0 ft hr^-1 converts to admiraltyknot;
350
+ 191.835 ft converts to arpentlin;
351
+ 1000000000.0 e volt converts to bev;
352
+ 0.00000000011125945705385 C^2 N^-1 e^-2 electronmass^-1 hbar^2 m^-2 converts to bohrradius;
353
+ 40.0 yd converts to bolt;
354
+ 4.0 brpeck converts to brbushel;
355
+ 1200.0/3937 ft^-1 m converts to british;
356
+ 1.0/2 brquart converts to brpint;
357
+ 720.0 ft converts to cable;
358
+ 1 ft^3 sec^-1 converts to cfs;
359
+ 66.0 ft converts to chain;
360
+ 128.0 ft^3 converts to cord;
361
+ 1 cord converts to cordfoot;
362
+ 2520.0 ft pound^-1 converts to cottonyarncount;
363
+ 24.0 hr converts to day;
364
+ 35.0 ft^3 converts to displacementton;
365
+ 268.8025 gallon^-1 in^3 converts to dry approximately;
366
+ 1 V e converts to eV;
367
+ 1 e volt converts to electronvolt;
368
+ 100.0 ft converts to engineerschain;
369
+ 1 ft converts to engineerslink;
370
+ 1 ft^-2 lumen pi^-1 converts to equivalentfootcandle;
371
+ 1 e volt converts to ev;
372
+ 1 coul volt^-1 converts to farad;
373
+ 6.0 ft converts to fathom;
374
+ 1 ft^-2 lumen converts to footcandle;
375
+ 1 cd ft^-2 pi^-1 converts to footlambert;
376
+ 14.0 day converts to fortnight;
377
+ 16.0/15 ft converts to frenchfoot;
378
+ 220.0 yd converts to furlong;
379
+ 1 gallon converts to gal;
380
+ 0.000000001 m^-2 weber converts to gamma;
381
+ 0.0001 m^-2 weber converts to gauss;
382
+ 1 british ft converts to geodeticfoot;
383
+ 22.0 yd converts to gunterschain;
384
+ 1 farad^-1 sec^2 converts to henry;
385
+ 4.0/5 gal converts to jeroboam;
386
+ 18.0 gal converts to kilderkin;
387
+ 29.5305555 day converts to lunarmonth;
388
+ 12.0 lunarmonth converts to lunaryear;
389
+ 0.00000001 weber converts to maxwell;
390
+ 1000000.0 day^-1 gal converts to mgd;
391
+ 0.001 henry converts to mh;
392
+ 1 mile converts to mi;
393
+ 1 gal^-1 mile converts to mpg;
394
+ 1.0/16 yd converts to nail;
395
+ 1 amp^-1 volt converts to ohm;
396
+ 3.5 mi converts to parasang;
397
+ 1 poundal converts to pdl;
398
+ 0.000000000001 farad converts to pf;
399
+ 1.0/4 gal converts to quart;
400
+ 1.0/4 mi^2 converts to quartersection;
401
+ 5.5 yd converts to rod;
402
+ 1210.0 yd converts to rood;
403
+ 13.6054 ev converts to rydberg;
404
+ 1 mi^2 converts to section;
405
+ 27.32152777 day converts to siderealmonth;
406
+ 365.256360417 day converts to siderealyear;
407
+ 1 ohm^-1 converts to siemens;
408
+ 120.0 yd converts to skein;
409
+ 14400.0 yd converts to spindle;
410
+ 299.792458 volt converts to statvolt;
411
+ 1 british ft converts to surveyfoot;
412
+ 3.0 surveyfoot converts to surveyyard;
413
+ 1 lunarmonth converts to synodicmonth;
414
+ 1 m^-2 weber converts to tesla;
415
+ 36.0 mi^2 converts to township;
416
+ 7.0 day converts to week;
417
+ 365.24219879 day converts to year approximately;
418
+ 1 year converts to yr;
419
+ 27.52 mi converts to arpentcan;
420
+ 42.0 gal converts to barrel;
421
+ 1.0/20 brpint converts to brfloz;
422
+ 100.0 year converts to century;
423
+ 10.0 yr converts to decade;
424
+ 9.0 gal converts to firkin;
425
+ 1 frenchfoot converts to frenchfeet;
426
+ 2.0 barrel converts to hogshead;
427
+ 1.0/4 mi^2 converts to homestead;
428
+ 1000.0 ohm converts to kilohm;
429
+ 3.0 mi converts to league;
430
+ 1 lightspeed yr converts to lightyear;
431
+ 1000000.0 ohm converts to megohm;
432
+ 1 ohm^-1 converts to mho;
433
+ 1000.0 year converts to millennium;
434
+ 1.0/12 year converts to month;
435
+ 8.0 dry quart converts to peck;
436
+ 4.0 barrel converts to pipe;
437
+ 1 peck converts to pk;
438
+ 1 quart converts to qt;
439
+ 1 rod converts to rd;
440
+ 1 year converts to solaryear;
441
+ 6.0 frenchfeet converts to toise;
442
+ 1 year converts to tropicalyear;
443
+ 8.0 barrel converts to tun;
444
+ 4.0 peck converts to bushel;
445
+ 36.0 bushel converts to chaldron;
446
+ 4.0/5 qt converts to fifth;
447
+ 1 hogshead converts to hd;
448
+ 2.0 qt converts to magnum;
449
+ 1 month converts to mo;
450
+ 1.0/8 qt converts to noggin;
451
+ 1 rd converts to perch;
452
+ 1.0/2 qt converts to pint;
453
+ 1 rd converts to pole;
454
+ 1 pint converts to pt;
455
+ 1 bushel converts to bu;
456
+ 4.0 bu converts to coomb;
457
+ 1.0/2 pt converts to cup;
458
+ 1.0/16 pt converts to floz;
459
+ 1.0/4 pt converts to gill;
460
+ 80.0 bu converts to last;
461
+ 156.0 floz converts to rehoboam;
462
+ 3.0 bu converts to sack;
463
+ 8.0 bu converts to seam;
464
+ 3.0/2 floz converts to shot;
465
+ 2.0 bu converts to strike;
466
+ 40.0 bu converts to wey;
467
+ 1.0/8 floz converts to fldr;
468
+ 1.0/60 fldr converts to minim;
469
+ 4.0 fldr converts to tablespoon;
470
+ 1 tablespoon converts to tbl;
471
+ 1 tablespoon converts to tbsp;
472
+ 4.0/3 fldr converts to teaspoon;
473
+ 1 teaspoon converts to tsp;
474
+