KR100309670B1 - System for converting schema of case model information - Google Patents

System for converting schema of case model information Download PDF

Info

Publication number
KR100309670B1
KR100309670B1 KR1019970058570A KR19970058570A KR100309670B1 KR 100309670 B1 KR100309670 B1 KR 100309670B1 KR 1019970058570 A KR1019970058570 A KR 1019970058570A KR 19970058570 A KR19970058570 A KR 19970058570A KR 100309670 B1 KR100309670 B1 KR 100309670B1
Authority
KR
South Korea
Prior art keywords
model
information
case
schema
class
Prior art date
Application number
KR1019970058570A
Other languages
Korean (ko)
Other versions
KR19990038733A (en
Inventor
박현민
이선미
정효택
Original Assignee
오길록
한국전자통신연구원
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 오길록, 한국전자통신연구원 filed Critical 오길록
Priority to KR1019970058570A priority Critical patent/KR100309670B1/en
Publication of KR19990038733A publication Critical patent/KR19990038733A/en
Application granted granted Critical
Publication of KR100309670B1 publication Critical patent/KR100309670B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Abstract

PURPOSE: A system for converting a schema of CASE(computer Aided software Engineering) model information is provided to store the CASE model in a relational database after converting the CASE model into a relational database schema by using a mapping rule between a model of tool having different paradigm and a relational database schema. CONSTITUTION: The method comprises the steps of reconfiguring each CASE model into an integrated meta-model based on the class and relationship between classes after converting each CASE tool into an object model consisting of object and relationship, converting the class of each model into a schema according to the conversion rule by obtaining the class table generating information from the meta-model information(65) in case that the meta-model information is about the object(64) and generating a class table for CASE model information(68), and converting the table generating information into a schema according to the relationship conversion rule by obtaining the table generating information from the meta-model information(71) in case of a meta-relation(70) and generating a relationship table for CASE model information(72).

Description

씨에이에스이 모형정보 스키마 변환 시스템CS Model Information Schema Transformation System

본 발명은 CASE(Computer Aided Software Engineering) 도구 모형 정보의 관계형 스키마 변환 시스템에 관한 것으로, 상세하게는 객체지향 재공학 소프트웨어 개발지원도구(RESORT)의 하부시스템인 정보저장소(RESORT/D)의 효과적인 운용을 위하여 상기 CASE 도구에서 사용되는 모형정보를 관계형 패러다임을 갖는 데이터베이스 스키마로 변환하여 모형정보 체계의 운용성 및 상호운용성을 증대시키게 한 것이다.The present invention relates to a relational schema conversion system of computer-aided software engineering (CASE) tool model information. For this purpose, the model information used in the CASE tool is converted into a database schema having a relational paradigm to increase the operability and interoperability of the model information system.

상기 CASE 도구에서 사용되는 데이터는 모형(Model)이다. CASE 도구란 소프트웨어 개발의 전 과정, 분석, 설계, 구현에 걸친 전 과정을 컴퓨터가 지원하는 것이다. 사용자는 분석에 사용되는 모형, 설계에 사용되는 모형 등을 이용하여 소프트웨어의 개발을 보다 편리하게 할 수 있다. 모형에 관한 정보를 메타 데이터라고 한다. 즉 메타 데이터는 데이터에 대한 데이터로서 데이터를 설명하고 정의하는 데이터이다. 정보저장소는 이 메타 데이터를 저장하고 관리하는 기능을 가지고 있다.The data used in the CASE tool is a model. A CASE tool is a computer that supports the entire process of software development, analysis, design, and implementation. The user can make software development more convenient by using the model used for analysis and the model used for design. Information about the model is called metadata. That is, metadata is data for describing and defining data as data about data. Information repositories have the ability to store and manage this metadata.

따라서 정보저장소는 이 모형에 관한 정보들을 물리적인 정보저장소에 저장하고, 모형에 관한 정보를 가지고 있으면서 CASE 도구가 원하는 정보를 조회할 수 있도록 지원한다.Therefore, the information store stores the information about the model in the physical information store and supports the CASE tool to retrieve the desired information while having the information about the model.

상기 객체지향 재공학 소프트웨어 개발지원도구(RESORT)는 기존에 개발된 시스템(Legacy System)의 원시코드를 분석하여 이를 설계정보로 나타내고, 설계정보를 객체지향 패러다임을 지원하는 객체로 재구성하여 새로운 시스템을 생성하는 객체지향 재공학 소프트웨어이며, 상기 정보저장소(RESORT/D)는 기존 시스템의 설계 정보 및 재구성한 객체지향 설계정보 등 패러다임이 각기 다른 설계정보를 통합된 모형으로 재구성하여 보관하며, 도구가 원하는 형태로 가공하여 제공하는 역할을 한다.The object-oriented reengineering software development support tool (RESORT) analyzes the source code of the previously developed system (Legacy System) and displays it as design information, and reconstructs the design information into objects supporting the object-oriented paradigm to construct a new system. It is an object-oriented reengineering software to create, and the information repository (RESORT / D) is to reconstruct and store the design information of different paradigms such as the design information of the existing system and the reorganized object-oriented design information into an integrated model, and the tool desired It serves to process and provide form.

그런데 CASE도구들은 지원하는 방법론 및 표기법에 따라 각기 다른 모형들을 사용한다. 또한 CASE 모형정보와 데이터베이스의 패러다임이 다르므로 정보저장소는 CASE 모형들에 관한 정보를 데이터베이스의 패러다임에 맞는 스키마로 변환하여 저장하여야 한다. 서로 다른 패러다임을 갖는 모형과 데이터베이스 스키마의 사상(mapping)을 위해서는 각기 다른 패러다임에 대한 이해와 모형정보의 이해 등 많은 노력과 시간이 소요되는 문제점이 있다.However, CASE tools use different models depending on the methodology and notation they support. In addition, since the paradigm of CASE model information and database is different, information repository should convert information about CASE models into schema suitable for database paradigm. In order to map models and database schemas with different paradigms, there is a problem that requires a lot of effort and time, such as understanding different paradigms and understanding model information.

상술한 바와 같이 소프트웨어 개발과정을 지원하는 CASE 도구들은 각각 지원하는 방법론과 그 방법론을 지원하는 패러다임이 다르며, 방법론에 따라 각기 다른 모형들을 제공한다. 정보저장소는 이 모형들로부터 통합된 메타 모형(Integrated Meta Model)을 만들어 이를 데이터베이스에 저장한다. 데이터베이스에 저장하기 위해서 CASE 도구들에서 제공하는 모형과 메타 모형은 데이터베이스의 구조에 맞는 스키마로 변환되어야 한다. 이에 상이한 패러다임을 갖는 메타모형의 관계형 데이터베이스 스키마 변환을 목적으로 하는 CASE 모형정보 스키마 변환 시스템이 필요하다.As described above, the CASE tools supporting the software development process have different methodologies and paradigms supporting the methodologies, and provide different models according to the methodologies. Information repositories create an Integrated Meta Model from these models and store it in a database. To be stored in the database, the model and metamodels provided by the CASE tools must be converted into a schema that matches the structure of the database. In this regard, a CASE model information schema transformation system for meta-model relational database schema transformation with different paradigms is required.

또한 CASE 모형정보 스키마 변환 시스템을 효과적으로 운용하기 위해서는 여러 가지 요소들이 구비되어야 한다. 먼저, CASE 모형정보를 관계형 패러다임을 갖는 데이터베이스에 맞는 스키마로 사상(mapping) 시킬 수 있는 형태로 변환시켜야 한다. 이를 위해서 CASE 모형정보에 대한 스키마 변환기가 요구된다. 또한 이 변환기를 위한 스키마 사상(mapping)에 대한 규칙(Rule)이 필요하다. 이를 만족시키기 위하여 CASE 모형 정보 스키마 변환 시스템에서는 스키마 사상에 대한 규칙을 이용한 CASE 모형 정보 스키마 변환기가 필요하다.In addition, in order to effectively operate the CASE model information schema transformation system, various elements must be provided. First, CASE model information should be converted into a form that can be mapped into a schema suitable for a database having a relational paradigm. To this end, a schema converter for CASE model information is required. You also need a rule for schema mapping for this converter. In order to satisfy this problem, the CASE model information schema transformation system requires a CASE model information schema converter using rules for schema mapping.

따라서 본 발명은 전술한 바와 같은 종래 CASE 정보저장소의 문제점을 개선하기 위해 상이한 패러다임을 갖는 도구의 모형과 관계형 데이터베이스 스키마 사이의 사상(mapping)에 대한 규칙을 이용하여 CASE 모형을 관계형 데이터베이스 스키마로 변환하여 관계형 데이터베이스에 저장할 수 있는 CASE 모형정보 스키마 변환 시스템을 제공함을 그 목적으로 한다.Accordingly, the present invention converts a CASE model into a relational database schema by using rules for mapping between a model of a tool having a different paradigm and a relational database schema to improve the problems of the conventional CASE information repository as described above. Its purpose is to provide a CASE model information schema transformation system that can be stored in a relational database.

제1도는 본 발명에 의한 CASE 모형 정보 스키마 변환시스템을 포함하는 정보 저장소(RESORT/D)의 전체적인 구성도.1 is an overall configuration diagram of an information repository (RESORT / D) including a CASE model information schema transformation system according to the present invention.

제2도는 본 발명이 적용되는 정보저장소내에서 스키마 변환되는 CASE 모형정보의 구성도.2 is a block diagram of CASE model information that is schema transformed in an information repository to which the present invention is applied.

제3도는 본 발명에서 제안하는 클래스 변환규칙 및 관계 변환규칙에 의하여 CASE 모형정보가 스키마 변환되는 것을 보여주는 전체 블록도.3 is a block diagram illustrating schema conversion of CASE model information according to a class conversion rule and a relationship conversion rule proposed in the present invention.

제4도는 본 발명에 의한 CASE 모형정보의 관계형 데이터베이스 스키마 변환을 위한 처리 흐름도.4 is a flowchart illustrating a relational database schema transformation of CASE model information according to the present invention.

<도면의 주요부분에 대한 부호의 설명><Description of the symbols for the main parts of the drawings>

10 : 도구 인터페이스 11 : 정보저장소 인터페이스10: tool interface 11: information store interface

12 : 역공학 도구 인터페이스 13 : 객체재구조화 도구 인터페이스12: reverse engineering tool interface 13: object restructuring tool interface

14 : 영역모델링 도구 인터페이스 20 : CASE 모형정보 관리시스템14: domain modeling tool interface 20: CASE model information management system

30 : 정보저장소 관리시스템 40 : 데이터베이스 관리시스템30: information storage management system 40: database management system

50 : 데이터베이스 100 : CASE모형정보 스키마 변환시스템50: Database 100: CASE model information schema conversion system

110, 120 : CASE 도구 모형 130 : 통합된 메타모형110, 120: CASE tool model 130: Integrated metamodel

140 : 모형정보 스키마변환 규칙 150 : 관계형 데이터 베이스 테이블140: model information schema conversion rule 150: relational database table

200 : CASE 도구 300 : 모형정보200: CASE tool 300: model information

310 : 구조 차트 320 : 참조그래프310: structure chart 320: reference graph

330 : 호출 그래프 340 : 제어흐름그래프330: call graph 340: control flow graph

350 : UML객체 모형 351 : 도메인 모형350: UML object model 351: domain model

352 : 리파이닝 모형 353 : 초기 객체 모형352 refinement model 353 initial object model

400 : 모형정보의 관리 411 : 모형정보 스키마 변환기400: model information management 411: model information schema converter

412 : 모형정보추출기 420 : 다이어그램412: Model information extractor 420: Diagram

430 : 객체 440 : 관계430: object 440: relationship

상기 목적을 달성하기 위한 본 발명에 의한 CASE 도구 모형 정보의 관계형 스키마 변환 시스템은 서로 다른 패러다임을 갖는 각각의 CASE(Computer Aided Software Engineering) 도구로부터 제공되는 모형정보를 정보저장소의 데이터베이스 패러다임에 맞는 스키마로 변환시키는 CASE 도구 모형 정보의 관계형 스키마 변환 시스템에서 각각의 CASE 도구로부터 객체와 관계로 이루어진 객체 모델로 변환된 후 제공되는 각각의 CASE 모형들을 클래스와 상기 클래스간의 관계에 의거하여 통합 메타모형으로 재구성하는 단계를 수행하고, 상기 메타모형 정보를 읽어 들여 객체(Object)에 대한 정보일 경우 상기 메타모형정보로부터 테이블 생성정보를 얻어 각 모형의 클래스를 클래스 변환규칙에 의해 스키마로 변환하고 CASE 모형정보에 대한 클래스 테이블들을 생성하는 단계를 수행하고, 상기 메타모형 정보를 읽어들여 메타 관계(MetaRelation)일 경우에는 상기 메타모형정보로부터 테이블 생성정보를 얻어 각 모형의 관계(Relationship)변환규칙에 의하여 스키마로 변환하고 CASE 모형정보에 대한 관계 테이블들을 생성하는 단계를 수행함으로써 상이한 패러다임을 갖는 도구모형정보를 데이터베이스의 패러다임에 맞는 스키마로 변환하여 저장하게 하는 것을 특징으로 한다.The relational schema conversion system of CASE tool model information according to the present invention for achieving the above object is to convert the model information provided from each CASE (Computer Aided Software Engineering) tool having a different paradigm into a schema suitable for the database paradigm of the information repository. In the relational schema transformation system of CASE tool model information to be transformed, each CASE model is converted from each CASE tool into an object model consisting of objects and relationships, and then reconstructed into a unified metamodel based on the class and the relationship between the classes. Perform the steps, and read the metamodel information to obtain table generation information from the metamodel information, convert the class of each model into a schema by class conversion rules, and Creating the class tables In the case of MetaRelation by reading the metamodel information, the table generation information is obtained from the metamodel information, converted into a schema according to a relationship conversion rule of each model, and the relation table for the CASE model information. By performing the step of generating them characterized in that the tool model information having a different paradigm is converted into a schema suitable for the paradigm of the database and stored.

도 1은 본 발명에 의한 CASE 모형 정보 스키마 변환시스템을 포함하는 정보저장소(RESORT/D)의 전체적인 구성도를 보여주고 있다.1 shows an overall configuration diagram of an information repository (RESORT / D) including a CASE model information schema transformation system according to the present invention.

도시된 바와 같이 정보저장소(RESORT/D)는 다양한 CASE도구(도면에 도시되어 있지 않음)로부터 데이터를 입력받거나 상기 CASE도구에 데이터를 출력하기 위한 도구 인터페이스(10)와, 모형자체에 대한 정보를 관리하고 있는 CASE 모형정보 관리시스템(20)과, 상기 CASE 모형정보 관리시스템(20)으로부터 도구가 요구하는 모형의 정보를 구하며 CASE 모형정보를 관계형 데이터베이스 스키마로 매핑시키는 정보저장소 관리시스템(30)과, 질의어를 통하여 데이터베이스(50)로부터 물리적인 디스크를 접근하여 데이터를 처리하는 데이터베이스 관리시스템(40)으로 구성되어 있다.As shown, the information store (RESORT / D) is a tool interface 10 for receiving data from various CASE tools (not shown) or outputting data to the CASE tool, and information about the model itself. A CASE model information management system 20 which manages, an information repository management system 30 which obtains information of a model required by a tool from the CASE model information management system 20 and maps the CASE model information to a relational database schema; The database management system 40 processes data by accessing a physical disk from the database 50 through a query word.

상기 도구인터페이스(10)는 정보저장소 인터페이스(11)와 역공학 CASE 도구에 연결되는 역공학 도구 인터페이스(12)와 객체재구조화 CASE 도구에 연결되는 객체재구조화 도구 인터페이스(13)와 영역모델링 CASE 도구에 연결되는 영역모델링도구 인터페이스(14)로 이루어져 있다.The tool interface 10 includes an information storage interface 11 and a reverse engineering tool interface 12 connected to a reverse engineering CASE tool, an object restructuring tool interface 13 connected to an object restructuring CASE tool, and an area modeling CASE tool. It consists of an area modeling tool interface 14 connected to it.

상기 역공학 도구 인터페이스(12), 객체재구조화 도구 인터페이스(13), 영역 모델링 도구 인터페이스(14)는 각각의 도구를 사용하여 생성된 모형들이 CASE 모형정보 스키마 변환 시스템(100)의 입력으로 사용될 수 있도록 각각의 모형들을 객체와 관계로 이루어진 객체 모형들로 변환하여 주는 역할을 한다.The reverse engineering tool interface 12, the object restructuring tool interface 13, and the region modeling tool interface 14 may be used as inputs to the CASE model information schema transformation system 100. Each model is transformed into an object model consisting of objects and relationships.

본 발명에서 제안하는 CASE 모형정보 스키마 변환 시스템(100)은 상기 정보저장소 관리 시스템(30)내에서 그 동작이 이루어진다.The CASE model information schema conversion system 100 proposed in the present invention operates in the information storage management system 30.

도 2 는 본 발명에 의한 CASE 모형정보와 CASE 모형정보 스키마 변환 시스템과의 관계를 보여주고 있다.2 shows the relationship between the CASE model information and the CASE model information schema transformation system according to the present invention.

도시된 바와 같이 임의의 도구와 그 도구에 대한 모델링 정보를 일정한 규칙에 의하여 정의한 정보인 모형정보와 그 모형정보를 관리하는 정보저장소의 관리에 대하여 보여주고 있다. 상기 모형정보는 정보저장소(RESORT/D)에서 다루고 있는 각각의 도구에 대한 모델링 정보를 일정한 규칙에 의하여 정의한 정보이다. CASE 모형정보 스키마 변환 시스템은 이러한 모형정보로부터 얻어지는 모델링 정보와 스키마 변환 규칙을 이용하여 CASE 모형정보를 관계형 데이터베이스 스키마로 변환하는 시스템이다.As shown in the figure, the model information, which is defined by a certain rule, for a certain tool and its modeling information, and management of an information repository for managing the model information is shown. The model information is information in which modeling information for each tool handled in an information store (RESORT / D) is defined by a predetermined rule. The CASE model information schema conversion system is a system for converting CASE model information into a relational database schema using modeling information and schema conversion rules obtained from such model information.

일반적으로 모형정보(300)는 각각의 도구(100)에 대한 모델링 정보로서 도시된 바와 같이 구조 차트(Structure Chart)(310)와 변수 참조그래프(Variable Ref. Graph)(320)와 호출 그래프(Call Graph)(330)와 제어흐름그래프(340)와 UML객체 모형(350)으로 구성되고 그중 상기 UML객체 모형(350)은 도메인 모형(351)과 리파이닝 모형(Refining Model)(352)과 초기 객체 모형(Initial Model)(353)들로 구성된다.In general, the model information 300 includes a structure chart 310, a variable reference graph 320, and a call graph as shown as modeling information for each tool 100. Graph) 330, control flow graph 340 and UML object model 350, wherein the UML object model 350 is a domain model 351, a refining model 352 and the initial object model (Initial Model) (353).

