Definition of conceptual classes of the model of the subject area based on the selection of nouns
DOI: 10.31673/2412-9070.2022.045053
DOI:
https://doi.org/10.31673/2412-9070.2022.045053Abstract
The main component of object-oriented analysis or research is the decomposition of the problem into separate classes of concepts (conceptual classes) or objects. A domain model is a visual representation of conceptual classes or real-world objects in terms of the domain. The main problem of building a domain model is the definition of conceptual classes. There are three ways to define conceptual classes: reusing or modifying existing models; using a list of categories of conceptual classes; based on the selection of nouns. This article discusses the third way, namely the definition of conceptual classes based on noun extraction. The selection of nouns is carried out according to textual descriptions of the subject area and their selection as candidates for conceptual classes or attributes. An approach is proposed for defining classes and attributes by representing nouns through objects and establishing relationships between them. In the description of the subject area: Student Serhii Serhienko studies in the PD-31 group. Student Petro Petrenko studies in the PD-31 group. Student Serhii Petrenko studies in the PD-32 group. Let’s select the nouns and combine them into collections with the definition of id: collection of the type FirstName: 1 Serhiy; 2 Peter; collection of type LastName: 1 Serhienko; 2 Petrenko; collection of type NameGroup: 1 PD-31; 2 PD-32; collection of type NameType: 1 Student; 2 Group. The description of the subject area can be presented in two tables. The columns of the first are: Id, TypeName, GroupName. Columns of the second: Id, TypeName, FirstName, LastName, GroupId. The first table can be converted into a conceptual class NameClass with attributes typeName : Type-Name and groupName : GroupName, and the second table into a conceptual class FirstNameLastNameClass with attributes typeName: TypeName, firstName : FirstName, lastName : LastName. The relationship between them is one-to-many. The following algorithm for implementing the method for defining conceptual classes based on noun extraction is proposed: 1. Selection of nouns into objects; 2. Definition of the types of these objects; 3. Combining objects into collections; 4. Definition of classes; 5. Definition of relations between classes with the definition of classes that implement these relations; 6. Combining classes into conceptual classes with the definition of relationships between conceptual classes. Conclusions: 1. An algorithm for the implementation of the method of defining conceptual classes based on the selection of nouns has been developed. 2. Implementation of the proposed algorithm to relevant applications will provide an opportunity to process text descriptions of the subject area and determine the subject area.
The purpose of the study: solving the problem of building a domain model, and specifically the definition of conceptual classes based on the selection of nouns.
Task: to develop an algorithm for implementing a method for determining conceptual classes based on the selection of nouns.
Keywords: object-oriented analysis, domain model, conceptual classes, objects, attributes.
References
1. Ларман К. Застосування UML 2.0 та шаблонів проектування: практ. керівництво. Вид. 2-ге / пер. з англ. М.: ТОВ «В.Д. Вільямс», 2013. 736 с.
2. Онлайн редактор мови моделювання UML: інформ. сторінка [Електронний ресурс]. URL: http://www.umletino.com/umletino.html (дата звернення: 15.01.2023).
3. The Unified Modeling Language [Електронний ресурс]. URL: https://https://www.uml-diagrams.org/ (дата звернення: 15.01.2023).