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

An API knowledge graph construction method based on a reference document

A knowledge map and construction method technology, applied in the field of software engineering and intelligent software development, can solve the problems of inability to obtain targeted knowledge services, lack of API knowledge base to provide support, etc.

Active Publication Date: 2019-05-10
FUDAN UNIV
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When developers look for and understand the required API or hope to find solutions to API-related problems, they can only obtain scattered information through various channels, and cannot obtain targeted knowledge services
At the same time, relevant software development tools also lack API-related knowledge bases to provide support when completing automated tasks such as code understanding and code recommendation.

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
  • An API knowledge graph construction method based on a reference document

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The following describes the present invention further for the construction of the API knowledge graph of JDK 1.8 and Android API 27.

[0036] (1) Structural knowledge extraction of API elements. Use the Python library Scrapy to automatically crawl the JDK 1.8 and Android API 27 reference documents in the form of web pages, and then use the Python library Beautiful Soup to implement a web page wrapper that parses the API reference documents to extract the structural knowledge of API elements.

[0037](2) Automatic classification of API descriptive sentences. Use the Python library Beautiful Soup to convert the description text in HTML format into a plain text description, and use the Python library Spacy to perform text preprocessing such as part-of-speech tagging, stemming, sentence component analysis, and dependency tree analysis. Then use the open source tool Word2Vec provided by Google to train the word vector, and the trained model chooses the CBOW (Continuous Bag-...

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 belongs to the technical field of software engineering and intelligent software development, and particularly relates to an API knowledge graph construction method based on a reference document. The method comprises the steps that a basic skeleton structure of an API element is obtained through document structure analysis, and function description and use mode description are recognized by automatically classifying sentences in descriptive content of the API element; performing common concept identification and linking among the description information of different API elements to realize internal knowledge fusion; and performing concept linkage between the common concept in the API element description information and the related technical concepts in the general knowledge graph to realize external knowledge fusion. The constructed API knowledge graph comprises API packets, classes, interfaces, methods, attributes, abnormalities, method parameters, return values and relations among the elements. According to the constructed API knowledge graph, intelligent applications such as API knowledge semantic query, automatic question answering, auxiliary code understanding andcode recommendation are supported through structured knowledge representation.

Description

technical field [0001] The invention belongs to the technical field of software engineering and intelligent software development, and in particular relates to a method for constructing an API knowledge map. Background technique [0002] Knowledge Graph was officially proposed by Google in 2012. Its original intention was to improve the capabilities of search engines and improve users' search quality and experience. The knowledge graph describes various entities, concepts and their relationships in the real world in the form of graphs, thus providing a knowledge base for information processing. There are already some large-scale general knowledge graphs, such as FreeBase, Yogo, Wikidata, etc. In the fields of finance, e-commerce, and medical care, a large number of domain knowledge graphs have also been generated to support industry applications such as fraud detection, e-commerce control, and decision-making assistance. Knowledge graphs have become one of the key technolog...

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): G06F16/36G06F16/35
CPCY02D10/00
Inventor 彭鑫刘名威赵文耘
Owner FUDAN UNIV
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