상기 정보저장소의 모형정보의 관리(300)에는 모형정보의 다이어그램(420)과 객체(430)와 관계(440)에 의한 정보관리를 수행한다. 또한 정보저장소에는 모형정보 스키마 변환기(411)와 모형정보추출기(412)의 동작을 수행하지만 본 발명에서는 모형정보 스키마 변환에 한정하고자 한다.The management of model information of the information repository 300 is performed by managing the diagram 420 of the model information, the object 430 and the relationship 440. In addition, the information store performs the operations of the model information schema converter 411 and the model information extractor 412, but the present invention intends to limit the model information schema transformation.

도 3 은 상기 CASE 모형정보 스키마 변환 시스템(100)내에서 이루어지는 모형정보의 변환흐름도를 잘 보여주고 있다. CASE 도구들은 각각 지원하는 방법론과 그 방법론을 지원하는 패러다임이 다르며, 방법론에 따라 각기 다른 모형들을 제공한다.3 illustrates a conversion flow diagram of model information in the CASE model information schema transformation system 100. Each CASE tool has a different methodology and a paradigm that supports it, and provide different models according to the methodology.

도시된 바와 같이 CASE 도구A에 의해서 제공된 하나의 모형(110)이 있고 CASE 도구B에 의해 제공된 또다른 모형(120)이 있다. 이처럼 각 도구의 지원하는 방법에 따라 각기 다른 모형(110,120...)이 제공되어진다. 이러한 모형들(110, 120)은 도1의 인터페이스(10)를 통하여 객체와 관계로 이루어진 객체 모델로 변환된 상태이다. CASE 모형정보 스키마 변환 시스템(100)에서는 이러한 객체와 관계의 정보에 의거하여 스키마 변환을 수행하게 된다.As shown there is one model 110 provided by CASE tool A and another model 120 provided by CASE tool B. As such, different models (110, 120 ...) are provided depending on how each tool supports them. These models 110 and 120 are converted into object models formed in relation to objects through the interface 10 of FIG. 1. In the CASE model information schema conversion system 100, schema conversion is performed based on the information of these objects and relationships.

