150 likes | 330 Views
ESCWA SDMX Workshop. Session: Hierarchical Code List and Statistical Classification. Hierarchical Code List (HCL): Schematic. Level. HCL. child level. Hierarchy. Code List. Hierarchical Code. Code. references. parent code. HCL Allows One Code to have many Parent Codes
E N D
ESCWA SDMX Workshop Session: Hierarchical Code List and Statistical Classification
Hierarchical Code List (HCL): Schematic Level HCL child level Hierarchy Code List Hierarchical Code Code references parent code • HCL • Allows One Code to have many Parent Codes • Allows Hierarchical Codes to be built from many Code Lists • Can have formal Levels • Note that Codes are not maintained in an HCL – an HCL references Codes in Code Lists –i.e. it is a “view” on Codes in one or more Code Lists • Code List • Can have a hierarchy of codes but one Code can have only one Parent Code • SDMX is not a Classification Management System child hierarchical codes
Example: HCL with Codes Having Multiple Parents: Simple Code Lists IAEG Resources: HCL/HierarchicalCodelistExample.xml
Example: HCL with Codes Having Multiple Parents: Hierarchical Code List
Example: HCL with Codes Having Multiple Parents: Hierarchical Code List
Hierarchical Code List: XML http://localhost:8080/FusionRegistry/ws/restInterfaceV2_1/HierarchicalCodelist/IIAEG/HCL_COUNTRY_GROUPS Note the use of the XML hierarchy to build a code hierarchy
Example Classification NACE Codes in SDMX
NACE Extract: SDMX Code List Upload: IAEG Resources HCL/Nace_Codes.xml
NACE Extract: SDMX Code List (XML) http://localhost:8080/FusionRegistry/ws/restInterfaceV2_1/Codelist/IAEG/CL_NACE_CODES One Code can have a maximum of one parent Note that there is no structure to carry the semantic for the “Level” – for this you need a Hierarchical Code List
Hierarchical Code List (HCL): Schematic SECTION DIVISION GROUP CLASS HCL_NACE HCL CL_NACE_CODES H_NACE Hierarchy Level Code List Hierarchical Code Code parent code A A 01 01011 011 B B
Hierarchical Code List: SDMX Model Note that the HCL does not contain codes – it references them from an SDMX Code List
Classification: Neuchâtel and SDMX Category/Categorisation Hierarchical Code List Not Directly Supported Code List Map Versionable Level Category Code Map Hierarchical Code Categorisation Not Supported
Code Map: SDMX Model • A Code in one Code List can be mapped to multiple Codes in another Code List – each one is a separate Code Map