Wiki source code of 14 Annex 4 – Data Reader and Data Writer Functions
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{box title="**Contents**"}} | ||
| 2 | {{toc/}} | ||
| 3 | {{/box}} | ||
| 4 | |||
| 5 | == 14.1 Schematic == | ||
| 6 | |||
| 7 | The schematic below is that shown in Section 5.4. | ||
| 8 | |||
| 9 | [[image:SDMX_2-1_User_Guide_draft_0-1_html_45d2325da8996515.png||data-xwiki-image-style-alignment="center" height="639" width="682"]] | ||
| 10 | |||
| 11 | (% style="text-align: center;" %) | ||
| 12 | **{{id name="image_43"/}}Figure 43: Schematic of a Data Reader, Data Writer, and Query Reader** | ||
| 13 | |||
| 14 | == 14.2 Example Interfaces == | ||
| 15 | |||
| 16 | (% class="wikigeneratedid" id="HDataReader" %) | ||
| 17 | **Data Reader** | ||
| 18 | |||
| 19 | [[image:SDMX_2-1_User_Guide_draft_0-1_html_27b964f82bccd49d.jpg||data-xwiki-image-style-alignment="center" height="188" width="576"]] | ||
| 20 | |||
| 21 | (% style="text-align: center;" %) | ||
| 22 | **{{id name="image_44"/}}Figure 44: Example of some Methods of the Data Reader Interface** | ||
| 23 | |||
| 24 | (% class="wikigeneratedid" id="HDataWriter" %) | ||
| 25 | **Data Writer** | ||
| 26 | |||
| 27 | [[image:SDMX_2-1_User_Guide_draft_0-1_html_b58c9f579c290002.jpg||data-xwiki-image-style-alignment="center" height="152" width="576"]] | ||
| 28 | |||
| 29 | (% style="text-align: center;" %) | ||
| 30 | **{{id name="image_45"/}}Figure 45: Example of some Methods of the Data Writer Interface** | ||
| 31 | |||
| 32 | As you will see the only “methods” that the database application needs to invoke are based on the constructs in the [[SDMX Information Model>>doc:sdmx:Glossary.SDMX Information Model.WebHome]] ([[Group key>>doc:sdmx:Glossary.Group key.WebHome]], [[Series Key>>doc:sdmx:Glossary.Series key.WebHome]], Observation, [[Attribute>>doc:sdmx:Glossary.Attribute.WebHome]]). Each different “implementation” of this interface will enable a database (or, indeed, any other) application to read or write an [[SDMX>>doc:sdmx:Glossary.Statistical data and metadata exchange.WebHome]] [[data set>>doc:sdmx:Glossary.Data set.WebHome]] in a specific type of [[data set>>doc:sdmx:Glossary.Data set.WebHome]] message (e.g. [[SDMX-ML>>doc:sdmx:Glossary.SDMX-ML.WebHome]] generic, [[SDMX-ML>>doc:sdmx:Glossary.SDMX-ML.WebHome]] [[DSD>>doc:sdmx:Glossary.Data structure definition.WebHome]]-specific, [[SDMX-EDI>>doc:sdmx:Glossary.SDMX-EDI.WebHome]]). The important, and only, thing to understand from the Interface specification is that the database application never changes, no matter what is the input or output format. The format can even be CSV or mathematical format such as R or even a presentation format, depending on the implementation passed to the database application. The interface is the important asset here, and this is structured using the constructs of the [[SDMX Information Model>>doc:sdmx:Glossary.SDMX Information Model.WebHome]]: the database application need not be concerned with the actual format of the data. | ||
| 33 | |||
| 34 | (% class="wikigeneratedid" id="HDataQueryReader" %) | ||
| 35 | **Data Query Reader** | ||
| 36 | |||
| 37 | [[image:SDMX_2-1_User_Guide_draft_0-1_html_1fa68ca08d53690c.jpg||data-xwiki-image-style-alignment="center" height="267" width="576"]] | ||
| 38 | |||
| 39 | (% style="text-align: center;" %) | ||
| 40 | **{{id name="image_46"/}}Figure 46: Example of some Methods of the Data Query Reader Interface** |