JPH06162117A - Register processing system for hierarchical structure data base - Google Patents

Register processing system for hierarchical structure data base

Info

Publication number
JPH06162117A
JPH06162117A JP4308420A JP30842092A JPH06162117A JP H06162117 A JPH06162117 A JP H06162117A JP 4308420 A JP4308420 A JP 4308420A JP 30842092 A JP30842092 A JP 30842092A JP H06162117 A JPH06162117 A JP H06162117A
Authority
JP
Japan
Prior art keywords
data
record
database
input data
input
Prior art date
Legal status (The legal status 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 status listed.)
Withdrawn
Application number
JP4308420A
Other languages
Japanese (ja)
Inventor
Toshiaki Imai
俊昭 今井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP4308420A priority Critical patent/JPH06162117A/en
Publication of JPH06162117A publication Critical patent/JPH06162117A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To improve the efficiency by increasing the processing speed of the registration of data in the data base in hierarchical structure of unspecified repetition. CONSTITUTION:An input data file analytic process part 4 inputs a data base definition information table 1, an input format description information table 2, and an input data file 3, inputs input data of the input data file 3 in order, and stores items in a memory in order to generate intermediate work data 5. Fixed items which are inputted later from the input data at the time of this generation are updated later by using a blank dummy as a record temporarily. The input data file analytic process part 4 while generating the intermediate work data 5 generates a work data record information table 6 having record information in the memory. A data base registering process part 7 registers the intermediate work data 5 in the data base 8 according to the work data record information table 6.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は階層構造データベース登
録処理方式、特に不定繰返しを持つ階層構造のデータベ
ースにデータを登録するための階層構造データベース登
録処理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a hierarchical structure database registration processing method, and more particularly to a hierarchical structure database registration processing method for registering data in a hierarchical structure database having indefinite repetition.

【0002】[0002]

【従来の技術】従来、この種の階層構造データベース登
録処理方式は、入力データの順番とデータベースに登録
する順番とが不定繰返しを持つ階層構造によって異なる
ため、中間作業ファイルに一時的に編集し直してからデ
ータベースに登録している。
2. Description of the Related Art Conventionally, in this type of hierarchical structure database registration processing method, since the order of input data and the order of registration in the database differ depending on the hierarchical structure having indefinite repetition, it is temporarily re-edited in an intermediate work file. Registered in the database since then.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の階層構
造データベース登録処理方式は、登録量が多い場合には
容量の点からメモリ装置上で編集をすることができず、
中間作業ファイルを使用するため、ファイルの入出力に
時間がかかり処理能率が上らないという問題点がある。
In the conventional hierarchical structure database registration processing method described above, when the registration amount is large, editing cannot be performed on the memory device because of the capacity.
Since the intermediate work file is used, there is a problem that the input / output of the file takes time and the processing efficiency does not increase.

【0004】[0004]

