近年来,软件开发模式逐渐从经验驱动的手工构造模式到知识驱动的自动生成模式进行转换,而在知识驱动的软件开发过程中,QA工具可以帮助开发人员更好地理解项目源代码。一般的,开发人员往往需要阅读大量文档、并对软件项目代码进行静态分析,利用某种形式化的查询方法才能获取软件项目的相关信息,这增加了软件开发的时间成本和学习成本。基于该问题,实现了一个基于本体的软件开发知识QA工具OKQA,OKQA可以支持开发人员的自然语言查询输入,帮助开发人员找到理解软件代码的相关答案,从而有效地指导开发人员理解及复用软件代码。
In recent years, software development pattern has gradually transformed from experience-driven to knowledge-driven. While in the process of knowledge-driven software development, Q&A tool can help developers understand source code much better. Generally, developers have to use static code analysis method to parse the project and use some specific query language to get some useful information. It is time consuming and learning cost is high. An Ontology based software development Knowledge Question Answering tool (OKQA) is implemented; OKQA supports natural language queries comprehension and helps developers to get through to the project more intuitively so as to make software development more easily and effectively.