JPH05241711A - Conversion data retrieving method - Google Patents

Conversion data retrieving method

Info

Publication number
JPH05241711A
JPH05241711A JP4078791A JP7879192A JPH05241711A JP H05241711 A JPH05241711 A JP H05241711A JP 4078791 A JP4078791 A JP 4078791A JP 7879192 A JP7879192 A JP 7879192A JP H05241711 A JPH05241711 A JP H05241711A
Authority
JP
Japan
Prior art keywords
conversion
key
data
conversion rule
search
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
Application number
JP4078791A
Other languages
Japanese (ja)
Inventor
Nobunaru Kobayashi
順考 小林
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP4078791A priority Critical patent/JPH05241711A/en
Publication of JPH05241711A publication Critical patent/JPH05241711A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the description amount of a conversion rule input file and also to shorten the file retrieving time. CONSTITUTION:A data conversion rule reading part 1 reads the data conversion rule and a conversion rule table production part 2 identifies whether the data conversion rule designates the full conversion or the limited conversion. Then the installs are distributed to a full designation conversion rule table 6 and a limited designation conversion rule table 7. When the retrieved data are inputted, a conversion rule table retrieving part 3 first retrieves the table 6. Then a conversion subject data converting part 4 rewrites the data when the table 6 is retrieved. If the table 6 is not retrieved, the table 7 is retrieved. Then the part 4 rewrites the data when the table 7 is retrieved.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ変換における変換
データ検索方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a conversion data retrieval system in data conversion.

【0002】[0002]

【従来の技術】従来の変換データ検索では、全指定変換
のすべての変換パターンを変換規則入力ファイルに記述
することにより、限定指定変換と同じように扱ってい
た。
2. Description of the Related Art In the conventional conversion data search, all conversion patterns of all specified conversions are described in a conversion rule input file and treated in the same manner as limited specified conversions.

【0003】[0003]

【発明が解決しようとする課題】この従来の変換データ
検索では、全指定変換を、すべての変換パターンを変換
規則入力ファイルに記述することにより、限定指定変換
と同じように扱うため、全指定変換を多く行う変換処理
では、変換規則入力ファイルの記述が大量となり、作成
が困難であるという課題があった。また、変換規則が大
量なので検索に要する時間が長くなるという課題があっ
た。
In this conventional conversion data search, all specified conversions are handled in the same way as limited specified conversions by describing all conversion patterns in the conversion rule input file. In the conversion process that performs a lot of, there is a problem that the description of the conversion rule input file becomes large and it is difficult to create. In addition, there is a problem that the time required for the search becomes long because there are a large number of conversion rules.

【0004】[0004]

【課題を解決するための手段】本発明の変化データ検索
方式は、指定された第1キーと第2キーの両方が一致し
た限定変換指定時に変換を行う場合と、第1キーのみが
一致した全変換指定時に変換を行う場合の、2種類の変
換が混在するデータ変換において、データ変換規則をフ
ァイルから読み込んでくるデータ変換規則読み込み部
と、このデータ変換規則読み込み部により読み込まれた
変換規則が上記全変換指定の際には第1キーのみをキー
としてテーブル1へインストールし,上記限定変換指定
の際には第1キーと第2キーとを結合させたものをキー
としてテーブル2へインストールを行う変換規則テーブ
ル作成部と、検索指定された変換データの第1検索キー
と第2検索キーとよりこの第1検索キーのみでテーブル
1より検索を行い,検索されなければ第1検索キーと第
2検索キーとを結合しこれを検索キーとしてテーブル2
より検索を行う変換規則テーブル検索部と、この変換規
則テーブル検索部により変換データが検索されたとき変
換対象データの変換を行うデータ変換部とを備えるもの
である。
According to the change data retrieval method of the present invention, only the first key is matched when the conversion is performed when the limited conversion is specified in which both the specified first key and the specified second key are matched. In the data conversion in which two types of conversions coexist when conversion is performed when all conversions are specified, the data conversion rule reading unit that reads the data conversion rules from the file and the conversion rules read by the data conversion rule reading unit When all conversions are specified, only the first key is installed in the table 1 as a key, and when limited conversions are specified, the combination of the first key and the second key is installed as the key in the table 2. From the conversion rule table creation unit to perform and the first search key and the second search key of the conversion data specified by the search, the table 1 is searched using only this first search key, Coupled first search key and the second search key to be searched table 2 it as a search key
A conversion rule table search unit for further searching and a data conversion unit for converting the conversion target data when the conversion data is searched by the conversion rule table search unit.

【0005】[0005]

【作用】本発明においては、2つの変換規則テーブルを
持たせ、変換規則入力ファイル上での限定指定変換と全
指定変換の記述方法を区別することによって、全指定変
換規則については、変換規則入力ファイルに全ての変換
パターンを記述する必要を無くす。
In the present invention, by providing two conversion rule tables and distinguishing the description method of the limited specified conversion and the all specified conversion on the conversion rule input file, the conversion rule input is performed for all specified conversion rules. Eliminates the need to describe all conversion patterns in the file.