정보저장소는 이 모형(110,120...)들로부터 통합된 메타모형(Integrated Meta Model)(130)을 추출하여 이를 데이터베이스에 저장한다.The information repository extracts the integrated metamodel (130) from these models (110, 120 ...) and stores it in the database.

데이터베이스에 저장하기 위해서 CASE 도구들에서 제공하는 모형과 메타모형은 데이터베이스의 구조에 맞는 스키마로 변환되어야 한다. 상기 CASE 모형정보 스키마 변환 시스템(100)은 상이한 패러다임을 갖는 메타모형의 관계형 데이터베이스 스키마 변환을 수행한다.To be stored in the database, the models and metamodels provided by the CASE tools must be converted into a schema that matches the structure of the database. The CASE model information schema transformation system 100 performs a relational database schema transformation of metamodels having a different paradigm.

CASE 모형정보 스키마 변환 시스템을 효과적으로 운용하기 위해서는 여러 가지 요소들이 구비되어야 한다. 먼저, CASE 모형정보를 관계형 패러다임을 갖는 데이터베이스에 맞는 스키마로 사상시킬 수 있는 형태로 변환시켜야 한다. 이를 위해서 CASE 모형정보에 대한 스키마 변환기가 요구된다. 또한 이 변환기를 위한 스키마 사상(mapping)에 대한 규칙이 필요하다. 이를 만족시키기 위하여 CASE 모형 정보 스키마 변환 시스템에서는 스키마 변환 규칙을 이용하는 CASE 모형 정보 스키마 변환기(140)를 개발하였다.In order to operate CASE model information schema conversion system effectively, various elements should be provided. First, CASE model information should be converted into a form that can be mapped into a schema suitable for a database having a relational paradigm. To this end, a schema converter for CASE model information is required. There is also a need for rules for schema mapping for this converter. In order to satisfy this problem, the CASE model information schema transformation system has developed a CASE model information schema converter 140 using schema transformation rules.

