摘要
随着因特网的快速发展,各种文档信息及应用程序等都可以从网上轻松获取。Web服务就是各种分布在网络上,以网络技术为基础,用于完成某种特定功能的应用程序。Web服务的生命周期一般包括服务发布、服务发现、服务选择、服务组合和服务调用这五个流程,其中服务组合是Web服务技术研究及应用的重点和难点。Web服务组合主要是通过合成技术,将若干个功能单一的Web服务,组合成可以满足服务请求者复杂功能需求的过程。Web服务组合验证是Web服务组合的一个重要组成部分,它在实现Web服务组合、确保组合后Web服务正常执行过程中起着关键作用。Petri网是系统建模和分析的一种有效工具,它对分布式系统和结构中的进程或组成部分之间的各种关系有较强的描述能力。本文采用Petri网作为分析工具,对基于服务行为Model的Web服务组合的有效性进行验证,通过分析组合Web服务可以判断其是否存在死锁以及能否正常结束。
本文首先介绍语义Web服务的基础理论,然后介绍Petri网的相关基础知识,随后给出从语义Web服务中OWL描述的行为Model信息转换为Petri网模型的过程,在此基础上,利用Petri网的性质,实施Web服务的Petri网表示的组合操作,借助Petri网的转移矩阵来对组合Petri网进行组合验证,最后根据验证结果来分析组合Web服务是否存在死锁以及能否正常运行结束。由于在服务组合过程中采用的Web服务行为Model信息更能体现出Web服务组合的细节,如服务输入输出之间的顺序和输入输出的前提条件和执行后的效果等,因此基于Web服务行为Model的Web服务组合验证更具有准确性。
With the development of Internet technology, not only the Web page documents can be accessed by the Internet, a variety of application programs provided by the companies or organizations can be accessed and employed. In the beginning of 21st century, SOA became popular because of its several advantages, such as:measurability, loosely coupled, standardization and interoperability. Web Service is the technical support of the majority of SO A. In 2001, Tim Berners-Lee, founder of the Internet advance the concept of semantic Web.Semantic Web service is the combining technology of Semantic Web and Web service. The clear semantic information of Semantic Web services improves the efficiency and accuracy of Semantic Web service discovery. OWL-S (Web Ontology Language for Services) which is the Semantic Web service description language of Service Model information is used by Petri nets for Verification of Web services composition based on behavior.
Taking the reusability of semantic Web service into account, Web service generally has specific function, a single Web service can not meet the complex application of service requests, which resulted in Web service composition. Since the independence and autonomy of Web services, some Semantic Web services composition is not reliable. And it will waste unnecessary time and economic consumption if Web service composition is found not to work abnormally until the composition is invoked. It is the key to ensure the normal execution of Web services composition that verification of the combined service before invocation.
In order to solving verification of Web services composition, Petri net is used to verify composition of Web service based on behavior. The first characteristic of this approach is the using of Petri net. Petri net can be used for distributed system modeling and analysis, and Petri net has the advantage of the strong ability to describe the relationship between the various structure components of system or process (such as:sequence, concurrency, conflict, and synchronization). In addition, Petri net has the same semantic consistency with its transitive matrix. The purpose of running simulation of Petri net can be achieved by the transitive matrix operation. The second characteristic of this paper is to composite Semantic Web Service based on service behavior of OWL-S description. Web Service Composition based on the service behavior involves the service of the relationship between the atomic processes, and the order of service input and output, precondition and effect after the execution. Therefore, the verification of Web Service composition Based on Behavior of services is more accuracy.
The verification method of this article is that modeling semantic Web service based on service behavior as Petri net first, related conversion modeling theory is referred to some papers and is improved, and then composing Petri nets which semantic Web services are modeled as. On the basis of this, the labeled place transitive matrix is used for verification analysis of Petri net, the results of the verification analysis can tell whether the composition of Web service is deadlock or there are correct results. The specific method is to run simulations on the Petri net through the multiplication of the labeled place transitive matrix and the state set of place after the conversion from Web service composition to the Petri net. When the state set of places is no longer changed, the result of verification analysis for Web service composition can be judged according to the value of token state of the place.
引文
[1]W3C, SOAP Versionl.2[EB/OL]. http://www.w3.org/TR/soap12-part0/,2007.
[2]W3C, WDSL Version2.0[EB/OL]. http://www.w3.org/TR/wsd120-primer/,2007.
[3]K. Sycara, M. Paolucci, et al. Automated Discovery, Interaction and Composition of Semantic Web services. Journal of Web Semantics[J]. Volume 1, Issue 1, September 2003, 29-43.
[4]K. Sycara, M. Paolucci, et al. Automated Discovery, Interaction and Composition of Semantic Web services[J]. Journal of Web Semantics, Volume 1, Issue 1, September 2003, 28-45.
[5]刘华文,沈春,等.语义Web服务基础技术研究综述[J].吉林大学学报信息科学版,2010,28(1):47-48.
[6]John Davies, Rudi Studer, Paul Warren. Semantic Web Technologies:Trends and Research in Ontology-based Systems[M]. John Wiley & Sons, Ltd.2006:193-234.
[7]Jorge Cardoso. Semantic Web Services:Theory, Tools, and Applications[M]. New York: Information Science Reference,2007.
[8]李景霞,侯紫峰.Web服务组合综述[J].计算机应用研究,2005,12:4-5.
[9]白同强,刘磊.语义Web的研究与展望[J].吉林大学学报:信息科学版,2004,22(2):154-158.
[10]Elgedawy IM. Correctness-Aware High-Level Functional Matching Approaches For Semantic Web Services[D]. Melbourne, Australia:RMIT University,2006.
[11]Karakoc E, Senkul P. Composing Semantic Web Services Under Constraints[J]. Expert Systems with Applications,2009. doi:10.1016/j.eswa.2009.02.098.
[12]邓水光.Web服务自动组合与形式化验证的研究[D].浙江:浙江大学计算机科学与技术学院,2007.
[13]OWL-S1.1 Release[EB/OL]. http://www.daml.org/services/owl-s/1.1/.
[14]Martin D, Burstein M, et al. OWL-S:Semantic markup for web services[M/OL]. W3C member submission,2004. http://www.w3.org/Submission/OWL-S/.
[15]喻坚,韩燕波.面向服务的计算:原理和应用[M].北京:清华大学出版社,2006:207-223.
[16]Petri, C.A..Kommunikation mit Automaten[D]. Bonn:Institut fur Instrumentelle Mathematik, Schriften des IIM Nr.2,1962.
[17]吴哲辉.Petri网导论[M].北京:机械工业出版社,2006:1-3.
[18]Tadao Murata. Petri nets:Properties Analysis and Application[J]. Proceedings of the IEEE,1989.4,77(4):541-580.
[19]Antonio Brogi, Sara Corfini. Behaviour-aware discovery of Web service compositions [J]. ITJ3830,2007(4):1-25
[20]李景霞.基于扩展颜色Petri网的Web服务组合建模研究[D].北京:中国科学院计算技术研究所,2006.
[21]何丰.语义Web服务组合若干关键技术研究[D].上海:东华大学,2008.
[22]马炳先.语义Web服务自动组合的Petri网方法研究[D].北京:中国科学院计算技术研究所,2005.
[23]Rachid Hamadi, Boualem Benatallah. A Petri Net-based Model for Web Service Composition[C], Proceedings of the 14th Australasian Database Conference, Adelaide, South Australia,2003,191-200.
[24]YJ Song, JK LEE. Analysis of Petri net models using Transitive Matrix[C]. SICE 2002, Proceedings of the 41st SICE Annual Conference. Japan, Aug 5-7,2002,3122-3127.
[25]Yu-Liang Chi, Ming-Hung Tsai, Chih-Wei Lee. A Petri-Net based Validator in Reliability of a Composite Service[C].2005 IEEE International Conference on e-Technology, e-Commerce and e-Service (EEE'05). Hong Kong, China March 29-April 01,450-453.
[26]Jinghong Liu, Yoshiaki Itoh, Iko Miyazawa, Tadashi Sekiguchi. A Research on Petri Net Properties using Transitive Matrix[C]. IEEE International Conference on Systems, Man, and Cybernetics,1999.
[27]J Zhang Jia, Chung Jen-Yao, Chang C. K., et al. WS-Net:A Petri-net base specification model for Web services[C]. IEEE International Conference on Web Services (ICWS). San Diego, California, USA,2004,420-427.
[28]Yu Tang, Luo Chen, Kai-Tao He, et al. An Extended Petri-Net-Based Workflow Model for Web Service Composition[C]. IEEE International Conference on Web Services (ICWS'04), San Diego,2004.591-599
[29]刘大有,虞强源,杨博,等.数据结构[M].北京:高等教育出版社,2010.
[30]付燕宁,刘磊,张家晨.构造语义Web服务工作流的模型[J].吉林大学学报(工学版),2007,37(03):600-605.