JPH03180942A - Master file forming device for document data base - Google Patents
Master file forming device for document data baseInfo
- Publication number
- JPH03180942A JPH03180942A JP1318814A JP31881489A JPH03180942A JP H03180942 A JPH03180942 A JP H03180942A JP 1318814 A JP1318814 A JP 1318814A JP 31881489 A JP31881489 A JP 31881489A JP H03180942 A JPH03180942 A JP H03180942A
- Authority
- JP
- Japan
- Prior art keywords
- document
- master file
- file
- length
- fixed
- 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.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、判例等の如き大量の文書データを扱う文書デ
ータベース用のマスタファイルを作成する装置に関する
。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an apparatus for creating a master file for a document database that handles a large amount of document data such as judicial precedents.
従来、文書データベース用のマスタファイルの作成は、
そのマスタファイルを通して文書データベースに登録し
ようとする文書の項目数(エントリ項目の数)および項
目データ長が決まった段階で、その項目数と項目データ
長を考慮した専用のデータエントリプログラムを作成し
、このプログラムを用いて利用者が各項目の内容をキー
入力することによりマスタファイルに反映可能な形式の
固定長レコードからなるエントリデータを作成し、その
内容をマスタファイルに反映する方式となっていた。Traditionally, creating a master file for a document database was done by
Once the number of items (number of entry items) and item data length of the document to be registered in the document database through the master file are determined, create a dedicated data entry program that takes the number of items and item data length into consideration. Using this program, the user created entry data consisting of fixed-length records in a format that could be reflected in the master file by key-inputting the contents of each item, and the contents were reflected in the master file. .
上述した従来の方式は、項目数や項目データ長が決定し
ている場合には有効なものであったが、項目数や項目デ
ータ長が定まらない場合には専用のデータエントリプロ
グラムを作成することができない為、マスタファイルの
作成にかかる作業を一切進めることができないという問
題点があった。The conventional method described above is effective when the number of items and item data length are determined, but when the number of items and item data length are not determined, it is necessary to create a dedicated data entry program. Therefore, there was a problem in that the work involved in creating the master file could not proceed at all.
また、この種のデータエントリプログラムは比較的短い
固定的内容のエントリを目的とする為に長大な文章の入
力には不向きであり、利用者の作業効率が悪いという問
題点もあった。Furthermore, since this type of data entry program is intended for relatively short entries with fixed content, it is not suitable for inputting long texts, and there is also the problem that the user's work efficiency is poor.
本発明はこのような従来の問題点を解決したもので、そ
の目的は、項目数や項目データ長が定まっていない場合
でも適用可能であり、然も長大な文章の入力が容易に行
える文書データベース用マスタファイル作成装置を提供
することにある。The present invention solves these conventional problems, and its purpose is to provide a document database that can be applied even when the number of items and item data length are not fixed, and that allows the input of long sentences easily. The purpose of the present invention is to provide a master file creation device for
本発明は上記の目的を達成するために、所定の形式を有
する固定長レコードの集まりである文書データベース用
マスタファイルを作成する装置において、ワードプロセ
ッサで作成された任意の項目数および項目データ長を有
する文書を入力し、その文書中の各項目の内容を前記文
書データベース用マスタファイルの形式に合致し且つそ
の項目データ長に応した数の固定長レコードに変換した
テンポラリファイルを生成する第1の処理手段と、この
第1の処理手段で生威されたテンポラリファイルの内容
を文書デークヘース用マスタファイルに反映する第2の
処理手段とを備えている。In order to achieve the above object, the present invention provides an apparatus for creating a master file for a document database, which is a collection of fixed-length records having a predetermined format, which has an arbitrary number of items and item data length created by a word processor. A first process of inputting a document and generating a temporary file in which the contents of each item in the document are converted into a number of fixed-length records that match the format of the document database master file and correspond to the item data length. and a second processing means for reflecting the contents of the temporary file created by the first processing means in the document database master file.
[作用]
本発明の文書データベース用マスタファイル作成装置に
おいては、利用者がワードプロセンサを使用して作成し
た任意の項目数および項目データ長を有する文書を入力
すると、第1の処理手段が、その入力された文書中の各
項目の内容を前記文書データベース用マスタファイルの
形式に合致し且つその項目データ長に応した数の固定長
レコードに変換したテンポラリファイルを生威し、次い
で第2の処理手段が、第1の処理手段で生成されたテン
ポラリファイルの内容を文書データヘース用マスタファ
イルに反映する。[Operation] In the document database master file creation device of the present invention, when a user inputs a document created using a word processor sensor and having an arbitrary number of items and item data length, the first processing means performs the following steps. A temporary file is created in which the content of each item in the input document is converted into a number of fixed-length records that match the format of the document database master file and corresponds to the item data length, and then a second A processing means reflects the contents of the temporary file generated by the first processing means in a master file for document data.
[実施例]
次に、本発明の実施例について図面を参照して詳細に説
明する。[Example] Next, an example of the present invention will be described in detail with reference to the drawings.
第1図を参照すると、本発明の一実施例は、ワードプロ
セッサ1.フロッピィディスク制御装置2、フロッピィ
ディスク媒体3.フロッピィディスク制御装置4.処理
装置5.旧マスタファイル6、新マスタファイル7、磁
気ディスク媒体8゜キーボード9 磁気テープ制御語W
10.11および磁気ディスク制御装置12で槽底され
、処理装置5内には第1の処理手段51と第2の処理手
段52とが設けられている。Referring to FIG. 1, one embodiment of the present invention includes a word processor 1. Floppy disk control device 2, floppy disk medium 3. Floppy disk controller 4. Processing device 5. Old master file 6, new master file 7, magnetic disk medium 8° Keyboard 9 Magnetic tape control word W
10.11 and the magnetic disk control device 12, and the processing device 5 is provided with a first processing means 51 and a second processing means 52.
ワードプロセッサ1は一般の汎用ワードプロセッサであ
り、文書データベース用マスタファイルである新マスタ
ファイル7に登録すべき文書はこのワードプロセッサ1
を使って利用者により作成され、作成された文書はフロ
ッピィディスク制御装置2を介してフロッピィディスク
媒体3に一旦格納される。ここで、作成された各文書は
、各文書毎に付与されたユニークなキーであるプライマ
ルキーと、文書内の項目を表すタグと、その項目の内容
であるデータ(項目データ)から槽底されている。項目
数及び項目データの長さは任意(不定)である。The word processor 1 is a general-purpose word processor, and documents to be registered in the new master file 7, which is a master file for a document database, are written in this word processor 1.
The document is created by the user using the floppy disk controller 2, and the created document is temporarily stored in the floppy disk medium 3 via the floppy disk controller 2. Here, each document created is based on the primal key, which is a unique key given to each document, the tag representing the item in the document, and the data (item data) that is the content of the item. ing. The number of items and the length of item data are arbitrary (undefined).
旧マスタファイル6は既に作成されている文書データヘ
ース用マスタファイルであって、その中の可変レコード
群はブライマルキーで昇順にソートされており、また磁
気ディスク媒体8上に作成されたテンポラリファイル8
1−0〜81−1は処理過程で一時的に使用されるファ
イルである。The old master file 6 is a master file for document data that has already been created, and the variable records therein are sorted in ascending order using a brimal key, and is also a temporary file 8 that has been created on the magnetic disk medium 8.
1-0 to 81-1 are files used temporarily during the processing process.
何れも新マスタファイル7と同一形式の固定長レコード
から槽底されている。各固定長レコードには、所定長ま
での項目データの内容が格納されると共に、ブライマル
キーおよびタグが付与され、更に1文書内に同一のタグ
が存在した場合の順序を表すタグ順序キーと、項目デー
タを複数のレコードに分割した場合の順序を表すデータ
順序キーとが付与される。Both are created from fixed-length records of the same format as the new master file 7. Each fixed-length record stores the contents of item data up to a predetermined length, is given a brimal key and a tag, and further includes a tag order key that indicates the order when the same tag exists in one document. A data order key indicating the order in which item data is divided into multiple records is assigned.
処理装置5の第1の処理手段51は、ワードプロセッサ
で作成されフロッピィディスク媒体3に格納された文書
をフロッピィディスク制御装置4を介しで入力し、この
文書中の各項目の内容を新マスタファイル7の形式に合
致し且つその項目データ長に応じた数の固定長レコード
に変換し、更に全ての固定長レコードをプライマルキー
でソートした固定長レコード群を磁気ディスク制御装置
12を介してテンポラリファイル81−oに出力する機
能を有する。The first processing means 51 of the processing device 5 inputs a document created by a word processor and stored in the floppy disk medium 3 via the floppy disk control device 4, and stores the contents of each item in this document in a new master file 7. The fixed-length records are converted into a number of fixed-length records that match the format and correspond to the item data length, and all the fixed-length records are sorted by the primal key, and then the fixed-length records are stored in a temporary file 81 via the magnetic disk controller 12. It has the function of outputting to -o.
他方、第2の処理手段52は、第1の処理手段51で生
成されたテンポラリファイル81−oの内容を旧マスタ
ファイル6に反映することδこより新マスタファイル7
を作成するもので、テンポラリファイル81−0の内容
を新たな文書として旧マスタファイル6に加えることに
より新マスタファイル7を作成する新規処理部521と
、テンポラリファイル81−0の内容を旧マスタファイ
ル6に存在する同一プライマルキーを持つ文書の一部と
して追加することにより新マスタファイル7を作成する
追加処理部522と、テンポラリファイル81−0の内
容を旧マスタファイル6に存在する同一プライマルキー
を持つ文書の一部と入れ換えることにより新マスタファ
イル7を作成する修正処理部523とを有している。な
お、新規処理部521.追加処理部522.修正処理部
523はキーボード9からの指定により何れかが選択さ
れる。On the other hand, the second processing means 52 reflects the contents of the temporary file 81-o generated by the first processing means 51 in the old master file 6, thereby creating a new master file 7.
A new processing unit 521 creates a new master file 7 by adding the contents of the temporary file 81-0 as a new document to the old master file 6, and a new processing unit 521 adds the contents of the temporary file 81-0 to the old master file 6. an addition processing unit 522 that creates a new master file 7 by adding the contents of the temporary file 81-0 as part of a document with the same primal key existing in the old master file 6; The master file 7 also includes a modification processing unit 523 that creates a new master file 7 by replacing a part of the existing document. Note that the new processing unit 521. Additional processing unit 522. One of the correction processing units 523 is selected by designation from the keyboard 9.
磁気ディスク媒体8は処理過程で必要となる複数のテン
ポラリファイル81−O〜81−lと追加項目管理ファ
イル82を保持するものである。The magnetic disk medium 8 holds a plurality of temporary files 81-O to 81-l and an additional item management file 82 that are required in the processing process.
ここで、追加項目管理ファイル82は追加処理部522
および修正処理部523によって使用されるファイルで
あり、文書のプライマルキーと、文書が数回にわたって
エントリされた場合の順序を表すエントリ番号とlエン
トリ内の文書に存在したタグの集合を含むレコードから
構成されるIsAMファイルである。Here, the additional item management file 82 is stored in the additional processing unit 522.
and a file used by the correction processing unit 523, from records containing the primal key of the document, the entry number representing the order in which the document has been entered several times, and the set of tags that existed in the document within the entry. This is an IsAM file configured.
次に、上述のように構成された本実施例の動作を具体例
を交えて説明する。Next, the operation of this embodiment configured as described above will be explained using a specific example.
利用者は、新マスタファイル7を作成する場合、今回登
録しようとする文書について、各文書毎に必要なタグと
項目データとをワードプロセンサ1の画面を見ながらキ
ー入力していき、全ての文書の作成を終了すると、作成
した各文書をフロッピィディスク制御装置2によってフ
ロッピィディスク媒体3に格納する。When creating a new master file 7, the user enters the necessary tags and item data for each document for each document while looking at the screen of the word processor sensor 1. When the document creation is completed, each created document is stored in the floppy disk medium 3 by the floppy disk controller 2.
第2図はフロンビイディスク媒体3に格納された内容の
一例を示しており、同図(a)はフロッピィディスク媒
体3に複数のフロッピィ内文書が格納されている様子を
、同図(b)は1つのフロッピィ内文書中に複数の文書
(登録対象文書)が格納されている様子を、そして同図
(C)がlっの文書の内容例を示している。同図(C)
に示すように、ワードプロセッサ1を使用して作成され
た個々の文書は、010.020.・・・、070の如
き文書内の項目を表すタグと、そのタグの後ろに記述さ
れた項目データ(1)、 (2)、 ・・・、(8)
とから構成されている。各項目データの長さは任意(不
定)である。ここで、先頭のタグ010に対応する項目
データ(1)は当該文書に付与されたユニークなプライ
マルキーであり、図示の例では5OOOIになっている
。他のタグ020.・・・、070に対応する項目デー
タ(2)・・・、(8)は当該文書中の他の項目であり
、例えば判例データヘースを例にすれば、判決日1判決
要旨2判決主文等が該当する。なお、タグ030が二つ
存在するのは、同一の項目が二つ存在しているからであ
る。FIG. 2 shows an example of the contents stored in the floppy disk medium 3, and FIG. 1 shows how a plurality of documents (documents to be registered) are stored in one floppy document, and FIG. 2C shows an example of the contents of one document. Same figure (C)
As shown in , each document created using Word Processor 1 is 010.020. ..., 070, and the item data written after the tag (1), (2), ..., (8)
It is composed of. The length of each item data is arbitrary (undefined). Here, the item data (1) corresponding to the first tag 010 is a unique primal key given to the document, and is 5OOOI in the illustrated example. Other tags 020. The item data (2)..., (8) corresponding to ..., 070 are other items in the document. For example, if we take case law data as an example, judgment date 1 judgment summary 2 main text of judgment, etc. Applicable. Note that the reason why there are two tags 030 is because there are two identical items.
文書の作成が終了すると、次に利用者はフロッピィディ
スク媒体3をフロッピィディスク制御装置4にセットし
、キーボード9から処理の種別を指定して処理装置5を
起動する。When the document creation is completed, the user then sets the floppy disk medium 3 in the floppy disk control device 4, specifies the type of processing from the keyboard 9, and starts the processing device 5.
処理袋W5は起動されると、先ず第1の処理手段51を
動作させ、その動作が終了すると指定された種別に応じ
て、新規処理ならば第2の処理手段52の新規処理部5
21を、追加処理ならば追加処理部522を、修正処理
ならば修正処理部523を動作させる。When the processing bag W5 is activated, it first operates the first processing means 51, and when the operation is completed, it operates the new processing unit 5 of the second processing means 52 if it is a new process, depending on the specified type.
21, additional processing section 522 is operated for addition processing, and correction processing section 523 is operated for correction processing.
第1の処理手段51は動作を開始すると、フロッピィデ
ィスク制御装置4を介してフロッピィディスク媒体3に
格納された文書を1文書ずつ読み出し、各文書中の各項
目の内容を新マスタファイル7の形式に合致し且つその
項目データ長番こ応した数の固定長レコードに変換した
テンポラリファイル81−0を磁気ディスク媒体8上に
作成する。When the first processing means 51 starts operating, it reads out the documents stored in the floppy disk medium 3 one by one via the floppy disk controller 4, and converts the contents of each item in each document into the new master file 7 format. A temporary file 81-0 is created on the magnetic disk medium 8, which is converted into a number of fixed-length records that match the item data length number and correspond to the item data length number.
そして、テンポラリファイル81−0中の固定長■0 レコードをブライマルキーで昇順にソートする。And the fixed length ■0 in the temporary file 81-0 Sort records by brimal key in ascending order.
第3図は第1の処理手段51によって生成されたテンポ
ラリファイル81−oの一部を示し、第2図(C)のプ
ライマルキー=SOOO1を持つ文書に対応している。FIG. 3 shows a part of the temporary file 81-o generated by the first processing means 51, and corresponds to the document with primal key=SOOO1 in FIG. 2(C).
同図に示すように、フロッピィディスク媒体3に格納さ
れた文書は複数の固定長レコードRに変換され、各固定
長レコードRは、タグ、ブライマルキー、タグ順序キー
、データ順序キー、項目データで構成されている。ここ
で、タグ010〜030,060,07(11項目デー
タ(])〜(4)、 (7)、 (8)は1つの固定長
レコードRに納まるサイズであ3ったことから各々1つ
の固定長レコードRに収納されており、タグ040 0
50の項目データ(5)、 (6)は長文であった為に
それぞれm個、n個の固定長レコードRに分割して格納
されている。そして、その順序がデータ順序キーで指示
されている。また、同一のタグ030について2つの項
目データ(3)、 (4)が存在していた為にその順序
がタグ順序キーで示されている。As shown in the figure, a document stored on the floppy disk medium 3 is converted into a plurality of fixed-length records R, and each fixed-length record R has a tag, a brimal key, a tag order key, a data order key, and item data. It is configured. Here, tags 010 to 030, 060, 07 (11 item data (]) to (4), (7), and (8) are 3 in size that can fit in one fixed-length record R, so each one It is stored in fixed length record R and has tag 040 0.
Since the 50 item data (5) and (6) were long sentences, they were divided and stored into m and n fixed-length records R, respectively. The order is indicated by a data order key. Furthermore, since two item data (3) and (4) exist for the same tag 030, their order is indicated by the tag order key.
さて、第1の処理手段51による上述した処理1
が終了すると、今回の処理の種別に応して、新規処理部
521.追加処理部522.修正処理部523の何れか
が起動される。以下、各種別毎にその動作を説明する。Now, when the above-described processing 1 by the first processing means 51 is completed, the new processing section 521. Additional processing unit 522. One of the correction processing units 523 is activated. The operation of each type will be explained below.
先ず、新規処理の場合は新規処理部521が動作し、第
4図の動作説明図に示すように、テンポラリファイル8
1−0および旧マスタファイル6の先頭からそれぞれ1
文書にかかる固定長レコード群を読み込み、ブライマル
キーの小さい方の固定長レコード群を新マスタファイル
7に出力する。First, in the case of new processing, the new processing section 521 operates, and as shown in the operation explanatory diagram of FIG.
1-0 and 1 each from the beginning of old master file 6
The fixed-length record group related to the document is read, and the fixed-length record group with the smaller brimal key is output to the new master file 7.
そして、テンポラリファイル81−0の固定長レコード
群を新マスタファイル7に出力した場合にはテンポラリ
ファイル81−0から次の1文書にかかる固定長レコー
ド群を読み込んで上述と同様の処理を行い、旧マスタフ
ァイル6の固定長レコード群を新マスタファイル7に出
力した場合には旧マスタファイル6から次の1文書にか
かる固定長レコード群を読み込んで上述と同様の処理を
行う。以上の処理は、テンポラリファイル81−0また
は旧マスタファイル6の何れかの固定長レコ2
一ド群が無くなるまで続け、一方のファイルの全ての固
定長レコード群を全て新マスタファイル7に出力すると
他方のファイルの残りの固定長レコード群を新マスタフ
ァイル7に出力し、処理を終了する。以上で、テンポラ
リファイル81−0の内容を新たな文書として旧マスタ
ファイル6に加えた新マスタファイル7が生成されたこ
とになる。Then, when the fixed-length record group of the temporary file 81-0 is output to the new master file 7, the fixed-length record group for the next one document is read from the temporary file 81-0 and the same process as described above is performed. When the fixed length record group of the old master file 6 is output to the new master file 7, the fixed length record group for the next one document is read from the old master file 6 and the same processing as described above is performed. The above processing continues until there are no fixed-length records 2 in either the temporary file 81-0 or the old master file 6, and all fixed-length records in one file are output to the new master file 7. The remaining fixed-length record group of the other file is output to the new master file 7, and the process ends. As described above, a new master file 7 has been generated in which the contents of the temporary file 81-0 are added to the old master file 6 as a new document.
次に、追加処理の場合は追加処理部522が動作する。Next, in the case of additional processing, the additional processing unit 522 operates.
追加処理部522は第5図の動作説明図に示すように、
先ずテンポラリファイル81−0の先頭から1文書にか
かる固定長レコード群を読み込み、その中に存在するタ
グの集合を生成する。As shown in the operation diagram of FIG. 5, the additional processing unit 522 performs the following operations.
First, a fixed-length record group for one document is read from the beginning of the temporary file 81-0, and a set of tags existing therein is generated.
次にその文書にかかるプライマルキーで追加項目管理フ
ァイル82を検索する。そして、追加項目管理ファイル
82にそのプライマルキーと同一のプライマルキーを持
つレコードが無ければそのプライマルキーとエントリ番
号r1」と今回生成したタグの集合とを含むレコードを
生成して追加項目管理ファイル82に追加する。また、
レコードの検索が成功した場合には検索されたレコード
中3
の最大のエントリ番号にrIJを加えたエントリ番号と
そのブライマルキーと今回求めたタグの集合とを含むレ
コードを生成して追加項目管理ファイル82に追加する
。例えば、今までの文書のエントリ回数が1であってプ
ライマルキーー5OO01に関する文書の内容として例
えば第3図に示す内容のものが旧マスタファイル6に格
納されている場合、今回の追加処理は最初の追加処理と
なるので追加項目管理ファイル82には該当するレコー
ドは存在せず、このため新たにタグ080090とそれ
に対応する項目データとを含む文書を追加する場合には
、第6図に示すように、プライマルキー=SOOO1,
エントリ番号「1」。Next, the additional item management file 82 is searched using the primal key associated with the document. Then, if there is no record with the same primal key as that primal key in the additional item management file 82, a record containing that primal key, entry number r1'', and the set of tags generated this time is generated and added to the additional item management file 82. Add to. Also,
If the record search is successful, a record is generated that includes the entry number obtained by adding rIJ to the 3 largest entry number among the searched records, its brimal key, and the set of tags obtained this time, and an additional item management file is created. Add to 82. For example, if the number of entries of the document so far is 1 and the content of the document related to the primal key 5OO01, for example, the content shown in FIG. 3 is stored in the old master file 6, the current additional processing is Since this is an addition process, there is no corresponding record in the additional item management file 82. Therefore, when adding a new document containing tag 080090 and the item data corresponding to it, as shown in FIG. , primal key=SOOO1,
Entry number "1".
タグの集合(080,090)を含むレコードが追加項
目管理ファイル82に格納されることになる。A record including the tag set (080, 090) will be stored in the additional item management file 82.
追加処理部522は追加項目管理ファイル82へのレコ
ードの格納を終えると、テンポラリファイル81−0か
ら今回読み込んだ文書のプライマルキーと等しいプライ
マルキーを持つ旧マスクフ4
アイル6の文書までの固定長レコード群を新マスタファ
イル7に出力し、次いで今回テンポラリファイル81−
0から読み込んだ追加文書の固定長レコード群を新マス
タファイル7に出力する。When the addition processing unit 522 finishes storing records in the additional item management file 82, it stores fixed-length records from the temporary file 81-0 to the document in the old MASK 4 file 6 that has a primal key equal to the primal key of the document read this time. group to the new master file 7, and then this time to the temporary file 81-
A fixed length record group of additional documents read from 0 is output to the new master file 7.
追加処理部522は以上と同様な処理をテンポラリファ
イル81−〇が空になるまで繰り返し、その後に、旧マ
スタファイル6に固定長レコード群が残っていれば、そ
れを新マスタファイル7に全て出力する。これによって
、テンポラリファイル81−0の内容を旧マスタファイ
ル6に存在する同一ブライマルキーを持つ文書の一部と
して追加した新マスタファイル7が作成されたことにな
る。The additional processing unit 522 repeats the same process as above until the temporary file 81-0 becomes empty, and then, if there are fixed-length records remaining in the old master file 6, outputs them all to the new master file 7. do. As a result, a new master file 7 is created in which the contents of the temporary file 81-0 are added as part of a document having the same brimal key existing in the old master file 6.
次に、修正処理の場合は修正処理部523が動作する。Next, in the case of correction processing, the correction processing unit 523 operates.
修正処理部523は第7図の動作説明図に示すように、
先ずテンポラリファイル81−0の先頭から1文書にか
かる固定長レコード群を読み込み、そのプライマルキー
と等しいプライマルキーの旧マスタファイル6の文書の
直前の文書までの固定長レコード群を新マスタファイル
7に出5
力する。次にそのプライマルキーと等しいプライマルキ
ーの旧マスタファイル6の文書にかかる固定長レコード
群を読み込み、そのプライマルキーで追加項目管理ファ
イル82を検索して得た1つ以上のエントリ番号とタグ
の集合とに基づいて、上記読み込んだ固定長レコード群
をエントリ番号毎に振り分けて必要な個数分のテンポラ
リファイル81−1〜81−1に出力する。次いで、テ
ンポラリファイル81−0から読み込んだ上記文書にか
かる固定長レコード群のタグとプライマルキーで追加項
目管理ファイル82を検索し、修正対象となるエントリ
番号を得る。そして、テンポラリファイル81−1〜8
1−1のうち、そのエントリ番号に対応する旧マスタフ
ァイル6の固定長レコード群を格納しているテンポラリ
ファイル81−jを除いた残りのテンポラリファイルに
格納されている固定長レコード群を新マスタファイル7
に出力し、その後に今回テンポラリファイル81−0か
ら読み込んだ修正文書にかかる固定長レコード群を新マ
スタファイル7に出力する。As shown in the operation diagram of FIG. 7, the correction processing unit 523 performs the following operations.
First, a fixed-length record group corresponding to one document is read from the beginning of the temporary file 81-0, and the fixed-length record group up to the document immediately before the document in the old master file 6 with the same primal key as that primal key is written to the new master file 7. Output 5 Output. Next, a set of one or more entry numbers and tags obtained by reading the fixed-length records related to the document in the old master file 6 with the same primal key as that primal key, and searching the additional item management file 82 with that primal key. Based on this, the read fixed-length record group is sorted by entry number and output to the necessary number of temporary files 81-1 to 81-1. Next, the additional item management file 82 is searched using the tag and primal key of the fixed-length record group related to the document read from the temporary file 81-0 to obtain the entry number to be modified. And temporary files 81-1 to 81-8
1-1, the fixed-length record groups stored in the remaining temporary files excluding the temporary file 81-j that stores the fixed-length record group of the old master file 6 corresponding to that entry number are transferred to the new master. file 7
Then, the fixed length records related to the modified document read from the temporary file 81-0 this time are output to the new master file 7.
6
修正処理部523は以上と同様な処理をテンポラリファ
イル81−0が空になるまで繰り返し、その後に、旧マ
スタファイル6に固定長レコード群が残っていれば、そ
れを新マスタファイル7に全て出力する。これによって
、テンポラリファイル81−0の内容を旧マスタファイ
ル6に存在する同一ブライマルキーを持つ文書の一部と
入れ換えた新マスタファイル7が作成されたことになる
。6 The modification processing unit 523 repeats the same process as above until the temporary file 81-0 becomes empty, and then, if there are fixed-length record groups remaining in the old master file 6, all of them are transferred to the new master file 7. Output. As a result, a new master file 7 is created in which the contents of the temporary file 81-0 are replaced with part of the document having the same brimal key existing in the old master file 6.
[発明の効果]
以上説明したように、本発明では、−船釣なワードプロ
セッサを使用して作成された任意の項目数2項目データ
長の文書に基づいて文書データベース用マスタファイル
の作成が行われるので、項目数や項目データ長を定める
ことが困難で従って専用のデータエントリプログラムを
作成することができない状況下でも、利用者はマスタフ
ァイルの作成作業を進めることが可能となる。また、ワ
ードプロセッサは本来長文の作成が容易な為、判例デー
タベース等の如き大量文書データベース用のマスタファ
イルを効率良く作成することができ7[Effects of the Invention] As explained above, in the present invention, - a master file for a document database is created based on a document with an arbitrary number of items and data length of 2 items created using a word processor; Therefore, even in a situation where it is difficult to determine the number of items and item data length and therefore cannot create a dedicated data entry program, the user can proceed with the work of creating a master file. In addition, since word processors are inherently easy to create long texts, they can efficiently create master files for large-volume document databases such as case law databases.
第1図は本発明の一実施例の構成図、
第2図はフロッピィディスク媒体3の内容例を示す図、
第3図はテンポラリファイル81−0の内容例を示す図
、
第4図は新規処理部521の動作説明図、第5図は追加
処理部522の動作説明図、第6図は追加項目管理ファ
イル82の内容例を示す図および、
第7図は修正処理部523の動作説明図である。
図において、
1・・・ワードプロセッサ
2.4・・・フロッピィディスク制御装置3・・・フロ
ッピィディスク媒体
5・・・処理装置
6・・・旧マスタファイル
7・・・新マスタファイル
8・・・磁気ディスク媒体
8
8
・・・キーボード
0211・・・磁気テープ制御装置
2・・・磁気ディスク制御装置
1・・・第1の処理手段
2・・・第2の処理手段
521・・・新規処理部
522・・・追加処理部
523・・・修正処理部
1−0〜81−l・・・テンポラリファイル2・・・追
加項目管理ファイルFig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a diagram showing an example of the contents of the floppy disk medium 3, Fig. 3 is a diagram showing an example of the contents of the temporary file 81-0, and Fig. 4 is a new example. FIG. 5 is an explanatory diagram of the operation of the processing unit 521, FIG. 5 is an explanatory diagram of the operation of the addition processing unit 522, FIG. 6 is a diagram illustrating an example of the contents of the additional item management file 82, and FIG. 7 is an explanatory diagram of the operation of the correction processing unit 523. It is. In the figure, 1... Word processor 2.4... Floppy disk control device 3... Floppy disk medium 5... Processing device 6... Old master file 7... New master file 8... Magnetic Disk medium 8 8 ... Keyboard 0211 ... Magnetic tape control device 2 ... Magnetic disk control device 1 ... First processing means 2 ... Second processing means 521 ... New processing section 522 ...Additional processing section 523...Modification processing section 1-0 to 81-l...Temporary file 2...Additional item management file
Claims (1)
書データベース用マスタファイルを作成する装置におい
て、 ワードプロセッサで作成された任意の項目数および項目
データ長を有する文書を入力し、該文書中の各項目の内
容を前記文書データベース用マスタファイルの形式に合
致し且つその項目データ長に応じた数の固定長レコード
に変換したテンポラリファイルを生成する第1の処理手
段と、 該第1の処理手段で生成されたテンポラリファイルの内
容を文書データベース用マスタファイルに反映する第2
の処理手段とを具備したことを特徴とする文書データベ
ース用マスタファイル作成装置。[Claims] A device for creating a master file for a document database, which is a collection of fixed-length records in a predetermined format, is provided by inputting a document created with a word processor and having an arbitrary number of items and item data length; a first processing means for generating a temporary file in which the content of each item in a document is converted into a number of fixed-length records that match the format of the document database master file and correspond to the item data length; A second process that reflects the contents of the temporary file generated by the processing means in the document database master file.
1. A master file creation device for a document database, comprising: processing means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1318814A JPH03180942A (en) | 1989-12-11 | 1989-12-11 | Master file forming device for document data base |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1318814A JPH03180942A (en) | 1989-12-11 | 1989-12-11 | Master file forming device for document data base |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03180942A true JPH03180942A (en) | 1991-08-06 |
Family
ID=18103244
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1318814A Pending JPH03180942A (en) | 1989-12-11 | 1989-12-11 | Master file forming device for document data base |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03180942A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06231177A (en) * | 1993-02-03 | 1994-08-19 | Nec Corp | Data base retrieving system |
-
1989
- 1989-12-11 JP JP1318814A patent/JPH03180942A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06231177A (en) * | 1993-02-03 | 1994-08-19 | Nec Corp | Data base retrieving system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3691844B2 (en) | Document processing method | |
| JPH08305616A (en) | Data management system | |
| US20060080361A1 (en) | Document information processing apparatus, document information processing method, and document information processing program | |
| JPH03180942A (en) | Master file forming device for document data base | |
| JP2000090093A (en) | Method and system for full-text retrieval and record medium recording full-text retrieval program | |
| JP2000003366A (en) | Document registration method, document search method, its execution device, and medium recording processing program for it | |
| JPH07296009A (en) | Database integrated search device | |
| JPH06195379A (en) | Case base and its input/accumulation device | |
| JP3210842B2 (en) | Information processing device | |
| JP2000347907A (en) | Automatic data file converting device | |
| JPH08115340A (en) | Document retrieval device and generating device for index file used for the same | |
| JP2605402B2 (en) | Data derivation method in dictionary system | |
| JP2788849B2 (en) | Grouping method by serial number description | |
| JP3047400B2 (en) | Data processing device | |
| JPH04330565A (en) | natural language processing system | |
| JPH02116972A (en) | Retrieval system for program data base | |
| JPH0668160A (en) | Information retrieval method | |
| JPH08297571A (en) | Software management method and apparatus | |
| JPH05165619A (en) | Standard name attaching system | |
| JPH05197591A (en) | Generation method for test data | |
| JPH0659950A (en) | Database system | |
| JPS5850044A (en) | Retrieval processing system for index record | |
| JPH0793143A (en) | Data definition specification generation method | |
| JPH06139058A (en) | Program reorganization specification preparation system | |
| JPS63282821A (en) | code string converter |