Changes for page 10 Constraints
Last modified by Artur on 2025/09/10 11:19
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 5 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -158,17 +158,19 @@ 158 158 159 159 Data Constraint 1.0.0 160 160 161 -|Component|Valid Value|Valid from|Valid to 162 -|(% rowspan="3" %)COUNTRY|UK| | 163 -|FR| | 164 -|DE| | 161 +(% style="width:573.294px" %) 162 +|(% style="width:108px" %)Component|(% style="width:127px" %)Valid Value|(% style="width:150px" %)Valid from|(% style="width:185px" %)Valid to 163 +|(% rowspan="3" style="width:108px" %)COUNTRY|(% style="width:127px" %)UK|(% style="width:150px" %) |(% style="width:185px" %) 164 +|(% style="width:127px" %)FR|(% style="width:150px" %) |(% style="width:185px" %) 165 +|(% style="width:127px" %)DE|(% style="width:150px" %) |(% style="width:185px" %) 165 165 166 166 Data Constraint 1.1.0 167 167 168 -|Component|Valid Value|Valid from|Valid to 169 -|(% rowspan="3" %)COUNTRY|UK| | 170 -|FR| |2012 171 -|DE| | 169 +(% style="width:576.294px" %) 170 +|(% style="width:110px" %)Component|(% style="width:129px" %)Valid Value|(% style="width:145px" %)Valid from|(% style="width:189px" %)Valid to 171 +|(% rowspan="3" style="width:110px" %)COUNTRY|(% style="width:129px" %)UK|(% style="width:145px" %) |(% style="width:189px" %) 172 +|(% style="width:129px" %)FR|(% style="width:145px" %) |(% style="width:189px" %)2012 173 +|(% style="width:129px" %)DE|(% style="width:145px" %) |(% style="width:189px" %) 172 172 173 173 When both versions of the Data Constraint are in a system, an observation value reported against COUNTRY FR for time period 2013 would be deemed invalid as the 1.1.0 rule would be applied. 174 174 ... ... @@ -178,8 +178,9 @@ 178 178 179 179 There are three levels of constraint attachment for which these inheritance rules apply: 180 180 181 -* DSD/MSD – top level o Dataflow/Metadataflow – second level 182 -** Provision Agreement – third level 183 +* DSD/MSD – top level 184 +** Dataflow/Metadataflow – second level 185 +*** Provision Agreement – third level 183 183 184 184 It is not necessary for a Constraint to be attached to a higher level artefact. e.g., it is valid to have a Constraint for a Provision Agreement where there are no constraints attached the relevant Dataflow or DSD. 185 185 ... ... @@ -213,14 +213,14 @@ 213 213 214 214 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. 215 215 216 -1. 217 -11. Determine all possible keys that are valid at the higher level. 218 -11. These keys are deemed to be inherited by the lower-level constrained object, subject to the Constraints specified at the lower level. 219 -11. Determine all possible keys that are possible using the Constraints specified at the lower level. 220 -11. At the lower level inherit all keys that match with the higher-level Constraint. 221 -11. If there are keys in the lower-level Constraint that are not inherited then the key is invalid (i.e., it is less restrictive). 222 -111. Constraints Examples 219 +1. Determine all possible keys that are valid at the higher level. 220 +1. These keys are deemed to be inherited by the lower-level constrained object, subject to the Constraints specified at the lower level. 221 +1. Determine all possible keys that are possible using the Constraints specified at the lower level. 222 +1. At the lower level inherit all keys that match with the higher-level Constraint. 223 +1. If there are keys in the lower-level Constraint that are not inherited then the key is invalid (i.e., it is less restrictive). 223 223 225 +=== 10.4.7 Constraints Examples === 226 + 224 224 ==== 10.4.7.1 Data Constraint and Cascading ==== 225 225 226 226 The following scenario is used. ... ... @@ -234,9 +234,11 @@ 234 234 235 235 In the DSD, common code lists are used and the requirement is to restrict these at various levels to specify the actual code that are valid for the object to which the Constraint is attached. 236 236 240 +[[image:1750065279010-260.png]] 237 237 238 238 **Figure 20: Example Scenario for Constraints **Constraints are declared as follows: 239 239 244 +[[image:1750065319060-899.png]] 240 240 241 241 **Figure 21: Example Constraints** 242 242 ... ... @@ -277,10 +277,16 @@ 277 277 278 278 DSD Constraint 279 279 285 +[[image:1750065367824-357.png]] 286 + 280 280 Dataflow Constraints 281 281 289 +[[image:1750065392163-400.png]] 290 + 282 282 Provision Agreement Constraint 283 283 293 +[[image:1750065461589-995.png]] 294 + 284 284 **10.4.7.2 Combination of Constraints** 285 285 286 286 The possible combination of constraining terms are explained in this section, following a few examples. ... ... @@ -287,17 +287,18 @@ 287 287 288 288 Let’s assume a DSD with the following Components: 289 289 290 -|Dimension|FREQ 291 -|Dimension|JD_TYPE 292 -|Dimension|JD_CATEGORY 293 -|Dimension|VIS_CTY 294 -|TimeDimension|TIME_PERIOD 295 -|Attribute|OBS_STATUS 296 -|Attribute|UNIT 297 -|Attribute|COMMENT 298 -|MetadataAttribute|CONTACT 299 -|Measure|MULTISELECT 300 -|Measure|CHOICE 301 +(% style="width:459.294px" %) 302 +|(% style="width:204px" %)(% style="color:#3498db" %)Dimension|(% style="width:252px" %)(% style="color:#3498db" %)FREQ 303 +|(% style="width:204px" %)(% style="color:#3498db" %)Dimension|(% style="width:252px" %)(% style="color:#3498db" %)JD_TYPE 304 +|(% style="width:204px" %)(% style="color:#3498db" %)Dimension|(% style="width:252px" %)(% style="color:#3498db" %)JD_CATEGORY 305 +|(% style="width:204px" %)(% style="color:#3498db" %)Dimension|(% style="width:252px" %)(% style="color:#3498db" %)VIS_CTY 306 +|(% style="width:204px" %)(% style="color:#2980b9" %)TimeDimension|(% style="width:252px" %)(% style="color:#2980b9" %)TIME_PERIOD 307 +|(% style="width:204px" %)(% style="color:#16a085" %)Attribute|(% style="width:252px" %)(% style="color:#16a085" %)OBS_STATUS 308 +|(% style="width:204px" %)(% style="color:#16a085" %)Attribute|(% style="width:252px" %)(% style="color:#16a085" %)UNIT 309 +|(% style="width:204px" %)(% style="color:#16a085" %)Attribute|(% style="width:252px" %)(% style="color:#16a085" %)COMMENT 310 +|(% style="width:204px" %)(% style="color:#f39c12" %)MetadataAttribute|(% style="width:252px" %)(% style="color:#f39c12" %)CONTACT 311 +|(% style="width:204px" %)(% style="color:#e74c3c" %)Measure|(% style="width:252px" %)(% style="color:#e74c3c" %)MULTISELECT 312 +|(% style="width:204px" %)(% style="color:#e74c3c" %)Measure|(% style="width:252px" %)(% style="color:#e74c3c" %)CHOICE 301 301 302 302 On the above, let’s assume the following use cases with their constraining requirements: 303 303
- 1750065279010-260.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +xwiki:XWiki.helena - Size
-
... ... @@ -1,0 +1,1 @@ 1 +60.3 KB - Content
- 1750065319060-899.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +xwiki:XWiki.helena - Size
-
... ... @@ -1,0 +1,1 @@ 1 +91.0 KB - Content
- 1750065367824-357.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +xwiki:XWiki.helena - Size
-
... ... @@ -1,0 +1,1 @@ 1 +51.4 KB - Content
- 1750065392163-400.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +xwiki:XWiki.helena - Size
-
... ... @@ -1,0 +1,1 @@ 1 +104.8 KB - Content
- 1750065461589-995.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +xwiki:XWiki.helena - Size
-
... ... @@ -1,0 +1,1 @@ 1 +43.9 KB - Content