【0006】[0006]

【実施例】図1は、本発明の一実施例を示すブロック図
で、変換データ検索および変換方法の構成例を示すもの
である。この図1において、1はデータ変換規則をファ
イルから読み込んでくるデータ変換規則読み込み部、2
はこのデータ変換規則読み込み部1により読み込まれた
変換規則が全変換指定の際には第1キーのみをキーとし
てテーブル1へインストールし,限定変換指定の際には
第1キーと第2キーとを結合させたものをキーとしてテ
ーブル2へインストールを行う変換規則テーブル作成
部、3は検索指定された変換データの第1検索キーと第
2検索キーとよりこの第1検索キーのみでテーブル1よ
り検索を行い,検索されなければ第1検索キーと第2検
索キーとを結合しこれを検索キーとしてテーブル2より
検索を行う変換規則テーブル検索部、4はこの変換規則
テーブル検索部3により変換データが検索されたとき変
換対象データの変換を行うデータ変換部である変換対象
データ変換部、5は変換規則入力ファイル、6は全指定
変換規則テーブル、7は限定指定変換規則テーブルであ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing an embodiment of the present invention, showing a configuration example of a conversion data search and conversion method. In FIG. 1, 1 is a data conversion rule reading unit that reads data conversion rules from a file, 2
When the conversion rule read by the data conversion rule reading unit 1 specifies all conversions, only the first key is installed in the table 1 as a key, and when limited conversion is specified, the first key and the second key The conversion rule table creating unit 3 which installs the combination of the keys into the table 2 is used as a key. The conversion rule table creating unit 3 uses the first search key and the second search key of the conversion data specified by the search, The conversion rule table search unit 4 searches the table 2 by performing a search and combining the first search key and the second search key and using this as a search key if the search is not performed. , A conversion target data conversion unit that is a data conversion unit that converts the conversion target data, 5 is a conversion rule input file, 6 is a designated conversion rule table, Is a limited specified conversion rule table.

【0007】つぎにこの図1に示す実施例の動作を説明
する。
Next, the operation of the embodiment shown in FIG. 1 will be described.

【0008】このデータ変換に当たっては、まず、デー
タ変換規則読み込み部1によって変換規則入力ファイル
5を読み込む。この読み込まれた変換規則の第2キーが
全変換指定を示しているならば、変換規則テーブル作成
部2によって、第1キーのみからハッシュキーを作成
し、これをキーとして全指定変化規則テーブル6へイン
ストールを行う。そして、読み込まれた変換規則の第2
キーが限定変換指定を示しているならば、変換規則テー
ブル作成部2によって、第1キーと第2キーとを結合さ
せたものからハッシュキーを作成し、これをキーとして
限定指定変換規則テーブル7へインストールを行う。
In this data conversion, first, the data conversion rule reading unit 1 reads the conversion rule input file 5. If the second key of the read conversion rule indicates all conversion specifications, the conversion rule table creation unit 2 creates a hash key from only the first key, and uses this as a key to specify all specification change rule table 6 Install to. And the second of the read conversion rules
If the key indicates the limited conversion specification, the conversion rule table creating unit 2 creates a hash key from a combination of the first key and the second key, and uses this as a key to create the limited specification conversion rule table 7 Install to.

【0009】つぎに、検索データが指定されたら、変換
規則テーブル検索部3により、まず指定された第1キー
のみよりハッシュキーを作成し、これをキーとして全指
定変換規則テーブル6を検索する。そして、検索されれ
ば、変換対象データ変換部4によってデータの書き換え
を行う。検索されなければ、指定された第1キーと第2
キーとよりハッシュキーを作成し、これをキーとして限
定指定変換規則テーブル7を検索する。検索されれば、
変換対象データ変換部4によって、データの書き換えを
行う。どちらのテーブルからも変換規則が検索されなか
ったときは、そのデータは変換規則に該当しないことに
なるので、変換は行われない。
Next, when the search data is specified, the conversion rule table search section 3 first creates a hash key from only the specified first key, and searches the all-specified conversion rule table 6 using this as a key. Then, if found, the conversion target data conversion unit 4 rewrites the data. If not found, the specified first key and second key
A hash key is created from the key and the limited specification conversion rule table 7 is searched using this as a key. If found,
The conversion target data conversion unit 4 rewrites the data. If the conversion rule is not retrieved from either table, the data does not correspond to the conversion rule, and therefore the conversion is not performed.

