Measurement:Unit Identifiers: Difference between revisions
Appearance
mNo edit summary |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
AOWIS defines a canonical set of unit identifiers used in all system interfaces, storage formats, APIs, and inter-system data exchanges. | AOWIS defines a canonical set of unit identifiers used in all system interfaces, storage formats, APIs, and inter-system data exchanges. | ||
All unit identifiers MUST be ASCII-only strings and MUST NOT contain Unicode characters, superscripts, or typographic symbols. | All unit identifiers MUST be lower-case ASCII-only strings and MUST NOT contain Unicode characters, superscripts, or typographic symbols. | ||
Units are machine-readable tokens and are not intended to represent typographic or human-rendered SI notation. | Units are machine-readable tokens and are not intended to represent typographic or human-rendered SI notation. | ||
| Line 11: | Line 11: | ||
== General Rules == | == General Rules == | ||
* All unit identifiers MUST be ASCII-only. | * All unit identifiers MUST be lower-case ASCII-only. | ||
* Unit identifiers MUST be unambiguous and consistent across all AOWIS-compliant systems. | * Unit identifiers MUST be unambiguous and consistent across all AOWIS-compliant systems. | ||
* Each physical quantity MUST map to exactly one canonical unit. | * Each physical quantity MUST map to exactly one canonical unit. | ||
| Line 32: | Line 32: | ||
REQ-MEAS-UNI-006: Semantic meaning MUST be derived from the quantity field, not from the unit identifier. | REQ-MEAS-UNI-006: Semantic meaning MUST be derived from the quantity field, not from the unit identifier. | ||
REQ-MEAS-UNI-007: The "Quantity / Name" field MUST be the canonical machine-readable identifier for a physical quantity and MUST be used | REQ-MEAS-UNI-007: The "Quantity / Name" field MUST be the canonical machine-readable identifier for a physical quantity and MUST be used as the key in all AOWIS data formats, APIs, databases, and serialized representations. | ||
REQ-MEAS-UNI-008: The "Quantity / Name" field MUST be treated as an immutable identifier and MUST NOT be modified, localized, abbreviated, or reinterpreted across implementations. | |||
REQ-MEAS-UNI-009: Physical quantity semantics MUST be derived exclusively from the "Quantity / Name" field and MUST NOT be inferred from unit identifiers. | |||
</pre> | </pre> | ||
| Line 40: | Line 44: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Quantity / Name !! Definition !! Canonical Unit !! EPANET Mapping | ! Quantity / Name !! Definition !! Canonical Unit (SI symbol) !! Serialized Unit !! EPANET Mapping | ||
|- | |- | ||
| length || Linear spatial extent || m || Pipe/link length (SI-normalized EPANET model) | | length || Linear spatial extent || m || m || Pipe/link length (SI-normalized EPANET model) | ||
|- | |- | ||
| elevation || Vertical height relative to datum || m || Node elevation (SI-normalized EPANET model) | | elevation || Vertical height relative to datum || m || m || Node elevation (SI-normalized EPANET model) | ||
|- | |- | ||
| distance || Spatial separation between points || m || Derived geometric quantity | | distance || Spatial separation between points || m || m || Derived geometric quantity | ||
|- | |- | ||
| position_offset || Relative spatial offset magnitude || m || Not explicitly represented in EPANET | | position_offset || Relative spatial offset magnitude || m || m || Not explicitly represented in EPANET | ||
|} | |} | ||
| Line 54: | Line 58: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Quantity / Name !! Definition !! Canonical Unit !! EPANET Mapping | ! Quantity / Name !! Definition !! Canonical Unit (SI symbol) !! Serialized Unit !! EPANET Mapping | ||
|- | |- | ||
| area || Two-dimensional spatial extent || m2 || Not directly used | | area || Two-dimensional spatial extent || m² || m2 || Not directly used | ||
|- | |- | ||
| volume || Storage volume || m3 || Tank volume (SI-normalized EPANET model) | | volume || Storage volume || m³ || m3 || Tank volume (SI-normalized EPANET model) | ||
|} | |} | ||
| Line 64: | Line 68: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Quantity / Name !! Definition !! Canonical Unit !! EPANET Mapping | ! Quantity / Name !! Definition !! Canonical Unit (SI symbol) !! Serialized Unit !! EPANET Mapping | ||
|- | |- | ||
| volumetric_flow_rate || Volume per unit time || m3_s || Link flow (SI-normalized EPANET model) | | volumetric_flow_rate || Volume per unit time || m³/s || m3_s || Link flow (SI-normalized EPANET model) | ||
|- | |- | ||
| mass_flow_rate || Mass per unit time || kg_s || Not directly represented (derived) | | mass_flow_rate || Mass per unit time || kg/s || kg_s || Not directly represented (derived) | ||
|} | |} | ||
| Line 74: | Line 78: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Quantity / Name !! Definition !! Canonical Unit !! EPANET Mapping | ! Quantity / Name !! Definition !! Canonical Unit (SI symbol) !! Serialized Unit !! EPANET Mapping | ||
|- | |- | ||
| pressure || Force per unit area in fluid system || Pa || Node pressure (SI-normalized EPANET model) | | pressure || Force per unit area in fluid system || Pa || pa || Node pressure (SI-normalized EPANET model) | ||
|- | |- | ||
| stress || Internal material stress || Pa || Not represented | | stress || Internal material stress || Pa || pa || Not represented | ||
|} | |} | ||
| Line 84: | Line 88: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Quantity / Name !! Definition !! Canonical Unit !! EPANET Mapping | ! Quantity / Name !! Definition !! Canonical Unit (SI symbol) !! Serialized Unit !! EPANET Mapping | ||
|- | |- | ||
| time || Simulation or observation time || s || Simulation time (EPANET internal time normalized to seconds) | | time || Simulation or observation time || s || s || Simulation time (EPANET internal time normalized to seconds) | ||
|- | |- | ||
| duration || Time interval length || s || Simulation duration / reporting intervals | | duration || Time interval length || s || s || Simulation duration / reporting intervals | ||
|} | |} | ||
| Line 94: | Line 98: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Quantity / Name !! Definition !! Canonical Unit | ! Quantity / Name !! Definition !! Canonical Unit (SI symbol) !! Serialized Unit | ||
|- | |- | ||
| current || Rate of electric charge flow || A | | current || Rate of electric charge flow || A || a | ||
|- | |- | ||
| voltage || Electric potential difference || V | | voltage || Electric potential difference || V || v | ||
|- | |- | ||
| resistance || Opposition to electric current flow || ohm | | resistance || Opposition to electric current flow || Ω || ohm | ||
|- | |- | ||
| power || Rate of energy transfer || W | | power || Rate of energy transfer || W || w | ||
|- | |- | ||
| energy || Work or transferred electrical energy || J | | energy || Work or transferred electrical energy || J || j | ||
|- | |- | ||
| capacitance || Ability to store electric charge || F | | capacitance || Ability to store electric charge || F || f | ||
|} | |} | ||
| Line 117: | Line 121: | ||
"quantity": "<physical_quantity>", | "quantity": "<physical_quantity>", | ||
"value": <numeric_value>, | "value": <numeric_value>, | ||
"unit": "<canonical_unit>" | "unit": "<canonical_unit>", | ||
"uncertainty": <numeric_value> | |||
} | } | ||
</pre> | </pre> | ||
| Line 127: | Line 132: | ||
"quantity": "pipe_length", | "quantity": "pipe_length", | ||
"value": 1200, | "value": 1200, | ||
"unit": "m" | "unit": "m", | ||
"uncertainty": 5 | |||
} | } | ||
</pre> | </pre> | ||
Latest revision as of 20:42, 10 June 2026
- Part of: Measurement:Main_Page
- Related to: Measurement:Units
AOWIS defines a canonical set of unit identifiers used in all system interfaces, storage formats, APIs, and inter-system data exchanges.
All unit identifiers MUST be lower-case ASCII-only strings and MUST NOT contain Unicode characters, superscripts, or typographic symbols.
Units are machine-readable tokens and are not intended to represent typographic or human-rendered SI notation.
General Rules
- All unit identifiers MUST be lower-case ASCII-only.
- Unit identifiers MUST be unambiguous and consistent across all AOWIS-compliant systems.
- Each physical quantity MUST map to exactly one canonical unit.
- Units MUST NOT be context-dependent or system-dependent.
- Units MUST be stable identifiers suitable for JSON, databases, and file formats.
Requirements
REQ-MEAS-UNI-001: Unit identifiers MUST be ASCII-only strings. REQ-MEAS-UNI-002: Unit identifiers MUST NOT contain Unicode characters, superscripts, or typographic symbols. REQ-MEAS-UNI-003: Each physical quantity in AOWIS MUST map to exactly one canonical unit identifier. REQ-MEAS-UNI-004: Units MUST be used consistently across all AOWIS system interfaces and storage formats. REQ-MEAS-UNI-005: Units MUST NOT be context-dependent or implementation-defined. REQ-MEAS-UNI-006: Semantic meaning MUST be derived from the quantity field, not from the unit identifier. REQ-MEAS-UNI-007: The "Quantity / Name" field MUST be the canonical machine-readable identifier for a physical quantity and MUST be used as the key in all AOWIS data formats, APIs, databases, and serialized representations. REQ-MEAS-UNI-008: The "Quantity / Name" field MUST be treated as an immutable identifier and MUST NOT be modified, localized, abbreviated, or reinterpreted across implementations. REQ-MEAS-UNI-009: Physical quantity semantics MUST be derived exclusively from the "Quantity / Name" field and MUST NOT be inferred from unit identifiers.
Canonical Unit Identifiers
Length and Spatial Quantities
| Quantity / Name | Definition | Canonical Unit (SI symbol) | Serialized Unit | EPANET Mapping |
|---|---|---|---|---|
| length | Linear spatial extent | m | m | Pipe/link length (SI-normalized EPANET model) |
| elevation | Vertical height relative to datum | m | m | Node elevation (SI-normalized EPANET model) |
| distance | Spatial separation between points | m | m | Derived geometric quantity |
| position_offset | Relative spatial offset magnitude | m | m | Not explicitly represented in EPANET |
Area and Volume
| Quantity / Name | Definition | Canonical Unit (SI symbol) | Serialized Unit | EPANET Mapping |
|---|---|---|---|---|
| area | Two-dimensional spatial extent | m² | m2 | Not directly used |
| volume | Storage volume | m³ | m3 | Tank volume (SI-normalized EPANET model) |
Flow and Transport
| Quantity / Name | Definition | Canonical Unit (SI symbol) | Serialized Unit | EPANET Mapping |
|---|---|---|---|---|
| volumetric_flow_rate | Volume per unit time | m³/s | m3_s | Link flow (SI-normalized EPANET model) |
| mass_flow_rate | Mass per unit time | kg/s | kg_s | Not directly represented (derived) |
Pressure and Stress
| Quantity / Name | Definition | Canonical Unit (SI symbol) | Serialized Unit | EPANET Mapping |
|---|---|---|---|---|
| pressure | Force per unit area in fluid system | Pa | pa | Node pressure (SI-normalized EPANET model) |
| stress | Internal material stress | Pa | pa | Not represented |
Time
| Quantity / Name | Definition | Canonical Unit (SI symbol) | Serialized Unit | EPANET Mapping |
|---|---|---|---|---|
| time | Simulation or observation time | s | s | Simulation time (EPANET internal time normalized to seconds) |
| duration | Time interval length | s | s | Simulation duration / reporting intervals |
Electrical Quantities
| Quantity / Name | Definition | Canonical Unit (SI symbol) | Serialized Unit |
|---|---|---|---|
| current | Rate of electric charge flow | A | a |
| voltage | Electric potential difference | V | v |
| resistance | Opposition to electric current flow | Ω | ohm |
| power | Rate of energy transfer | W | w |
| energy | Work or transferred electrical energy | J | j |
| capacitance | Ability to store electric charge | F | f |
Data Representation Format
All AOWIS measurement values MUST use the following structure:
{
"quantity": "<physical_quantity>",
"value": <numeric_value>,
"unit": "<canonical_unit>",
"uncertainty": <numeric_value>
}
Example:
{
"quantity": "pipe_length",
"value": 1200,
"unit": "m",
"uncertainty": 5
}