Changes for page 12 Constraints

Last modified by Artur on 2025/09/10 11:19

From version 7.1
edited by Helena
on 2025/05/15 11:07
Change comment: There is no comment for this version
To version 5.1
edited by Helena
on 2025/05/15 09:59
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,6 +1,4 @@
1 -{{box title="**Contents**"}}
2 -{{toc/}}
3 -{{/box}}
1 += 12 Constraints =
4 4  
5 5  == 12.1 Scope ==
6 6  
... ... @@ -75,8 +75,10 @@
75 75  
76 76  In addition to DataKeySet and/or CubeRegion/MetadataTargetRegion a Constraint can have a ReleaseCalendar specifying when data or metadata are released for publication or reporting.
77 77  
78 -Note also that another possible type of a DataConstraint is available; that is a DataConstraint with the role of actualContent where it describes the data that an SDMX Web Service contains. This type of DataConstraint is not maintained in a Registry and is always a response to the data availability SDMX REST API. Thus, its identification is autogenerated by the service responding to a data availability request.
76 +Note also that another possible type of a DataConstraint is available; that is a
79 79  
78 +DataConstraint with the role of actualContent where it describes the data that an SDMX Web Service contains. This type of DataConstraint is not maintained in a Registry and is always a response to the data availability SDMX REST API. Thus, its identification is autogenerated by the service responding to a data availability request.
79 +
80 80  === 12.3.3 Relationship Class Diagram – Detail ===
81 81  
82 82  [[image:SDMX 3-0-0 SECTION 2 FINAL-1.0 (1)_en_d166f6ab.jpg||height="708" width="619"]]
... ... @@ -92,7 +92,7 @@
92 92  1. As a set of keys that can be present in the //DataSet// (DataKeySet). Each DataKey specifies a number of ComponentValues each of which reference a //Component// (e.g., Dimension, DataAttribute). Each ComponentValue is a value that may be present for a //Component// of a structure when contained in a //DataSet//. In addition, each DataKeySet may also include MemberSelections for AttributeComponents or Measures.
93 93  1. As a set of CubeRegions each of which defines a “slice” of the total structure (MemberSelection) in terms of one or more MemberValues that may be present for a //Component// of a structure when contained in a //DataSet//.
94 94  
95 -The difference between (1) and (2) above is that in (1) a complete key is defined whereas in (2) above the “slice” defines a list of possible values for each of the// Component//s but does not specify specific key combinations. In addition, in (1) the association between //Component// and DataKeyValue is constrained to the components that comprise the key, whereas in (2) it can contain other component types (such as AttributeComponents or Measures). By adding MemberSelections to the DataKeySets of (1), AttributeComponents and Measures are constrained for the related DataKeys.
95 +The difference between (1) and (2) above is that in (1) a complete key is defined whereas in (2) above the “slice” defines a list of possible values for each of the// Component//s but does not specify specific key combinations. In addition, in (1) the association between //Component// and DataKeyValue is constrained to the components that comprise the key, whereas in (2) it can contain other component types (such as AttributeComponents or Measures). By adding MemberSelections to the DataKeySets of (1), AttributeComponents and Measures are constrained for the related DataKeys.
96 96  
97 97  A MetadataConstraint has only one way of specifying value subsets:
98 98  
... ... @@ -102,7 +102,7 @@
102 102  
103 103  * "true": all children are included,
104 104  * "false" (default), or
105 -* " excludeRoot", where all children are included, and the root Code is excluded (i.e. the referenced Code).
105 +* "[[image:SDMX 3-0-0 SECTION 2 FINAL-1.0 (1)_en_7f83d17f.gif||alt="Shape31" height="55" width="97"]] excludeRoot", where all children are included, and the root Code is excluded (i.e. the referenced Code).
106 106  
107 107  It is possible to define for the DataKeySet, DataKey, CubeRegion, MetadataTargetRegion and MemberSelection whether the set is included (isIncluded = "true", default) or excluded (isIncluded = "false") from the Constraint definition. This attribute is useful if, for example, only a small sub-set of the possible values are not included in the set, then this smaller sub-set can be defined and excluded from the constraint. Note that if the child construct is “included” and the parent construct is “excluded” then the child construct is included in the list of constructs that are “excluded”.
108 108  
... ... @@ -112,8 +112,7 @@
112 112  
113 113  ==== 12.3.3.2 Definitions ====
114 114  
115 -(% style="width:908.294px" %)
116 -|**Class**|**Feature**|(% style="width:442px" %)**Description**
115 +|**Class**|**Feature**|**Description**
117 117  |//ConstrainableArt efact//|(((
118 118  Abstract Class Sub classes are:
119 119  
... ... @@ -125,11 +125,13 @@
125 125  
126 126  Metadataflow
127 127  
128 -MetadataProvisionAgreement
127 +MetadataProvisionAgreem
129 129  
129 +ent
130 +
130 130  MetadataSet
131 131  
132 -MetadataStructureDefinition
133 +MetadataStructureDefini tion
133 133  
134 134  ProvisionAgreement
135 135  
... ... @@ -136,8 +136,8 @@
136 136  //QueryDatasource//
137 137  
138 138  SimpleDatasource
139 -)))|(% style="width:442px" %)An artefact that can have Constraints specified.
140 -| |content|(% style="width:442px" %)Associates the metadata that constrains the content to be found in a data or metadata source linked to the Constrainable Artefact.
140 +)))|An artefact that can have Constraints specified.
141 +||content|Associates the metadata that constrains the content to be found in a data or metadata source linked to the Constrainable Artefact.
141 141  |//Constraint//|(((
142 142  Inherits from
143 143  
... ... @@ -148,64 +148,69 @@
148 148  DataConstraint
149 149  
150 150  MetadataConstraint
151 -)))|(% style="width:442px" %)Specifies a subset of the definition of the allowable or actual content of a data or metadata source that can be derived from the Structure that defines code lists and other valid content.
152 -| |+dataContentKeys|(% style="width:442px" %)(((
152 +)))|Specifies a subset of the definition of the allowable or actual content of a data or metadata source that can be derived from the Structure that defines code lists and other valid content.
153 +||+dataContentKeys|(((
153 153  Association to a subset of Data
154 154  
155 155  Key Sets (i.e., value combinations) that can be derived from the definition of the structure to which the Constrainable Artefact is linked.
156 156  )))
157 -| |+dataContentRegion|(% style="width:442px" %)(((
158 +||+dataContentRegion|(((
158 158  Association to a subset of component values that can be derived from the Data Structure
159 159  
160 160  Definition to which the Constrainable Artefact is linked.
161 161  )))
162 -| |+metadataContentRegion|(% style="width:442px" %)Association to a subset of component values that can be derived from the Metadata Structure Definition to which the Constrainable Artefact is linked.
163 -| |role|(% style="width:442px" %)Association to the role that the Constraint plays
163 +||+metadataContentRegion|Association to a subset of component values that can be derived from the Metadata Structure Definition to which the Constrainable Artefact is linked.
164 +||role|Association to the role that the Constraint plays
164 164  |DataConstraint|(((
165 165  Inherits from
167 +
166 166  //Constraint//
167 -)))|(% style="width:442px" %)Defines a Constraint in terms of the content that can be found in data sources linked to the Constrainable Artefact to which this constraint is associated.
168 -|ConstraintRoleTy pe| |(% style="width:442px" %)Specifies the way the type of content of a Constraint in terms of its purpose.
169 -| |allowableContent|(% style="width:442px" %)The Constraint contains a specification of the valid subset of the Component values or keys.
170 -| |actualContent|(% style="width:442px" %)The Constraint contains a specification of the actual content of a data or metadata source in terms of the Component values or keys in the source.
169 +)))|Defines a Constraint in terms of the content that can be found in data sources linked to the Constrainable Artefact to which this constraint is associated.
170 +|ConstraintRoleTy pe||Specifies the way the type of content of a Constraint in terms of its purpose.
171 +||allowableContent|The Constraint contains a specification of the valid subset of the Component values or keys.
172 +||actualContent|The Constraint contains a specification of the actual content of a data or metadata source in terms of the Component values or keys in the source.
171 171  |MetadataConstrai nt|(((
172 172  Inherits from
175 +
173 173  //Constraint//
174 -)))|(% style="width:442px" %)Defines a Constraint in terms of the content that can be found in metadata sources linked to the Constrainable Artefact to which this constraint is associated.
175 -|DataKeySet| |(% style="width:442px" %)A set of data keys.
176 -| |isIncluded|(% style="width:442px" %)Indicates whether the Data Key Set is included in the constraint definition or excluded from the constraint definition.
177 -| |+keys|(% style="width:442px" %)Association to the Data Keys in the set.
178 -| |+member|(% style="width:442px" %)Association to the selection of a value subset for Attributes and Measures.
179 -|DataKey| |(% style="width:442px" %)The values of a key in a data set.
180 -| |isIncluded|(% style="width:442px" %)Indicates whether the Data Key is included in the constraint definition or excluded from the constraint definition.
181 -| |+keyValue|(% style="width:442px" %)(((
177 +)))|Defines a Constraint in terms of the content that can be found in metadata sources linked to the Constrainable Artefact to which this constraint is associated.
178 +|DataKeySet||A set of data keys.
179 +||isIncluded|Indicates whether the Data Key Set is included in the constraint definition or excluded from the constraint definition.
180 +||+keys|Association to the Data Keys in the set.
181 +||+member|Association to the selection of a value subset for Attributes and Measures.
182 +|DataKey||The values of a key in a data set.
183 +||isIncluded|Indicates whether the Data Key is included in the constraint definition or excluded from the constraint definition.
184 +||+keyValue|(((
182 182  Associates the Component
183 183  
184 184  Values that comprise the key.
185 185  )))
186 -| |validFrom|(% style="width:442px" %)Date from which the Data Key is valid.
187 -| |validTo|(% style="width:442px" %)Date from which the Data Key is superseded.
188 -|ComponentValue| |(% style="width:442px" %)The identification and value of a Component of the key (e.g., Dimension)
189 -| |value|(% style="width:442px" %)The value of Component
190 -| |+valueFor|(% style="width:442px" %)Association to the Component (e.g., Dimension) in the Structure to which the Constrainable Artefact is linked.
191 -|TimeDimensionVal ue| |(% style="width:442px" %)The value of the Time Dimension component.
192 -| |timeValue|(% style="width:442px" %)The value of the time period.
193 -| |operator|(% style="width:442px" %)(((
189 +||validFrom|Date from which the Data Key is valid.
190 +||validTo|Date from which the Data Key is superseded.
191 +|ComponentValue||The identification and value of a Component of the key (e.g., Dimension)
192 +||value|The value of Component
193 +||+valueFor|Association to the Component (e.g., Dimension) in the Structure to which the Constrainable Artefact is linked.
194 +|TimeDimensionVal ue||The value of the Time Dimension component.
195 +||timeValue|The value of the time period.
196 +||operator|(((
194 194  Indicates whether the specified value represents and exact time or time period, or whether the value should be handled as a range.
198 +
195 195  A value of greaterThan or greaterThanOrEqual indicates that the value is the beginning of a range (exclusive or inclusive, respectively).
200 +
196 196  A value of lessThan or lessThanOrEqual indicates that the value is the end or a range (exclusive or inclusive, respectively).
202 +
197 197  In the absence of the opposite bound being specified for the range, this bound is to be treated as infinite (e.g., any time period after the beginning of the provided time period for greaterThanOrEqual)
198 198  )))
199 -|CubeRegion| |(% style="width:442px" %)A set of Components and their values that defines a subset or “slice” of the total range of possible content of a data structure to which the Constrainable Artefact is linked.
200 -| |isIncluded|(% style="width:442px" %)Indicates whether the Cube Region is included in the constraint definition or excluded from the constraint definition.
201 -| |+member|(% style="width:442px" %)Associates the set of Components that define the subset of values.
202 -|MetadataTargetRe gion| |(% style="width:442px" %)A set of Components and their values that defines a subset or “slice” of the total range of possible content of a metadata structure to which the Constrainable Artefact is linked.
203 -| |isIncluded|(% style="width:442px" %)Indicates whether the Metadata Target Region is included in the constraint definition or excluded from the constraint definition.
204 -| |+member|(% style="width:442px" %)Associates the set of Components that define the subset of values.
205 -|MemberSelection| |(% style="width:442px" %)A set of permissible values for one component of the axis.
206 -| |isIncluded|(% style="width:442px" %)Indicates whether the Member Selection is included in the constraint definition or excluded from the constraint definition.
207 -| |removePrefix|(% style="width:442px" %)Indicates whether the Codes should keep or not the prefix, as defined in the extension of Codelist.
208 -| |+valuesFor|(% style="width:442px" %)Association to the Component in the Structure to which the Constrainable Artefact is linked, which defines the valid Representation for the Member Values.
205 +|CubeRegion||A set of Components and their values that defines a subset or “slice” of the total range of possible content of a data structure to which the Constrainable Artefact is linked.
206 +||isIncluded|Indicates whether the Cube Region is included in the constraint definition or excluded from the constraint definition.
207 +||+member|Associates the set of Components that define the subset of values.
208 +|MetadataTargetRe gion||A set of Components and their values that defines a subset or “slice” of the total range of possible content of a metadata structure to which the Constrainable Artefact is linked.
209 +||isIncluded|Indicates whether the Metadata Target Region is included in the constraint definition or excluded from the constraint definition.
210 +||+member|Associates the set of Components that define the subset of values.
211 +|MemberSelection||A set of permissible values for one component of the axis.
212 +||isIncluded|Indicates whether the Member Selection is included in the constraint definition or excluded from the constraint definition.
213 +||removePrefix|Indicates whether the Codes should keep or not the prefix, as defined in the extension of Codelist.
214 +||+valuesFor|Association to the Component in the Structure to which the Constrainable Artefact is linked, which defines the valid Representation for the Member Values.
209 209  |//SelectionValue//|(((
210 210  Abstract class. Sub classes are:
211 211  
... ... @@ -214,23 +214,23 @@
214 214  //TimeRangeValue//
215 215  
216 216  LocalisedMemberValue
217 -)))|(% style="width:442px" %)A collection of values for the Member Selections that, combined with other Member Selections, comprise the value content of the Cube Region.
218 -| |validFrom|(% style="width:442px" %)Date from which the Selection Value is valid.
219 -| |validTo|(% style="width:442px" %)Date from which the Selection Value is superseded.
223 +)))|A collection of values for the Member Selections that, combined with other Member Selections, comprise the value content of the Cube Region.
224 +||validFrom|Date from which the Selection Value is valid.
225 +||validTo|Date from which the Selection Value is superseded.
220 220  |MemberValue|(((
221 221  Inherits from
222 222  
223 223  //SelectionValue//
224 -)))|(% style="width:442px" %)A single value of the set of values for the Member Selection.
225 -| |value|(% style="width:442px" %)A value of the member.
226 -| |cascadeValues|(% style="width:442px" %)Indicates that the child nodes of the member are included in the Member Selection (e.g., child codes)
230 +)))|A single value of the set of values for the Member Selection.
231 +||value|A value of the member.
232 +||cascadeValues|Indicates that the child nodes of the member are included in the Member Selection (e.g., child codes)
227 227  |LocalisedMemberV alue|(((
228 228  Inherits from
229 229  
230 230  //SelectionValue//
231 -)))|(% style="width:442px" %)A single localised value of the set of values for a Member Selection.
232 -| |value|(% style="width:442px" %)A value of the member.
233 -| |locale|(% style="width:442px" %)The locale that the values must adhere to in the dataset.
237 +)))|A single localised value of the set of values for a Member Selection.
238 +||value|A value of the member.
239 +||locale|The locale that the values must adhere to in the dataset.
234 234  |//TimeRangeValue//|(((
235 235  Inherits from
236 236  
... ... @@ -243,40 +243,43 @@
243 243  AfterPeriod
244 244  
245 245  RangePeriod
246 -)))|(% style="width:442px" %)A time value or values that specifies the date or dates for which the constrained selection is valid.
252 +)))|A time value or values that specifies the date or dates for which the constrained selection is valid.
247 247  |BeforePeriod|(((
248 248  Inherits from
249 249  
250 250  //TimeRangeValue//
251 -)))|(% style="width:442px" %)The period before which the constrained selection is valid.
252 -| |isInclusive|(% style="width:442px" %)Indication of whether the date is inclusive in the period.
253 -| |period|(% style="width:442px" %)The time period which acts as the latest possible reported period
257 +)))|The period before which the constrained selection is valid.
258 +||isInclusive|Indication of whether the date is inclusive in the period.
259 +||period|The time period which acts as the latest possible reported period
254 254  |AfterPeriod|(((
255 255  Inherits from
256 256  
257 257  //TimeRangeValue//
258 -)))|(% style="width:442px" %)The period after which the constrained selection is valid.
259 -| |isInclusive|(% style="width:442px" %)Indication of whether the date is inclusive in the period.
260 -| |period|(% style="width:442px" %)The time period which acts as the earliest possible reported period
261 -|RangePeriod| |(% style="width:442px" %)The start and end periods in a date range.
262 -| |+start|(% style="width:442px" %)Association to the Start Period.
263 -| |+end|(% style="width:442px" %)Association to the End Period.
264 +)))|The period after which the constrained selection is valid.
265 +||isInclusive|Indication of whether the date is inclusive in the period.
266 +||period|The time period which acts as the earliest possible reported period
267 +|RangePeriod||The start and end periods in a date range.
268 +||+start|Association to the Start Period.
269 +||+end|Association to the End Period.
264 264  |StartPeriod|(((
265 265  Inherits from
266 266  
267 267  //TimeRangeValue//
268 -)))|(% style="width:442px" %)The period from which the constrained selection is valid.
269 -| |isInclusive|(% style="width:442px" %)Indication of whether the date is inclusive in the period.
270 -| |period|(% style="width:442px" %)The time period which acts as the start of the range
274 +)))|The period from which the constrained selection is valid.
275 +||isInclusive|Indication of whether the date is inclusive in the period.
276 +||period|The time period which acts as the start of the range
271 271  |EndPeriod|(((
272 272  Inherits from
273 273  
274 274  //TimeRangeValue//
275 -)))|(% style="width:442px" %)The period to which the constrained selection is valid.
276 -| |isInclusive|(% style="width:442px" %)Indication of whether the date is inclusive in the period.
277 -| |period|(% style="width:442px" %)The time period which acts as the end of the range
278 -|ReleaseCalendar| |(% style="width:442px" %)The schedule of publication or reporting of the data or metadata
279 -| |periodicity|(% style="width:442px" %)The time period between the releases of the data or metadata
280 -| |offset|(% style="width:442px" %)Interval between January 1^^st^^ and the first release of the data
281 -| |tolerance|(% style="width:442px" %)Period after which the data or metadata may be deemed late.
282 -
281 +)))|The period to which the constrained selection is valid.
282 +||isInclusive|Indication of whether the date is inclusive in the period.
283 +||period|The time period which acts as the end of the range
284 +|ReleaseCalendar||The schedule of publication or reporting of the data or metadata
285 +||periodicity|The time period between the releases of the data or metadata
286 +||offset|Interval between January 1^^st^^ and the first release of the data
287 +||tolerance|Period after which the data or metadata may be deemed late.
288 +
289 +
290 +
291 +
SDMX 3-0-0 SECTION 2 FINAL-1.0 (1)_en_7f83d17f.gif
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.helena
Size
... ... @@ -1,1 +1,0 @@
1 -1.1 KB
Content