【0010】図2は図1におけるデータ変換規則読み込
み部1および変換規則テーブル作成部2の動作説明に供
するフローチャートで、本発明の一実施例の、データ変
換規則の読み込みから、変換規則テーブルの作成までの
動作を表わした図である。まず、変換規則データ読み込
み部11によってデータ変換規則を読み込む。この読み
込まれた変換規則は第2キー識別部21によって、全変
換指定と限定変換指定の2つの変換規則テーブルへ振り
分けられる。そして、変換規則の第2キーが全変換指定
を示しているならば、全指定変換規則テーブル作成部2
2により変換規則の第1キーのみからハッシュキーを作
成し、これをキーとして全指定変換規則テーブルへのイ
ンストールを行う。つぎに、変換規則の第2キーが限定
変換指定を示しているならば、限定指定変換規則テーブ
ル作成部23により変換規則の第1キーと第2キーとを
結合させたものからハッシュキーを作成し、これをキー
として限定指定変換規則テーブルへのインストールを行
う。
FIG. 2 is a flow chart for explaining the operation of the data conversion rule reading unit 1 and the conversion rule table creating unit 2 in FIG. 1, and in one embodiment of the present invention, the conversion rule table is created from the reading of the data conversion rule. It is a figure showing the operation up to. First, the conversion rule data reading unit 11 reads the data conversion rule. The read conversion rules are sorted by the second key identifying unit 21 into two conversion rule tables, which are the total conversion designation and the limited conversion designation. If the second key of the conversion rule indicates all conversion specifications, the all-specified conversion rule table creation unit 2
In step 2, a hash key is created only from the first key of the conversion rule, and the hash key is used as a key for installation in the all-specified conversion rule table. Next, if the second key of the conversion rule indicates the limited conversion specification, the limited specification conversion rule table creating unit 23 creates a hash key from the combination of the first key and the second key of the conversion rule. Then, using this as a key, the limited specification conversion rule table is installed.

【0011】図3は図1における変換規則テーブル検索
部3および変換対象データ変換部4の動作説明に供する
フローチャートで、変換規則の検索から、データの変換
までの動作を表わした図である。まず、全指定サーチキ
ー作成部31により入力された変換データの第1キーの
みからハッシュキーを作成する。そして、これをキーと
して、全指定変換規則テーブル検索部32により全指定
変換規則テーブルの検索を行う。変換規則が検索されれ
ば変換対象データ変換部41によってデータの書き換え
を行う。つぎに、変換規則が検索されなければ、限定指
定サーチキー作成部33により、入力された変換データ
の第1キーと第2キーとを結合させたものからハッシュ
キーを作成する。これをキーとして限定指定変換規則テ
ーブル検索部34により限定指定変換規則テーブルの検
索を行う。そして、変換規則が検索されれば変換対象デ
ータ変換部41によってデータの書き換えを行う。変換
規則が検索されなければ、そのデータは変換規則に該当
しないことになるので、変換は行われない。
FIG. 3 is a flow chart for explaining the operations of the conversion rule table search unit 3 and the conversion target data conversion unit 4 in FIG. 1, and shows the operations from the search of conversion rules to the conversion of data. First, a hash key is created only from the first key of the conversion data input by the all-specified search key creation unit 31. Then, using this as a key, the all-specified conversion rule table search unit 32 searches the all-specified conversion rule table. When the conversion rule is retrieved, the conversion target data conversion unit 41 rewrites the data. Next, if the conversion rule is not searched, the limited specified search key creation unit 33 creates a hash key from the combination of the first key and the second key of the input conversion data. Using this as a key, the limited specification conversion rule table search unit 34 searches the limited specification conversion rule table. When the conversion rule is retrieved, the conversion target data conversion unit 41 rewrites the data. If the conversion rule is not searched, the data does not correspond to the conversion rule and no conversion is performed.

【0012】[0012]

【発明の効果】以上、説明したように本発明は、2つの
変換規則テーブルを持たせ、変換規則入力ファイル上で
の限定指定変換と全指定変換の記述方法を区別すること
によって、全指定変換規則については変換規則入力ファ
イルに全ての変換パターンを記述する必要を無くするよ
うにしたので、限定指定変換と全指定変換とを混在させ
たまま変換処理を行うことができ、変換規則の記述も全
指定変換規則については、全ての変換規則を記述する必
要が無く、変換規則ファイルの記述が容易となり、ま
た、変換規則テーブルのサイズが少量で済むので、検索
時間が削減されるという効果がある。
As described above, according to the present invention, two conversion rule tables are provided, and by distinguishing the description method of the limited specified conversion and the all specified conversion on the conversion rule input file, the all specified conversion is performed. As for rules, since it is no longer necessary to describe all conversion patterns in the conversion rule input file, conversion processing can be performed with limited specification conversion and all specification conversion mixed, and conversion rules can also be described. For all specified conversion rules, it is not necessary to describe all conversion rules, the conversion rule file can be easily described, and the size of the conversion rule table can be small, so the search time can be reduced. ..

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1におけるデータ変換規則読み込み部および
変換規則テーブル作成部の動作説明に供するフローチャ
ートである。
FIG. 2 is a flowchart for explaining the operation of a data conversion rule reading unit and a conversion rule table creation unit in FIG.