【課題を解決するための手段】本発明の階層構造データ
ベース登録処理方式は、不定繰返しを持つ階層構造のデ
ータベースにデータを登録するための階層構造データベ
ース登録処理方式において、データベースの定義情報
と,このデータベース定義情報と入力データとを関連付
ける入力データの形式記述情報と,入力データとを入力
し、入力データの各レコードに対してデータベース定義
情報で指定する項目の判定を行なって順次メモリ上に読
込み、読込み順がデータベースへの登録順と異なるレコ
ードは暫定的にダミーレコードを読込み、後のレコード
の読込みでダミーレコードを更新して中間作業データを
作成すると共に、このメモリ上に作成した中間作業デー
タのレコード情報を作成する入力データファイル解析処
理手段と、この入力データファイル解析処理手段が作成
した中間作業データを同じく作成されたレコード情報に
従ってデータベースに登録するデータベース登録処理手
段とを有することにより構成される。
The hierarchical structure database registration processing method of the present invention is a hierarchical structure database registration processing method for registering data in a hierarchical structure database having indefinite repetition. Input the format description information of the input data that associates the database definition information with the input data, and the input data, determine the items specified by the database definition information for each record of the input data, and read them sequentially into the memory. For records whose reading order is different from the registration order in the database, a dummy record is tentatively read, the dummy record is updated by reading a later record to create intermediate work data, and the intermediate work data created on this memory is also deleted. Input data file analysis processing means for creating record information and this input Constructed by having a database registration processing means for registering in the database in accordance with the record information over datafile analysis means it is also create intermediate work data created.

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0006】図1は本発明の一実施例の構成図である。
図1の実施例はデータベース定義情報テーブル1,入力
形式記述情報テーブル2,および入力データファイル3
から入力を受ける入力データファイル解析処理部4と、
入力データファイル解析処理部4から出力されるメモリ
装置上の中間作業データ5および作業データレコード情
報テーブル6を入力してデータベース8へ登録処理を行
なうデータベース登録処理部7とから構成される。
FIG. 1 is a block diagram of an embodiment of the present invention.
The embodiment shown in FIG. 1 has a database definition information table 1, an input format description information table 2, and an input data file 3.
An input data file analysis processing unit 4 for receiving input from
The input data file analysis processing unit 4 comprises a database registration processing unit 7 for inputting the intermediate work data 5 on the memory device and the work data record information table 6 and performing a registration process in the database 8.

【0007】データベース定義情報テーブル1はシステ
ム作成時に、データベース定義構造情報が登録されるテ
ーブルである。図2はデータベース定義構造情報の一例
を示す図で、通常、定義項目と項目属性と項目タイプと
で定義されている。項目属性は図2の例では“CHAR
ACTER”および“NIPPONGO”で示されてお
り、前者は1バイトの英数字・カナ文字であり、後者は
2バイトの日本語文字であり、括弧内の数字によりその
長さをもつ固定長項目を示し、括弧内の“V”により可
変長項目を示していて、単に“(V)”とあるものは繰
返し集団項目を示している。項目タイプは図2の例では
“KEY”または“PKEY”,および“TEXT”で
示されており、前者は検索対象となるキー項目または主
キー項目で、後者は文書データを扱うテキスト項目であ
ることを示している。図2の例では“PKEY項目”は
10バイトの長さをもつ1バイトの英数字・カナ文字の
主キー項目である。
The database definition information table 1 is a table in which database definition structure information is registered when the system is created. FIG. 2 is a diagram showing an example of the database definition structure information, which is usually defined by definition items, item attributes, and item types. The item attribute is “CHAR in the example of FIG.
It is indicated by "ACTER" and "NIPPONGO", the former is a 1-byte alphanumeric character and the Kana character, the latter is a 2-byte Japanese character, and the fixed-length item having that length is indicated by the number in parentheses. The variable length item is indicated by "V" in the parentheses, and a simple "(V)" indicates a repeating group item.The item type is "KEY" or "PKEY" in the example of FIG. , And “TEXT”, the former is a key item or a primary key item to be searched, and the latter is a text item that handles document data. Is a 1-byte alphanumeric / kana primary key item with a length of 10 bytes.

【0008】入力形式記述情報テーブル2は、入力デー
タファイル3にデータを入力するときに、入力されるデ
ータに対する入力形式記述情報のテーブルである。図3
は入力形式記述情報の一例を示す図で、データ識別番号
と定義項目とデータの最初のカラムとデータの長さとが
示され、可変長項目に対してはそのデータでの最大長を
示している。
The input format description information table 2 is a table of the input format description information for the data input when the data is input to the input data file 3. Figure 3
Is a diagram showing an example of input format description information, showing the data identification number, definition item, the first column of data, and the length of the data, and shows the maximum length of the data for the variable length item. .

【0009】入力データファイル3は入力データを格納
したファイルである。図4は入力データファイル3上の
入力データの一例を示す図で、入力形式記述情報テーブ
ル2の入力形式記述情報に従って作成され格納される。
図4に示した入力データは図3の入力形式記述情報に従
って作成されている。
The input data file 3 is a file that stores input data. FIG. 4 is a diagram showing an example of input data on the input data file 3, which is created and stored according to the input format description information of the input format description information table 2.
The input data shown in FIG. 4 is created in accordance with the input format description information shown in FIG.

