Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Dependent component information extraction method and device and computer readable storage medium

A technology that depends on components and component information. It is applied in software maintenance/management, version control, etc., and can solve problems such as inconvenient extraction of dependent tree structures.

Pending Publication Date: 2021-04-27
苏州棱镜七彩信息科技有限公司
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a dependent component information extraction method, device, and computer-readable storage medium to solve the problem in the prior art that the dependent tree structure obtained by using commands is not easy to extract

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dependent component information extraction method and device and computer readable storage medium
  • Dependent component information extraction method and device and computer readable storage medium
  • Dependent component information extraction method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0034] The embodiment of the first aspect of the present invention proposes a method for extracting dependent component information, such as figure 1 shown, including:

[0035] S1, obtaining a list of package manager configuration files to be detected;

[0036] S2. For each configuration file in the configuration file list, intercept the relevant dependency declaration part of the text segment, and use a regular expression to match, so as to o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a dependent component information extraction method and device and a computer readable storage medium. The dependent component information extraction method comprises the steps of obtaining a to-be-detected package manager configuration file list; for each configuration file in the configuration file list, intercepting a part of text segments related to the dependency declaration, and performing matching by using a regular expression to obtain component information of a component directly dependent on the configuration file; based on the component information of the direct dependent component, obtaining the component information of the indirect dependent component by searching a component dependent knowledge base; and displaying the component information of the direct dependent component and the component information of the indirect dependent component. By the adoption of the invention, text analysis depending on the configuration file can be achieved, dependence constraints such as a local private warehouse environment and a network environment are eliminated, constraints of analysis commands of an existing package manager are eliminated, the dependence relation of components can be completely analyzed, and the hierarchical structure of a project module can be completely analyzed.

Description

technical field [0001] The present invention relates to the technical field of computer software, in particular to a dependent component information extraction method, device and computer-readable storage medium. Background technique [0002] Recently, with the increasing use of open source software, the use of open source components in system development has become popular. In 2019, the Github report pointed out that more than 3.6 million open source projects rely on one of the Top50 open source projects, and well-known projects such as rails / rails, facebook / jest, axios / axios are used by millions of other open source projects. At the same time, open source projects have an average of 180 third-party dependent components, and the number of specific dependent components varies from a few to thousands. There are many advantages to relying on components, such as the source code being freely available and modifiable. In fact, many OSS (OpenSource Software) components have high...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/71
CPCG06F8/71
Inventor 唐忱但吉兵罗敏梁大功易焕腾
Owner 苏州棱镜七彩信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products