A novel knowledge graph embedding based API recommendation method for Mashup development

被引:37
|
作者
Wang, Xin [1 ]
Liu, Xiao [2 ]
Liu, Jin [1 ,3 ]
Chen, Xiaomei [4 ]
Wu, Hao [4 ]
机构
[1] Wuhan Univ, Sch Comp Sci, Wuhan, Peoples R China
[2] Deakin Univ, Sch Informat Technol, Geelong, Vic, Australia
[3] Chinese Acad Sci, Inst Informat Engn, Key Lab Network Assessment Technol, Beijing, Peoples R China
[4] Yunnan Univ, Sch Informat Sci & Engn, Kunming, Yunnan, Peoples R China
基金
中国国家自然科学基金;
关键词
Web API recommendation; Mashup development; Deep random walk; Knowledge graph; Graph embedding; WEB;
D O I
10.1007/s11280-021-00894-3
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Web API is an efficient and cost-effective method for service-oriented software development, and Mashup is a popular technology which combines multiple services to create more powerful services to address the increasing complexity of business requirements and speed up the software development process. Here, accurate and efficient API recommendation is vital for successful Mashup development. Currently, many existing methods combine various technologies and adopt diverse features, which results in complex models at the cost of higher computational overhead but with very limited improvement on recommendation accuracy. To address such an issue, in this paper, we propose an unsupervised API recommendation method based on deep random walks on knowledge graph. Specifically, we first construct a refined knowledge graph utilizing Mashup-API co-invocation patterns and service category attributes, and then we learn implicit low-dimensional embedding representations of entities from truncated random walks by treating walks as the equivalent of sentences. Meanwhile, to improve the recommendation accuracy, we design an entity bias procedure to reflect different entity preference (namely API-based neighborhood or Mashup-based neighborhood). Finally, we estimate the relevance between Mashup requirements and the existing services (Mashups and APIs) to obtain the API recommendation list. Since the API recommendation results can be obtained through unsupervised feature learning, automatic API recommendation can be provided for Mashup developers in real time. Comprehensive experimental results on a real-world dataset demonstrate that our proposed method can outperform several state-of-the-art methods in both recommendation accuracy and efficiency.
引用
收藏
页码:869 / 894
页数:26
相关论文
共 50 条
  • [21] A novel malware detection method based on API embedding and API parameters
    Bo Zhou
    Hai Huang
    Jun Xia
    Donghai Tian
    The Journal of Supercomputing, 2024, 80 : 2748 - 2766
  • [22] Recurrent Knowledge Graph Embedding for Effective Recommendation
    Sun, Zhu
    Yang, Jie
    Zhang, Jie
    Bozzon, Alessandro
    Huang, Long-Kai
    Xu, Chi
    12TH ACM CONFERENCE ON RECOMMENDER SYSTEMS (RECSYS), 2018, : 297 - 305
  • [23] A novel malware detection method based on API embedding and API parameters
    Zhou, Bo
    Huang, Hai
    Xia, Jun
    Tian, Donghai
    JOURNAL OF SUPERCOMPUTING, 2024, 80 (02): : 2748 - 2766
  • [24] A Cloud API Personalized Recommendation Method Based on Multiple Attribute Features and Mashup Requirement Attention
    Shen, Limin
    Wang, Yuying
    Li, Chengyu
    Chen, Zhen
    IEEE ACCESS, 2025, 13 : 13285 - 13299
  • [25] Similarity and Complementarity Attention-Based Graph Neural Networks for Mashup-Oriented Cloud API Recommendation
    Shen, Limin
    Wang, Yuying
    Zhang, Shuai
    Chen, Zhen
    ELECTRONICS, 2023, 12 (21)
  • [26] Context-Aware Service Recommendation Based on Knowledge Graph Embedding
    Mezni, Haithem
    Benslimane, Djamal
    Bellatreche, Ladjel
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2022, 34 (11) : 5225 - 5238
  • [27] Knowledge graph-based recommendation system enhanced by neural collaborative filtering and knowledge graph embedding
    Shokrzadeh, Zeinab
    Feizi-Derakhshi, Mohammad-Reza
    Balafar, Mohammad -Ali
    Mohasefi, Jamshid Bagherzadeh
    AIN SHAMS ENGINEERING JOURNAL, 2024, 15 (01)
  • [28] Paper Recommendation Based on Academic Knowledge Graph and Subject Feature Embedding
    Li K.
    Niu Z.
    Shi K.
    Qiu P.
    Data Analysis and Knowledge Discovery, 2023, 7 (05) : 48 - 59
  • [29] A Personalized Recommendation System based on Knowledge Graph Embedding and Neural Network
    Wang, Penghua
    Li, Xiaoge
    Du, Feihong
    Liu, Huan
    Zhi, Shuting
    2019 3RD INTERNATIONAL CONFERENCE ON DATA SCIENCE AND BUSINESS ANALYTICS (ICDSBA 2019), 2019, : 161 - 165
  • [30] Mercem: Method Name Recommendation Based on Call Graph Embedding
    Yonai, Hiroshi
    Hayase, Yasuhiro
    Kitagawa, Hiroyuki
    2019 26TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC), 2019, : 134 - 141