SDMX IT Training Exercises 10-12 November, 2015 Jean-François Leblanc, Christian Sebastian Day 1 – 10 November, 2015 Data structure wizard: 1. Load the DSW and solve the JAVA_HOME issue 2. Import the DSD NA_MAIN+ESTAT+1.2.XML a. Visualize the structured files in the local repository 3. Increase the version of the concept scheme and modify it a. Create a new concept, name it Training 4. Create a new CodesList, name it CL_Training a. CL_Training must contain 4 codes : i. Tr for Trainer ii. St1 for Student1 with Tr as parent code iii. St2 for Stundent2 iv. St3 for Student3 5. Modify the DSD, save it without increasing the version a. Add the new concept to the DSD 6. Export the DSD with AND without the references a. Visualise the two files previously exported and check the differences between the two files. Day 2 – 11 November, 2015 Converter 1. Convert from CSV to Compact using the GUI. They did 2 conversions: a. With the first try, they could not convert because the SDMX header information was missing. They learn how to add manually that information and how to import it from a header.prop file. Then the conversion was properly done. b. In the second conversion, they were asked convert the same files but this time validating the output (SDMX validation). The output was not valid because the mapping was wrong. They learn how to change the mapping manually and how to import it from a mapping (.xml) file. Then the conversion was properly done. 2. Convert from XLS (Excel) to Compact, using the Graphical interface (GUI). They saw how an Excel template is and the necessary parameters to convert Excel files. 3. Convert from CSV to Generic using the Command Line (CLI). 4. Create a small script (.bat file) to make the conversion in exercise #3. Extra exercise 1. To convert com the Compact file from exercise 1, back to CSV and compare them. 2. To convert from CSV to Generic using the Common API. Day 3 – 12 November, 2015 Installation of the mapping assistant 1. Create a login and logon to SQL server 2. Create a new database for the MappingStore a. Grant your login access to the database 3. Launch the mapping assistant a. Connect the mapping assistant to the new mapping store b. Check if the database has been initialised Mapping process 1. 2. 3. 4. Create a connection to the dissemination database Create a dataset Load the structure files into the mapping assistant Create a mapping set a. Perform the mapping between the dataset and the DSD b. Check the mapped data c. Perform transcoding if needed 5. Add an header to your dataflow 6. Set the dataflow in production Web Service 1. Install the web service a. Create your application in IIS b. Connect your WS to the mapping store c. Visualise the WSD to check if the WS is correctly installed Test Client 1. 2. 3. 4. 5. Connect the Test Client to the mapping store Create your query Visualise the SQL and visualise the data Generate Data and check the difference between the SQL query and SDMX query Test the Web Service a. Generate an SDMX 2.0 file using the appropriate end point b. Generate an SDMX 2.1 file using the appropriate end point i. Use Soap query ii. Use REST query NSI Client 1. Install the NSI client 2. Query the DataFlow without constraint on the time period 3. Launch the same query with a constraint on the time period a. Solve the problem