Class: UnitType
Defines the unit to be used for price, quantity, or other purposes
URI: common_domain_model:UnitType
classDiagram
class UnitType
click UnitType href "../UnitType/"
UnitType : capacityUnit
UnitType --> "0..1" CapacityUnitEnum : capacityUnit
click CapacityUnitEnum href "../CapacityUnitEnum/"
UnitType : currency
UnitType : financialUnit
UnitType --> "0..1" FinancialUnitEnum : financialUnit
click FinancialUnitEnum href "../FinancialUnitEnum/"
UnitType : weatherUnit
UnitType --> "0..1" WeatherUnitEnum : weatherUnit
click WeatherUnitEnum href "../WeatherUnitEnum/"
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| capacityUnit | 0..1 CapacityUnitEnum |
Provides an enumerated value for a capacity unit, generally used in the conte… | direct |
| weatherUnit | 0..1 WeatherUnitEnum |
Provides an enumerated values for a weather unit, generally used in the conte… | direct |
| financialUnit | 0..1 FinancialUnitEnum |
Provides an enumerated value for financial units, generally used in the conte… | direct |
| currency | 0..1 string |
Defines the currency to be used as a unit for a price, quantity, or other pur… | direct |
Expressions & Logic
All Of
Section titled “All Of”The class must satisfy all of:
- AnonymousClassExpression({ ‘description’: ‘UnitType: Requires that a unit type must be set.’, ‘exactly_one_of’: [AnonymousClassExpression({ ‘slot_conditions’: {‘capacityUnit’: SlotDefinition({‘name’: ‘capacityUnit’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} }), AnonymousClassExpression({ ‘slot_conditions’: {‘weatherUnit’: SlotDefinition({‘name’: ‘weatherUnit’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} }), AnonymousClassExpression({ ‘slot_conditions’: {‘financialUnit’: SlotDefinition({‘name’: ‘financialUnit’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} }), AnonymousClassExpression({ ‘slot_conditions’: {‘currency’: SlotDefinition({‘name’: ‘currency’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} })] })
Usages
Section titled “Usages”| used by | used in | type | used |
|---|---|---|---|
| Measure | unit | range | UnitType |
| MeasureBase | unit | range | UnitType |
| NonNegativeMeasure | unit | range | UnitType |
| NonNegativeQuantity | unit | range | UnitType |
| NonNegativeQuantitySchedule | unit | range | UnitType |
| Quantity | unit | range | UnitType |
| QuantitySchedule | unit | range | UnitType |
| Money | unit | range | UnitType |
| Price | perUnitOf | range | UnitType |
| Price | unit | range | UnitType |
| PriceSchedule | perUnitOf | range | UnitType |
| PriceSchedule | unit | range | UnitType |
Identifier and Mapping Information
Section titled “Identifier and Mapping Information”Schema Source
Section titled “Schema Source”- from schema: https://w3id.org/lmodel/common-domain-model
Mappings
Section titled “Mappings”| Mapping Type | Mapped Value |
|---|---|
| self | common_domain_model:UnitType |
| native | common_domain_model:UnitType |
LinkML Source
Section titled “LinkML Source”Direct
Section titled “Direct”name: UnitTypedescription: Defines the unit to be used for price, quantity, or other purposesfrom_schema: https://w3id.org/lmodel/common-domain-modelattributes: capacityUnit: name: capacityUnit description: Provides an enumerated value for a capacity unit, generally used in the context of defining quantities for commodities. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_math rank: 1000 domain_of: - UnitType - CommodityReferenceFramework range: CapacityUnitEnum weatherUnit: name: weatherUnit description: Provides an enumerated values for a weather unit, generally used in the context of defining quantities for commodities. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_math rank: 1000 domain_of: - UnitType - CommodityReferenceFramework range: WeatherUnitEnum financialUnit: name: financialUnit description: Provides an enumerated value for financial units, generally used in the context of defining quantities for securities. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_math rank: 1000 domain_of: - UnitType range: FinancialUnitEnum currency: name: currency annotations: rosetta_metadata: tag: rosetta_metadata value: scheme description: Defines the currency to be used as a unit for a price, quantity, or other purpose. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_math rank: 1000 domain_of: - UnitType - CommodityReferenceFramework - NotDomesticCurrency - SpecifiedCurrency - FloatingRateIndexIdentification - AmountScheduleWithInitialValue - LimitApplicable - CalculationCurrencyElection - CollateralRounding - LegacyIndependentAmountRatingsBased - MinimumTransferAmountRatingsBased - TerminationCurrencyElection - ThresholdRatingsBased - FeaturePayment - DividendCurrency - FutureValueAmount - CollateralInterestParameters - ComputedAmount range: stringall_of:- description: 'UnitType: Requires that a unit type must be set.' exactly_one_of: - slot_conditions: capacityUnit: name: capacityUnit value_presence: PRESENT - slot_conditions: weatherUnit: name: weatherUnit value_presence: PRESENT - slot_conditions: financialUnit: name: financialUnit value_presence: PRESENT - slot_conditions: currency: name: currency value_presence: PRESENTInduced
Section titled “Induced”name: UnitTypedescription: Defines the unit to be used for price, quantity, or other purposesfrom_schema: https://w3id.org/lmodel/common-domain-modelattributes: capacityUnit: name: capacityUnit description: Provides an enumerated value for a capacity unit, generally used in the context of defining quantities for commodities. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_math rank: 1000 owner: UnitType domain_of: - UnitType - CommodityReferenceFramework range: CapacityUnitEnum weatherUnit: name: weatherUnit description: Provides an enumerated values for a weather unit, generally used in the context of defining quantities for commodities. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_math rank: 1000 owner: UnitType domain_of: - UnitType - CommodityReferenceFramework range: WeatherUnitEnum financialUnit: name: financialUnit description: Provides an enumerated value for financial units, generally used in the context of defining quantities for securities. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_math rank: 1000 owner: UnitType domain_of: - UnitType range: FinancialUnitEnum currency: name: currency annotations: rosetta_metadata: tag: rosetta_metadata value: scheme description: Defines the currency to be used as a unit for a price, quantity, or other purpose. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_math rank: 1000 owner: UnitType domain_of: - UnitType - CommodityReferenceFramework - NotDomesticCurrency - SpecifiedCurrency - FloatingRateIndexIdentification - AmountScheduleWithInitialValue - LimitApplicable - CalculationCurrencyElection - CollateralRounding - LegacyIndependentAmountRatingsBased - MinimumTransferAmountRatingsBased - TerminationCurrencyElection - ThresholdRatingsBased - FeaturePayment - DividendCurrency - FutureValueAmount - CollateralInterestParameters - ComputedAmount range: stringall_of:- description: 'UnitType: Requires that a unit type must be set.' exactly_one_of: - slot_conditions: capacityUnit: name: capacityUnit value_presence: PRESENT - slot_conditions: weatherUnit: name: weatherUnit value_presence: PRESENT - slot_conditions: financialUnit: name: financialUnit value_presence: PRESENT - slot_conditions: currency: name: currency value_presence: PRESENT