View of XML Technology
Total Page:16
File Type:pdf, Size:1020Kb
AN APPLICATION OF EXTENSlBLE MARKUP LANGUAGE FOR INTEGRATION OF KNOWLEDGE-BASED SYSTEM WITH JAVA APPLICATIONS A Thesis Presented to The Faculty of the Fritz J. and Dolores H. Russ College of Engineering and Technology Ohio University In Partial Fulfillment of the Requirement for the Degree Master of Science BY Sachin Jain November, 2002 ACKNOWLEDGEMENTS It is a pleasure to thank the many people who made this thesis possible. My sincere gratitude to my thesis advisor, Dr. DuSan Sormaz, who helped and guided me towards implementing the ideas presented in this thesis. His dedication to research and his effort in the development of my thesis was an inspiration throughout this work. The thesis would not be successful without other members of my committee, Dr. David Koonce and Dr. Constantinos Vassiliadis. Special thanks to them for their substantial help and suggestions during the development of this thesis. I would like also to thank Dr. Dale Masel for his class on guidelines for how to write thesis. Thanlts to my fellow colleagues and members of the lMPlanner Group, Sridharan Thiruppalli, Jaikumar Arumugam and Prashant Borse for their excellent cooperation and suggestions. A lot of infom~ation~1sef~11 to the work was found via the World Wide Web; 1 thank those who made their material available on the Web and those who kindly responded back to my questions over the news-groups. Finally, it has been pleasure to pursue graduate studies at IMSE department at Ohio University, an unique place that has provided me with great exposures to intricacies underlying development, prograrn~ningand integration of different industrial systems; thus making this thesis posslbie. TABLE OF CONTENTS ... APPENDIX ......................................................................................................................viii LIST OF FIGURES ............................................................................................................x 1 Introduction .............................................................................................................1 1.1 Application Lntegration ..........................................................................................1 1.2 Motivation ............................................................................................................. I . 1.3 Difficulties In Data Exchange ................................................................................3 1.4 Why XML for Data Exchange 1 Application Integration? .................................... 3 1.5 Research Goals ...................................................................................................... 4 1.6 Summary of Data Exchange Operation .................................................................5 1.7 Structure of the Thesis ...........................................................................................6 Background and Related work ..........................................................................8 2.1 Knowledge-Based Systems ...................................................................................8 2.2 The 31-PP Knowledge-Based System ....................................................................9 2.2.1 Knowledge base and data base ..................................................................... 10 2.2.2 Feature Completion module ..................................................................... I I 2.2.3 Process Selection module .............................................................................11 2.2.4 Part Models ...................................................................................................I I 2.3 Previo~lsWork in Data Exchange ........................................................................12 2.4 Overview of XML technology ............................................................................16 2.4.1 XML document structure .............................................................................. 18 2.4.2 Components of XML ....................................................................................19 2.4.3 The XML Stylesheet Language (XSL) .........................................................19 3 IMPlanner System Architecture ............................................................................21 3.1 Architecture of Process Plan Modeling and Visualization System (IMPlanner) 21 3.1.1 System components ...................................................................................... 23 3.2 Data Exchange Architect~lre................................................................................ 24 4 Methodology .........................................................................................................27 4.1 Data Exchange Approach ....................................................................................27 4.1.1 Data Exchange iModules ............................................................................... 30 4.1.2 Manufacturing Process Selection ..................................................................30 4.1.3 Process Visualization ....................................................................................30 4.2 Inter-Process Communication .............................................................................31 4.3 XIML Writer ......................................................................................................... 32 4.3.1 Request types ................................................................................................ 33 4.3.2 Simple example .............................................................................................34 4.3.3 Nesting of elements .......................................................................................35 4.3.4 Eleineilt headers ............................................................................................37 4.3.5 Document nlles .............................. ............................................................3 8 4.4 Interpreting XML Documents ............................. .........................................38 4.4.1 DOM parser .................................................................................................38 4.4.2 SAX parser ....................................................................................................40 4.5 Feature Display ....................................................................................................42 4.6 Process Visualization ........... ...........................................................................44 4.7 Presenting and storing XML documents ......................... .. ..........................44 Implementation ................................................................................................ 46 5.1 Generating XML Document ................................................................................46 5.1.1 XML Body, Header and Footer .............................................................. 46 5.1.2 Writing Element Tags ............................. ........... ...........................................47 5.1.3 Dynamic object type headers ........................................................................47 5.2 Data Exchange Interface ......................................................................................48 5.2.1 Connecting to 31-PP on remote server ..........................................................50 5.2.2 Loading 31-PP ............................. ............................................................50 5.2.3 Loading Example (part model) .................................................................. 51 5.2.4 Retrieving features for the part model ..........................................................51 5.2.5 Getting data for features ................................................................................52 5.2.6 Get processes for features .......................... ...............................................52 5.2.7 Creating feature Java object ..........................................................................53 5.2.8 Creating process Java object .........................................................................54 5.2.9 Rendering XML document in browser using XSL .......................................54 6 Testing and Examples ...........................................................................................56 6.1 Testing Example ..................................................................................................56 6.1.1 NetExample Part Model ................................................................................56 6.1.2 Obtaining Data ..............................................................................................56 6.1.3 Verifying Data ..............................................................................................59 6.1.4 Presenting Data .............................................................................................59 6.2 Different Feature File Test Cases ........................................................................59 6.3 Verification ..........................................................................................................60 7 Conclusion and Future work .................................................................................61 7.1 Research Summary ..............................................................................................61 7.2 Research Contributions and Limitations .........................................................61