Changes for page Part IV. Data and Reference Metadata Namespaces
Last modified by Elena on 2025/09/10 11:19
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -726,151 +726,146 @@ 726 726 727 727 === 3.4.2 GroupType === 728 728 729 -If the [[data structure definition>>doc:sdmx:Glossary.Datastructuredefinition.WebHome]] defines only one group, a complex type with its name taken from the identifier of the lone group must be defined. This type is used for the Group element in the DataSetType. Its content model will be derived via restriction of the[[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:GroupType. The complex type content model will be as follows:729 +If the data structure definition defines only one group, a complex type with its name taken from the identifier of the lone group must be defined. This type is used for the Group element in the DataSetType. Its content model will be derived via restriction of the dsd:GroupType. The complex type content model will be as follows: 730 730 731 731 ~1. A sequence consisting of: 732 732 733 -* i. An element reference to common: [[Annotations>>doc:sdmx:Glossary.Annotation.WebHome]], with a minimum occurrence of 0734 -* ii. If any [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]defined in the data structure that declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with the group, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of[[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:CompType735 -* iii. If any metadata [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]usages defined in the data structure that declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with the group, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0733 +* i. An element reference to common:Annotations, with a minimum occurrence of 0 734 +* ii. If any attributes defined in the data structure that declares an attribute relationship with the group, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of dsd:CompType 735 +* iii. If any metadata attribute usages defined in the data structure that declares an attribute relationship with the group, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0 736 736 737 -2. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]for each[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]referenced by the group. The XML[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]name and type are defined according to the general rules defined in the previous section, and the usage is required738 -3. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]for each data[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]with simple[[representation>>doc:sdmx:Glossary.Representation.WebHome]]defined in the data structure that declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with the group or specifies the group as an attachment group. The XML[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]name and type are defined according to the general rules defined in the previous section, and the usage is optional739 -4. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]named type with a type of common:IDType, usage of optional, and a fixed value of the identifier of the group737 +2. An attribute for each dimension referenced by the group. The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is required 738 +3. An attribute for each data attribute with simple representation defined in the data structure that declares an attribute relationship with the group or specifies the group as an attachment group. The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is optional 739 +4. An attribute named type with a type of common:IDType, usage of optional, and a fixed value of the identifier of the group 740 740 741 -If the [[data structure definition>>doc:sdmx:Glossary.Datastructuredefinition.WebHome]] defines more than one group, an abstract complex type with name GroupType must be created. This type is used for the Group element in the DataSetType. Its content model will be derived via restriction of the[[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:GroupType. The complex type content model will be as follows:741 +If the data structure definition defines more than one group, an abstract complex type with name GroupType must be created. This type is used for the Group element in the DataSetType. Its content model will be derived via restriction of the dsd:GroupType. The complex type content model will be as follows: 742 742 743 743 ~1. A sequence consisting of: 744 744 745 -* i. An element reference to common: [[Annotations>>doc:sdmx:Glossary.Annotation.WebHome]], with a minimum occurrence of 0746 -* ii. If any [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]defined in the data structure that declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with a group, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of[[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:CompType747 -* iii. If any metadata [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]usages defined in the data structure that declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with any group, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0745 +* i. An element reference to common:Annotations, with a minimum occurrence of 0 746 +* ii. If any attributes defined in the data structure that declares an attribute relationship with a group, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of dsd:CompType 747 +* iii. If any metadata attribute usages defined in the data structure that declares an attribute relationship with any group, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0 748 748 749 -2. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]named type with a type of Group.ID, and a usage of optional749 +2. An attribute named type with a type of Group.ID, and a usage of optional 750 750 3. An anyAttribute declaration with a namespace of ##local## 751 751 752 -A simple type named Group.ID must be created. This should restrict the common:IDType. For each group defined by the [[data structure definition>>doc:sdmx:Glossary.Data structure definition.WebHome]], an enumeration will be created within the restriction with a value of the group identifier.752 +A simple type named Group.ID must be created. This should restrict the common:IDType. For each group defined by the data structure definition, an enumeration will be created within the restriction with a value of the group identifier. 753 753 754 -For each group defined in the [[data structure definition>>doc:sdmx:Glossary.Data structure definition.WebHome]], a complex type with its name taken from the group identifier is defined. Its content model will be derived via restriction of the previously defined GroupType. The complex type content model will be as follows:754 +For each group defined in the data structure definition, a complex type with its name taken from the group identifier is defined. Its content model will be derived via restriction of the previously defined GroupType. The complex type content model will be as follows: 755 755 756 756 ~1. A sequence consisting of: 757 757 758 -* i. An element reference to common: [[Annotations>>doc:sdmx:Glossary.Annotation.WebHome]], with a minimum occurrence of 0759 -* ii. If any [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]with complex[[representation>>doc:sdmx:Glossary.Representation.WebHome]]defined in the data structure declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with the group, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of[[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:CompType760 -* iii. If any metadata [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]usages defined in the data structure that declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with the group, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0758 +* i. An element reference to common:Annotations, with a minimum occurrence of 0 759 +* ii. If any attributes with complex representation defined in the data structure declares an attribute relationship with the group, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of dsd:CompType 760 +* iii. If any metadata attribute usages defined in the data structure that declares an attribute relationship with the group, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0 761 761 762 -2. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]for each[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]referenced by the group. The XML[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]name and type are defined according to the general rules defined in the previous section, and the usage is required763 -3. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]for each data[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]with simple[[representation>>doc:sdmx:Glossary.Representation.WebHome]]defined in the data structure that declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with the group or specifies the group as an attachment group. The XML[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]name and type are defined according to the general rules defined in the previous section, and the usage is optional764 -4. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]named type with a type of Group.ID, usage of optional, and a fixed value of the identifier of the group762 +2. An attribute for each dimension referenced by the group. The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is required 763 +3. An attribute for each data attribute with simple representation defined in the data structure that declares an attribute relationship with the group or specifies the group as an attachment group. The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is optional 764 +4. An attribute named type with a type of Group.ID, usage of optional, and a fixed value of the identifier of the group 765 765 766 766 === 3.4.3 SeriesType === 767 767 768 -If the [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]at the observation is not AllDimensions, a complex type name SeriesType must be created. Its content model will be derived via restriction of[[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:SeriesType. The complex type content model will be as follows:768 +If the dimension at the observation is not AllDimensions, a complex type name SeriesType must be created. Its content model will be derived via restriction of dsd:SeriesType. The complex type content model will be as follows: 769 769 770 770 ~1. A sequence consisting of: 771 771 772 -* i. An element reference to common: [[Annotations>>doc:sdmx:Glossary.Annotation.WebHome]], with a minimum occurrence of 0773 -* ii. If any [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]with complex[[representation>>doc:sdmx:Glossary.Representation.WebHome]]defined in the data structure declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with a[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]that is not at the observation(% style="color:#e74c3c" %)level(%%), a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of[[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:CompType772 +* i. An element reference to common:Annotations, with a minimum occurrence of 0 773 +* ii. If any attributes with complex representation defined in the data structure declares an attribute relationship with a dimension that is not at the observation level, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of dsd:CompType 774 774 * iii. A local element named Obs with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of ObsType (as defined in the ObsType section which follows) 775 -* iv. If any metadata [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]usages defined in the data structure that declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with the series, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0775 +* iv. If any metadata attribute usages defined in the data structure that declares an attribute relationship with the series, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0 776 776 777 -2. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] named TIME\_PERIOD with a type of common:ObservationalTimePeriod. If the [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] at the observation (% style="color:#e74c3c" %)level(%%) is the time [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] (TIME\_PERIOD) or there is no time [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] defined by the data structure, a usage of prohibited; otherwise, a usage of required 778 -3. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] for each [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] defined by the [[data structure definition>>doc:sdmx:Glossary.Data structure definition.WebHome]], except for the [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] at the observation (% style="color:#e74c3c" %)level(%%) and the time [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] (TIME\_PERIOD). 777 +2. An attribute named TIME\_PERIOD with a type of common:ObservationalTimePeriod. If the dimension at the observation level is the time dimension (TIME\_PERIOD) or there is no time dimension defined by the data structure, a usage of prohibited; otherwise, a usage of required 778 +3. An attribute for each dimension defined by the data structure definition, except for the dimension at the observation level and the time dimension (TIME\_PERIOD). The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is required 779 +4. An attribute for each data attribute defined with simple representation in the data structure that declares an attribute relationship with any dimension outside of the dimension at the observation level (so long as it does not also declare an attachment group). The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is optional 779 779 780 -The XML [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] name and type are defined according to the general rules defined in the previous section, and the usage is required 781 -4. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] for each data [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] defined with simple [[representation>>doc:sdmx:Glossary.Representation.WebHome]] in the data structure that declares an [[attribute relationship>>doc:sdmx:Glossary.Attribute relationship.WebHome]] with any [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] outside of the [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] at the observation (% style="color:#e74c3c" %)level(%%) (so long as it does not also declare an attachment group). The XML [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] name and type are defined according to the general rules defined in the previous section, and the usage is optional 782 - 783 783 === 3.4.4 AttsType === 784 784 785 -A complex type named AttsType must be created. Its content model will be derived via restriction of [[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:AttsType. The complex type content model will be as follows:783 +A complex type named AttsType must be created. Its content model will be derived via restriction of dsd:AttsType. The complex type content model will be as follows: 786 786 787 787 ~1. A sequence consisting of: 788 788 789 -* i. An element reference to common: [[Annotations>>doc:sdmx:Glossary.Annotation.WebHome]], with a minimum occurrence of 0790 -* ii. If any [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]with complex[[representation>>doc:sdmx:Glossary.Representation.WebHome]]are defined in the data structure, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of dsd:CompType787 +* i. An element reference to common:Annotations, with a minimum occurrence of 0 788 +* ii. If any attributes with complex representation are defined in the data structure, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of dsd:CompType 791 791 792 -2. If there is no [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]](TIME\_PERIOD) defined by the data structure, an[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]named TIME\_PERIOD with a type of common:ObservationalTimePeriod, and a usage of prohibited793 -3. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]for all[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]defined by the[[data structure definition>>doc:sdmx:Glossary.Datastructure definition.WebHome]].The XML[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]name and type are defined according to the general rules defined in the previous section, and the usage is optional794 -4. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]for each data[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]defined with simple[[representation>>doc:sdmx:Glossary.Representation.WebHome]]in the data structure. The XML[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]name and type are defined according to the general rules defined in the previous section, and the usage is optional790 +2. If there is no dimension (TIME\_PERIOD) defined by the data structure, an attribute named TIME\_PERIOD with a type of common:ObservationalTimePeriod, and a usage of prohibited 791 +3. An attribute for all dimension defined by the data structure definition. The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is optional 792 +4. An attribute for each data attribute defined with simple representation in the data structure. The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is optional 795 795 796 796 === 3.4.5 ObsType === 797 797 798 -A complex type name ObsType must be created. Its content model will be derived via restriction of the base type [[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:ObsType. The complex type content model will be as follows:796 +A complex type name ObsType must be created. Its content model will be derived via restriction of the base type dsd:ObsType. The complex type content model will be as follows: 799 799 800 800 ~1. A sequence consisting of: 801 801 802 -* i. An element reference to common: [[Annotations>>doc:sdmx:Glossary.Annotation.WebHome]], with a minimum occurrence of 0803 -* ii. If any [[measures>>doc:sdmx:Glossary.Measure.WebHome]]with complex[[representations>>doc:sdmx:Glossary.Representation.WebHome]]are defined in the data structure, any[[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]with complex[[representation>>doc:sdmx:Glossary.Representation.WebHome]]that declare an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with the observation, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of[[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:CompType804 -* iii. If any metadata [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]usages defined in the data structure that declares an[[attribute relationship>>doc:sdmx:Glossary.Attributerelationship.WebHome]]with the observation, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0800 +* i. An element reference to common:Annotations, with a minimum occurrence of 0 801 +* ii. If any measures with complex representations are defined in the data structure, any attributes with complex representation that declare an attribute relationship with the observation, a Comp element with a form of unqualified, a minimum occurrence of 0, a maximum occurrence of unbounded, and a type of dsd:CompType 802 +* iii. If any metadata attribute usages defined in the data structure that declares an attribute relationship with the observation, a local element named Metadata with the type metadata:MetadataSetType a form of unqualified, and a minimum occurrence of 0 805 805 806 -2. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] named TIME\_PERIOD with a type of common: ObservationalTimePeriodValueType. If the [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] at the observation (% style="color:#e74c3c" %)level(%%) is the time [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] (TIME\_PERIOD) or all [[dimensions>>doc:sdmx:Glossary.Dimension.WebHome]] and the time [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] is defined by the data structure, a usage of required; otherwise, a usage of prohibited 807 -3. If the [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] at the observation (% style="color:#e74c3c" %)level(%%) is not all [[dimensions>>doc:sdmx:Glossary.Dimension.WebHome]] or the time [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] (TIME\_PERIOD), an [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] for the [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] at the observation (% style="color:#e74c3c" %)level(%%). The XML [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] name and type are defined according to the general rules defined in the previous section, and the usage is required 808 -4. If the [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] at the observation (% style="color:#e74c3c" %)level(%%) is all [[dimensions>>doc:sdmx:Glossary.Dimension.WebHome]], an [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] for each [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] defined by the [[data structure definition>>doc:sdmx:Glossary.Data structure definition.WebHome]], except for the time [[dimension>>doc:sdmx:Glossary.Dimension.WebHome]] (TIME\_PERIOD). 804 +2. An attribute named TIME\_PERIOD with a type of common: 805 + ObservationalTimePeriodValueType. If the dimension at the observation level is the time dimension (TIME\_PERIOD) or all dimensions and the time dimension is defined by the data structure, a usage of required; otherwise, a usage of prohibited 806 +3. If the dimension at the observation level is not all dimensions or the time dimension (TIME\_PERIOD), an attribute for the dimension at the observation level. The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is required 807 +4. If the dimension at the observation level is all dimensions, an attribute for each dimension defined by the data structure definition, except for the time dimension (TIME\_PERIOD). The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is required 808 +5. An attribute for each measure with simple representation defined by the data structure definition. The XML attribute name and type is defined according to the general rules defined in the previous section, and the usage is optional 809 +6. An attribute for each data attribute with simple representation defined in the data structure that declares an attribute relationship with the observation. The XML attribute name and type are defined according to the general rules defined in the previous section, and the usage is optional 809 809 810 -The XML [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] name and type are defined according to the general rules defined in the previous section, and the usage is required 811 -5. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] for each [[measure>>doc:sdmx:Glossary.Measure.WebHome]] with simple [[representation>>doc:sdmx:Glossary.Representation.WebHome]] defined by the [[data structure definition>>doc:sdmx:Glossary.Data structure definition.WebHome]]. The XML [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] name and type is defined according to the general rules defined in the previous section, and the usage is optional 812 -6. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] for each data [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] with simple [[representation>>doc:sdmx:Glossary.Representation.WebHome]] defined in the data structure that declares an [[attribute relationship>>doc:sdmx:Glossary.Attribute relationship.WebHome]] with the observation. The XML [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] name and type are defined according to the general rules defined in the previous section, and the usage is optional 813 - 814 814 === 3.4.6 CompType === 815 815 816 -For every [[measure>>doc:sdmx:Glossary.Measure.WebHome]]and data[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]with complex[[representation>>doc:sdmx:Glossary.Representation.WebHome]]defined by the[[data structure definition>>doc:sdmx:Glossary.Data structure definition.WebHome]], a complex type must be derived from the restriction of the[[dsd>>doc:sdmx:Glossary.Data structure definition.WebHome]]:CompType. The complex type content model will be as follows:813 +For every measure and data attribute with complex representation defined by the data structure definition, a complex type must be derived from the restriction of the dsd:CompType. The complex type content model will be as follows: 817 817 818 -~1. A sequence consisting of: 815 +1. A sequence consisting of: 816 +1. An element reference to common:Annotations, with a minimum occurrence of 0 817 + 2. A Value element with a form of unqualified, with a minimum occurrence of 0, a maximum occurrence defined by the representation, and a type based on the [complex representation type](#339-Representation-with-Complex-Text-Format) defined according to the general rules defined in the previous section 818 +2. An attribute named id with a type of common: NCNameIDType, usage of required, and a fixed value of the identifier of the measure or attribute 819 819 820 -* i. An element reference to common:[[Annotations>>doc:sdmx:Glossary.Annotation.WebHome]], with a minimum occurrence of 0 821 -* ii. A Value element with a form of unqualified, with a minimum occurrence of 0, a maximum occurrence defined by the [[representation>>doc:sdmx:Glossary.Representation.WebHome]], and a type based on the complex [[representation>>doc:sdmx:Glossary.Representation.WebHome]] type defined according to the general rules defined in the previous section 822 - 823 -2. An [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] named id with a type of common: NCNameIDType, usage of required, and a fixed value of the identifier of the [[measure>>doc:sdmx:Glossary.Measure.WebHome]] or [[attribute>>doc:sdmx:Glossary.Attribute.WebHome]] 824 - 825 825 = 4 Data and Reference Metadata Actions = 826 826 827 827 == 4.1 Data Actions == 828 828 829 -Data messages allow indicating intended actions when used to update an [[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]storage system. This purpose is noted in the action of the[[data set>>doc:sdmx:Glossary.Data set.WebHome]], which is either inherited from the header of the data message or explicitly stated at the[[data set>>doc:sdmx:Glossary.Dataset.WebHome]] (% style="color:#e74c3c" %)level(%%).824 +Data messages allow indicating intended actions when used to update an SDMX storage system. This purpose is noted in the action of the data set, which is either inherited from the header of the data message or explicitly stated at the data set level. 830 830 831 -Note that the former *Append* and *Information* actions are deprecated. When used to update an [[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]storage system, the *Merge* action is assumed.826 +Note that the former *Append* and *Information* actions are deprecated. When used to update an SDMX storage system, the *Merge* action is assumed. 832 832 833 833 === 4.1.1 Merge Action === 834 834 835 -Data or data-related [[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]]is to be merged, through either update or insertion depending on already existing information. This operation does not allow deleting any[[component>>doc:sdmx:Glossary.Component.WebHome]]values. Updating individual values in multi-valued[[measure>>doc:sdmx:Glossary.Measure.WebHome]],[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]or data-related[[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]]values is not supported either. The complete multi-valued value is to be provided.830 +Data or data-related reference metadata is to be merged, through either update or insertion depending on already existing information. This operation does not allow deleting any component values. Updating individual values in multi-valued measure, attribute or data-related reference metadata values is not supported either. The complete multi-valued value is to be provided. 836 836 837 -Only non-dimensional [[components>>doc:sdmx:Glossary.Component.WebHome]]([[measure>>doc:sdmx:Glossary.Measure.WebHome]],[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]or data-related[[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]]values) can be **omitted** (null or absent) as long as at least one of those[[components>>doc:sdmx:Glossary.Component.WebHome]]is present. Bulk merges are thus not supported. Only the provided values are merged.832 +Only non-dimensional components (measure, attribute or data-related reference metadata values) can be **omitted** (null or absent) as long as at least one of those components is present. Bulk merges are thus not supported. Only the provided values are merged. 838 838 839 - [[Dimension>>doc:sdmx:Glossary.Dimension.WebHome]]values for higher-(% style="color:#e74c3c" %)level(%%)(data-related[[reference metadata>>doc:sdmx:Glossary.Reference metadata.WebHome]])[[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]can be **switched-off** (using ) when those are not attached to these dimensions.834 +Dimension values for higher-level (data-related reference metadata) attributes can be **switched-off** (using ) when those are not attached to these dimensions. 840 840 841 -All observations as well as the sets of data-related [[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]] [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]at specific[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]combinations impacted by the *Merge* action change their time stamp when used to update an[[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]storage system.836 +All observations as well as the sets of data-related reference metadata attributes at specific dimension combinations impacted by the *Merge* action change their time stamp when used to update an SDMX storage system. 842 842 843 843 === 4.1.2 Replace Action === 844 844 845 -Data or data-related [[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]]is to be replaced, through either update, insert or delete depending on already existing information. A full replacement is hereby assumed to take place at specific “//replacement(% style="color:#e74c3c" %)levels//(%%)”: for entire observations and for any specific[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]combination for data-related[[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]] [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]].Within these “replacement(% style="color:#e74c3c" %)levels(%%)” the provided values are inserted or updated, and omitted values are deleted. Values provided for the other[[attributes>>doc:sdmx:Glossary.Attribute.WebHome]](those above the observation(% style="color:#e74c3c" %)level(%%))are merged (see //Merge// action).840 +Data or data-related reference metadata is to be replaced, through either update, insert or delete depending on already existing information. A full replacement is hereby assumed to take place at specific “//replacement levels//”: for entire observations and for any specific dimension combination for data-related reference metadata attributes. Within these “replacement levels” the provided values are inserted or updated, and omitted values are deleted. Values provided for the other attributes (those above the observation level) are merged (see //Merge// action). 846 846 847 -Only non-dimensional [[components>>doc:sdmx:Glossary.Component.WebHome]]([[measure>>doc:sdmx:Glossary.Measure.WebHome]],[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]or[[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]]values) can be **omitted** (null or absent). Bulk replacing is thus not supported.842 +Only non-dimensional components (measure, attribute or reference metadata values) can be **omitted** (null or absent). Bulk replacing is thus not supported. 848 848 849 - [[Dimension>>doc:sdmx:Glossary.Dimension.WebHome]]values for higher-(% style="color:#e74c3c" %)level(%%)(data-related[[reference metadata>>doc:sdmx:Glossary.Reference metadata.WebHome]])[[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]can be **switched-off** (using ) when those are not attached to these dimensions.844 +Dimension values for higher-level (data-related reference metadata) attributes can be **switched-off** (using ) when those are not attached to these dimensions. 850 850 851 851 Replacing non-existing elements is not resulting in an error. 852 852 853 -All observations as well as the sets of data-related [[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]] [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]at specific[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]combinations impacted by the //Replace// action change their time stamp when used to update an[[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]storage system.848 +All observations as well as the sets of data-related reference metadata attributes at specific dimension combinations impacted by the //Replace// action change their time stamp when used to update an SDMX storage system. 854 854 855 -Because the //replace// action always takes place at specific (% style="color:#e74c3c" %)levels(%%), it cannot be used to replace a whole[[dataset>>doc:sdmx:Glossary.Dataset.WebHome]] or a whole series. However, a //“replace all”// effect can be achieved by combining a //Delete//[[dataset>>doc:sdmx:Glossary.Dataset.WebHome]]containing a completely wildcarded key (where all[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]values are omitted) with a //Merge// or //Replace//[[dataset>>doc:sdmx:Glossary.Dataset.WebHome]]within the same data message. Similarly, to replace a whole series, a message can combine a //delete//[[dataset>>doc:sdmx:Glossary.Dataset.WebHome]]containing only the partial key of the series (where the not used[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]values are omitted) with a //Merge// or //Replace//[[dataset>>doc:sdmx:Glossary.Dataset.WebHome]]for that series.850 +Because the //replace// action always takes place at specific levels, it cannot be used to replace a whole dataset or a whole series. However, a //“replace all”// effect can be achieved by combining a //Delete// dataset containing a completely wildcarded key (where all dimension values are omitted) with a //Merge// or //Replace// dataset within the same data message. Similarly, to replace a whole series, a message can combine a //delete// dataset containing only the partial key of the series (where the not used dimension values are omitted) with a //Merge// or //Replace// dataset for that series. 856 856 857 857 === 4.1.3 Delete Action === 858 858 859 -Data or data-related [[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]]is to be deleted. Deletion is hereby assumed to take place at the lowest(% style="color:#e74c3c" %)level(%%)of detail provided in the message.854 +Data or data-related reference metadata is to be deleted. Deletion is hereby assumed to take place at the lowest level of detail provided in the message. 860 860 861 -Any [[component>>doc:sdmx:Glossary.Component.WebHome]](including[[dimensions>>doc:sdmx:Glossary.Dimension.WebHome]]) can be **omitted** ([[dimensions>>doc:sdmx:Glossary.Dimension.WebHome]]:empty, others: null or absent). Omitting[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]values allows for bulk deletions. Partially omitting non-[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]][[component>>doc:sdmx:Glossary.Component.WebHome]]values allows restricting the deletion of[[measure>>doc:sdmx:Glossary.Measure.WebHome]],[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]or data-related[[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]]values to the ones being present. Instead of real values for non-dimensional[[components>>doc:sdmx:Glossary.Component.WebHome]], it is sufficient to use any valid value.856 +Any component (including dimensions) can be **omitted** (dimensions: empty, others: null or absent). Omitting dimension values allows for bulk deletions. Partially omitting non-dimension component values allows restricting the deletion of measure, attribute or data-related reference metadata values to the ones being present. Instead of real values for non-dimensional components, it is sufficient to use any valid value. 862 862 863 -With this, whole [[datasets>>doc:sdmx:Glossary.Data set.WebHome]], any slices of observations for[[dimension>>doc:sdmx:Glossary.Dimension.WebHome]]groups such as time series, observations or individual[[measure>>doc:sdmx:Glossary.Measure.WebHome]],[[attribute>>doc:sdmx:Glossary.Attribute.WebHome]]and data-related[[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]] [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]values can be deleted.858 +With this, whole datasets, any slices of observations for dimension groups such as time series, observations or individual measure, attribute and data-related reference metadata attributes values can be deleted. 864 864 865 - [[Dimension>>doc:sdmx:Glossary.Dimension.WebHome]]values for higher-(% style="color:#e74c3c" %)level(%%)(data-related[[reference metadata>>doc:sdmx:Glossary.Reference metadata.WebHome]])[[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]can be **switched-off** (using ) when those are not attached to these[[dimensions>>doc:sdmx:Glossary.Dimension.WebHome]].860 +Dimension values for higher-level (data-related reference metadata) attributes can be **switched-off** (using ) when those are not attached to these dimensions. 866 866 867 867 Deleting non-existing elements or values is not resulting in an error. 868 868 869 -All observations as well as the sets of [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]and data-related[[reference metadata>>doc:sdmx:Glossary.Referencemetadata.WebHome]]athigher partial keys impacted by the *Delete* action change their time stamp when used to update an[[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]storage system.864 +All observations as well as the sets of attributes and data-related reference metadata at higher partial keys impacted by the *Delete* action change their time stamp when used to update an SDMX storage system. 870 870 871 871 === 4.1.4 Further Details === 872 872 873 -The following convention is used to indicate the state of [[components>>doc:sdmx:Glossary.Component.WebHome]]in data messages:868 +The following convention is used to indicate the state of components in data messages: 874 874 875 875 (% style="width:1364.29px" %) 876 876 | | |(% style="width:260px" %)**Dimension value is**|(% style="width:391px" %) |(% style="width:383px" %)**Measure, attribute or reference metadata value is**|(% style="width:184px" %) ... ... @@ -884,23 +884,23 @@ 884 884 885 885 **Important notes:** 886 886 887 -The terms “//delete//”, “//merge//” and “//replace//” do **not** imply a physical replacement or deletion of values in the underlying database. To minimize the physical resource requirements, [[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]web service implementations that do not support the //includeHistory// and //asOf// URL parameters might physically replace the existing values in the database.[[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]web services that neither support the *updatedAfter* URL parameter might also implement physical deletions. However,[[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]web services that support these parameters (or other time-machine features), would not overwrite or delete the physical values.882 +The terms “//delete//”, “//merge//” and “//replace//” do **not** imply a physical replacement or deletion of values in the underlying database. To minimize the physical resource requirements, SDMX web service implementations that do not support the //includeHistory// and //asOf// URL parameters might physically replace the existing values in the database. SDMX web services that neither support the *updatedAfter* URL parameter might also implement physical deletions. However, SDMX web services that support these parameters (or other time-machine features), would not overwrite or delete the physical values. 888 888 889 - [[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]web services that support the //includeHistory// or //asOf// URL parameters should never allow deleting their **historic** data content because this would interfere with the interests of[[data consumers>>doc:sdmx:Glossary.Data consumer.WebHome]], such as data aggregators. Therefore, a specific feature to physically delete previous (outdated) content is intentionally not added to the[[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]standard syntax. If such a feature is required by an organisation, then it needs to be implemented as a custom feature outside the[[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]standard.884 +SDMX web services that support the //includeHistory// or //asOf// URL parameters should never allow deleting their **historic** data content because this would interfere with the interests of data consumers, such as data aggregators. Therefore, a specific feature to physically delete previous (outdated) content is intentionally not added to the SDMX standard syntax. If such a feature is required by an organisation, then it needs to be implemented as a custom feature outside the SDMX standard. 890 890 891 -Likewise, all [[SDMX>>doc:sdmx:Glossary.Statistical data and metadata exchange.WebHome]]-compliant systems that do (or are configured to) support the //updatedAfter// URL parameter need to systematically retain the information about deleted data (or data-related reference metadata).886 +Likewise, all SDMX-compliant systems that do (or are configured to) support the //updatedAfter// URL parameter need to systematically retain the information about deleted data (or data-related reference metadata). 892 892 893 -All [[datasets>>doc:sdmx:Glossary.Dataset.WebHome]]– even with varying actions – within a single data message have always to be treated as **ACID transaction** to guarantee “transactional safety” (full data consistency and validity despite errors, power failures, and other mishaps). These[[datasets>>doc:sdmx:Glossary.Dataset.WebHome]]are to be processed in the order of appearance in the message. The advantage of such data messages is thus the ability to bundle separate //delete// and //replace// or //merge// actions into one transactional data message.888 +All datasets – even with varying actions – within a single data message have always to be treated as **ACID transaction** to guarantee “transactional safety” (full data consistency and validity despite errors, power failures, and other mishaps). These datasets are to be processed in the order of appearance in the message. The advantage of such data messages is thus the ability to bundle separate //delete// and //replace// or //merge// actions into one transactional data message. 894 894 895 -**Recommended{{footnote}}So far this is recommended for systems that do not require backward-compatibility. Later, with SDMX 4.0, this may generally be made mandatory{{/footnote}} [[dataset>>doc:sdmx:Glossary.Dataset.WebHome]]actions in[[SDMX>>doc:sdmx:Glossary.Statisticaldata and metadata exchange.WebHome]]web service responses to GET data queries:**890 +**Recommended{{footnote}}So far this is recommended for systems that do not require backward-compatibility. Later, with SDMX 4.0, this may generally be made mandatory{{/footnote}} dataset actions in SDMX web service responses to GET data queries:** 896 896 897 -~1. Without the //updatedAfter//, //includeHistory//, //detail//, // [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]// or //[[measures>>doc:sdmx:Glossary.Measure.WebHome]]// URL parameters:892 +~1. Without the //updatedAfter//, //includeHistory//, //detail//, //attributes// or //measures// URL parameters: 898 898 899 -The response message should contain the retrieved data in a //Replace// [[dataset>>doc:sdmx:Glossary.Dataset.WebHome]](instead of the previous *information*[[dataset>>doc:sdmx:Glossary.Data set.WebHome]]).894 +The response message should contain the retrieved data in a //Replace// dataset (instead of the previous *information* dataset). 900 900 901 -2. Without the //updatedAfter// and //includeHistory//, but with //detail//, // [[attributes>>doc:sdmx:Glossary.Attribute.WebHome]]// or //[[measures>>doc:sdmx:Glossary.Measure.WebHome]]// URL parameters:896 +2. Without the //updatedAfter// and //includeHistory//, but with //detail//, //attributes// or //measures// URL parameters: 902 902 903 -The response message should contain the retrieved data in a //Merge// [[dataset>>doc:sdmx:Glossary.Dataset.WebHome]](instead of the previous *Information*[[dataset>>doc:sdmx:Glossary.Data set.WebHome]]).898 +The response message should contain the retrieved data in a //Merge// dataset (instead of the previous *Information* dataset). 904 904 905 905 3. With the //updatedAfter// URL parameter: 906 906