Software project knowledge graph automatic construction method and system
A technology of software project and knowledge map, which is applied in the field of automatic construction of software project knowledge map, can solve the problems of isolated information islands, inability to organize effectively, and waste of energy for reusers, etc., and achieve the effect of strong scalability and wide application range
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] In this embodiment, the user needs to build a software project knowledge graph including source code, question-and-answer documents related vertices and associations, and the software project uses the open source project Apache Lucene. The specific implementation steps are as follows:
[0053] 1) Prepare the original data required for knowledge map generation. Generating such a knowledge map requires a version of Apache Lucene's complete source code and StackOverflow file archives;
[0054] 2) Insert the data analysis plug-in. In this step, data analysis is performed on the source code and the question-and-answer document, which are specifically divided into source code analysis plug-ins and question-and-answer document analysis plug-ins.
[0055] The source code parsing plug-in analyzes the source code written in Java to obtain such figure 2 The shown code structure diagram, and stores the entities and association relationships in the structure diagram into the grap...
Embodiment 2
[0069] In this embodiment, the user needs to extract new "code-question-answer document association" knowledge from a basic knowledge graph that already contains source code vertices and question-answer document vertices, thereby constructing a new software project knowledge graph. Specific steps are as follows:
[0070] 1) Prepare the basic knowledge map for knowledge refinement. This example uses the knowledge map generated in Example 1.
[0071] 2) Insert the knowledge extraction plug-in. In this embodiment, it is necessary to insert the "code element tracking association plug-in in the question-and-answer document".
[0072] Specific steps are as follows:
[0073] 2-1) Use the name attribute of the code element (class, method, interface) in the source code to establish the index of the code element vertex in the graph database;
[0074] 2-2) Traversing the vertices of the Q&A document in the graph database, if the text content of the vertex contains an indexable code el...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com