当前位置:主页 > 科技论文 > 软件论文 >

一种基于图数据库的代码结构解析与搜索方法

发布时间:2018-05-28 21:25

  本文选题:代码结构 + 图数据库 ; 参考:《计算机研究与发展》2016年03期


【摘要】:软件复用是在软件开发中避免重复劳动的解决方案.在复用一个已有的软件项目时,软件开发人员通常需要理解某些代码元素以及其间的关联关系,称之为代码结构.软件开发人员一般通过浏览软件源代码的方式理解代码结构.由于源代码往往规模较大且结构复杂,理解代码结构通常会耗费大量的时间与精力.因此,将软件开发人员想要理解的代码结构自动、清晰地展示出来是很有帮助的.提出一种基于图数据库的代码结构解析与搜索方法以实现这一目的.这一方法可对软件的代码结构进行解析,并在图数据库中对其进行有效的组织和管理.搜索时,软件开发人员输入自然语言查询语句,该方法中的搜索机制会分析查询语句,并从图数据库中截取出与其相对应的代码结构进行展示.该方法具有高度的可扩展性:不同粒度的结点与多样化的关联关系可以容易地存储进图数据库中,且面向不同搜索目的的代码结构搜索算法亦可以容易地集成进搜索机制中.这一方法已在相应的工具中得到了实现,其有效性在一个商业案例研究中得到了验证.
[Abstract]:Software reuse is a solution to avoid duplication of effort in software development. When reusing an existing software project, software developers usually need to understand some code elements and their relationships, which are called code structures. Software developers generally understand the structure of code by browsing through the source code of the software. Because the source code is often large and complex, understanding the code structure usually takes a lot of time and effort. Therefore, it is helpful to automatically and clearly display the code structure that software developers want to understand. A method of code structure parsing and searching based on graph database is proposed to achieve this purpose. This method can parse the code structure of the software and organize and manage it effectively in the graph database. When searching, the software developer inputs the natural language query statement, the search mechanism in this method will analyze the query statement, and intercept the corresponding code structure from the graph database to display. The method is highly extensible: different granularity nodes can be easily stored in the graph database and code structure search algorithms for different search purposes can be easily integrated into the search mechanism. This method has been implemented in the corresponding tools, and its effectiveness has been verified in a business case study.
【作者单位】: 北京大学信息科学技术学院;高可信软件技术教育部重点实验室(北京大学);
【基金】:国家“八六三”高技术研究发展计划基金项目(2013AA01A605) 国家自然科学基金项目(61472007)~~
【分类号】:TP311.52

【相似文献】

相关期刊论文 前10条

1 刘春燕;沈玉兰;;ISO 3166代码结构及应用分析[J];信息技术与标准化;2009年07期

2 孔祥焰;罗桂娥;;基于JPEG2000的Kakadu开源代码结构和移植性分析[J];现代电子技术;2009年12期

3 谢静,李琳;代码结构中的校验位[J];四川经济管理学院学报;2000年02期

4 孙伟杰;张晓欣;毕嘉鸿;;C程序代码结构审查算法的研究与实现[J];无线电通信技术;2013年03期

5 张晓欣;孙伟杰;;C程序代码结构自动审查方法研究[J];通信技术;2013年04期

6 王梅;罗秋明;;PVFS代码结构及并行Meta服务研究[J];微计算机信息;2006年16期

7 张根宝;杨峰;田泽;万永波;;Windows CE.NET系统下Eboot开发[J];测控技术;2007年07期

8 赵昱川;IE病毒的防范[J];信阳农业高等专科学校学报;2005年01期

9 赖翔飞;杨社堂;;CC 目标高效的几个关键因素[J];计算机应用与软件;1988年01期

10 吴暾华;;面向电子商务专业的《操作系统》实验教学探索[J];商场现代化;2012年11期

相关重要报纸文章 前1条

1 ;《动物射频识别 代码结构》国家标准12月1日实施[N];计算机世界;2006年

相关硕士学位论文 前2条

1 钱吟;智能手机平台的GUI设计与代码结构优化技术研究[D];上海交通大学;2008年

2 刘雪冰;面向代码结构的软件模块能耗评估方法[D];东北大学;2014年



本文编号:1948246

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/1948246.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户13b70***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com