Source Code Generation-based on NLP and Ontology

alokla, anas and Gad, Walaa and Aref, M and Salem, Abdel-Badeeh (2022) Source Code Generation-based on NLP and Ontology. International Journal of Intelligent Computing and Information Sciences, 22 (4). pp. 1-12. ISSN 2535-1710

[thumbnail of IJICIS_Volume 22_Issue 4_Pages 1-12.pdf] Text
IJICIS_Volume 22_Issue 4_Pages 1-12.pdf - Published Version

Download (473kB)

Abstract

Generating source code is necessary especially as software evolves in complexity and demand. Finding a mechanism to generate the source code according to the requirements will save time for developers at the stage of development of the software. In this paper, a mechanism is proposed to generate the source code based on the database schema and user requirements (user story). This model contains three layers: The first layer is to analyze each of the database schema, extract the relationships between the tables, determine the meanings of the fields and analyze the user’s story to find the functions performed by each role of the software users. The second layer is deducing new functions based on what was mentioned in the first layer and extracting the knowledge that contains the solutions to the problems that are inferred. The knowledge bases used are WordNet and Backend Ontology built from scratch. In the third Layer, the solutions are converted to source code based on templates extracted from the knowledge and configured, that is applied to the templates. The model showed success in generating the source code, generating PHP source code for a site that is tested and generated seventy percent of what was required to be written by programmers.

Item Type: Article
Subjects: STM Library Press > Computer Science
Depositing User: Unnamed user with email support@stmlibrarypress.com
Date Deposited: 30 Jun 2023 05:13
Last Modified: 08 Jun 2024 08:01
URI: http://journal.scienceopenlibraries.com/id/eprint/1680

Actions (login required)

View Item
View Item