본 발명에 의한 상기 CASE 모형 정보 스키마 변환기(140)는 본 발명에 의한 스키마 변환 규칙(Rule)을 갖도록 설계되어 있다. 상기 규칙이란 변환하고자 하는 메타모형을 이 메타모형이 실질적으로 저장되는 데이터베이스의 저장구조와 일치하는 스키마로 사상 시키기 위한 규칙을 말한다.The CASE model information schema converter 140 according to the present invention is designed to have a schema conversion rule according to the present invention. The rule is a rule for mapping the metamodel to be converted into a schema that matches the storage structure of the database in which the metamodel is actually stored.

본 발명은 상이한 패러다임을 갖는 CASE 모형정보를 관계형 데이터베이스 스키마로 사상 시키는 것이므로 메타 모형을 구성하고 있는 데이터인 클래스에 대한 정의와 클래스와 클래스간의 관계에 대한 관계형 데이터베이스 변환의 규칙을 말한다.Since the present invention maps CASE model information having a different paradigm into a relational database schema, it refers to the definition of a class, which is the data constituting the metamodel, and the relational database transformation rules for the relationship between classes and classes.

상기 도 3에 도시된 모형은 객체지향 모형 중 UML(Unified Modeling Language)의 표기법에 의한 것으로 메타 모형에 사용된 기호 중 사각형 블록(131)은 클래스를 말하며, 선(132)은 관계(Relationship)가 있음을 뜻하며, 마름모블록(133)은 관계(Relationship) 중 포함한다는 의미를 갖는 것을 뜻하며, 역 삼각형블록(134)은 상속(Inheritance)을 나타낸다.The model shown in FIG. 3 is based on a UML (Unified Modeling Language) notation among object-oriented models. Among the symbols used in the meta-model, the rectangular block 131 refers to a class, and the line 132 represents a relationship. The rhombus block 133 is meant to be included in the relationship, and the inverted triangle block 134 represents inheritance.

