EnVar microschema · class
Quantity
Quantity
A numerical value with unit
Where it sits
Composed intoTimepointTimeInterval
Fields
Core
Conditionally core
Recommended
Optional
Optional
Include when available
3 fields
Quantity Valueoptionalrequired
The numeric value
Quantity Unitoptionalrequired
Unit (UCUM, UO, QUDT, etc.)
Comparatoroptional
Comparison operator (less than, greater than, etc.) or exact if null
Allowed values
lt Less than
le Less than or equal to
ge Greater than or equal to
gt Greater than
Full field reference — every slot, cardinality & inheritance
| Field | Name | Tier | Cardinality / Range | Description |
|---|---|---|---|---|
| Quantity Value | quantity_value |
optional | 1 Decimal |
The numeric value |
| Quantity Unit | quantity_unit |
optional | 1 Uriorcurie |
Unit (UCUM, UO, QUDT, etc |
| Comparator | comparator |
optional | 0..1 ComparatorEnum |
Comparison operator (less than, greater than, etc |
Diagram & LinkML source
classDiagram
class Quantity
click Quantity href "../../classes/Quantity/"
Quantity : comparator
Quantity --> "0..1" ComparatorEnum : comparator
click ComparatorEnum href "../../enums/ComparatorEnum/"
Quantity : quantity_unit
Quantity : quantity_value
name: Quantity
instantiates:
- ValueMicroschemaDefinition
description: A numerical value with unit
from_schema: https://w3id.org/linkml/microschemas/envar
rank: 1000
attributes:
quantity_value:
name: quantity_value
description: The numeric value
from_schema: https://w3id.org/linkml/microschemas/envar
rank: 1000
owner: Quantity
domain_of:
- Quantity
range: decimal
required: true
quantity_unit:
name: quantity_unit
description: Unit (UCUM, UO, QUDT, etc.)
from_schema: https://w3id.org/linkml/microschemas/envar
rank: 1000
slot_uri: schema:unitCode
owner: Quantity
domain_of:
- Quantity
range: uriorcurie
required: true
comparator:
name: comparator
description: Comparison operator (less than, greater than, etc.) or exact if null
from_schema: https://w3id.org/linkml/microschemas/envar
rank: 1000
owner: Quantity
domain_of:
- Quantity
range: ComparatorEnum
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/linkml/microschemas/envar
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | envar:Quantity |
| native | envar:Quantity |