Changes for page 10 Constraints
Last modified by Helena K. on 2026/06/10 09:45
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -174,55 +174,55 @@ 174 174 |(% style="width:129px" %)FR|(% style="width:145px" %) |(% style="width:189px" %)2012 175 175 |(% style="width:129px" %)DE|(% style="width:145px" %) |(% style="width:189px" %) 176 176 177 -When both [[versions>>doc:sdmx:Glossary2\.1.Version.WebHome]]of the Data[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]are in a system, an [[observation value>>doc:sdmx:Glossary 2\.1.Observation value.WebHome]] reported against COUNTRY FR for [[time period>>doc:sdmx:Glossary 2\.1.Time period.WebHome]] 2013 would be deemed invalid as the 1.1.0 rule would be applied.177 +When both (% style="color:#e74c3c" %)versions(%%) of the Data (% style="color:#e74c3c" %)Constraint(%%) are in a system, an [[observation value>>doc:sdmx:Glossary 2\.1.Observation value.WebHome]] reported against COUNTRY FR for [[time period>>doc:sdmx:Glossary 2\.1.Time period.WebHome]] 2013 would be deemed invalid as the 1.1.0 rule would be applied. 178 178 179 179 === 10.4.6 Inheritance === 180 180 181 181 ==== 10.4.6.1 Attachment levels of a Constraint ==== 182 182 183 -There are three [[levels>>doc:sdmx:Glossary2\.1.Level.WebHome]]of[[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]attachment for which these inheritance rules apply:183 +There are three (% style="color:#e74c3c" %)levels(%%) of (% style="color:#e74c3c" %)constraint(%%) attachment for which these inheritance rules apply: 184 184 185 -* [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]/[[MSD>>doc:sdmx:Glossary 2\.1.Metadata structure definition.WebHome]] – top [[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]186 -** [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]/[[Metadataflow>>doc:sdmx:Glossary 2\.1.Metadataflow.WebHome]] – second [[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]187 -*** [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] – third [[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]185 +* [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]/[[MSD>>doc:sdmx:Glossary 2\.1.Metadata structure definition.WebHome]] – top (% style="color:#e74c3c" %)level 186 +** [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]/[[Metadataflow>>doc:sdmx:Glossary 2\.1.Metadataflow.WebHome]] – second (% style="color:#e74c3c" %)level 187 +*** [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] – third (% style="color:#e74c3c" %)level 188 188 189 -It is not necessary for a [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]to be attached to a higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[artefact>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]]. e.g., it is valid to have a[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]for a [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] where there are no[[constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]attached the relevant [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] or [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]].189 +It is not necessary for a (% style="color:#e74c3c" %)Constraint(%%) to be attached to a higher (% style="color:#e74c3c" %)level(%%) [[artefact>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]]. e.g., it is valid to have a (% style="color:#e74c3c" %)Constraint(%%) for a [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] where there are no (% style="color:#e74c3c" %)constraints(%%) attached the relevant [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] or [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]. 190 190 191 191 ==== 10.4.6.2 Cascade rules for processing Constraints ==== 192 192 193 -The processing of the [[constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]on either [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]/[[Metadataflow>>doc:sdmx:Glossary 2\.1.Metadataflow.WebHome]] or [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] must take into account the[[constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]declared at higher[[levels>>doc:sdmx:Glossary2\.1.Level.WebHome]].The rules for the lower-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]](attached to [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]/ [[Metadataflow>>doc:sdmx:Glossary 2\.1.Metadataflow.WebHome]] and [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]]) are detailed below.193 +The processing of the (% style="color:#e74c3c" %)constraints(%%) on either [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]/[[Metadataflow>>doc:sdmx:Glossary 2\.1.Metadataflow.WebHome]] or [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] must take into account the (% style="color:#e74c3c" %)constraints(%%) declared at higher (% style="color:#e74c3c" %)levels(%%). The rules for the lower-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)constraints(%%) (attached to [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]/ [[Metadataflow>>doc:sdmx:Glossary 2\.1.Metadataflow.WebHome]] and [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]]) are detailed below. 194 194 195 -Note that there can be a situation where a [[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]is specified at a lower[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]before a[[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]is specified at a higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]].Therefore, it is possible that a higher-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]makes a lower-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]invalid. [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] makes no rules on how such a conflict should be handled when processing the[[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]for attachment. However, the cascade rules on evaluating[[constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]for usage are clear – the higher-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]takes precedence in any conflicts that result in a less restrictive specification at the lower[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]].195 +Note that there can be a situation where a (% style="color:#e74c3c" %)constraint(%%) is specified at a lower (% style="color:#e74c3c" %)level(%%) before a (% style="color:#e74c3c" %)constraint(%%) is specified at a higher (% style="color:#e74c3c" %)level(%%). Therefore, it is possible that a higher-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)constraint(%%) makes a lower-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)constraint(%%) invalid. [[SDMX>>doc:sdmx:Glossary 2\.1.Statistical data and metadata exchange.WebHome]] makes no rules on how such a conflict should be handled when processing the (% style="color:#e74c3c" %)constraint(%%) for attachment. However, the cascade rules on evaluating (% style="color:#e74c3c" %)constraints(%%) for usage are clear – the higher-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)constraint(%%) takes precedence in any conflicts that result in a less restrictive specification at the lower (% style="color:#e74c3c" %)level(%%). 196 196 197 197 ==== 10.4.6.3 Cube Region ==== 198 198 199 -It is not necessary to have a [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]on the higher-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[artefact>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] (e.g., [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] referenced by the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]), but if there is such a[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]at the higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]](s) then:199 +It is not necessary to have a (% style="color:#e74c3c" %)Constraint(%%) on the higher-(% style="color:#e74c3c" %)level(%%) [[artefact>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] (e.g., [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] referenced by the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]), but if there is such a (% style="color:#e74c3c" %)Constraint(%%) at the higher (% style="color:#e74c3c" %)level(%%)(s) then: 200 200 201 -* The lower- [[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]cannot be less restrictive than the[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]specified for the same [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]] (e.g. [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]) at the next higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]], which constrains that [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]]. For example, if the [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] FREQ is constrained to A, Q in a [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]], then the[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]at the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] or [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] cannot be A, Q, M or even just M – it can only further constrain A, Q.202 -* The [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]at the lower[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]for any one [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]] further constrains the content for the same [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]] at the higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]](s).203 -* Any [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]], which is not referenced in a [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]], is deemed to be constrained according to the[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]specified at the next higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]which[[constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]that [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]].204 -* If there is a conflict when resolving the [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]in terms of a lower-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]being less restrictive than a higher-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]], then the[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]at the higher-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]is used.201 +* The lower-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)Constraint(%%) cannot be less restrictive than the (% style="color:#e74c3c" %)Constraint(%%) specified for the same [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]] (e.g. [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]) at the next higher (% style="color:#e74c3c" %)level(%%), which constrains that [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]]. For example, if the [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] FREQ is constrained to A, Q in a [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]], then the (% style="color:#e74c3c" %)Constraint(%%) at the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] or [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] cannot be A, Q, M or even just M – it can only further constrain A, Q. 202 +* The (% style="color:#e74c3c" %)Constraint(%%) at the lower (% style="color:#e74c3c" %)level(%%) for any one [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]] further constrains the content for the same [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]] at the higher (% style="color:#e74c3c" %)level(%%)(s). 203 +* Any [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]], which is not referenced in a (% style="color:#e74c3c" %)Constraint(%%), is deemed to be constrained according to the (% style="color:#e74c3c" %)Constraint(%%) specified at the next higher (% style="color:#e74c3c" %)level(%%) which (% style="color:#e74c3c" %)constraints(%%) that [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]]. 204 +* If there is a conflict when resolving the (% style="color:#e74c3c" %)Constraint(%%) in terms of a lower-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)Constraint(%%) being less restrictive than a higher-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)Constraint(%%), then the (% style="color:#e74c3c" %)Constraint(%%) at the higher-(% style="color:#e74c3c" %)level(%%) is used. 205 205 206 -Note that it is possible for a [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]at a higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]to constrain, say, four [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] in a single[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]], and a[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]at a lower[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]to constrain the same four in two, three, or four[[Constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]].206 +Note that it is possible for a (% style="color:#e74c3c" %)Constraint(%%) at a higher (% style="color:#e74c3c" %)level(%%) to constrain, say, four [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] in a single (% style="color:#e74c3c" %)Constraint(%%), and a (% style="color:#e74c3c" %)Constraint(%%) at a lower (% style="color:#e74c3c" %)level(%%) to constrain the same four in two, three, or four (% style="color:#e74c3c" %)Constraints(%%). 207 207 208 208 ==== 10.4.6.4 Key Set ==== 209 209 210 -It is not necessary to have a [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]on the higher-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[artefact>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] (e.g., [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] referenced by the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]), but if there is such a[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]at the higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]](s) then:210 +It is not necessary to have a (% style="color:#e74c3c" %)Constraint(%%) on the higher-(% style="color:#e74c3c" %)level(%%) [[artefact>>doc:sdmx:Glossary 2\.1.Artefact.WebHome]] (e.g., [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] referenced by the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]), but if there is such a (% style="color:#e74c3c" %)Constraint(%%) at the higher (% style="color:#e74c3c" %)level(%%)(s) then: 211 211 212 -* The lower- [[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]cannot be less restrictive than the[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]specified at the higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]].213 -* The [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]at the lower[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]for any one [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]] further constrains the keys specified at the higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]](s).214 -* Any [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]], which is not referenced in a [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]], is deemed to be constrained according to the[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]specified at the next higher[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]which[[constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]that [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]].215 -* If there is a conflict when resolving the keys in the [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]at two[[levels>>doc:sdmx:Glossary2\.1.Level.WebHome]], in terms of a lower-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]being less restrictive than a higher-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]], then the offending keys specified at the lower[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]are not deemed part of the[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]].212 +* The lower-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)Constraint(%%) cannot be less restrictive than the (% style="color:#e74c3c" %)Constraint(%%) specified at the higher (% style="color:#e74c3c" %)level(%%). 213 +* The (% style="color:#e74c3c" %)Constraint(%%) at the lower (% style="color:#e74c3c" %)level(%%) for any one [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]] further constrains the keys specified at the higher (% style="color:#e74c3c" %)level(%%)(s). 214 +* Any [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]], which is not referenced in a (% style="color:#e74c3c" %)Constraint(%%), is deemed to be constrained according to the (% style="color:#e74c3c" %)Constraint(%%) specified at the next higher (% style="color:#e74c3c" %)level(%%) which (% style="color:#e74c3c" %)constraints(%%) that [[Member Selection>>doc:sdmx:Glossary 2\.1.Member selection.WebHome]]. 215 +* If there is a conflict when resolving the keys in the (% style="color:#e74c3c" %)Constraint(%%) at two (% style="color:#e74c3c" %)levels(%%), in terms of a lower-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)constraint(%%) being less restrictive than a higher-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)Constraint(%%), then the offending keys specified at the lower (% style="color:#e74c3c" %)level(%%) are not deemed part of the (% style="color:#e74c3c" %)Constraint(%%). 216 216 217 -Note that a Key in a Key Set can have wildcarded [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]]. For instance, the [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]may simply constrain the [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] FREQ to "A", and all keys where the FREQ="A" are therefore valid.217 +Note that a Key in a Key Set can have wildcarded [[Components>>doc:sdmx:Glossary 2\.1.Component.WebHome]]. For instance, the (% style="color:#e74c3c" %)Constraint(%%) may simply constrain the [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] FREQ to "A", and all keys where the FREQ="A" are therefore valid. 218 218 219 219 The following logic explains how the inheritance mechanism works. Note that this is conceptual logic and actual systems may differ in the way this is implemented. 220 220 221 -1. Determine all possible keys that are valid at the higher [[level>>doc:sdmx:Glossary2\.1.Level.WebHome]].222 -1. These keys are deemed to be inherited by the lower- [[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]constrained object, subject to the[[Constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]specified at the lower[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]].223 -1. Determine all possible keys that are possible using the [[Constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]specified at the lower[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]].224 -1. At the lower [[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]inherit all keys that match with the higher-[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]].225 -1. If there are keys in the lower- [[level>>doc:sdmx:Glossary2\.1.Level.WebHome]][[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]that are not inherited then the key is invalid (i.e., it is less restrictive).221 +1. Determine all possible keys that are valid at the higher (% style="color:#e74c3c" %)level(%%). 222 +1. These keys are deemed to be inherited by the lower-(% style="color:#e74c3c" %)level(%%) constrained object, subject to the (% style="color:#e74c3c" %)Constraints(%%) specified at the lower (% style="color:#e74c3c" %)level(%%). 223 +1. Determine all possible keys that are possible using the (% style="color:#e74c3c" %)Constraints(%%) specified at the lower (% style="color:#e74c3c" %)level(%%). 224 +1. At the lower (% style="color:#e74c3c" %)level(%%) inherit all keys that match with the higher-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)Constraint(%%). 225 +1. If there are keys in the lower-(% style="color:#e74c3c" %)level(%%) (% style="color:#e74c3c" %)Constraint(%%) that are not inherited then the key is invalid (i.e., it is less restrictive). 226 226 227 227 === 10.4.7 Constraints Examples === 228 228 ... ... @@ -237,23 +237,24 @@ 237 237 * [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] – [[Age>>doc:sdmx:Glossary 2\.1.Age.WebHome]] 238 238 * CAS – Current Activity Status 239 239 240 -In the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]], common [[code lists>>doc:sdmx:Glossary 2\.1.Code list.WebHome]] are used and the requirement is to restrict these at various [[levels>>doc:sdmx:Glossary2\.1.Level.WebHome]]to specify the actual [[code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] that are valid for the object to which the[[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]is attached.240 +In the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]], common [[code lists>>doc:sdmx:Glossary 2\.1.Code list.WebHome]] are used and the requirement is to restrict these at various (% style="color:#e74c3c" %)levels(%%) to specify the actual [[code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] that are valid for the object to which the (% style="color:#e74c3c" %)Constraint(%%) is attached. 241 241 242 242 [[image:1750065279010-260.png]] 243 243 244 -**Figure 20: Example Scenario for Constraints ** 244 +**Figure 20: Example Scenario for (% style="color:#e74c3c" %)Constraints(%%) ** 245 245 246 - [[Constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]are declared as follows:246 +(% style="color:#e74c3c" %)Constraints(%%) are declared as follows: 247 247 248 248 [[image:1750065319060-899.png]] 249 249 250 -**Figure 21: Example Constraints** 250 +**Figure 21: Example (% style="color:#e74c3c" %)Constraints(%%)** 251 251 252 252 Notes: 253 253 254 + 254 254 [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] is constrained for the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] and is further restricted for the [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] CENSUS_CUBE1. 255 255 256 -* The same [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]applies to both [[Provision Agreements>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]].257 +* The same (% style="color:#e74c3c" %)Constraint(%%) applies to both [[Provision Agreements>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]]. 257 257 258 258 The cascade rules elaborated above result as follows: 259 259 ... ... @@ -263,40 +263,40 @@ 263 263 264 264 [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] CENSUS_CUBE1 265 265 266 -* Constrained by restricting the [[code list>>doc:sdmx:Glossary 2\.1.Code list.WebHome]] for the [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] to [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] 002 and 003 (note that this is a more restrictive [[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]than that declared for the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] which specifies all [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] except [[code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] 001).267 +* Constrained by restricting the [[code list>>doc:sdmx:Glossary 2\.1.Code list.WebHome]] for the [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] to [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] 002 and 003 (note that this is a more restrictive (% style="color:#e74c3c" %)constraint(%%) than that declared for the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] which specifies all [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] except [[code>>doc:sdmx:Glossary 2\.1.Code.WebHome]] 001). 267 267 ** Restricts the CAS [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] to 003 and 004. 268 268 269 269 [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] CENSUS_CUBE2 270 270 271 271 * Restricts the [[code list>>doc:sdmx:Glossary 2\.1.Code list.WebHome]] for the CAS [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] to [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] TOT and NAP. 272 -** Inherits the [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] [[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]applied at the level of the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]].273 +** Inherits the [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] (% style="color:#e74c3c" %)constraint(%%) applied at the (% style="color:#e74c3c" %)level(%%) of the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]. 273 273 274 274 [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] CENSUS_CUBE1_IT 275 275 276 276 * Restricts the [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] for the GEO [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] to IT and its children. 277 -** Inherits the [[constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]from [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] CENSUS_CUBE1 for the [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] and CAS [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]].278 +** Inherits the (% style="color:#e74c3c" %)constraints(%%) from [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] CENSUS_CUBE1 for the [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] and CAS [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]. 278 278 279 279 [[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] CENSUS_CUBE2_IT 280 280 281 281 * Restricts the [[codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] for the GEO [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] to IT and its children. 282 -** Inherits the [[constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]from [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] CENSUS_CUBE2 for the CAS [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]].283 -** Inherits the [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] [[constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]applied at the[[level>>doc:sdmx:Glossary2\.1.Level.WebHome]]of the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]].283 +** Inherits the (% style="color:#e74c3c" %)constraints(%%) from [[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] CENSUS_CUBE2 for the CAS [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]. 284 +** Inherits the [[AGE>>doc:sdmx:Glossary 2\.1.Age.WebHome]] (% style="color:#e74c3c" %)constraint(%%) applied at the (% style="color:#e74c3c" %)level(%%) of the [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]]. 284 284 285 -The [[Constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]]are defined as follows:286 +The (% style="color:#e74c3c" %)Constraints(%%) are defined as follows: 286 286 287 -DSD Constraint 288 +[[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] (% style="color:#e74c3c" %)Constraint 288 288 289 289 [[image:1750065367824-357.png]] 290 290 291 -Dataflow Constraints 292 +[[Dataflow>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]] (% style="color:#e74c3c" %)Constraints 292 292 293 293 [[image:1750065392163-400.png]] 294 294 295 -Provision Agreement Constraint 296 +[[Provision Agreement>>doc:sdmx:Glossary 2\.1.Provision agreement.WebHome]] (% style="color:#e74c3c" %)Constraint 296 296 297 297 [[image:1750065461589-995.png]] 298 298 299 -**10.4.7.2 Combination of Constraints** 300 +**10.4.7.2 Combination of (% style="color:#e74c3c" %)Constraints(%%)** 300 300 301 301 The possible combination of constraining terms are explained in this section, following a few examples. 302 302 ... ... @@ -317,7 +317,7 @@ 317 317 318 318 On the above, let’s assume the following use cases with their constraining requirements: 319 319 320 -**Use Case 1: A Constraint on allowed values for some Dimensions** 321 +**Use Case 1: A (% style="color:#e74c3c" %)Constraint(%%) on allowed values for some [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]** 321 321 322 322 R1: Allow monthly and quarterly data 323 323 ... ... @@ -329,7 +329,7 @@ 329 329 |(% style="width:131px" %)(% style="color:#3498db" %)FREQ|(% style="width:153px" %)(% style="color:#3498db" %)M, Q 330 330 |(% style="width:131px" %)(% style="color:#3498db" %)VIS_CTY|(% style="width:153px" %)(% style="color:#3498db" %)MX 331 331 332 -**Use Case 2: A Constraint on allowed combinations for some Dimensions** 333 +**Use Case 2: A (% style="color:#e74c3c" %)Constraint(%%) on allowed combinations for some [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]]** 333 333 334 334 R1: Allow monthly data for Germany 335 335 ... ... @@ -343,10 +343,8 @@ 343 343 |(% rowspan="2" style="width:105px" %)(% style="color:#2980b9" %)Key2|(% style="width:137px" %)(% style="color:#2980b9" %)FREQ|(% style="width:143px" %)(% style="color:#2980b9" %)Q 344 344 |(% style="width:137px" %)(% style="color:#2980b9" %)VIS_CTY|(% style="width:143px" %)(% style="color:#2980b9" %)MX 345 345 346 -**Use Case 3: A Constraint on allowed values for some Dimensions combined with allowed values for some Attributes** 347 +**Use Case 3: A (% style="color:#e74c3c" %)Constraint(%%) on allowed values for some [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] combined with allowed values for some [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]]** R1: Allow monthly and quarterly data 347 347 348 -R1: Allow monthly and quarterly data 349 - 350 350 R2: Allow Mexico for vis-à-vis country 351 351 352 352 R3: Allow present for status ... ... @@ -358,7 +358,7 @@ 358 358 |(% style="width:143px" %)(% style="color:#2980b9" %)VIS_CTY|(% style="width:139px" %)(% style="color:#2980b9" %)MX 359 359 |(% style="width:143px" %)(% style="color:#27ae60" %)OBS_STATUS|(% style="width:139px" %)(% style="color:#27ae60" %)A 360 360 361 -**Use Case 4: A Constraint on allowed combinations for some Dimensions combined with specific Attribute values** 360 +**Use Case 4: A (% style="color:#e74c3c" %)Constraint(%%) on allowed combinations for some [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] combined with specific [[Attribute>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] values** 362 362 363 363 R1: Allow monthly data, for Germany, with [[unit>>doc:sdmx:Glossary 2\.1.Statistical unit.WebHome]] euro 364 364 ... ... @@ -374,7 +374,7 @@ 374 374 |(% style="width:153px" %)(% style="color:#2980b9" %)VIS_CTY|(% style="width:142px" %)(% style="color:#2980b9" %)MX 375 375 |(% style="width:153px" %)(% style="color:#27ae60" %)[[UNIT>>doc:sdmx:Glossary 2\.1.Statistical unit.WebHome]]|(% style="width:142px" %)(% style="color:#27ae60" %)USD 376 376 377 -**Use Case 5: A Constraint on allowed values for some Dimensions together with some combination of Dimension values** 376 +**Use Case 5: A (% style="color:#e74c3c" %)Constraint(%%) on allowed values for some [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] together with some combination of [[Dimension>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] values** 378 378 379 379 R1: For annually and quarterly data, for Mexico and Germany, only A status is allowed 380 380 ... ... @@ -390,11 +390,11 @@ 390 390 |(% style="width:137px" %)(% style="color:#2980b9" %)VIS_CTY|(% style="width:183px" %)(% style="color:#2980b9" %)MX, DE 391 391 |(% style="width:137px" %)(% style="color:#27ae60" %)OBS_STATUS|(% style="width:183px" %)(% style="color:#27ae60" %)F 392 392 393 -The problem with this approach is that according to the business rule for [[Constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]], only one should be specified per [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]. Thus, if a software would perform some conflict resolution would end up with empty sets for FREQ and OBS_STATUS (as they do not share any values).392 +The problem with this approach is that according to the business rule for (% style="color:#e74c3c" %)Constraints(%%), only one should be specified per [[Component>>doc:sdmx:Glossary 2\.1.Component.WebHome]]. Thus, if a software would perform some conflict resolution would end up with empty sets for FREQ and OBS_STATUS (as they do not share any values). 394 394 395 -Nevertheless, there is a much easier approach to that; this is the cascading mechanism of [[Constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]](as shown in 10.4.7.1). Hence, these rules would be expressed into two[[levels>>doc:sdmx:Glossary2\.1.Level.WebHome]]of[[Constraints>>doc:sdmx:Glossary2\.1.Constraint.WebHome]], e.g., [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] and [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]:394 +Nevertheless, there is a much easier approach to that; this is the cascading mechanism of (% style="color:#e74c3c" %)Constraints(%%) (as shown in 10.4.7.1). Hence, these rules would be expressed into two (% style="color:#e74c3c" %)levels(%%) of (% style="color:#e74c3c" %)Constraints(%%), e.g., [[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] and [[Dataflows>>doc:sdmx:Glossary 2\.1.Dataflow.WebHome]]: 396 396 397 -DSD CubeRegion: 396 +[[DSD>>doc:sdmx:Glossary 2\.1.Data structure definition.WebHome]] CubeRegion: 398 398 399 399 (% style="width:280.294px" %) 400 400 |(% style="width:156px" %)(% style="color:#2980b9" %)FREQ|(% style="width:121px" %)(% style="color:#2980b9" %)M, Q, A ... ... @@ -415,7 +415,7 @@ 415 415 |(% style="width:159px" %)(% style="color:#2980b9" %)VIS_CTY|(% style="width:126px" %)(% style="color:#2980b9" %)MX, DE 416 416 |(% style="width:159px" %)(% style="color:#27ae60" %)OBS_STATUS|(% style="width:126px" %)(% style="color:#27ae60" %)A 417 417 418 -**Use case 6: A Constraint on allowed values for some Dimensions combined with allowed values for Measures** 417 +**Use case 6: A (% style="color:#e74c3c" %)Constraint(%%) on allowed values for some [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] combined with allowed values for [[Measures>>doc:sdmx:Glossary 2\.1.Measure.WebHome]]** 419 419 420 420 R1: Allow monthly data, for Germany, with [[unit>>doc:sdmx:Glossary 2\.1.Statistical unit.WebHome]] euro, and [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] choice is 'A' R2: Allow quarterly data, for Mexico, with [[unit>>doc:sdmx:Glossary 2\.1.Statistical unit.WebHome]] usd, and [[measure>>doc:sdmx:Glossary 2\.1.Measure.WebHome]] choice is 'B' 421 421 ... ... @@ -431,9 +431,9 @@ 431 431 |(% style="width:153px" %)(% style="color:#27ae60" %)[[UNIT>>doc:sdmx:Glossary 2\.1.Statistical unit.WebHome]]|(% style="width:149px" %)(% style="color:#27ae60" %)USD 432 432 |(% style="width:153px" %)CHOICE|(% style="width:149px" %)B 433 433 434 -**Use Case 7: A Constraint with wildcards for Codes and removePrefix property** 433 +**Use Case 7: A (% style="color:#e74c3c" %)Constraint(%%) with wildcards for [[Codes>>doc:sdmx:Glossary 2\.1.Code.WebHome]] and removePrefix property** 435 435 436 -For this example, we assume that the VIS_CTY [[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] has been prefixed with prefix ‘AREA_’. In this [[Constraint>>doc:sdmx:Glossary2\.1.Constraint.WebHome]], we need to remove the prefix.435 +For this example, we assume that the VIS_CTY [[representation>>doc:sdmx:Glossary 2\.1.Representation.WebHome]] has been prefixed with prefix ‘AREA_’. In this (% style="color:#e74c3c" %)Constraint(%%), we need to remove the prefix. 437 437 438 438 R1: Allow monthly and quarterly data 439 439 ... ... @@ -447,7 +447,7 @@ 447 447 |(% style="width:264px" %)(% style="color:#2980b9" %)FREQ|(% style="width:112px" %)(% style="color:#2980b9" %)M, Q 448 448 |(% style="width:264px" %)(% style="color:#2980b9" %)VIS_CTY (removePrefix=’AREA_’)|(% style="width:112px" %)(% style="color:#2980b9" %)M% 449 449 450 -**Use Case 8: A Constraint with multilingual support on Attributes** 449 +**Use Case 8: A (% style="color:#e74c3c" %)Constraint(%%) with multilingual support on [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]]** 451 451 452 452 R1: Allow monthly and quarterly data 453 453 ... ... @@ -462,13 +462,11 @@ 462 462 |(% style="width:190px" %)(% style="color:#2980b9" %)VIS_CTY|(% style="width:189px" %)(% style="color:#2980b9" %)MX 463 463 |(% style="width:190px" %)(% style="color:#27ae60" %)[[COMMENT>>doc:sdmx:Glossary 2\.1.Comment.WebHome]] (lang=’en’)|(% style="width:189px" %)(% style="color:#27ae60" %)%adjusted% 464 464 465 -**Use Case 9: A Constraint on allowed values for Dimensions combined with allowed values for Metadata Attributes **464 +**Use Case 9: A (% style="color:#e74c3c" %)Constraint(%%) on allowed values for [[Dimensions>>doc:sdmx:Glossary 2\.1.Dimension.WebHome]] combined with allowed** values for Metadata [[Attributes>>doc:sdmx:Glossary 2\.1.Attribute.WebHome]] R1: Allow monthly and quarterly data 466 466 467 -R1: Allow monthly and quarterly data 468 - 469 469 R2: Allow Mexico for vis-à-vis country 470 470 471 -R3: Allow John Doe for contact 468 +R3: Allow John Doe for (% style="color:#e74c3c" %)contact(%%) 472 472 473 473 This may be expressed with the following CubeRegion: 474 474 ... ... @@ -475,4 +475,4 @@ 475 475 (% style="width:388.294px" %) 476 476 |(% style="width:181px" %)(% style="color:#2980b9" %)FREQ|(% style="width:204px" %)(% style="color:#2980b9" %)M, Q 477 477 |(% style="width:181px" %)(% style="color:#2980b9" %)VIS_CTY|(% style="width:204px" %)(% style="color:#2980b9" %)MX 478 -|(% style="width:181px" %)(% style="color: #e74c3c" %)CONTACT|(% style="width:204px" %)(% style="color:#f39c12" %)John Doe475 +|(% style="width:181px" %)(% style="color: rgb(243, 156, 18); color: rgb(231, 76, 60)" %)CONTACT|(% style="width:204px" %)(% style="color:#f39c12" %)John Doe