즉, CASE 모형정보의 메타모형(Meta Model)(130)은 클래스(Class)(131)와 관계(Relationship)(132)로 구성되어지는데 메타모형의 데이터베이스 스키마로의 변환은 다음의 과정을 따른다.That is, the meta model 130 of the CASE model information is composed of a class 131 and a relationship 132. The meta model is converted into a database schema according to the following process.

첫째, 메타모형에서 추출한 각각의 모형에 대해 테이블(Table)을 생성한다. 이 테이블들은 모형의 이름과 메타모형의 이름을 어트리뷰트(attribute)로 가지며 각각의 모형 사이에는 관계성(relationship)은 없다.First, create a table for each model extracted from the metamodel. These tables have attributes as model names and metamodel names, and there is no relation between each model.

둘째, 클래스(Class)에 대한 변환 규칙은 메타모형에서 정의한 각각의 클래스들은 클래스 테이블(Class Table)에서 하나의 투플(Tuple)로서 저장되며 이 테이블의 어트리뷰트(attribute)로는 대표 키, 클래스가 가지고 있는 어트리뷰트(attribute) 및 오퍼레이션(Operation)들과 비고(annotation)를 갖는다.Second, the conversion rule for a class is that each class defined in the metamodel is stored as a tuple in the class table, and the attributes of this table are the representative key and the class. It has an annotation and an attribute and operations.

셋째, 관계(retionship)에 대한 변환 규칙은 각각의 관계(relationship)들은 관계의 집합(aggregation), 상속(Inheritance), 연합(association)의 관계에 따라 각기 하나의 테이블로 생성되며 각각의 관계들은 각각의 형태에 따라 관계 테이블(relationship Table)의 투플(Tuple)로 저장된다. 이 테이블들의 어트리뷰트(attribute)로는 대표 키, 관계가 시작되는 소스 클래스ID(source classID)와 목적지 클래스ID(Destination classID), 관계의 위치정보인 시작점 X(Start_X), 시작점 Y(Start_Y)와 끝점 X(End_X), 끝점 Y(End_Y)과 비고(Annotation)를 갖는다.Third, the conversion rule for relation is that each relation is created as one table according to the relation of aggregation, inheritance, and association. It is stored as a tuple of a relation table according to the form of. Attributes of these tables include the representative key, the source class ID and destination class ID from which the relationship begins, the start point X (Start_X), the start point Y (Start_Y), and the end point X of the location information of the relationship. (End_X), end point Y (End_Y), and annotations.

상술한 바와 같이 클래스에 대한 변환 규칙과 관계(Relationship)에 대한 변환 규칙를 표로 정리하면 다음과 같다.As described above, the conversion rule for the class and the conversion rule for the relationship are summarized as follows.

Figure kpo00001
Figure kpo00001

Figure kpo00002
Figure kpo00002