【0010】図5および図6は入力データファイル解析
処理部4が図2,図3,および図4の各例に示す情報の
入力によりメモリ装置上に出力する作業データレコード
情報テーブル6および中間作業データ5の内容の一例を
示す図で、図6(a)〜(f)は中間作業データ5の内
容が入力データファイル解析処理部4の処理によって変
化する状態を示している。以下、図2,〜図6を参照し
て入力データファイル解析処理部4の処理の手順につい
て説明を進める。
FIGS. 5 and 6 show a work data record information table 6 and an intermediate work which the input data file analysis processing unit 4 outputs on the memory device when the information shown in each example of FIGS. 2, 3 and 4 is input. FIG. 6A to FIG. 6F are diagrams showing an example of the contents of the data 5, and show the state in which the contents of the intermediate work data 5 are changed by the processing of the input data file analysis processing unit 4. The procedure of the processing of the input data file analysis processing unit 4 will be described below with reference to FIGS.

【0011】図6(a)はデータベース定義情報の02
レベルの固定長項目のレコードを作成するもので、PK
EY項目として“B910930001”を出力し、後
の行で出てくる筈の固定項目Aとして長さ10バイトの
空白をダミー出力する。そして図5に示すように作業デ
ータレコード情報テーブル6にはバッファ番号,レコー
ド番号,レコード位置,レコード長さ,およびレコード
存在フラグを出力する。バッファ番号は中間作業データ
5を記憶するバッファメモリの枚数番号であり、例えば
4枚のバッファメモリを持ち、1から4まで順に使用す
る。バッファ番号には“1”を出力する。レコード番号
は1枚のバッファメモリ内のレコード番号である。レコ
ード番号にも“1”を出力する。レコード位置はバッフ
ァメモリ内の先頭からの相対位置である。レコード位置
にも“1”を出力する。レコード長さはそのレコード全
体の長さである。レコードの長さにはダミー分を含んで
“20”を出力する。レコード存在フラグはレコードを
出力した際に“1”を出力する。次に図6(b)は02
レベルの可変項目のレコードを作成するもので、可変項
目長Aとして“データベースとはデータの集合体であり
必要な情報を誰でも簡単に検索できるもの。”を出力す
る。作業データレコード情報テーブル6には、それぞれ
“1”,“2”,“21”,“76”,および“1”を
出力する。次に図6(c)は02レベルの繰返し集団項
目の配下の03レベルの固定長項目のレコードを作成す
るもので、後の行で出てくる筈の固定長項目Bとして、
10バイトの空白をダミー出力する。作業データレコー
ド情報テーブル6には、それぞれ“1”,“3”,“9
7”,“10”,および“1”を出力する。次に図6
(d)は02レベルの繰返し集団項目の配下の03レベ
ルの可変項目のレコードを作成するもので、可変項目と
して“関係型データベースとは関連するデータ同士をそ
のまま「表形式」で表現するもので情報を単純化でき
る。”を出力する。作業データレコード情報テーブル6
には、それぞれ“1”,“4”,“107”,“9
6”,および“1”を出力する。次に図6(e)は02
レベルの繰返し集団項目の配下の03レベルの固定長項
目のレコードを更新するもので、固定長項目Bとして
“RELATIONAL”を更新出力する。次に図6
(f)は02レベルの固定長項目のレコードを更新する
もので、固定長項目Aとして“DB”を更新出力する。
FIG. 6A shows the database definition information 02.
Creates a fixed-length item level record, PK
"B91093001" is output as the EY item, and a blank of 10 bytes in length is dummy output as the fixed item A that should appear in the subsequent line. Then, as shown in FIG. 5, the buffer number, the record number, the record position, the record length, and the record existence flag are output to the work data record information table 6. The buffer number is the number of sheets of the buffer memory that stores the intermediate work data 5, and has, for example, four buffer memories and is used in order from 1 to 4. "1" is output as the buffer number. The record number is the record number in one buffer memory. "1" is also output to the record number. The record position is a relative position from the beginning in the buffer memory. "1" is also output to the record position. The record length is the length of the entire record. "20" is output including the dummy length in the record length. The record existence flag outputs "1" when the record is output. Next, in FIG.
A variable item record of a level is created, and the variable item length A is output as "a database is a set of data and anyone can easily retrieve necessary information.""1","2","21","76", and "1" are output to the work data record information table 6, respectively. Next, FIG. 6 (c) creates a record of a fixed length item of the 03 level under the repeated group item of the 02 level, and as a fixed length item B which should appear in a subsequent line,
Dummy output of 10-byte blank. The work data record information table 6 contains "1", "3", and "9", respectively.
7 ”,“ 10 ”, and“ 1 ”are output.
(D) is to create a record of variable items at 03 level under the repeated group item at 02 level. As variable items, "relational type database expresses related data as they are in" table form ". Information can be simplified. Is output. Work data record information table 6
Are "1", "4", "107", and "9", respectively.
6 ”and“ 1 ”are output. Next, in FIG.
This is to update the record of the fixed length item of level 03 under the repeated group item of level, and to output "RELATENAL" as the fixed length item B. Next in FIG.
(F) is for updating the record of the fixed-length item at the 02 level, and updates and outputs "DB" as the fixed-length item A.