【図3】図1における変換規則テーブル検索部および変
換対象データ変換部の動作説明に供するフローチャート
である。
3 is a flowchart for explaining the operation of a conversion rule table search unit and a conversion target data conversion unit in FIG.

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

1 データ変換規則読み込み部 2 変換規則テーブル作成部 3 変換規則テーブル検索部 4 変換対象データ変換部(データ変換部) 5 変換規則入力ファイル 6 全指定変換規則テーブル 7 限定指定変換規則テーブル 1 data conversion rule reading unit 2 conversion rule table creation unit 3 conversion rule table search unit 4 conversion target data conversion unit (data conversion unit) 5 conversion rule input file 6 all specified conversion rule table 7 limited specified conversion rule table

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 指定された第1キーと第2キーの両方が
一致した限定変換指定時に変換を行う場合と第1キーの
みが一致した全変換指定時に変換を行う場合の2種類の
変換が混在するデータ変換において、データ変換規則を
ファイルから読み込んでくるデータ変換規則読み込み部
と、このデータ変換規則読み込み部により読み込まれた
変換規則が前記全変換指定の際には第1キーのみをキー
としてテーブル1へインストールし,前記限定変換指定
の際には、第1キーと第2キーとを結合させたものをキ
ーとして、テーブル2へインストールを行う変換規則テ
ーブル作成部と、検索指定された変換データの第1検索
キーと第2検索キーとよりこの第1検索キーのみでテー
ブル1より検索を行い,検索されなければ第1検索キー
と第2検索キーとを結合しこれを検索キーとしてテーブ
ル2より検索を行う変換規則テーブル検索部と、この変
換規則テーブル検索部により変換データが検索されたと
き変換対象データの変換を行うデータ変換部とを備える
ことを特徴とする変換データ検索方法。
1. Two types of conversions are performed: one is when limited conversion is specified when both the specified first key and second key are matched and the other is specified when all conversions are specified when only the first key is matched. In mixed data conversion, the data conversion rule reading unit that reads the data conversion rules from the file and the conversion rule read by the data conversion rule reading unit uses only the first key as the key when the all conversion is specified. A conversion rule table creation unit that installs to Table 1 and installs to Table 2 with the combination of the first key and the second key as a key when the limited conversion is specified, and the conversion specified by the search From the first search key and the second search key of the data, the table 1 is searched only by this first search key, and if not searched, the first search key and the second search key are searched. A conversion rule table search unit for combining and performing a search from Table 2 using this as a search key, and a data conversion unit for converting the conversion target data when the conversion data is searched by the conversion rule table search unit. Converted data search method.
JP4078791A 1992-03-02 1992-03-02 Conversion data retrieving method Pending JPH05241711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4078791A JPH05241711A (en) 1992-03-02 1992-03-02 Conversion data retrieving method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4078791A JPH05241711A (en) 1992-03-02 1992-03-02 Conversion data retrieving method

Publications (1)

Publication Number Publication Date
JPH05241711A true JPH05241711A (en) 1993-09-21

Family

ID=13671704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4078791A Pending JPH05241711A (en) 1992-03-02 1992-03-02 Conversion data retrieving method

Country Status (1)

Country Link
JP (1) JPH05241711A (en)

Similar Documents

Publication Publication Date Title
JPH0287274A (en) On-line information retrieving system
JPH05241711A (en) Conversion data retrieving method
JP2702366B2 (en) Automatic data sharing method between programs
JPS61262924A (en) Electronic file device
JP3637606B2 (en) Data processing device
JPH07306863A (en) Generation device for link between document and dictionary
JPH0749880A (en) Data base access request device
JPH05314188A (en) Retrieval processing system for data having range
JPH0452766A (en) Document retrieval device
JPH0581320A (en) Information retrieving device
JPH05298368A (en) Method for inputting retrieving word in electronic filing system
JPH05225244A (en) Retrieval system for arabic data
JPH1021246A (en) Document retrieval system
JPH05334364A (en) Method for preparing retrieval condition expression
JP2724235B2 (en) Variable name inference device
JPH04218858A (en) Operating rule table converter
JPH1063552A (en) Code conversion system
JPH04304559A (en) Data retrieving system
JPH06274332A (en) Registration/retrieval method for program parts
JPH0546669A (en) Hit ratio improvement system for data base retrieval system
JPH0635766A (en) Document data management system
JPH0612461A (en) Data output system
JPH05210562A (en) Network file system
JPH02120950A (en) Address conversion system for memory dump file access
JPH02148218A (en) Code converting system by two-stage retrieval