즉, 클래스를 관계형 데이터베이스 스키마로 변환하면 클래스 테이블 명(Class Table name)을 갖는 하나의 테이블이 생성되며 이 테이블이 갖는 어트리뷰트(attribute)로는 대표 키(Primary Key), 클래스 명(Class name), 클래스 속성 1(Class attribute 1), 클래스 속성 2, ..., 클래스 속성 n(n은 메타 모형이 갖고 있는 클래스의 속성(attribute)이 가장 많은 클래스(Class)의 속성(attribute)수), 클래스 오퍼레이션 1(Class Operation 1), 클래스 오퍼레이션 2, ... , 클래스 오퍼레이션 n(n은 메타 모형이 갖고 있는 클래스의 오퍼레이션이 가장 많은 클래스의 오퍼레이션의 수), 비고(Annotation)를 갖게 된다.In other words, converting a class to a relational database schema creates one table with a class table name. Attributes that the table has include a primary key, a class name, and a class. Class attribute 1, class attribute 2, ..., class attribute n (n is the number of attributes of the class with the most attributes of the class in the metamodel), class operation Class operation 1, class operation 2, ..., class operation n (n is the number of operations of the class with the most operations of the class that the metamodel has) and annotation.

또한, 관계(Relationship)를 관계형 데이터베이스 스키마로 변환하면 관계(Relationship)는 다음과 같이 각각의 관계(relationship)의 형태별로 테이블들이 생성되며 이 테이블이 갖는 어트리뷰트(attribute)로는 대표 키(Primary Key), 관계 명(Relation Name), 소스 클래스ID(Source classID), Destination classID, 시작점 X(Start_X),시작점 Y(Start_Y)와 끝점 X(End_X), 끝점 Y(End_Y)와 비고(Annotation)를 갖게 된다.In addition, when a relationship is converted to a relational database schema, tables are created for each type of relationship as shown below. Attributes of the table include a primary key, It has a relation name, a source class ID, a destination class ID, a start point X (Start_X), a start point Y (Start_Y), an end point X (End_X), an end point Y (End_Y), and an annotation.

상술한 바와 같이 클래스(Class)를 관계형 데이터베이스 스키마로 변환하면 클래스들은 다음의 표와 같이 정의될 수 있다.As described above, when a class is converted to a relational database schema, the classes can be defined as shown in the following table.

Figure kpo00003
Figure kpo00003

관계(Relationship)를 관계형 데이터베이스 스키마로 변환하면 관계(Relationship)는 다음의 표와 같이 정의될 수 있다.When a relationship is converted to a relational database schema, the relationship can be defined as shown in the following table.

Figure kpo00004
Figure kpo00004

상기 CASE 모형 정보 스키마 변환기(140)에서 상술한 바와 같은 스키마 변환 규칙(Rule)을 갖도록 상기 메타모형(130)의 모형정보를 시키마 변환하여 이 메타모형이 실질적으로 저장되는 데이터베이스의 저장구조와 일치하는 스키마로 사상되어 관계형 데이터 베이스 테이블(150)로 구성된다.The CASE model information schema converter 140 converts the model information of the metamodel 130 to have the schema conversion rule as described above, so that the metamodel matches the storage structure of the database where the metamodel is substantially stored. It is mapped to a schema that is composed of a relational database table 150.

상기 각 도구들에 따른 데이터베이스에 저장된 데이터들은 상기의 관계형 데이터 베이스 테이블(150)에 저장됨으로써 서로 상이한 패러다임을 갖는 CASE 모형정보 즉, 도시된 바와 같이 상기 CASE 도구A의 모형(110)과 상기 CASE 도구B의 모형(120)에 대한 각각의 데이터베이스에 저장된 데이터를 상호간에 활용할 수 있게 되는 것이다.The data stored in the database according to the tools are stored in the relational database table 150 so that the CASE model information having different paradigms, that is, the model 110 of the CASE tool A and the CASE tool as shown in FIG. The data stored in each database of the model 120 of B can be mutually utilized.

본 발명은 상이한 패러다임을 갖는 CASE 모형정보를 관계형 데이터베이스 스키마로 사상시키는 것이므로 메타 모형을 구성하고 있는 데이터인 클래스에 대한 정의와 클래스와 클래스간의 관계에 대한 관계형 데이터베이스 변환의 규칙을 말한다.Since the present invention maps CASE model information having a different paradigm into a relational database schema, it refers to the definition of a class, which is the data constituting the metamodel, and the relational database transformation rules for the relationship between classes and classes.

도 4는 본 발명에 의한 스키마 변환규칙에 의거하여 CASE 모형정보의 관계형 데이터베이스 스키마 변환을 위한 처리흐름도로서, 변환시 메타객체(MetaObject)의 경우에는 CASE 모형정보를 읽어 각각의 모형에 대한 테이블 생성 규칙(메타 모형에서의 클래스로 추출된 모형)을 참조하여 객체에 대한 정보일 경우 객체가 가지고 있는 어트리뷰트(attribute)와 오퍼레이션(Operation)을 찾고, 클래스변환규칙에 의해 어트리뷰트(attribute)로써 대표키(Primary Key)와 클래스명(Class name), 비고(Annotation)를 추가하여 CASE 모형정보에 대한 클래스 테이블(Class Table)들을 생성한다. 메타 관계(MetaRelation)일 경우에는 CASE 모형정보에서 제공하는 테이블 생성 규칙을 참조하여 관계(Relationship)변환규칙에 의하여 관계테이블(Relation Table)들을 생성한다.FIG. 4 is a flowchart illustrating a relational database schema conversion of CASE model information based on the schema conversion rule according to the present invention. In the case of a meta-object during conversion, the CASE model information is read and a table generation rule for each model ( In the case of information about an object by referring to a model extracted from a metamodel, the attributes and operations of the object are found, and the primary key as an attribute by the class conversion rule. ), Create a class table for the CASE model information by adding a class name and an annotation. In the case of MetaRelation, relation tables are generated by the relation conversion rule by referring to the table generation rule provided by the CASE model information.

