| Since the reform and opening up,with the rapid development of China’s animal husbandry as well as the continuous improvement of people’s living standards,animal food safety traceability for people’s health and stable development of the whole society plays an increasingly important role.Through the establishment of the center of government regulation of quality and safety of animal products retroactive platform for the relevant departments to provide timely,accurate,and scientific data to support decision-making basis,is to ensure the safety of food of animal an effective way.In the process of development of information technology in animal husbandry,different departments in different regions may use different techniques to develop a number of different applications,such as various farm system,slaughterhouses systems and sales systems.Between these systems are essentially independent of each other,like one of the "islands of information",and the data on the various systems described manner,the storage format,access methods may differ,there is a big difference,so produced a large number of heterogeneous data.To take full advantage of these heterogeneous data a lot of valuable resources to establish a unified livestock traceability system,it must find ways to make traceability system between these isolated systems can exchange data with that of livestock traceability related isomers data access and exchange.To sum up,heterogeneous data exchange is one of the major problems in the process of establishing livestock traceability system must be solved.In order to achieve information sharing between heterogeneous,distributed database systems already exist,the paper between these database systems to build a middleware system based on heterogeneous data exchange platform, the platform to achieve the multiple heterogeneous databases system of uniform,transparent access.The subject comes from the National Support Program,heterogeneous data encountered in livestock traceability system as the main object of study,from a practical application to meet the needs of quality and safety traceability of livestock products as a starting point,the use of XML technology to design and develop a heterogeneous data exchange system based on XML.The main contents of this paper are: (1) Studied the current variety of data exchange technology,the analysis of the prior art problems:the lack of a unified standard,platform dependent, the degree of coupling between systems and large,we use XML and middleware technology to achieve heterogeneous data exchange,and involved in discussions related technologies and research.(2) This article focuses on the relationship between model and mutual mapping XML schema is studied to achieve the automatic mapping of XML schema and relational database schema between the proposed use of semantic constraints can be maintained as XML Schema mapping rules between XML and relational databases program files.(3) The characteristics and needs of quality and safety of livestock traceability system,follow the program design ideas,using J2EE framework, design and development of heterogeneous data exchange system based on XML.The system uses a model mapping method designed with the aim of converting data between distributed to a number of heterogeneous data sources and unity livestock traceability system,which to some extent solved the presence of heterogeneous data exchange coupling of large, high cost and complex implementation issues.In this paper, the proposed heterogeneous data exchange system through the use of XML as a data carrier middleware traceability systems to solve the problem of heterogeneous data exchange system difficult,meeting the needs of sharing and exchange of information between the traceability, makeing the establishment of a government regulation as the center of unity and livestock traceability systems possible. |