Computer Engineering, Volume. 51, Issue 8, 74(2025)

API Usage Constraint Knowledge Construction Based on Large Language Model

LIU Genhao1, ZHANG Neng2、*, and ZHENG Zibin1
Author Affiliations
  • 1School of Software Engineering, Sun Yat-sen University, Zhuhai 519082, Guangdong, China
  • 2School of Computer Science, Central China Normal University, Wuhan 430079, Hubei, China
  • show less
    References(24)

    [1] [1] LIU M W, PENG X, MARCUS A, et al. Generating query-specific class API summaries[C]//Proceedings of the 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. New York, USA: ACM Press, 2019: 120-130.

    [2] [2] LI H W, LI S R, SUN J M, et al. Improving API caveats accessibility by mining API caveats knowledge graph[C]//Proceedings of the IEEE International Conference on Software Maintenance and Evolution (ICSME). Washington D.C., USA: IEEE Press, 2018: 183-193.

    [3] [3] REN X, YE X, XING Z, et al. API-misuse detection driven by fine-grained API-constraint knowledge graph[C]//Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering. Washington D.C., USA: IEEE Press, 2020: 461-472.

    [4] [4] ZHOU Y, WANG C Z, YAN X, et al. Automatic detection and repair recommendation of directive defects in Java API documentation[J]. IEEE Transactions on Software Engineering, 2020, 46(9): 1004-1023.

    [5] [5] ZHOU Y, YAN X, CHEN T L, et al. DRONE: a tool to detect and repair directive defects in Java APIs documentation[C]//Proceedings of the 41st IEEE/ACM International Conference on Software Engineering: Companion Proceedings (ICSE-Companion). Washington D.C., USA: IEEE Press, 2019: 115-118.

    [6] [6] DUAN S, GUANG Y, BU W J, et al. A survey of named entity disambiguation in entity linking[C]//Proceedings of the 3rd International Conference on Intelligent Communications and Computing (ICC). Washington D.C., USA: IEEE Press, 2023: 296-303.

    [7] [7] QIAO Z, ZHANG C, DU G. Improving cybersecurity named entity recognition with large language models[C]//Proceedings of the 6th International Conference on Software Engineering and Computer Science (CSECS). Washington D.C., USA: IEEE Press, 2023: 1-6.

    [8] [8] LIU Y, LIU M W, PENG X, et al. Generating concept based API element comparison using a knowledge graph[C]//Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering. New York, USA: ACM Press, 2020: 834-845.

    [9] [9] YIN H, ZHENG Y H, SUN Y C, et al. An API learning service for inexperienced developers based on API knowledge graph[C]//Proceedings of the IEEE International Conference on Web Services (ICWS). Washington D.C., USA: IEEE Press, 2021: 251-261.

    [10] [10] LIU M W, ZHAO C Y, PENG X, et al. Task-oriented ML/DL library recommendation based on a knowledge graph[J]. IEEE Transactions on Software Engineering, 2023, 49(8): 4081-4096.

    [11] [11] ZHOU C. Intelligent bug fixing with software bug knowledge graph[C]//Proceedings of the 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. New York, USA: ACM Press, 2018: 944-947.

    [12] [12] CHENG X Q, SUN X B, BO L L, et al. KVS: a tool for knowledge-driven vulnerability searching[C]//Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering. New York, USA: ACM Press, 2022: 1731-1735.

    [13] [13] LIU C W, CHEN S, FAN L L, et al. Demystifying the vulnerability propagation and its evolution via dependency trees in the NPM ecosystem[C]//Proceedings of the 44th International Conference on Software Engineering. New York, USA: ACM Press, 2022: 672-684.

    [14] [14] JIANG Y J, LIU H, JIN J H, et al. Automated expansion of abbreviations based on semantic relation and transfer expansion[J]. IEEE Transactions on Software Engineering, 2022, 48(2): 519-537.

    [15] [15] CHANG T Y, CHEN S Z, FAN G D, et al. A self-iteration code generation method based on large language models[C]//Proceedings of the 29th IEEE International Conference on Parallel and Distributed Systems (ICPADS). Washington D.C., USA: IEEE Press, 2023: 275-281.

    [16] [16] HUANG T, SUN Z H, JIN Z, et al. Knowledge-aware code generation with large language models[C]//Proceedings of the 32nd IEEE/ACM International Conference on Program Comprehension. New York, USA: ACM Press, 2024: 52-63.

    [17] [17] RAHMAN M T, SINGH R, SULTAN M Y. Automating patch set generation from code reviews using large language models[C]//Proceedings of the 3rd IEEE/ACM International Conference on AI Engineering—Software Engineering for AI. New York, USA: ACM Press, 2024: 273-274.

    [18] [18] LIU Z H, LIAO Q, GU W C, et al. Software vulnerability detection with GPT and in-context learning[C]//Proceedings of the 8th International Conference on Data Science in Cyberspace (DSC). Washington D.C., USA: IEEE Press, 2023: 229-236.

    [19] [19] LI Y, GUO J. Research on program automatic repair method combining context optimization strategy and large language models[C]//Proceedings of the 4th International Symposium on Computer Technology and Information Science. Washington D.C., USA: IEEE Press, 2024: 26-34.

    [20] [20] BO L L, HE Y T, SUN X B, et al. A software bug fixing approach based on knowledge-enhanced large language models[C]//Proceedings of the 24th IEEE International Conference on Software Quality, Reliability and Security (QRS). Washington D.C., USA: IEEE Press, 2024: 169-179.

    [21] [21] QI F, HOU Y, LIN N, et al. A survey of testing techniques based on large language models[C]//Proceedings of 2024 International Conference on Computer and Multimedia Technology. New York, USA: ACM Press, 2024: 280-284.

    [22] [22] HOFFMANN J, FRISTER D. Generating software tests for mobile applications using fine-tuned large language models[C]//Proceedings of the 5th ACM/IEEE International Conference on Automation of Software Test (AST 2024). New York, USA: ACM Press, 2024: 76-77.

    [23] [23] WU L X, ZHAO Y J, HOU X Y, et al. ChatGPT chats decoded: uncovering prompt patterns for superior solutions in software development lifecycle[C]//Proceedings of the 21st International Conference on Mining Software Repositories. New York, USA: ACM Press, 2024: 142-146.

    [24] [24] SURI S, DAS S N, SINGI K, et al. Software engineering using autonomous agents: are we there yet?[C]//Proceedings of the 38th IEEE/ACM International Conference on Automated Software Engineering (ASE). Washington D.C., USA: IEEE Press, 2023: 1855-1857.

    Tools

    Get Citation

    Copy Citation Text

    LIU Genhao, ZHANG Neng, ZHENG Zibin. API Usage Constraint Knowledge Construction Based on Large Language Model[J]. Computer Engineering, 2025, 51(8): 74

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category:

    Received: Nov. 18, 2024

    Accepted: Aug. 26, 2025

    Published Online: Aug. 26, 2025

    The Author Email: ZHANG Neng (nengzhang@ccnu.edu.cn)

    DOI:10.19678/j.issn.1000-3428.0070623

    Topics