Use MSD for ref. metadata hierarchy
Related to #670 (closed).
As Gyorgy,
I want to see the referential metadata within their hierarchy (similar to the current .Stat V7 Browser (see below)),
So that I can model the data optimally and appropriately present all information about the data.
Current ref metadata display example in .Stat V7 Browser:
Important note
Attributes not already shown as flags or footnotes (which are not marked as to be hidden) and thus displayed in the side panel are grouped under one parent level named (through localisation) "Data characteristics", are ordered in the same order are they are defined in the DSD, and respect their types defined in the DSD. The "Data characteristics" group is shown before the referential metadata hierarchy.
Functional specifications
- Hierarchies are expressed with a tree structure. The ref metadata attribute hierarchy is defined in the MSD.
- All tree branches are expanded by default. It should be possible to collapse / expand information groups one by one or all at the same time.
Technical considerations
-
The MSD is provided in the data structure (DSD) through an annotation of type "METADATA"
<structure:DataStructure agencyID=“XXX“ id=“XXX" version=“1.0"> <common:Annotations> <common:Annotation> <common:AnnotationTitle>urn:sdmx:org.sdmx.infomodel.metadatastructure.MetadataStructure=OECD:MSD_TEST(1.0)</common:AnnotationTitle> <common:AnnotationType>METADATA</common:AnnotationType> </common:Annotation> </common:Annotations> <common:Name xml:lang="en">XXX</common:Name> <structure:DataStructureComponents> ... </structure:DataStructureComponents> </structure:DataStructure>
-
SDMX-JSON 1.0 structure messages are used to retrieve the MSD with the definition of available attributes.
-
important snippet: sis-cc/eurostat-sdmx-ri/nsiws.net.mirrored$2191494
Example
An example has been loaded here: https://de-qa.siscc.org/vis?lc=en&df[ds]=qa%3Astable&df[id]=MD_HIERARCHY&df[ag]=SDD.SDPS&df[vs]=1.0&av=true&pd=2015%2C2018&dq=..A
There is this hierarchy defined in the metadata structure definition:
- Parent (presentational-only)
- Child 1 (XHTML)
- Child 2 (XHTML)