AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
Article Link
Collect
Submit Manuscript
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Regular Paper

Graph Embedding Based API Graph Search and Recommendation

Key Laboratory of High Confidence Software Technologies, Ministry of Education, Beijing 100871, China
School of Electronics Engineering and Computer Science, Peking University, Beijing 100871, China

A preliminary version of the paper was published in the Proceedings of Internetware 2018.

Show Author Information

Abstract

Searching application programming interfaces (APIs) is very important for developers to reuse software projects. Existing natural language based API search mainly faces the following challenges. 1) More accurate results are required as software projects evolve to be more heterogeneous and complex. 2) The semantic relationships between APIs (e.g., inheritances between classes, and invocations between methods) need to be illustrated so that developers can better understand their usage scenarios. To deal with these issues, we propose GeAPI, a novel graph embedding based approach for API graph search and recommendation in this paper. First, we build a software project’s API graph automatically from its source code and represent each API using graph embedding methods. Second, we search the API graph with a question in natural language, and return the corresponding subgraph that is composed of relevant code elements and their associated relationships, as the best answer of the question. In experiments, we select three well-known open source projects, JodaTime, Apache Lucene and POI, as examples to perform API search tasks. The experimental results show that our approach GeAPI improves F1-score by 10% compared with the existing shortest path based API search approach, while reduces the average response time about 60 times.

Electronic Supplementary Material

Download File(s)
jcst-34-5-993-Highlights.pdf (497.5 KB)
jcst-34-5-993_ESM.pdf (497.5 KB)

References

【1】
【1】
 
 
Journal of Computer Science and Technology
Pages 993-1006

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
Ling C-Y, Zou Y-Z, Lin Z-Q, et al. Graph Embedding Based API Graph Search and Recommendation. Journal of Computer Science and Technology, 2019, 34(5): 993-1006. https://doi.org/10.1007/s11390-019-1956-2

1011

Views

23

Crossref

N/A

Web of Science

20

Scopus

1

CSCD

Received: 26 February 2019
Revised: 12 July 2019
Published: 06 September 2019
©2019 Springer Science + Business Media, LLC & Science Press, China