Analyzing web service similarity using contextual clones

Analyzing web service similarity using contextual clones
复制标题

使用上下文克隆分析 Web 服务相似性

DOI:
10.1145/1985404.1985412
复制
发表时间:
2011
期刊:
--
影响因子:
--
通讯作者:
J. Cordy
J. Cordy
中科院分区:
--
文献类型:
--
作者:
Douglas H. Martin;J. Cordy

文献摘要

被引文献

相似文献

在过去十年中,已经开发出了几种用于检测软件中重复代码的工具和技术。然而,存在一类语言不太适合进行克隆检测。当我们试图使用克隆检测来查找用Web服务描述语言(WSDL)编写的服务描述中相似的Web服务操作时,我们发现了其中一种语言。WSDL的结构使得确定用于比较的单元成为一项挑战。WSDL服务描述包含一个或多个操作的规范,这些操作被分成若干部分,并在整个描述中相互交织。在本文中,我们描述了一种重新组织它们的方法,以便利用克隆检测技术来识别相似的服务。我们引入了上下文克隆的概念——只有通过用片段所引用的相关信息扩充代码片段以赋予其上下文才能找到的克隆。我们针对WSDL演示了这一概念,并提出了其他可能对上下文克隆感兴趣的语言和情况。
There are several tools and techniques developed over the past decade for detecting duplicated code in software. However, there exists a class of languages for which clone detection is ill-suited. We discovered one of these languages when we attempted to use clone detection to find similar web service operations in service descriptions written in the Web Service Description Language (WSDL). WSDL is structured in such a way that identifying units for comparison becomes a challenge. WSDL service descriptions contain specifications of one or more operations that are divided into pieces and intermingled throughout the description. In this paper, we describe a method of reorganizing them in order to leverage clone detection technology to identify similar services. We introduce the idea of contextual clones -- clones that can only be found by augmenting code fragments with related information referenced by the fragment to give it context. We demonstrate this idea for WSDL and propose other languages and situations for which contextual clones may be of interest.