UoM_Ontology_Standard (Reference) UML Model - draft (2246)
This is the workspace for the drafting of the UoM_Ontology_Standard (Reference) UML Model (2248)
A strawman UML model based upon initial discussions (2249)
Introduction (224A)
This in an attempt to summarise part of the discussion so far. Very interesting threads about: (224B)
- the relationships between quantities and measurement methods; (224C)
- non-scalar quantities; (224D)
- dimensionless quantities, especially angle; (224E)
have not yet been addressed. (224F)
Sources (224G)
The principal sources for the strawman have been: (224H)
- the International Vocabulary of Metrology Basic and General Concepts and Associated Terms (VIM) (http://www.bipm.org/en/publications/guides/vim.html); (224I)
- a UML model derived from VIM, with an extension for scales, developed by a team including NIST, which was supplied by Ed Barkmeyer; (224J)
- content of the e-mail discussion on [ uom-ontology-std ]. (224K)
A strawman for quantity (224L)
A strawman UML diagram for "quantity" is: (224M)
The differences between the Strawman and the original UML diagram supplied by Ed, include the following: (224N)
- The concept "quantity" has been split into generic quantity and particular quantity. (224O)
- The concept magnitude of quantity has been introduced. (224P)
- A quantity value does not necessarily reference a unit. This is not what the VIM says. There are a number of things which could be referenced, including a unit. (224Q)
- The concept particular phenomenon body or substance has been introduced. This seems appropriate because quantities do not exist without something to possess them. (224R)
The UML diagram does not purport to be an ontology, but is an informal representation of the concepts related to "quantity" that have been discussed so far and their relationships. (224S)
The text associated with the UML objects shows an unsolved problem, as follows: (224T)
- Rockwell C hardness (150 kg) is shown as an example of generic quantity. It seems appropriate to include Rockwell C hardness (150 kg) as a generic quantity alongside thickness or radius, because it is something that can be measured for a particular solid object. (224U)
- Rockwell C hardness (150 kg) is shown as an example of kind of quantity. It seems appropriate to include Rockwell C hardness (150 kg) as a kind of quantity alongside length, because a measurement of Rockwell C hardness (150 kg) provides an expression of a magnitude of quantity that is within Rockwell C hardness (150 kg). Similarly a measurement of radius provides an expression of a magnitude of quantity that is within length. (224V)
The same would be true of mass. (224W)
Distinction between magnitude of quantity and quantity value (224X)
In the strawman UML diagram, quantity value is a data structure that expresses a magnitude of quantity. This is a valid interpretation of the VIM. With this interpretation, 5.34 m and 534 cm are two different instances of quantity value which express the same magnitude of quantity. (224Y)
However, the clause that defines quantity value contains "NOTE 3 A quantity value can be presented in more than one way." This note implies a different terminology, but not a different model structure. Taking account of this note: (224Z)
- magnitude of quantity in the strawman UML would be called quantity value; (2250)
- quantity value in the strawman UML would be called quantity presentation. (2251)
Discussion of Rockwell C hardness (2252)
It seems straightforward that Rockwell_C_hardness_(150kg) is a kind of quantity. Within this kind of quantity, the there is a magnitude of quantity that is expressed by the quantity value (55, Rockwell_C_hardness_(150_kg)). So far so good - this is consistent with the strawman UML model. Note that in this case the reference from the quantity value is not a unit but a measurement procedure. (2253)
The difficulty is the relationship between my_lump_of_hard_steel and the magnitude of quantity that is expressed as (55, Rockwell_C_hardness_(150_kg)). One approach is to regard the magnitude of quantity as the class of objects that have the specified response the the measurement procedure. Hence in this case, the link between magnitude of quantity and particular phenomenon body or substance, which is labelled particular quantity', is classification. (2254)
The relationship is not always classification, because consider waterline length of a ship. If the ship Medway_Queen has a waterline length of 20 metres, then we have: (2255)
- the particular phenomenon body or substance that is the Medway_Queen; (2256)
- the magnitude of quantity thas is expressed by the quantity value (20, metre); (2257)
- the particular quantity relationship has_waterline_length between the two. In this case, the particular quantity relationship is of a special type - has_waterline_length. (2258)
The relationship has_waterline_length is a shorthand for something quite complicated. There is a relationship has_extreme_waterline_point_pair between a ship and a point pair. Just as the magnitude of quantity that is expressed as (55, Rockwell_C_hardness_(150_kg)) can be regarded as a class with solid objects as members, the magnitude of quantity that is expressed as (20, metre) can be regarded as a class that has point pairs as members. (2259)
Hence for the ship there are two relationships: has_extreme_waterline_point_pair and classification, which are composed to give has_waterline_length. This seems to be a very common case, where the nature of the relationship between a physical object and a magnitude of quantity embodies a great deal of domain knowledge, and the kind of quantity is simple. For Rockwell hardness the relationship is simply classification, and the domain knowledge is embodied in the kind of quantity. The strawman UML model handles both. (225A)
VIM defines kind of quantity as "aspect common to mutually comparable quantities". Hence Brinnel Hardness (653, HBW) and the Rockwell C hardness (60, HRC) are not of the same kind of quantity because they cannot be compared in general, although comparison may be possible for a particular class of material. There is a engineering understanding of the general concept that the Brinnel and Rockwell procedures are intended to measure - i.e. "hardness". This is not a kind of quantity as defined in the VIM, but is a useful concept nonetheless. (225B)
A strawman for system of quantities (225C)
A strawman UML diagram for 'system of quantities is: (225D)
It was pointed out during the discussion that: (225E)
- there can be many different systems of quantities, with different base and derived quantities; (225F)
- a system of quantities is not the same as a system of units. (225G)
Both conclusions are also contained within the VIM. Hence being a base quantity or derived quantity is not a inherent property of a kind of quantity, but a relationship between a kind of quantity and a system of quantities. (225H)
A strawman for system of units (225I)
The text in the VIM says that a base unit or derived unit for a system of units correspond to a base quantity or derived quantity respectively. The VIM does not say that there is anything special in the way in which a unit is defined that makes it a base unit or derived unit. (225J)
A strawman UML diagram for system of units that is analogous to the diagram for system of quantities is: (225K)
The original UML diagram supplied by Ed contains the text definition "A base unit is defined by a physical phenomenon, i.e., a 'definite description'". Following this approach it is natural to make base unit a subclass of measurement unit. However an "off-system measurement unit" may also be defined by a physical phenomenon. Hence it may be best to add this as: (225L)
A strawman for scale (225M)
The discussion so far has recognised the importance of scales, but has not gone into details. Extracting from the original UML diagram for scales supplied by Ed, and using VIM terminology wherever possible, a strawman UML diagram is: (225N)
The object space of values has been added. For most scales, this is a real or integer interval, perhaps unbounded. However, it could be something else, such as a sequence of letters "a", "b", "c", etc.. (225O)
VIM does not give an example of conventional reference scale. Perhaps ITS90 (http://www.bipm.org/en/publications/its-90.html) is such a scale. (225P)
The relationship between scales and units has not been addressed in this strawman. (225Q)
Relationship between the strawman UML model and UnitsML (225R)
UnitsML has much important content relevant to symbols, prefixes and units conversion. However the only those parts of UnitsML relevant to the strawman diagrams for quantity, system of quantities, unit, system of units and scale are considered here. Some relationships between objects and relationships in the strawman and elements and attributes in UnitsML are as follows: (225S)
measurement unit: The object in the strawman broadly corresponds to the element Unit in UnitsML. However, Fahrenheit is regarded as an instance of Unit, whereas in the strawman it would be an instance of scale. (225U)
quantity value: The object in the strawman does not corresponds to an element in UnitsML. Instead the presence of a UnitsML Unit element as a child of an element defined elsewhere represents a reference for quantity value relationship. (225V)
magnitude of quantity: The object in the strawman is outside the scope of UnitsML, except when it is a measurement unit. (225W)
magnitude is within: This relationship between magnitude of quantity and kind of quantity is outside the scope of UnitsML except when the kind of quantity is a measurement unit. In this case, the relationship is provided within UnitsML by the child element QuantityReference of Unit. (225X)
quantity dimension: The object in the strawman corresponds to the element Dimension in UnitsML. (225Y)
has dimension: This relationship between kind of quantity and dimension is provided within UnitsML by the attribute dimensionURL of Quantity. UnitsML allows a dimension to be specified for a Unit. In the strawman, this is superfluous because a a measurement unit is of exactly one kind of quantity for which a dimension can be specified. (225Z)
Relationship between the strawman UML model and The Unified Code for Units of Measure (UCUM) (2260)
The UCUM has much important content concerning a formal algebra for the derivation of units. The elements unit and base-unit within the UCUM XML schema corresponds to the object measurement unit in the strawman. (2261)
Relationship between the strawman UML model and the MyMobileWeb Measurement Units Ontology (MUO) (2262)
The MyMobileWeb has assimulated the UCUM units as instances of a class within a larger ontology. Some relationships between objects and relationships in the strawman and elements and attributes in MUO are as follows: (2263)
kind of quantity: The object in the strawman corresponds to the class PhysicalQuality in the MUO. The MUO is admirably precise in specifying that it is not a particular quantity. (2264)
measurement unit: The object in the strawman broadly corresponds to the class UnitOfMeasurement in the MUO. However, Fahrenheit is regarded as an instance of UnitOfMeasurement, whereas in the strawman it would be an instance of scale. (2265)
quantity value: It is natural to associate this object in the strawman with the class QualityValue in the MUO. This is probably broadly true, but in the MUO QualityValue has the property inTime which specifies when the value occurs. In the strawman, time is more appropriately associated with the particular quantity or with the temporal part of the particular phenomenon body or substance that possesses it. (2266)
Relationship between the strawman UML model and the proposed UoM extension to SysML (2267)
Clause "C.5 Model Library for Quantities, Units, Dimensions and Values (QUDV)" is a proposed addition to the SysML specification . It is currently being considered by the SysML Revision Task Force (RTF). If accepted, it will become a non-normative annex of the SysML 1.2 specification. (2268)
Figure C.8 QUDV Concepts diagram has much the same scope as the strawman UML diagrams. Both are derived from the VIM, and are therefore similar. Some differences are: (2269)
- The proposed SysML diagram has a many to many relationship between SystemOfUnits and SystemOfQuantities. The VIM says that a system of units is "defined ... for a given system of quantities". Hence in accordance with the VIM, the strawman UML says that a system of units has a relationship with exactly one system of quantities. (226A)
- The proposed SysML diagram has not sought to separate the different concepts within the concept called "quantity" by the VIM. (226B)
- The proposed SysML diagram renames "kind of quantity" in the VIM as "QuantityKind". (There is belief in the USA and Germany that nouns can be placed side by side with an implicit relationship. There is a belief in the UK and France that the relationship should be stated explicitly by a preposition. :) (226C)
In Figure C.10 QUDV QuantityKind diagram, the class "QuantityKind" has a subclass "DerivedQuantityKind". This is incorrect, because a kind of quantity may be a base quantity in one systems of quantities, but a derived quantity in another. The kind of quantity electric charge is an example of this. (226D)
Formal definitions of key concepts related to quantity (226E)
Q1 particular quantity: class of individual quantifiable properties of individual things (the tropes) (226F)
Examples: The length of my thumb (and no one else's thumb). (226G)
Q2 kind of quantity (as class of particular quantity): class whose members are subclasses of particular quantity in which all the members are comparable (226H)
Example: length (as a class of particular quantity). The length of my thumb is a member of length (as a class of particular quantity). (226I)
Q3 magnitude of quantity: class whose members are subclasses of particular quantity in which all the members are equal (226J)
Note: A member of magnitude of quantity is an equivalence class. (226K)
Example: The length magnitude called "5cm", which includes the length of my thumb, the height of my coffee cup, and so on. (226L)
Q4 kind of quantity (as class of magnitude): class whose members are subclasses of magnitude of quantity in which all the members are subclasses of the same kind of quantity (as class of particular quantity) (226M)
Example: length (as a class of magnitude of quantity). The length magnitude called "5cm" is a member of length (as a class of magnitude of quantity). (226N)
Note: measurement unit is a subclass of 'magnitude of quantity. Hence each measurement unit is a member of a kind of quantity (as class of magnitude'''. The metre is a member of length (as a class of magnitude). (226O)
Discussion (226P)
The definitions of Q1 to Q4 were proposed by Ed Barkmeyer. (226Q)
The distinction between Q2 kind of quantity (as class of particular quantity) and Q4 kind of quantity (as class of magnitude) is not made in the strawman UML diagrams. In the UML diagrams there is a relationship magnitude is within beween magnitude of quantity and kind of quantity. The formal meaning of this relationship depends upon the formal definitions, as follows: (226R)
- the relationship between magnitude_of_quantity and kind of quantity (as class of particular quantity) is subclass; (226S)
- the relationship between magnitude_of_quantity and kind of quantity (as class of magnitude) is member. (226T)
An informal explanation of the different "quantity" concepts (226U)
The class particular quantity has properties of things as members, as shown in (226V)
The members of particular quantity can be collected into subclasses which are comparable, as shown in (226W)
Each of these subclasses of particular quantity is a kind of quantity (as class of particular quantity, as shown in (226X)
The members of particular quantity can be collected into subclasses which are equal, as shown in (226Y)
Each of these subclasses of particular quantity is a magnitude of quantity, as shown in (226Z)
The members of magnitude of quantity can be collected into subclasses such that the members of each member are comparable. Each of these subclasses is a kind of quantity (as class of magnitude) as shown in (2270)
Meta-levels of the quantity concepts (2271)
The meta-levels of the quantity concepts are illustrated by development of the example provided by Hajo Rijgersberg shown in (2272)
The only concrete object is "length of my table at my instant", which is a member of particular quantity. All the others objects are abstractions at different meta-levels. The higher level abstractions may seem unnecessarily complicated, but a justification is as follows: (2274)
- "1.3 metres" and "the metre" are both members of magnitude of quantity and of "length as a class of magnitude" (neither are members of "length as a class of particular quantity" because both are abstractions and not members of particular quantity); (2275)
- that "1.3 metres" can be expressed in terms of its relationship with a unit, such as "the metre", is a property of the class "length as a class of magnitude"; (2276)
- a subclass of Q4, kind of quantity as class of magnitude can be defined that contains all members for which a simple relationship with a unit exists. (2277)