Changes for page 3 SDMX Base Package

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

From version 2.3
edited by Helena
on 2025/06/08 00:51
Change comment: There is no comment for this version
To version 5.1
edited by Helena
on 2025/06/08 01:02
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -116,9 +116,9 @@
116 116  
117 117  **Figure 12: Class Diagram of Basic Data Types**
118 118  
119 -===== 3.4.2 Explanation of the Diagram =====
119 +=== 3.4.2 Explanation of the Diagram ===
120 120  
121 -====== 3.4.2.1 Narrative ======
121 +==== 3.4.2.1 Narrative ====
122 122  
123 123  The FacetType and FacetValueType enumerations are used to specify the valid format of the content of a non-enumerated Concept or the usage of a Concept when specified for use on a //Component// on a //Structure// (such as a Dimension in a DataStructureDefinition). The description of the various types can be found in the chapter on ConceptScheme (section 4.5).
124 124  
... ... @@ -139,23 +139,23 @@
139 139  
140 140  The VersionType data types provides the details for versioning according to SDMX versioning rules, as explained in SDMX Standards Section 6, paragraph “4.3 Versioning”.
141 141  
142 -==== //3.5 The Item Scheme Pattern// ====
142 +== 3.5 The Item Scheme Pattern ==
143 143  
144 -===== 3.5.1 Context =====
144 +=== 3.5.1 Context ===
145 145  
146 146  The Item Scheme is a basic architectural pattern that allows the creation of list schemes for use in simple taxonomies, for example.
147 147  
148 148  The //ItemScheme// is the basis for CategoryScheme, Codelist, ConceptScheme, ReportingTaxonomy, //OrganisationScheme//, TransformationScheme, CustomTypeScheme, NamePersonalisationScheme, RulesetScheme, VtlMappingScheme and UserDefinedOperatorScheme.
149 149  
150 -===== 3.5.2 Class Diagram =====
150 +=== 3.5.2 Class Diagram ===
151 151  
152 152  [[image:1749246130543-644.jpeg]]
153 153  
154 154  **Figure 13 The Item Scheme pattern**
155 155  
156 -===== 3.5.3 Explanation of the Diagram =====
156 +=== 3.5.3 Explanation of the Diagram ===
157 157  
158 -====== 3.5.3.1 Narrative ======
158 +==== 3.5.3.1 Narrative ====
159 159  
160 160  The //ItemScheme// is an abstract class which defines a set of //Item// (this class is also abstract). Its main purpose is to define a mechanism which can be used to create taxonomies which can classify other parts of the SDMX Information Model. It is derived from //MaintainableArtefact// which gives it the ability to be annotated, have identity, naming, versioning and be associated with an Agency. An example of a concrete class is a ConceptScheme. The associated Concepts are //Item//s.
161 161  
... ... @@ -169,76 +169,57 @@
169 169  
170 170  The //Item// can be hierarchic and so one //Item// can have child //Item//s. The restriction of the hierarchic association is that a child //Item// can have only parent //Item//.
171 171  
172 -====== 3.5.3.2 Definitions ======
172 +==== 3.5.3.2 Definitions ====
173 173  
174 -|**Class**|**Feature**|**Description**
175 -|//ItemScheme//|(((
174 +(% style="width:989.835px" %)
175 +|**Class**|(% style="width:297px" %)**Feature**|(% style="width:583px" %)**Description**
176 +|//ItemScheme//|(% style="width:297px" %)(((
176 176  Inherits from:
177 -
178 178  //MaintainableArtefact//
179 -
180 180  Direct sub classes are:
181 -
182 182  CategoryScheme
183 -
184 184  ConceptScheme
185 -
186 186  Codelist
187 -
188 188  ReportingTaxonomy
189 -
190 190  //OrganisationScheme//
191 -
192 192  TransformationScheme
193 -
194 194  CustomTypeScheme NamePersonalisationSc heme
195 -
196 196  RulesetScheme
197 -
198 -VtlMappingScheme UserDefinedOperatorSc heme
199 -)))|The descriptive information for an arrangement or division of objects into groups based on characteristics, which the objects have in common.
200 -| |isPartial|Denotes whether the Item Scheme contains a subset of the full set of Items in the maintained scheme.
201 -| |/items|Association to the Items in the scheme.
202 -|//Item//|(((
188 +VtlMappingScheme
189 +UserDefinedOperatorSc heme
190 +)))|(% style="width:583px" %)The descriptive information for an arrangement or division of objects into groups based on characteristics, which the objects have in common.
191 +| |(% style="width:297px" %)isPartial|(% style="width:583px" %)Denotes whether the Item Scheme contains a subset of the full set of Items in the maintained scheme.
192 +| |(% style="width:297px" %)/items|(% style="width:583px" %)Association to the Items in the scheme.
193 +|//Item//|(% style="width:297px" %)(((
203 203  Inherits from:
204 -
205 205  //NameableArtefact//
206 -
207 207  Direct sub classes are
208 -
209 209  Category
210 -
211 211  Concept
212 -
213 213  Code
214 -
215 215  ReportingCategory //Organisation//
216 -
217 217  Transformation
218 -
219 219  CustomType
220 -
221 221  NamePersonalisation
222 -
223 223  Ruleset
224 -
225 225  VtlMapping
226 -
227 227  UserDefinedOperator// //hierarchy
228 -)))|(((
207 +)))|(% style="width:583px" %)(((
229 229  The Item is an item of content in an Item Scheme. This may be a node in a taxonomy or ontology, a code in a code list etc. Node that at the conceptual level the Organisation is not hierarchic.
230 -
231 231  This allows an Item optionally to have one or more child Items
232 232  )))
233 233  
234 -==== //3.6 The Structure Pattern// ====
212 +== 3.6 The Structure Pattern ==
235 235  
236 -===== 3.6.1 Context =====
214 +=== 3.6.1 Context ===
237 237  
238 238  The Structure Pattern is a basic architectural pattern which allows the specification of complex tabular structures which are often found in statistical data (such as Data Structure Definition, and Metadata Structure Definition). A Structure is a set of ordered lists. A pattern to underpin this tabular structure has been developed, so that commonalities between these structure definitions can be supported by common software and common syntax structures.
239 239  
240 -===== 3.6.2 Class Diagrams [[image:1749246130548-601.jpeg]] =====
218 +=== 3.6.2 Class Diagrams ===
241 241  
220 +(% class="wikigeneratedid" %)
221 +[[image:1749246130548-601.jpeg]]
222 +
242 242  **Figure 14: The Structure Pattern**
243 243  
244 244  [[image:1749246130554-995.jpeg]]
... ... @@ -245,9 +245,9 @@
245 245  
246 246  **Figure 15: Representation within the Structure Pattern**
247 247  
248 -====== 3.6.3 Explanation of the Diagrams ======
229 +=== 3.6.3 Explanation of the Diagrams ===
249 249  
250 -3.6.3.1 Narrative
231 +==== 3.6.3.1 Narrative ====
251 251  
252 252  The //Structure// is an abstract class which contains a set of one or more //ComponentList//(s) (this class is also abstract). An example of a concrete //Structure// is DataStructureDefinition.
253 253  
... ... @@ -256,13 +256,9 @@
256 256  The //Component// is contained in a //ComponentList//. The type of //Component// in a //ComponentList// is dependent on the concrete class of the ComponentList as follows:
257 257  
258 258  DimensionDescriptor: Dimension, TimeDimension
259 -
260 260  GroupDimensionDescriptor: Dimension, TimeDimension
261 -
262 262  MeasureDescriptor: Measure
263 -
264 264  AttributeDescriptor: DataAttribute, MetadataAttributeRef
265 -
266 266  MetadataAttributeDescriptor: MetadataAttribute
267 267  
268 268  Each //Component// takes its semantic (and possibly also its representation) from a Concept in a ConceptScheme. This is represented by the conceptIdentity association to Concept.
... ... @@ -281,59 +281,41 @@
281 281  
282 282  The //Structure// may be used by one or more //StructureUsage//(s). An example of this, in terms of concrete classes, is that a Dataflow (sub class of //StructureUsage//) may use a particular DataStructureDefinition (sub class of //Structure//), and similar constructs apply for the Metadataflow (link to MetadataStructureDefinition).
283 283  
284 -3.6.3.2 Definitions
261 +==== 3.6.3.2 Definitions ====
285 285  
286 286  |**Class**|**Feature**|**Description**
287 287  |StructureUsage|(((
288 288  Inherits from:
289 -
290 290  //MaintainableArtefact//
291 -
292 292  Sub classes are:
293 -
294 294  Dataflow
295 -
296 296  Metadataflow
297 297  )))|An artefact whose components are described by a Structure. In concrete terms (sub-classes) an example would be a Dataflow which is linked to a given structure – in this case the Data Structure Definition.
298 298  | |structure|An association to a Structure specifying the structure of the artefact.
299 299  |Structure|(((
300 300  Inherits from:
301 -
302 302  //MaintainableArtefact//
303 -
304 304  Sub classes are:
305 -
306 306  DataStructureDefinition MetadataStructureDefinit ion
307 307  )))|Abstract specification of a list of lists to define a complex tabular structure. A concrete example of this would be statistical concepts, code lists, and their organisation in a data or metadata structure definition, defined by a centre institution, usually for the exchange of statistical information with its partners.
308 308  | |grouping|A composite association to one or more component lists.
309 309  |//ComponentList//|(((
310 310  Inherits from:
311 -
312 312  //IdentifiableArtefact//
313 -
314 314  Sub classes are:
315 -
316 316  DimensionDescriptor
317 -
318 318  GroupDimensionDescriptor
319 -
320 320  MeasureDescriptor
321 -
322 322  AttributeDescriptor MetadataAttributeDescrip tor
323 323  )))|An abstract definition of a list of components. A concrete example is a Dimension Descriptor, which defines the list of Dimensions in a Data Structure Definition.
324 324  | |components|An aggregate association to one or more components which make up the list.
325 325  |//Component//|(((
326 326  Inherits from:
327 -
328 328  //IdentifiableArtefact//
329 -
330 330  Sub classes are:
331 -
332 332  Measure
333 -
334 -//AttributeComponent//
335 -
336 -//DimensionComponent//
294 +//AttributeComponent
295 +DimensionComponent//
337 337  )))|A Component is an abstract super class used to define qualitative and quantitative data and metadata items that belong to a Component List and hence a Structure. Component is refined through its sub-classes.
338 338  | |conceptIdentity|Association to a Concept in a Concept Scheme that identifies and defines the semantic of the Component.
339 339  | |localRepresentation|(((
... ... @@ -352,59 +352,53 @@
352 352  
353 353  The specification of the content and use of the sub classes to //ComponentList// and //Component// can be found in the section in which they are used (DataStructureDefinition and MetadataStructureDefinition). Moreover, the FacetType SentinelValues is explained in the datastructure representation diagram (see 5.3.2.2), since it only concerns DataStructureDefinitions.
354 354  
355 -3.6.3.3 Representation Constructs
314 +==== 3.6.3.3 Representation Constructs ====
356 356  
357 357  The majority of SDMX FacetValueTypes are compatible with those found in XML Schema, and have equivalents in most current implementation platforms:
358 358  
359 -|(((
360 -**SDMX Facet**
318 +|(% style="width:198px" %)(((
319 +**SDMX Facet Value Type**
320 +)))|(% style="width:204px" %)**XML Schema Data Type**|(% style="width:209px" %)**JSON Schema Data Type**|(% style="width:187px" %)(((
321 +**.NET Framework Type**
322 +)))|(% style="width:817px" %)**Java Data Type**
323 +|(% style="width:198px" %)String|(% style="width:204px" %)xsd:string|(% style="width:209px" %)string|(% style="width:187px" %)System.String|(% style="width:817px" %)java.lang.String
324 +|(% style="width:198px" %)Big Integer|(% style="width:204px" %)xsd:integer|(% style="width:209px" %)integer|(% style="width:187px" %)System.Decimal|(% style="width:817px" %)java.math.BigInteger
325 +|(% style="width:198px" %)Integer|(% style="width:204px" %)xsd:int|(% style="width:209px" %)integer|(% style="width:187px" %)System.Int32|(% style="width:817px" %)int
326 +|(% style="width:198px" %)Long|(% style="width:204px" %)xsd.long|(% style="width:209px" %)integer|(% style="width:187px" %)System.Int64|(% style="width:817px" %)long
327 +|(% style="width:198px" %)Short|(% style="width:204px" %)xsd:short|(% style="width:209px" %)integer|(% style="width:187px" %)System.Int16|(% style="width:817px" %)short
328 +|(% style="width:198px" %)Decimal|(% style="width:204px" %)xsd:decimal|(% style="width:209px" %)number|(% style="width:187px" %)System.Decimal|(% style="width:817px" %)java.math.BigDecimal
329 +|(% style="width:198px" %)Float|(% style="width:204px" %)xsd:float|(% style="width:209px" %)number|(% style="width:187px" %)System.Single|(% style="width:817px" %)float
330 +|(% style="width:198px" %)Double|(% style="width:204px" %)xsd:double|(% style="width:209px" %)number|(% style="width:187px" %)System.Double|(% style="width:817px" %)double
331 +|(% style="width:198px" %)Boolean|(% style="width:204px" %)xsd:boolean|(% style="width:209px" %)boolean|(% style="width:187px" %)System.Boolean|(% style="width:817px" %)boolean
332 +|(% style="width:198px" %)URI|(% style="width:204px" %)xsd:anyURI|(% style="width:209px" %)string:uri|(% style="width:187px" %)System.Uri|(% style="width:817px" %)Java.net.URI or java.lang.String
333 +|(% style="width:198px" %)DateTime|(% style="width:204px" %)xsd:dateTime|(% style="width:209px" %)string:datetime|(% style="width:187px" %)System.DateTime|(% style="width:817px" %)javax.xml.datatype.XML GregorianCalendar
334 +|(% style="width:198px" %)Time|(% style="width:204px" %)xsd:time|(% style="width:209px" %)string:time|(% style="width:187px" %)System.DateTime|(% style="width:817px" %)javax.xml.datatype.XML GregorianCalendar
335 +|(% style="width:198px" %)GregorianYear|(% style="width:204px" %)xsd:gYear|(% style="width:209px" %)string{{footnote}}In the JSON schemas, more complex data types are complemented with regular expressions, whenever no direct mapping to a standard type exists.{{/footnote}}|(% style="width:187px" %)System.DateTime|(% style="width:817px" %)javax.xml.datatype.XML GregorianCalendar
336 +|(% style="width:198px" %)GregorianMonth|(% style="width:204px" %)xsd:gYearMonth|(% style="width:209px" %)string|(% style="width:187px" %)System.DateTime|(% style="width:817px" %)javax.xml.datatype.XML GregorianCalendar
337 +|(% style="width:198px" %)GregorianDay|(% style="width:204px" %)xsd:date|(% style="width:209px" %)string|(% style="width:187px" %)System.DateTime|(% style="width:817px" %)javax.xml.datatype.XML GregorianCalendar
338 +|(% style="width:198px" %)Day, MonthDay, Month|(% style="width:204px" %)xsd:g*|(% style="width:209px" %)string|(% style="width:187px" %)System.DateTime|(% style="width:817px" %)javax.xml.datatype.XML GregorianCalendar
339 +|(% style="width:198px" %)Duration|(% style="width:204px" %)xsd:duration|(% style="width:209px" %)string|(% style="width:187px" %)System.TimeSpan|(% style="width:817px" %)javax.xml.datatype.Dur ation
361 361  
362 -**Value Type**
363 -)))|**XML Schema Data Type**|**JSON Schema Data Type**|(((
364 -**.NET Framework**
365 -
366 -**Type**
367 -)))|**Java Data Type**
368 -|String|xsd:string|string|System.String|java.lang.String
369 -|Big Integer|xsd:integer|integer|System.Decimal|java.math.BigInteger
370 -|Integer|xsd:int|integer|System.Int32|int
371 -|Long|xsd.long|integer|System.Int64|long
372 -|Short|xsd:short|integer|System.Int16|short
373 -|Decimal|xsd:decimal|number|System.Decimal|java.math.BigDecimal
374 -|Float|xsd:float|number|System.Single|float
375 -|Double|xsd:double|number|System.Double|double
376 -|Boolean|xsd:boolean|boolean|System.Boolean|boolean
377 -|URI|xsd:anyURI|string:uri|System.Uri|Java.net.URI or java.lang.String
378 -|DateTime|xsd:dateTime|string:datetime|System.DateTime|javax.xml.datatype.XML GregorianCalendar
379 -|Time|xsd:time|string:time|System.DateTime|javax.xml.datatype.XML GregorianCalendar
380 -|GregorianYear|xsd:gYear|string[[(% class="wikiinternallink wikiinternallink" %)^^~[1~]^^>>path:#_ftn1]]|System.DateTime|javax.xml.datatype.XML GregorianCalendar
381 -|GregorianMonth|xsd:gYearMonth|string|System.DateTime|javax.xml.datatype.XML GregorianCalendar
382 -|GregorianDay|xsd:date|string|System.DateTime|javax.xml.datatype.XML GregorianCalendar
383 -|Day, MonthDay, Month|xsd:g*|string|System.DateTime|javax.xml.datatype.XML GregorianCalendar
384 -|Duration|xsd:duration|string|System.TimeSpan|javax.xml.datatype.Dur ation
385 -
386 386  There are also a number of SDMX data types which do not have these direct correspondences, often because they are composite representations or restrictions of a broader data type. These are detailed in Section 6 of the standards.
387 387  
388 388  The Representation is composed of Facets, each of which conveys characteristic information related to the definition of a value domain. Often a set of Facets are needed to convey the required semantic. For example, a sequence is defined by a minimum of two Facets: one to define the start value, and one to define the interval.
389 389  
345 +(% style="width:981.835px" %)
346 +|(% style="width:107px" %)**Facet Type**|(% style="width:872px" %)**Explanation**
347 +|(% style="width:107px" %)isSequence|(% style="width:872px" %)The isSequence facet indicates whether the values are intended to be ordered, and it may work in combination with the interval, startValue,and endValue facet or the timeInterval, startTime, and endTime, facets. If this attribute holds a value of true, a start value or time and a numeric or time interval must be supplied. If an end value is not given, then the sequence continues indefinitely.
348 +|(% style="width:107px" %)interval|(% style="width:872px" %)The interval attribute specifies the permitted interval (increment) in a sequence. In order for this to be used, the isSequence attribute must have a value of true.
349 +|(% style="width:107px" %)startValue|(% style="width:872px" %)The startValue facet is used in conjunction with the isSequence and interval facets (which must be set in order to use this facet). This facet isused for a numeric sequence and indicates the starting point of the sequence. This value is mandatory for a numeric sequence to be expressed.
350 +|(% style="width:107px" %)endValue|(% style="width:872px" %)The endValue facet is used in conjunction with the isSequence and interval facets (which must be set in order to use this facet). This facet is used for a numeric sequence and indicates that ending point (if any) of the sequence.
351 +|(% style="width:107px" %)timeInterval|(% style="width:872px" %)The timeInterval facet indicates the permitted duration in a time sequence. In order for this to be used, the isSequence facet must have a value of true.
352 +|(% style="width:107px" %)startTime|(% style="width:872px" %)The startTime facet is used in conjunction with the isSequence and timeInterval facets (which must be set in order to use this facet). Thisnattribute is used for a time sequence and indicates the start time of thensequence. This value is mandatory for a time sequence to be expressed.
353 +|(% style="width:107px" %)endTime|(% style="width:872px" %)The endTime facet is used in conjunction with the isSequence and timeInterval facets (which must be set in order to use this facet). This facet is used for a time sequence and indicates that ending point (if any) ofnthe sequence.
354 +|(% style="width:107px" %)minLength|(% style="width:872px" %)The minLength facet specifies the minimum and length of the value in characters.
355 +|(% style="width:107px" %)maxLength|(% style="width:872px" %)The maxLength facet specifies the maximum length of the value in characters.
356 +|(% style="width:107px" %)minValue|(% style="width:872px" %)The minValue facet is used for inclusive and exclusive ranges, indicating what the lower bound of the range is. If this is used with an inclusive range, a valid value will be greater than or equal to the value specified here. If the inclusive and exclusive data type is not specified (e.g., this facet is used with an integer data type), the value is assumed to be inclusive.
357 +|(% style="width:107px" %)maxValue|(% style="width:872px" %)The maxValue facet is used for inclusive and exclusive ranges, indicating what the upper bound of the range is. If this is used with an inclusive range, a valid value will be less than or equal to the value specified here. If the inclusive and exclusive data type is not specified (e.g., this facet is used with an integer data type), the value is assumed to be inclusive.
358 +|(% style="width:107px" %)Decimals|(% style="width:872px" %)The decimals facet indicates the number of characters allowed after the decimal separator.
359 +|(% style="width:107px" %)pattern|(% style="width:872px" %)The pattern attribute holds any regular expression permitted in the implementation syntax (e.g., W3C XML Schema).
390 390  
391 -|**Facet Type**|**Explanation**
392 -|isSequence|The isSequence facet indicates whether the values are intended to be ordered, and it may work in combination with the interval, startValue,and endValue facet or the timeInterval, startTime, and endTime, facets. If this attribute holds a value of true, a start value or time and a numeric or time interval must be supplied. If an end value is not given, then the sequence continues indefinitely.
393 -|interval|The interval attribute specifies the permitted interval (increment) in a sequence. In order for this to be used, the isSequence attribute must have a value of true.
394 -|startValue|The startValue facet is used in conjunction with the isSequence and interval facets (which must be set in order to use this facet). This facet isused for a numeric sequence and indicates the starting point of the sequence. This value is mandatory for a numeric sequence to be expressed.
395 -|endValue|The endValue facet is used in conjunction with the isSequence and interval facets (which must be set in order to use this facet). This facet is used for a numeric sequence and indicates that ending point (if any) of the sequence.
396 -|timeInterval|The timeInterval facet indicates the permitted duration in a time sequence. In order for this to be used, the isSequence facet must have a value of true.
397 -|startTime|The startTime facet is used in conjunction with the isSequence and timeInterval facets (which must be set in order to use this facet). Thisnattribute is used for a time sequence and indicates the start time of thensequence. This value is mandatory for a time sequence to be expressed.
398 -|endTime|The endTime facet is used in conjunction with the isSequence and timeInterval facets (which must be set in order to use this facet). This facet is used for a time sequence and indicates that ending point (if any) ofnthe sequence.
399 -|minLength|The minLength facet specifies the minimum and length of the value in characters.
400 -|maxLength|The maxLength facet specifies the maximum length of the value in characters.
401 -|minValue|The minValue facet is used for inclusive and exclusive ranges, indicating what the lower bound of the range is. If this is used with an inclusive range, a valid value will be greater than or equal to the value specified here. If the inclusive and exclusive data type is not specified (e.g., this facet is used with an integer data type), the value is assumed to be inclusive.
402 -|maxValue|The maxValue facet is used for inclusive and exclusive ranges, indicating what the upper bound of the range is. If this is used with an inclusive range, a valid value will be less than or equal to the value specified here. If the inclusive and exclusive data type is not specified (e.g., this facet is used with an integer data type), the value is assumed to be inclusive.
403 -|Decimals|The decimals facet indicates the number of characters allowed after the decimal separator.
404 -|pattern|The pattern attribute holds any regular expression permitted in the implementation syntax (e.g., W3C XML Schema).
405 -
406 -
407 -
408 408  ----
409 409  
410 -[[~[1~]>>path:#_ftnref1]] In the JSON schemas, more complex data types are complemented with regular expressions, whenever no direct mapping to a standard type exists.
363 +{{putFootnotes/}}