Code Explanation For Data Integration
Data merger can be used to merge, the xml and csv files. Using python, we merge the both files, they are xml and csv files. To merge xml and csv, import element tree type, this type is an object. This type is used for storing data structures. Xml file is parse. Here xml document is taken as “store.xml”. Since, this element tree type is not secure against malicious information, we have to parse the xml document. Element tree represents full xml document as the tree and an element as a single node in the tree. Xml is passed into an element which is consider as root element of the parsed tree. It also has the children nodes, which we can iterate. The xml file contains list of data. We use if condition for selecting a specific data from the xml file. By getting identification number for all the data the respective names and details of the corresponding number will be printed.
Then we need to open the csv file named as “locations” which is taken as score file. By using the score file reader we read the content of the location file. The location of the specified code is displayed.
Restful Web Service Explanation
Restful web services deals with the output data source document. This source document is produced from the data merging process. The output file Store_location.csv is obtained from merging process. This csv file is recovered using python and it is named Store_location.phy. this process recovers the information of the store location file.
Implementation of Restful Web Services
Explanation of Mash up
This is used in finding the exact location of the store. Location can be found using map, once we search with its id.
The details of the store details will be displayed when identification number is specified.