SMS: Representation theory treatment of measurement semantics for ratio, ordinal and nominal scales