-
Notifications
You must be signed in to change notification settings - Fork 22
Description
@uschold and I think the following changes should be made, based on discussion related to issue #582:
- Make
baseConversionFactor
a subproperty ofstandardConversionFactor
instead of the other way around (we got this right in makinghasBaseUnit
a subproperty ofhasStandardUnit
, interestingly enough. - The class
UnitOfMeasure
should have cardinality restrictions of 1 for bothstandardConversionFactor
andhasStandardUnit
. Such restrictions should then be removed from the subclasses. - In addition, the definitions need to be cleaned up and clarified:
The current definition of standardConversionFactor
is a scope note and provides no clarification of the difference between it and baseConversionFactor
. The language in the latter's definition could also be cleaned up and split into a definition, example, and scope note.
baseConversionFactor
: The conversion factor used to get to the base unit. E.g., multiplying by 0.0254 gets you from inches to meters. Divide by this number to go the other way. Used in conjunction with conversionOffset to convert from one unit to another. Degrees K = (Degrees F - conversionOffset) * convertToBase. Or K = (F-(-469.67)) * (5/9. To go the other way: F = (K * 9/5) -469.67. Try it on Google.
standardConversionFactor
: Note this kind of conversion will only work with temperatures if they are in Kelvin or Rankine (with a true 0). You multiply to get to the base, divide to go from the base. mph to mps is .44704. The multiple from kph to mps is .277778 . To convert 60 mph to kph is (60 * .44704 / .277778 or 96.56056 kph