【0012】データベース登録処理部7は、以上の処理
手順により作成された中間作業データ5および作業デー
タレコード情報テーブル6を順次入力してデータベース
8に登録する。
The database registration processing unit 7 sequentially inputs the intermediate work data 5 and the work data record information table 6 created by the above processing procedure and registers them in the database 8.

【0013】なお以上の例では、繰返し集団項目の03
レベル可変項目Bを一つとしたが、複数ある場合には、
中間作業データ5上に固定項目Bに続いて可変項目Bが
繰返され、作業データレコード情報テーブル6にレコー
ドが追加される。
In the above example, the repeat group item 03
There is one level variable item B, but if there are multiple items,
The variable item B is repeated after the fixed item B on the intermediate work data 5, and a record is added to the work data record information table 6.

【0014】[0014]

【発明の効果】以上説明したように本発明は、不定繰返
しを持つか階層構造のデータベースにデータを登録する
処理で、入力データのレコードをバッファメモリ上に順
次読込み、後の行から出てくる固定長項目は一時的に空
白ダミーとした中間作業データを作成し、中間作業デー
タのレコード情報を別に持つことにより、中間作業デー
タが圧縮されて、ファイルを用いての中間作業データを
不要とすることができ、登録処理の高速化がはかられる
という効果がある。
As described above, the present invention is a process of registering data in a database having indefinite repetition or having a hierarchical structure, in which records of input data are sequentially read in the buffer memory and are output from the subsequent lines. Fixed-length items are temporarily created as blank dummy intermediate work data, and by having separate record information of the intermediate work data, the intermediate work data is compressed and the intermediate work data using a file becomes unnecessary. Therefore, there is an effect that the registration process can be speeded up.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】図1の実施例のデータベース定義情報テーブル
の内容例を示す図である。
FIG. 2 is a diagram showing an example of contents of a database definition information table of the embodiment shown in FIG.

【図3】図1の実施例の入力形式記述情報テーブルの内
容例を示す図である。
FIG. 3 is a diagram showing an example of contents of an input format description information table of the embodiment of FIG.

【図4】図1の実施例の入力データファイルの内容例を
示す図である。
FIG. 4 is a diagram showing an example of contents of an input data file of the embodiment shown in FIG.

【図5】図1の実施例の作業データレコード情報テーブ
ルの内容例を示す図である。
FIG. 5 is a diagram showing an example of contents of a work data record information table of the embodiment of FIG.

【図6】図1の実施例の入力データファイル解析処理部
が順次作成する中間作業データの内容例を示す図であ
る。
FIG. 6 is a diagram showing an example of contents of intermediate work data sequentially created by an input data file analysis processing unit of the embodiment of FIG.

【符号の説明】[Explanation of symbols]