즉, 도시된 바와 같이 모형정보를 읽어서(61) 새로운 모형정보인가를 판별한다.(62) 새로운 모형정보가 아닐 경우 기존에 생성된 DB가 있으면 DB를 새롭게 생성하지 않고 기존에 생성된 DB가 있음을 알리는 메시지를 출력하고(64), 그렇지 않을 경우에는 DB를 새롭게 생성한다(63). 각각의 모형에 대한 테이블 생성 규칙(메타 모형에서의 클래스로 추출된 모형)을 참조하여 읽혀진 모형정보가 객체에 대한 정보로 판별될 경우(64) 상기 모형정보로부터 테이블 생성정보를 얻는다(65). 그리고 모형정보로부터 객체가 가지고 있는 어트리뷰트와 오퍼레이션을 찾고(66), 클래스변환규칙에 의해 어트리뷰트로써 대표키와 클래스명과 비고를 추가하고(67) 상기의 정보를 가지고 데이터베이스 스키마로 변환하고 CASE 모형정보에 대한 클래스 테이블들을 생성한다(68).That is, as shown, the model information is read (61) to determine whether it is new model information. (62) If it is not new model information, if there is an existing DB, there is an existing DB without creating a new DB. In this case, a message informing of the error is output (64), and if not, a new DB is created (63). When model information read with reference to a table generation rule (model extracted as a class in a metamodel) for each model is determined as information on an object (64), table generation information is obtained from the model information (65). Find the attributes and operations of the object from the model information (66), add the representative key, class name and remarks as attributes according to the class conversion rule (67), convert them to the database schema with the above information, and add them to the CASE model information. Create class tables for (68).

한편 상기 읽혀진 모형정보가 메타 관계일 경우에는(70) 상기 모형정보로부터 테이블 생성정보를 얻고(71), 그 얻어진 테이블 생성 규칙을 참조하여 관계변환 규칙에 의하여 데이터베이스 스키마로 변환하고 관계테이블들을 생성한다(72).On the other hand, if the read model information is a meta-relation (70), the table generation information is obtained from the model information (71), and by referring to the obtained table generation rule is converted into a database schema by the relationship conversion rule and generates relation tables. (72).

상기 읽혀진 모형정보가 객체도 아니고 관계도 아닐 경우에는 에러메세지를 출력한다(73).If the read model information is neither an object nor a relationship, an error message is output (73).

이렇게 생성된 테이블들에 상기 상이한 패러다임을 갖는 CASE 모형정보 데이터들이 저장되어짐으로, 종래의 경우 각 CASE 도구들이 지원하는 모형에 대한 데이터베이스를 서로 활용하지 못했던 점이 극복하고 서로의 데이터베이스를 활용할 수 있게 된다.Since the CASE model information data having the different paradigm are stored in the tables generated in this way, it is possible to overcome the fact that the databases for the models supported by the respective CASE tools cannot be used in the conventional case and to utilize each other's databases.

본 발명에 의하면 CASE 도구가 지원하고자 하는 모형은 모두 관계형 데이터베이스 스키마로 변환할 수 있으며, 상이한 패러다임을 갖는 CASE 모형정보와 관계형 데이터베이스 스키마의 사상을 통하여, 정보저장소 관리시스템은 데이터베이스 관리시스템에 의해 관리되고 있는 모형정보 관리체계의 일관성과 모형정보의 상호 운용성을 높일 수 있으며, CASE 도구가 제공하는 모형정보를 관계형 데이터베이스 스키마로 자동적으로 변환할 수 있다.According to the present invention, all the models to be supported by the CASE tool can be converted into a relational database schema, and through the idea of the CASE model information and the relational database schema having different paradigms, the information storage management system is managed by the database management system. It can improve the consistency of model information management system and interoperability of model information, and can automatically convert model information provided by CASE tool to relational database schema.

따라서 CASE 모형정보에 대한 데이터베이스 스키마의 중복 방지 및 스키마 생성에 대한 노력 및 비용의 절감, 모형정보의 변경에 따른 스키마 변경관리 비용의 절감으로 효율성 및 생산성을 높일 수 있다.Therefore, efficiency and productivity can be improved by avoiding duplication of database schema for CASE model information, reducing effort and cost for schema generation, and reducing schema change management cost according to model information change.

Claims (3)

