JPH01319829A - Form inspecting system for input data - Google Patents
Form inspecting system for input dataInfo
- Publication number
- JPH01319829A JPH01319829A JP63154426A JP15442688A JPH01319829A JP H01319829 A JPH01319829 A JP H01319829A JP 63154426 A JP63154426 A JP 63154426A JP 15442688 A JP15442688 A JP 15442688A JP H01319829 A JPH01319829 A JP H01319829A
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- input data
- processing
- collating
- internal
- 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
- 238000000034 method Methods 0.000 claims abstract description 26
- 238000012545 processing Methods 0.000 abstract description 12
- 230000000694 effects Effects 0.000 abstract description 5
- 238000007781 pre-processing Methods 0.000 abstract description 4
- 238000007689 inspection Methods 0.000 abstract description 3
- 239000013589 supplement Substances 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 238000012795 verification Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012956 testing procedure Methods 0.000 description 1
Landscapes
- Image Analysis (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は入力データの形式検査方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a format checking method for input data.
従来の入力データの形式検査方式は、各形式ごとに検査
処理手順を定義したり、データの形式や属性を固定化す
るやり方であった。Conventional input data format checking methods have defined testing procedures for each format and fixed data formats and attributes.
上述した従来の方式のうち、個別に検査処理手順を定義
する方式では、各形式ごとに処理プログラムを開発しな
ければならず、また入力形式が変更になったときの修正
量ら多いという欠点がある。Among the conventional methods mentioned above, the method in which inspection processing procedures are defined individually has the disadvantage that a processing program must be developed for each format, and there is also a large amount of correction when the input format is changed. be.
また、データの形式や属性を固定化する方式では、入力
データ中の各構成要素の位置や大きさを固定したり、構
成要素の属性としてあらかじめ決められた何種類かの属
性を選ぶことしかできない等の制約が多いという欠点が
ある。Furthermore, with methods that fix data formats and attributes, it is only possible to fix the position and size of each component in the input data, or to select several predetermined attributes for the components. The disadvantage is that there are many restrictions such as
本発明の入力データの形式検査方式は、入力データの形
式ごとにあらかじめパターン表現を定義しておき、その
パターンと入力データのパターン照合をすることによっ
て入力データの形式の妥当性を検査するようにしたこと
を特徴とする。The input data format checking method of the present invention defines a pattern expression in advance for each input data format, and checks the validity of the input data format by matching the pattern with the input data. It is characterized by what it did.
次に、本発明について図面を参照して説明する9 第1図は、本発明を適用した場合の処理構成図である。 Next, the present invention will be explained with reference to the drawings. FIG. 1 is a processing configuration diagram when the present invention is applied.
「原パターンJ1はパターンの記述方式に従って表現さ
れた文字列である。第2図にこのようなパターン記述方
法を示し、第3図にその記述例を示す。"The original pattern J1 is a character string expressed according to a pattern description method. FIG. 2 shows such a pattern description method, and FIG. 3 shows an example of the description.
原パターン前処理2は、照合処理を行う前に、前処理と
して[原パターン」1がパターン記述方法に適合してい
ることを確認し、照合処理に適した内部表現に変換して
内部パターン3を生成する。Original pattern preprocessing 2 is a preprocessing process that confirms that [original pattern] 1 is compatible with the pattern description method before performing the matching process, converts it into an internal representation suitable for the matching process, and creates an internal pattern 3. generate.
「内部パターン」3と「入力データ」5の照合処理を行
ない、「入力データ」5が内部パターン3と一致してい
るかどうかの「照合結果」6と、照合処理の副作用とし
てパターンで抽出を指定された部分データなどの「補足
データ」7が得られる。照合処理4の処理フローを第4
図を示す。Performs a matching process between "internal pattern" 3 and "input data" 5, and specifies "matching result" 6 as to whether "input data" 5 matches internal pattern 3, and extraction by pattern as a side effect of the matching process. ``Supplementary data'' 7 such as the partial data obtained is obtained. The process flow of verification process 4 is as follows.
Show the diagram.
第2図(1)において、原パターン1は1個以上のサブ
パターンの並びである、および入力データ5の全体がパ
ターンで表現される場合にのみ入力データ5はパターン
と一致することが示されている。また、第2図(2)に
は、サブパターン種別毎に、原パターン1での記述形態
と、入力データ5の部分データが一致するための条件と
が表示されている。In FIG. 2 (1), it is shown that the original pattern 1 is a sequence of one or more sub-patterns, and that the input data 5 matches the pattern only if the entire input data 5 is expressed as a pattern. ing. Further, in FIG. 2 (2), the conditions for matching the description form of the original pattern 1 with the partial data of the input data 5 are displayed for each sub-pattern type.
第4図におけるステップ(1)では、データの先頭部分
があるか否かを調べ、あればその先頭部分の全ての場合
を得る。ステップ(2)では、パターンから最初のサブ
パターンを除く。In step (1) in FIG. 4, it is checked whether there is a leading part of the data, and if there is, all cases of the leading part are obtained. In step (2), the first subpattern is removed from the pattern.
また、ステップ(3)では最初のサブパターンに一致す
るデータ先頭部分のうちから調べてないものを選び、そ
の部分を除いたデータの残りをデータとしてパターン照
合処理を行う。さらに、ステップ(4)では最初のサブ
パターンが抽出など副作用のあるものは、その副作用と
実行する。Further, in step (3), an unexamined head part of data that matches the first sub-pattern is selected, and the remaining data after removing that part is used as data to perform pattern matching processing. Furthermore, in step (4), if the first subpattern has a side effect, such as extraction, that side effect is executed.
以上説明したように本発明は、入力データの形式検査に
パターン照合の手法を用いることにより、入力データの
形式ことにパターンを定義するだけで、個別の検査処理
手順を開発する必要がない効果がある。As explained above, by using a pattern matching method to inspect the format of input data, the present invention has the advantage that there is no need to develop individual inspection processing procedures by simply defining a pattern for the input data format. be.
また、パターンを用いたため、入力データの形式も柔軟
な表現が可能になり、形式の変更や追加に対してもパタ
ーンの変更、追加を行うだけで処理手順を変更する必要
がない効果がある。Furthermore, since patterns are used, the format of input data can be expressed flexibly, and when changing or adding a format, there is no need to change the processing procedure by simply changing or adding the pattern.
第1図は本発明を適用した場合の処理構成図、第2図は
本発明のパターン記述方法例を示す図、第3図は第2図
で示した記述方法によるパターン記述例を示す図、第4
図は照合処理フローチャートである。
1・・・原パターン、2・・・原パターンの前処理、3
・・・内部パターン、4・・・照合処理、5・・・入力
データ、6・・・照合結果、7・・・補足データ。FIG. 1 is a processing block diagram when the present invention is applied, FIG. 2 is a diagram showing an example of the pattern description method of the present invention, and FIG. 3 is a diagram showing an example of pattern description using the description method shown in FIG. Fourth
The figure is a flowchart of verification processing. 1...Original pattern, 2...Preprocessing of the original pattern, 3
. . . Internal pattern, 4. Verification process, 5. Input data, 6. Verification result, 7. Supplementary data.
Claims (1)
しておき、そのパターンと入力データのパターン照合を
することによって入力データの形式の妥当性を検査する
ようにしたことを特徴とする入力データの形式検査方式
。A format check for input data characterized in that a pattern expression is defined in advance for each input data format, and the validity of the input data format is checked by matching the pattern with the input data. method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63154426A JPH01319829A (en) | 1988-06-21 | 1988-06-21 | Form inspecting system for input data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63154426A JPH01319829A (en) | 1988-06-21 | 1988-06-21 | Form inspecting system for input data |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01319829A true JPH01319829A (en) | 1989-12-26 |
Family
ID=15583915
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63154426A Pending JPH01319829A (en) | 1988-06-21 | 1988-06-21 | Form inspecting system for input data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01319829A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009076821A (en) * | 2007-09-25 | 2009-04-09 | Dainippon Screen Mfg Co Ltd | Inspection formula creation support system, method, and program |
-
1988
- 1988-06-21 JP JP63154426A patent/JPH01319829A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009076821A (en) * | 2007-09-25 | 2009-04-09 | Dainippon Screen Mfg Co Ltd | Inspection formula creation support system, method, and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH01319829A (en) | Form inspecting system for input data | |
| JPH03241439A (en) | Test data preparation tool | |
| JPS63129466A (en) | Line connection inspecting device | |
| JPH03161844A (en) | Spelling correcting system | |
| JP2770555B2 (en) | Natural language analysis system | |
| JPH0363838A (en) | Software program inspection system | |
| JPS58144980A (en) | Post processing system for character recognition processing | |
| JPH03142561A (en) | Method and device for arranging characters of name written in kanji | |
| JPS638858A (en) | Style checking processing system for japanese document | |
| JPH03186932A (en) | Blank skipping system in lexial analysis | |
| JPH1139194A (en) | Inspection result comparison method of software program | |
| JPS6134640A (en) | Inspecting method of program | |
| JPH04312116A (en) | Optical selection system for slip output inspection method | |
| JP2797955B2 (en) | Expected value collation apparatus and method | |
| JPH04267416A (en) | Persian phrase conversion system | |
| JPS62269272A (en) | Editing system of image data and japanese character data | |
| JPH0675816A (en) | Loop processing error detecting device | |
| JPH01231191A (en) | Character recognizing device | |
| JPH04345880A (en) | Method for testing printer | |
| JPS5983252A (en) | Automatic test system | |
| JPS61216086A (en) | Japanese sentence translating system | |
| JPH02247649A (en) | Method for inspecting pattern | |
| JPH02191039A (en) | Command argument analyzing system | |
| JPH06295253A (en) | Microprogram verification method and apparatus | |
| JPH086232A (en) | Mask pattern inspection method and apparatus |