1 データベース定義情報テーブル 2 入力形式記述情報テーブル 3 入力データファイル 4 入力データファイル解析処理部 5 中間作業データ 6 作業データレコード情報テーブル 7 データベース登録処理部 8 データベース 1 database definition information table 2 input format description information table 3 input data file 4 input data file analysis processing unit 5 intermediate work data 6 work data record information table 7 database registration processing unit 8 database

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 不定繰返しを持つ階層構造のデータベー
スにデータを登録するための階層構造データベース登録
処理方式において、データベースの定義情報と,このデ
ータベース定義情報と入力データとを関連付ける入力デ
ータの形式記述情報と,入力データとを入力し、入力デ
ータの各レコードに対してデータベース定義情報で指定
する項目の判定を行なって順次メモリ上に読込み、読込
み順がデータベースへの登録順と異なるレコードは暫定
的にダミーレコードを読込み、後のレコードの読込みで
ダミーレコードを更新して中間作業データを作成すると
共に、このメモリ上に作成した中間作業データのレコー
ド情報を作成する入力データファイル解析処理手段と、
この入力データファイル解析処理手段が作成した中間作
業データを同じく作成されたレコード情報に従ってデー
タベースに登録するデータベース登録処理手段とを有す
ることを特徴とする階層構造データベース登録処理方
式。
1. In a hierarchical structure database registration processing method for registering data in a hierarchical database having indefinite repetition, definition information of the database and format description information of input data for associating the database definition information with the input data. , And input data, the items specified in the database definition information are determined for each record of the input data, and the items are read sequentially into the memory. The records whose reading order differs from the registration order in the database are provisional. Input data file analysis processing means for reading the dummy record, updating the dummy record by reading the subsequent record to create intermediate work data, and creating record information of the intermediate work data created on this memory,
And a database registration processing means for registering the intermediate work data created by the input data file analysis processing means in the database in accordance with the similarly created record information.
JP4308420A 1992-11-18 1992-11-18 Register processing system for hierarchical structure data base Withdrawn JPH06162117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4308420A JPH06162117A (en) 1992-11-18 1992-11-18 Register processing system for hierarchical structure data base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4308420A JPH06162117A (en) 1992-11-18 1992-11-18 Register processing system for hierarchical structure data base

Publications (1)

Publication Number Publication Date
JPH06162117A true JPH06162117A (en) 1994-06-10

Family

ID=17980844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4308420A Withdrawn JPH06162117A (en) 1992-11-18 1992-11-18 Register processing system for hierarchical structure data base

Country Status (1)

Country Link
JP (1) JPH06162117A (en)

Similar Documents

Publication Publication Date Title
JP3647940B2 (en) Data management device
JPH06162117A (en) Register processing system for hierarchical structure data base
JP2000090093A (en) Method and system for full-text retrieval and record medium recording full-text retrieval program
JP2535629B2 (en) Input string normalization method of search system
JPH0193843A (en) System for coupling table
JP2000250930A (en) Structured document retrieval system
JP2798147B2 (en) Database input / output method and input / output device
JPH09114856A (en) Index generation for retrieval
JPH09146968A (en) Document retrieving method
JPH1115845A (en) Information retrieving method and device and recording medium storing information retrieving program
JPH02302869A (en) File edition system
JP2601139B2 (en) String search device
JPH06208495A (en) Processing method for registering data in data base file
JP3644765B2 (en) Document management method and document management method
JPH11161666A (en) Method and device for document data retrieval and document editing device
JPH0833899B2 (en) Index update method
JPS63229563A (en) Index production system
JPH05298368A (en) Method for inputting retrieving word in electronic filing system
JP3224917B2 (en) Name dictionary creation device
JPH05165891A (en) Data registration/retrieval system of data base
JPH08314958A (en) Data registering method in parliamentary papers retrieving system
JPH05342231A (en) Newest generation merchandize information retrieval system
JP2001256249A (en) Device and method for setting group number
JPH03180942A (en) Master file forming device for document data base
JPH06274391A (en) Master file quick update processing system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000201