Wiki source code of 6 Cube

Version 8.1 by Artur on 2025/05/22 14:56

Hide last authors
Helena 2.1 1 == 6.1 Context ==
2
Artur 8.1 3 Some statistical systems create views of data based on a “cube” structure. In essence, a cube is an n-dimensional object where the value of each [[dimension>>doc:Glossary.Dimension.WebHome]] can be derived from a [[hierarchical code list>>doc:Glossary.Hierarchical code list.WebHome]]. The utility of such cube systems is that it is possible to “roll up” or “drill down” each of the [[hierarchy>>doc:Glossary.Hierarchy.WebHome]] (% style="color:#e74c3c" %)levels(%%) for each of the [[dimensions>>doc:Glossary.Dimension.WebHome]] to specify the (% style="color:#e74c3c" %)level(%%) of granularity required to give a “view” of the data – some [[dimensions>>doc:Glossary.Dimension.WebHome]] may be rolled up, others may be drilled down. Such systems give a dynamic view of the data, with aggregated values for rolled up [[dimension>>doc:Glossary.Dimension.WebHome]] positions. For example, the individual countries may be rolled up into an economic region such as the EU, or a geographical region such as Europe, whilst another [[dimension>>doc:Glossary.Dimension.WebHome]], such as “type of road” may be drilled down to its lower (% style="color:#e74c3c" %)level(%%). The resulting [[measure>>doc:Glossary.Measure.WebHome]] (such as “number of accidents”) would then be an aggregation of the value for each individual country for the specific type of road.
Helena 2.1 4
Artur 8.1 5 Such cube systems rely, not on simple [[code lists>>doc:Glossary.Code list.WebHome]], but on [[hierarchical code>>doc:Glossary.Hierarchical code.WebHome]] sets (see section 8).
Helena 2.1 6
7 == 6.2 Support for the Cube in the Information Model ==
8
Artur 8.1 9 Data reported using a [[Data Structure Definition>>doc:Glossary.Data structure definition.WebHome]] structure (where each [[dimension>>doc:Glossary.Dimension.WebHome]] value, if coded, is taken from a flat [[code list>>doc:Glossary.Code list.WebHome]]) can be described by a cube definition and can be processed by cube aware systems. The [[SDMX-IM>>doc:Glossary.SDMX Information Model.WebHome]] supports the definition of such cubes in the following way:
Helena 2.1 10
Artur 8.1 11 * The [[Hierarchy>>doc:Glossary.Hierarchy.WebHome]] defines the (often complex) [[hierarchies>>doc:Glossary.Hierarchy.WebHome]] of [[codes>>doc:Glossary.Code.WebHome]].
Helena 2.1 12 * If required:
13 ** The StructureMap can group DataStructureDefinition that describe the cube
Artur 8.1 14 ** The HierarchyAssociation can provide a mechanism to apply a [[Hierarchy>>doc:Glossary.Hierarchy.WebHome]] to the [[Codes>>doc:Glossary.Code.WebHome]] in the Codelists used by the DataStructureDefinition, providing also the context of which the [[hierarchy>>doc:Glossary.Hierarchy.WebHome]] applies (e.g., a [[Dataflow>>doc:Glossary.Dataflow.WebHome]]).