Changes for page 5 Data Structure Definition and Dataset
Last modified by Artur on 2025/09/10 11:19
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -13,13 +13,9 @@ 13 13 The actual SDMX Base construct from which the concrete classes inherit depends upon the requirements of the class for: 14 14 15 15 Annotation – //AnnotableArtefact// 16 - 17 17 Identification – //IdentifiableArtefact// 18 - 19 19 Naming – //NameableArtefact// 20 - 21 21 Versioning – //VersionableArtefact// 22 - 23 23 Maintenance – //MaintainableArtefact// 24 24 25 25 == 5.2 Inheritance View == ... ... @@ -36,28 +36,22 @@ 36 36 37 37 Those classes in the SDMX metamodel which require annotations inherit from //AnnotableArtefact//. These are: 38 38 39 -//IdentifiableArtefact// 40 - 41 -//DataSet// 42 - 43 -//Key// (and therefore //SeriesKey// and //GroupKey//) 44 - 35 +//IdentifiableArtefact 36 +DataSet 37 +Key// (and therefore //SeriesKey// and //GroupKey//) 45 45 //Observation// 46 46 47 47 Those classes in the SDMX metamodel which require annotations and global identity are derived from //IdentifiableArtefact//. These are: 48 48 49 -//NameableArtefact// 42 +//NameableArtefact 43 +ComponentList 44 +Component// 50 50 51 -//ComponentList// 52 - 53 -//Component// 54 - 55 55 Those classes in the SDMX metamodel which require annotations, global identity, multilingual name and multilingual description are derived from //NameableArtefact//. These are: 56 56 57 -//VersionableArtefact// 48 +//VersionableArtefact 49 +Item// 58 58 59 -//Item// 60 - 61 61 The classes in the SDMX metamodel which require annotations, global identity, multilingual name and multilingual description, and versioning are derived from //VersionableArtefact//. These are: 62 62 63 63 //MaintainableArtefact// ... ... @@ -64,18 +64,15 @@ 64 64 65 65 Abstract classes which represent information that is maintained by Maintenance Agencies all inherit from //MaintainableArtefact//, they also inherit all the features of a //VersionableArtefact//, and are: 66 66 67 -//StructureUsage// 57 +//StructureUsage 58 +Structure 59 +ItemScheme// 68 68 69 -//Structure// 70 - 71 -//ItemScheme// 72 - 73 73 All the above classes are abstract. The key to understanding the class diagrams presented in this section are the concrete classes that inherit from these abstract classes. 74 74 75 75 Those concrete classes in the SDMX Data Structure Definition and Dataset packages of the metamodel which require to be maintained by Agencies all inherit (via other abstract classes) from //MaintainableArtefact//, these are: 76 76 77 77 Dataflow 78 - 79 79 DataStructureDefinition 80 80 81 81 The component structures that are lists of lists, inherit directly from //Structure//. A //Structure// contains several lists of components. The concrete class that inherits from //Structure// is: ... ... @@ -87,11 +87,8 @@ 87 87 The concrete classes which inherit from //ComponentList// and are subcomponents of the DataStructureDefinition are: 88 88 89 89 DimensionDescriptor – content is Dimension and TimeDimension 90 - 91 91 DimensionGroupDescriptor – content is an association to Dimension, TimeDimension 92 - 93 93 MeasureDescriptor – content is Measure 94 - 95 95 AttributeDescriptor – content is DataAttribute and an association to MetadataAttribute 96 96 97 97 The classes that inherit from //Component// are: ... ... @@ -99,7 +99,6 @@ 99 99 Measure 100 100 101 101 //DimensionComponent// and thereby its sub classes of Dimension and TimeDimension 102 - 103 103 //Attribute// and thereby its sub classes of DataAttribute and MetadataAttribute 104 104 105 105 The concrete classes identified above are the majority of the classes required to define the metamodel for the DataStructureDefinition. The diagrams and explanations in the rest of this section show how these concrete classes are related in order to support the functionality required. ... ... @@ -170,10 +170,8 @@ 170 170 171 171 **Figure 30: Representation of DSD Components** 172 172 173 -Each of Dimension, TimeDimension, Measure, DataAttribute and MetadataAttribute can have a Representation specified (using the localRepresentation association). If this is not specified in the DataStructureDefinition then the representation specified for Concept 156 +Each of Dimension, TimeDimension, Measure, DataAttribute and MetadataAttribute can have a Representation specified (using the localRepresentation association). If this is not specified in the DataStructureDefinition then the representation specified for Concept (coreRepresentation) is used. Measure, and DataAttribute may be also represented by multilingual text (as seen in the DataSet diagram further down). An exception is the MetadataAttribute, where its Representation is specified in the MetadataStructureDefinition. 174 174 175 -(coreRepresentation) is used. Measure, and DataAttribute may be also represented by multilingual text (as seen in the DataSet diagram further down). An exception is the MetadataAttribute, where its Representation is specified in the MetadataStructureDefinition. 176 - 177 177 A DataStructureDefinition can be extended to form a derived DataStructureDefinition. This is supported in the StructureMap. 178 178 179 179 ==== 5.3.2.2 Definitions ==== ... ... @@ -327,8 +327,9 @@ 327 327 328 328 ==== 5.4.3.2 Definitions ==== 329 329 330 -|**Class**|**Feature**|**Description** 331 -|//DataSet//|((( 311 +(% style="width:812.039px" %) 312 +|(% style="width:147px" %)**Class**|(% style="width:222px" %)**Feature**|(% style="width:437px" %)**Description** 313 +|(% style="width:147px" %)//DataSet//|(% style="width:222px" %)((( 332 332 Abstract Class 333 333 334 334 Sub classes ... ... @@ -336,30 +336,30 @@ 336 336 StructureSpecificData 337 337 338 338 Set 339 -)))|An organised collection of data. 340 -| |reportingBegin|A specific time period in a known system of time periods that identifies the start period of a report. 341 -| |reportingEnd|A specific time period in a known system of time periods that identifies the end period of a report. 342 -| |dataExtractionDate|A specific time period that identifies the date and time that the data are extracted from a data source. 343 -| |validFrom|Indicates the inclusive start time indicating the validity of the information in the data set. 344 -| |validTo|Indicates the inclusive end time indicating the validity of the information in the data set. 345 -| |publicationYear|Specifies the year of publication of the data or metadata in terms of whatever provisioning agreements might be in force. 346 -| |publicationPeriod|Specifies the period of publication of the data or metadata in terms of whatever provisioning agreements might be in force. 347 -| |setId|Provides an identification of the data set. 348 -| |action|Defines the action to be taken by the recipient system (information, append, replace, delete) 349 -| |describedBy|Associates a Dataflow and thereby a Data Structure Definition to the data set. 350 -| |+structuredBy|Associates the Data Structure Definition that defines the structure of the Data Set. Note that the Data Structure Definition is the same as that associated (non-mandatory) to the Dataflow. 351 -| |+publishedBy|Associates the Data Provider that reports/publishes the data. 352 -|StructureSpecific DataSet| |An XML specific data format structure that contains data corresponding to one specific Data Structure Definition. 353 -|//Key//|((( 321 +)))|(% style="width:437px" %)An organised collection of data. 322 +|(% style="width:147px" %) |(% style="width:222px" %)reportingBegin|(% style="width:437px" %)A specific time period in a known system of time periods that identifies the start period of a report. 323 +|(% style="width:147px" %) |(% style="width:222px" %)reportingEnd|(% style="width:437px" %)A specific time period in a known system of time periods that identifies the end period of a report. 324 +|(% style="width:147px" %) |(% style="width:222px" %)dataExtractionDate|(% style="width:437px" %)A specific time period that identifies the date and time that the data are extracted from a data source. 325 +|(% style="width:147px" %) |(% style="width:222px" %)validFrom|(% style="width:437px" %)Indicates the inclusive start time indicating the validity of the information in the data set. 326 +|(% style="width:147px" %) |(% style="width:222px" %)validTo|(% style="width:437px" %)Indicates the inclusive end time indicating the validity of the information in the data set. 327 +|(% style="width:147px" %) |(% style="width:222px" %)publicationYear|(% style="width:437px" %)Specifies the year of publication of the data or metadata in terms of whatever provisioning agreements might be in force. 328 +|(% style="width:147px" %) |(% style="width:222px" %)publicationPeriod|(% style="width:437px" %)Specifies the period of publication of the data or metadata in terms of whatever provisioning agreements might be in force. 329 +|(% style="width:147px" %) |(% style="width:222px" %)setId|(% style="width:437px" %)Provides an identification of the data set. 330 +|(% style="width:147px" %) |(% style="width:222px" %)action|(% style="width:437px" %)Defines the action to be taken by the recipient system (information, append, replace, delete) 331 +|(% style="width:147px" %) |(% style="width:222px" %)describedBy|(% style="width:437px" %)Associates a Dataflow and thereby a Data Structure Definition to the data set. 332 +|(% style="width:147px" %) |(% style="width:222px" %)+structuredBy|(% style="width:437px" %)Associates the Data Structure Definition that defines the structure of the Data Set. Note that the Data Structure Definition is the same as that associated (non-mandatory) to the Dataflow. 333 +|(% style="width:147px" %) |(% style="width:222px" %)+publishedBy|(% style="width:437px" %)Associates the Data Provider that reports/publishes the data. 334 +|(% style="width:147px" %)StructureSpecific DataSet|(% style="width:222px" %) |(% style="width:437px" %)An XML specific data format structure that contains data corresponding to one specific Data Structure Definition. 335 +|(% style="width:147px" %)//Key//|(% style="width:222px" %)((( 354 354 Abstract class Sub classes 355 355 356 356 SeriesKey 357 357 358 358 GroupKey 359 -)))|Comprises the cross product of values of dimensions that identify uniquely an Observation. 360 -| |keyValues|Association to the individual Key Values that comprise the Key. 361 -| |+attachedAttribute|Association to the Attribute Values relating to the Series Key or Group Key. 362 -|//KeyValue//|((( 341 +)))|(% style="width:437px" %)Comprises the cross product of values of dimensions that identify uniquely an Observation. 342 +|(% style="width:147px" %) |(% style="width:222px" %)keyValues|(% style="width:437px" %)Association to the individual Key Values that comprise the Key. 343 +|(% style="width:147px" %) |(% style="width:222px" %)+attachedAttribute|(% style="width:437px" %)Association to the Attribute Values relating to the Series Key or Group Key. 344 +|(% style="width:147px" %)//KeyValue//|(% style="width:222px" %)((( 363 363 Abstract class Sub classes 364 364 365 365 TimeKeyValue ... ... @@ -367,51 +367,50 @@ 367 367 CodedKeyValue 368 368 369 369 UncodedKeyValue 370 -)))|The value of a component of a key such as the value of the instance a Dimension in a Dimension Descriptor of a Data Structure Definition. 371 -| |+valueFor|((( 352 +)))|(% style="width:437px" %)The value of a component of a key such as the value of the instance a Dimension in a Dimension Descriptor of a Data Structure Definition. 353 +|(% style="width:147px" %) |(% style="width:222px" %)+valueFor|(% style="width:437px" %)((( 372 372 Association to the key component in the Data Structure Definition for which this Key Value is a valid representation. 373 - 374 374 Note that this is conceptual association as the key component is identified explicitly in the data set. 375 375 ))) 376 -|TimeKeyValue|((( 357 +|(% style="width:147px" %)TimeKeyValue|(% style="width:222px" %)((( 377 377 Inherits from 378 378 379 379 //KeyValue// 380 -)))|The value of the Time Dimension component of the key. 381 -|CodedKeyValue|((( 361 +)))|(% style="width:437px" %)The value of the Time Dimension component of the key. 362 +|(% style="width:147px" %)CodedKeyValue|(% style="width:222px" %)((( 382 382 Inherits from 383 383 384 384 //KeyValue// 385 -)))|The value of a coded component of the key. The value is the Code to which this class is associated. 386 -| |+valueOf|Association to the Code. Note that this is a conceptual association showing that the Code must exist in the Code list associated with the Dimension in the Data Structure Definition. In the actual Data Set the value of the Code is placed in the Key Value. 387 -|UnCodedKeyValue|((( 366 +)))|(% style="width:437px" %)The value of a coded component of the key. The value is the Code to which this class is associated. 367 +|(% style="width:147px" %) |(% style="width:222px" %)+valueOf|(% style="width:437px" %)Association to the Code. Note that this is a conceptual association showing that the Code must exist in the Code list associated with the Dimension in the Data Structure Definition. In the actual Data Set the value of the Code is placed in the Key Value. 368 +|(% style="width:147px" %)UnCodedKeyValue|(% style="width:222px" %)((( 388 388 Inherits from 389 389 390 390 //KeyValue// 391 -)))|The value of an uncoded component of the key. 392 -| |value|The value of the key component. 393 -| |startTime|This attribute is only used if the textFormat of the attribute is of the Timespan type in the Data Structure Definition (in which case the value field takes a duration). 394 -|GroupKey|((( 372 +)))|(% style="width:437px" %)The value of an uncoded component of the key. 373 +|(% style="width:147px" %) |(% style="width:222px" %)value|(% style="width:437px" %)The value of the key component. 374 +|(% style="width:147px" %) |(% style="width:222px" %)startTime|(% style="width:437px" %)This attribute is only used if the textFormat of the attribute is of the Timespan type in the Data Structure Definition (in which case the value field takes a duration). 375 +|(% style="width:147px" %)GroupKey|(% style="width:222px" %)((( 395 395 Inherits from 396 396 397 397 //Key// 398 -)))|A set of Key Values that comprise a partial key, of the same dimensionality as the Time Series Key for the purpose of attaching Data Attributes. 399 -| |+describedBy|Associates the Group Dimension Descriptor defined in the Data Structure Definition. 400 -|SeriesKey|((( 379 +)))|(% style="width:437px" %)A set of Key Values that comprise a partial key, of the same dimensionality as the Time Series Key for the purpose of attaching Data Attributes. 380 +|(% style="width:147px" %) |(% style="width:222px" %)+describedBy|(% style="width:437px" %)Associates the Group Dimension Descriptor defined in the Data Structure Definition. 381 +|(% style="width:147px" %)SeriesKey|(% style="width:222px" %)((( 401 401 Inherits from 402 402 403 403 //Key// 404 -)))|Comprises the cross product of values of all the Key Values that, together with the Key Value of the +observation Dimension identify uniquely an Observation. 405 -| |+describedBy|Associates the Dimension Descriptor defined in the Data Structure Definition. 406 -|Observation| |The value(s) of the observed phenomenon in the context of the Key Values comprising the key. 407 -| |+valueFor|((( 385 +)))|(% style="width:437px" %)Comprises the cross product of values of all the Key Values that, together with the Key Value of the +observation Dimension identify uniquely an Observation. 386 +|(% style="width:147px" %) |(% style="width:222px" %)+describedBy|(% style="width:437px" %)Associates the Dimension Descriptor defined in the Data Structure Definition. 387 +|(% style="width:147px" %)Observation|(% style="width:222px" %) |(% style="width:437px" %)The value(s) of the observed phenomenon in the context of the Key Values comprising the key. 388 +|(% style="width:147px" %) |(% style="width:222px" %)+valueFor|(% style="width:437px" %)((( 408 408 Associates the Measure(s) defined in the Data Structure Definition. 409 409 410 410 The source multiplicity (1..*) indicates that more than one values may be provided for a Measure, if the latter allows it. 411 411 ))) 412 -| |+attachedAttribute|Association to the Attribute Values relating to the Observation. 413 -| |+observationDimension|Association to the Key Value that holds the value of the “Dimension at the Observation Level”. 414 -|//ObservationValue//|((( 393 +|(% style="width:147px" %) |(% style="width:222px" %)+attachedAttribute|(% style="width:437px" %)Association to the Attribute Values relating to the Observation. 394 +|(% style="width:147px" %) |(% style="width:222px" %)+observationDimension|(% style="width:437px" %)Association to the Key Value that holds the value of the “Dimension at the Observation Level”. 395 +|(% style="width:147px" %)//ObservationValue//|(% style="width:222px" %)((( 415 415 Abstract class 416 416 417 417 Sub classes ... ... @@ -421,8 +421,8 @@ 421 421 //ue// 422 422 423 423 CodedObservation 424 -)))| 425 -|//UncodedObservatio nValue//|((( 405 +)))|(% style="width:437px" %) 406 +|(% style="width:147px" %)//UncodedObservatio nValue//|(% style="width:222px" %)((( 426 426 Abstract class 427 427 428 428 Inherits from ... ... @@ -434,34 +434,34 @@ 434 434 OtherUncodedMeasureVa lue 435 435 436 436 TextMeasureValue 437 -)))| 438 -|OtherUncodedMeasu reValue|((( 418 +)))|(% style="width:437px" %) 419 +|(% style="width:147px" %)OtherUncodedMeasu reValue|(% style="width:222px" %)((( 439 439 Inherits from 440 440 441 441 //UncodedObservationVal ue// 442 -)))|An observation that has a text value. 443 -| |value|The value of the Uncoded Observation. 444 -| |startTime|This attribute is only used if the textFormat of the Measure is of the Timespan type in the Data Structure Definition (in which case the value field takes a duration). 445 -|TextMeasureValue|((( 423 +)))|(% style="width:437px" %)An observation that has a text value. 424 +|(% style="width:147px" %) |(% style="width:222px" %)value|(% style="width:437px" %)The value of the Uncoded Observation. 425 +|(% style="width:147px" %) |(% style="width:222px" %)startTime|(% style="width:437px" %)This attribute is only used if the textFormat of the Measure is of the Timespan type in the Data Structure Definition (in which case the value field takes a duration). 426 +|(% style="width:147px" %)TextMeasureValue|(% style="width:222px" %)((( 446 446 Inherits from 447 447 448 448 //UncodedObservationVal ue// 449 -)))|An observation that has a localised text value 450 -| |text|The localised text values. 451 -|CodedObservation|((( 430 +)))|(% style="width:437px" %)An observation that has a localised text value 431 +|(% style="width:147px" %) |(% style="width:222px" %)text|(% style="width:437px" %)The localised text values. 432 +|(% style="width:147px" %)CodedObservation|(% style="width:222px" %)((( 452 452 Inherits from 453 453 454 454 //ObservationValue// 455 -)))|An Observation that takes its value from a code in a Code list. 456 -| |+valueOf|Association to the Code that is the value of the Observation. Note that this is a conceptual association showing that the Code must exist in the Codelist(s) associated with the Measure(s) in the Data Structure Definition. In the actual Data Set the value of the Code is placed in the Observation. 457 -|//AttributeValue//|((( 436 +)))|(% style="width:437px" %)An Observation that takes its value from a code in a Code list. 437 +|(% style="width:147px" %) |(% style="width:222px" %)+valueOf|(% style="width:437px" %)Association to the Code that is the value of the Observation. Note that this is a conceptual association showing that the Code must exist in the Codelist(s) associated with the Measure(s) in the Data Structure Definition. In the actual Data Set the value of the Code is placed in the Observation. 438 +|(% style="width:147px" %)//AttributeValue//|(% style="width:222px" %)((( 458 458 Abstract class 459 459 460 460 Sub classes 461 461 462 462 //DataAttributeValue// //MetadataAttributeValu e// 463 -)))|Represents the value for any Attribute reported in the Dataset, i.e., Data or Metadata Attribute. 464 -|//DataAttributeValu e//|((( 444 +)))|(% style="width:437px" %)Represents the value for any Attribute reported in the Dataset, i.e., Data or Metadata Attribute. 445 +|(% style="width:147px" %)//DataAttributeValu e//|(% style="width:222px" %)((( 465 465 Abstract class 466 466 467 467 Inherits from ... ... @@ -473,22 +473,21 @@ 473 473 //UncodedAttributeValue// 474 474 475 475 //CodedAttributeValue// 476 -)))|The value of a Data Attribute, such as the instance of a Coded Attribute or of an Uncoded Attribute in a structure such as a Data Structure Definition. 477 -| |+valueFor|((( 457 +)))|(% style="width:437px" %)The value of a Data Attribute, such as the instance of a Coded Attribute or of an Uncoded Attribute in a structure such as a Data Structure Definition. 458 +|(% style="width:147px" %) |(% style="width:222px" %)+valueFor|(% style="width:437px" %)((( 478 478 Association to the Data Attribute defined in the Data Structure Definition. Note that this is conceptual association as the Concept is identified explicitly in the data set. 479 - 480 480 The source multiplicity (1..*) indicates the possibility to provide more than one values for a Data Attribute, if the latter allows it. 481 481 ))) 482 -|//MetadataAttribute Value//|((( 462 +|(% style="width:147px" %)//MetadataAttribute Value//|(% style="width:222px" %)((( 483 483 (explained further in section 484 484 485 485 “Metadata Set”) 486 -)))|((( 466 +)))|(% style="width:437px" %)((( 487 487 The value of a Metadata Attribute, as specified in the Metadata Structure Definition, which is linked in the Data Structure 488 488 489 489 Definition 490 490 ))) 491 -|//UncodedAttributeV alue//|((( 471 +|(% style="width:147px" %)//UncodedAttributeV alue//|(% style="width:222px" %)((( 492 492 Inherits from 493 493 494 494 //AttributeValue// ... ... @@ -498,27 +498,25 @@ 498 498 OtherUncodedAttribute Value 499 499 500 500 TextAttributeValue 501 -)))| 502 -|OtherUncodedAttri buteValue|((( 481 +)))|(% style="width:437px" %) 482 +|(% style="width:147px" %)OtherUncodedAttri buteValue|(% style="width:222px" %)((( 503 503 Inherits from 504 504 505 505 //UncodedObservationVal ue// 506 -)))|An attribute value that has a text value 507 -| |value|The value of the Uncoded attribute. 508 -| |startTime|This attribute is only used if the textFormat of the attribute is of the Timespan type in the Data Structure Definition (in which case the value field takes a duration). 509 -|TextAttributeValu e|((( 486 +)))|(% style="width:437px" %)An attribute value that has a text value 487 +|(% style="width:147px" %) |(% style="width:222px" %)value|(% style="width:437px" %)The value of the Uncoded attribute. 488 +|(% style="width:147px" %) |(% style="width:222px" %)startTime|(% style="width:437px" %)This attribute is only used if the textFormat of the attribute is of the Timespan type in the Data Structure Definition (in which case the value field takes a duration). 489 +|(% style="width:147px" %)TextAttributeValu e|(% style="width:222px" %)((( 510 510 Inherits from 511 511 512 512 //UncodedAttributeValue// 513 -)))|An attribute that has a localised text value 514 -| |text|The localised text values. 515 -|CodedAttributeVal ue|((( 493 +)))|(% style="width:437px" %)An attribute that has a localised text value 494 +|(% style="width:147px" %) |(% style="width:222px" %)text|(% style="width:437px" %)The localised text values. 495 +|(% style="width:147px" %)CodedAttributeVal ue|(% style="width:222px" %)((( 516 516 Inherits from 517 517 518 518 //AttributeValue// 519 -)))|An attribute that takes it value from a Code in Code list. 520 -| |+valueOf|Association to the Code that is the value of the Attribute Value. Note that this is a conceptual association showing that the Code must exist in the Code list associated with the Data Attribute in the Data Structure Definition. In the actual Data Set the value of the Code is placed in the Attribute Value. 499 +)))|(% style="width:437px" %)An attribute that takes it value from a Code in Code list. 500 +|(% style="width:147px" %) |(% style="width:222px" %)+valueOf|(% style="width:437px" %)Association to the Code that is the value of the Attribute Value. Note that this is a conceptual association showing that the Code must exist in the Code list associated with the Data Attribute in the Data Structure Definition. In the actual Data Set the value of the Code is placed in the Attribute Value. 521 521 522 - 523 - 524 524