Beta
264660

Source Code Generation-based on NLP and Ontology

Article

Last updated: 22 Jan 2023

Subjects

-

Tags

-

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.

DOI

10.21608/ijicis.2022.117905.1160

Keywords

Automatic Programming, source code genration, natural language processing, Ontological Engneering, knowledge Engineering

Authors

First Name

anas

Last Name

alokla

MiddleName

hamid

Affiliation

computer science / FCIS - Ain Shams University

Email

anasaloklahaaa@gmail.com

City

-

Orcid

-

First Name

Walaa

Last Name

Gad

MiddleName

-

Affiliation

Information Systems Department, Faculty of Computer and Information Sciences, Ain Shams University, Cairo, Egypt

Email

walaagad@cis.asu.edu.eg

City

cairo

Orcid

0000-0002-7816-3518

First Name

M

Last Name

Aref

MiddleName

-

Affiliation

Department Computer Science, Faculty of Computer and Information Sciences,Ain Shams University, Cairo, Egypt.

Email

mostafa.aref@cis.asu.edu.eg

City

-

Orcid

0000-0002-1278-0070

First Name

Abdel-Badeeh

Last Name

Salem

MiddleName

M.

Affiliation

Computer Sciece Department, Faculty of Computer and Information Sciences, Ain Shams University

Email

absalem@cis.asu.edu.eg

City

-

Orcid

0000-0001-5013-4339

Volume

22

Article Issue

4

Related Issue

38482

Issue Date

2022-12-01

Receive Date

2022-01-23

Publish Date

2022-12-01

Page Start

1

Page End

12

Print ISSN

1687-109X

Online ISSN

2535-1710

Link

https://ijicis.journals.ekb.eg/article_264660.html

Detail API

https://ijicis.journals.ekb.eg/service?article_code=264660

Order

1

Type

Original Article

Type Code

494

Publication Type

Journal

Publication Title

International Journal of Intelligent Computing and Information Sciences

Publication Link

https://ijicis.journals.ekb.eg/

MainTitle

-

Details

Type

Article

Created At

22 Jan 2023