서로 다른 패러다임을 갖는 각각의 CASE(Computer Aided Software Engineering) 도구로부터 제공되는 모형정보를 정보저장소의 데이터베이스 패러다임에 맞는 스키마로 변환시키는 CASE 도구 모형 정보의 관계형 스키마 변환 시스템에 있어서, 각각의 CASE 도구로부터 객체와 관계로 이루어진 객체 모델로 변환된 후 제공되는 각각의 CASE 모형들을 클래스와 상기 클래스간의 관계에 의거하여 통합 메타모형으로 재구성하는 단계와; 상기 메타모형 정보를 읽어 들여 객체(Object)에 대한 정보일 경우 상기 메타모형정보로부터 테이블 생성정보를 얻어 각 모형의 클래스를 클래스 변환규칙에 의해 스키마로 변환하고 CASE 모형정보에 대한 클래스 테이블들을 생성하는 단계와; 상기 메타모형 정보를 읽어 들여 메타 관계(MetaRelation)일 경우에는 상기 메타모형정보로부터 테이블 생성정보를 얻어 각 모형의 관계(Relationship)변환규칙에 의하여 스키마로 변환하고 CASE 모형정보에 대한 관계 테이블들을 생성하는 단계를 수행하여; 상이한 패러다임을 갖는 도구모형정보를 데이터베이스의 패러다임에 맞는 스키마로 변환하여 저장하게 하는 것을 특징으로 CASE 도구 모형 정보의 관계형 스키마 변환 시스템.CASE tool that converts model information provided from each computer-assisted software engineering (CASE) tool having a different paradigm into a schema suitable for the database paradigm of the information store. In the relational schema conversion system of model information, an object is generated from each CASE tool. Reconstructing each of the provided CASE models into a unified metamodel based on a class and a relationship between the classes, after being converted into an object model having a relation with and; Read the metamodel information to obtain the table generation information from the metamodel information to convert the class of each model into a schema according to the class conversion rules, and generates class tables for the CASE model information Steps; In the case of MetaRelation, the meta model information is read and the table generation information is obtained from the meta model information. The meta model information is converted into a schema according to the relationship conversion rule of each model, and the relation tables for the CASE model information are generated. By performing the steps; A relational schema conversion system of CASE tool model information, characterized by converting and storing tool model information having a different paradigm into a schema suitable for a database paradigm. 제1항에 있어서, 상기 클래스 테이블들을 생성하는 단계는, 상기 메타모형에서 추출한 각각의 모형에 대해 상기 각각의 도구모형의 이름과 메타모형의 이름을 어트리뷰트(attribute)로 가지며 각각의 모형 사이에는 관계(relationship)이 없는 테이블을 생성하고; 상기 메타모형에서 정의한 각각의 클래스들은 클래스 테이블에서 하나의 투플(Tuple)로서 저장되며 이 테이블의 어트리뷰트로는 대표 키, 클래스가 가지고 있는 어트리뷰트 및 오퍼레이션들과 비고를 갖게 하는 것을 특징으로 하는 CASE 모형 정보 스키마 변환 시스템.The method of claim 1, wherein the generating of the class tables comprises, for each model extracted from the metamodel, a name of each tool model and a name of the metamodel as attributes, and a relationship between each model. create a table without relations; Each class defined in the metamodel is stored as a tuple in the class table, and the attributes of this table include the representative key, attributes and operations of the class, and remarks. Schema Conversion System. 제1항에 있어서, 상기 관계 테이블 생성단계의 관계 변환 규칙은, 각각의 관계들이 집합(aggregation), 상속(Inheritance), 연합(association)의 관계에 따라 각기 하나의 테이블로 생성되게 하며 각각의 관계들이 각각의 형태에 따라 관계테이블의 투플로 저장되게 하고, 이 테이블들의 어트리뷰트로서 대표 키, 관계가 시작되는 소스클래스ID과 목적지클래스ID, 관계의 위치정보인 시작점_X 시작점_Y 끝점_X 끝점_Y과, 비고(Annotation)를 갖게 하는 것을 특징으로 하는 CASE 모형정보 스키마 변환 시스템.The relationship transformation rule of claim 1, wherein the relationship conversion rule of the relationship table generation step causes each relationship to be generated in one table according to the relationship of aggregation, inheritance, and association. According to each type, these are stored as a table of relations, and the attributes of these tables are the representative key, the source class ID and destination class ID from which the relationship begins, the starting point of the relationship, the starting point X starting point Y ending point X ending point A CASE model information schema transformation system characterized by having _Y and Annotation.
KR1019970058570A 1997-11-06 1997-11-06 System for converting schema of case model information KR100309670B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970058570A KR100309670B1 (en) 1997-11-06 1997-11-06 System for converting schema of case model information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970058570A KR100309670B1 (en) 1997-11-06 1997-11-06 System for converting schema of case model information

Publications (2)

Publication Number Publication Date
KR19990038733A KR19990038733A (en) 1999-06-05
KR100309670B1 true KR100309670B1 (en) 2001-12-17

Family

ID=37530828

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970058570A KR100309670B1 (en) 1997-11-06 1997-11-06 System for converting schema of case model information

Country Status (1)

Country Link
KR (1) KR100309670B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010002510A (en) * 1999-06-15 2001-01-15 김영환 administration method of class layer and class composition layer

Also Published As

Publication number Publication date
KR19990038733A (en) 1999-06-05

Similar Documents

Publication Publication Date Title
CN108052321B (en) Method for automatically generating intelligent contract of block chain based on configuration information
CN101727320B (en) Methods and tools for identifying impact of database changes on an application
JP4604041B2 (en) An extension to the SQL language to modify set-valued and scalar-valued columns with a single statement
US7734657B2 (en) Containment hierarchy in a database system
US8086560B2 (en) Schema mapping specification framework
US20070038651A1 (en) Interactive schema translation with instance-level mapping
US7480661B2 (en) Query services for database system
US7613715B2 (en) Map and data location provider
KR20080027251A (en) Dynamic method for generating xml documents from a database
US20090064093A1 (en) System for Navigating Beans Using Filters and Container Managed Relationships
US9864794B2 (en) Method and system for managing faceted data
US6941309B2 (en) Object integrated management system
US20040078355A1 (en) Information management system
Brahmia et al. Schema versioning in conventional and emerging databases
CN108845793B (en) ORM design method and device
KR100309670B1 (en) System for converting schema of case model information
CN112559455B (en) IFC data management system and method based on semantic network technology
Pal et al. XML support in Microsoft SQL Server 2005
US20030233373A1 (en) Method, computer program product, and system for automatic class generation with simultaneous customization and interchange capability
KR20010054560A (en) Method for integrating schema using multidatabase query language
Jackson Thirty years (and more) of databases
KR100428710B1 (en) A modeling system and method by modeling-object assembling
Monk View definition in an object-oriented database
Alia et al. A middleware framework for the persistence and querying of java objects
Gray et al. Applying the CDIF standard in the construction of CASE design tools

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20090914

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee