JP2722684B2 - File system search device - Google Patents

File system search device

Info

Publication number
JP2722684B2
JP2722684B2 JP1168944A JP16894489A JP2722684B2 JP 2722684 B2 JP2722684 B2 JP 2722684B2 JP 1168944 A JP1168944 A JP 1168944A JP 16894489 A JP16894489 A JP 16894489A JP 2722684 B2 JP2722684 B2 JP 2722684B2
Authority
JP
Japan
Prior art keywords
conditional expression
variable
search
basic
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.)
Expired - Fee Related
Application number
JP1168944A
Other languages
Japanese (ja)
Other versions
JPH0333978A (en
Inventor
幸一 中村
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP1168944A priority Critical patent/JP2722684B2/en
Publication of JPH0333978A publication Critical patent/JPH0333978A/en
Application granted granted Critical
Publication of JP2722684B2 publication Critical patent/JP2722684B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報検索システムの構築に利用する。本発明
はリレーショナルデータベースのように条件式(論理
式)による検索を行う機能を持つファイルシステムを有
し、範囲指定など複数の比較条件項目により検索を行う
ファイルシステムの条件式生成に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention is used for constructing an information retrieval system. The present invention relates to generation of a conditional expression of a file system having a function of performing a search by a conditional expression (logical expression) like a relational database and performing a search by a plurality of comparison condition items such as a range specification.

〔概要〕〔Overview〕

本発明は与えられた変数を含む条件式によりデータフ
ァイルを検索するために変数を入力して条件式を生成す
るファイルシステムの条件式生成装置において、 変数の入力状態によって条件式を生成するときに、基
本条件式から未入力変数および関連論理式や記号を動的
に削除し、変数の増加または減少などに対してプログラ
ムロジックを修正することなく基本条件の入れ替えだけ
で処理できるようにすることにより、 変数変更などによる工数を削減し、変更によるバグを
減らすことができるようにしたものである。
The present invention relates to a file system conditional expression generating apparatus for generating a conditional expression by inputting a variable in order to search a data file using a conditional expression including a given variable. By dynamically removing uninput variables and related logical expressions and symbols from basic conditional expressions, and increasing or decreasing variables can be processed simply by replacing basic conditions without modifying the program logic. It reduces man-hours due to variable changes and the like, and reduces bugs due to changes.

〔従来の技術〕[Conventional technology]

従来、入力変数を含む検索条件式を生成するには、入
力変数の組み合せからなる条件式文字列を用意してお
き、プログラムロジック中で、入力変数のデータ入力状
態を判断して各条件式文字列を割り当てていた。
Conventionally, in order to generate a search condition expression including an input variable, a conditional expression character string consisting of a combination of input variables is prepared, and in the program logic, the data input state of the input variable is determined and each conditional expression character A column was assigned.

第6図は従来方式による情報検索システムの構成例を
示すもので、変数入力手段11と、入力された変数より条
件式を生成するロジック固定による条件式生成手段33
と、条件式によるデータ検索を行うデータ検索手段14
と、データ格納手段12と、検索結果出力手段16とを備え
る。第7図はロジック固定による条件生成手段33の部分
をC言語ライクの記述でコーディングした例を示したも
のである。
FIG. 6 shows an example of the configuration of an information retrieval system according to a conventional method, in which a variable input means 11 and a conditional expression generating means 33 by means of fixed logic for generating a conditional expression from the input variables.
And data search means 14 for performing data search by a conditional expression
, A data storage unit 12, and a search result output unit 16. FIG. 7 shows an example in which the part of the condition generating means 33 with fixed logic is coded with a C-like description.

変数入力手段11のように2変数の場合、変数の状態に
より、四つの条件式文字列が考えられ、ロジック固定に
よる条件式生成手段33にあるような手順でそれぞれの条
件式が割り当てられ、データ検索手段14に与えられ、デ
ータ格納手段12から検索結果が取り出され、検索結果出
力手段16に出力される。なお、ロジック固定による条件
式生成手段33の条件式中“生徒+空白”の条件式文字列
は全てのデータを出力する条件の意味を示すものであ
る。
In the case of two variables as in the variable input means 11, four conditional expression character strings can be considered depending on the state of the variable, and each conditional expression is assigned in a procedure as in the conditional expression generating means 33 with fixed logic, and The search result is provided to the search means 14, the search result is taken out from the data storage means 12, and output to the search result output means 16. It should be noted that the conditional expression character string of "student + blank" in the conditional expression of the conditional expression generating means 33 with fixed logic indicates the meaning of the condition for outputting all data.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上述した従来の条件式生成方式では、入力変数の増減
や条件式中の論理関数の変更などにより条件式のロジッ
ク自体の変更が必要となる欠点がある。
The above-described conventional conditional expression generation method has a drawback that the logic of the conditional expression itself needs to be changed due to an increase or decrease in input variables or a change in a logical function in the conditional expression.

例えば、第8図は第6図における従来技術による情報
検索システムの構成例を示すもので検索条件変数が追加
となった場合の変更について例示したものであるが、入
力変数の変更は1個追加であり、これによって第6図に
示すロジック固定による条件式生成手段33で示したロジ
ックは第9図に示すように変わる。さらに第7図に示す
ロジック記述例と同様にコーディング記述にすると第10
図に示すロジック記述例の約2倍のコーディング量にな
る。
For example, FIG. 8 shows an example of the configuration of the information search system according to the prior art in FIG. 6, which illustrates a change when a search condition variable is added, but one change of an input variable is added. As a result, the logic shown by the conditional expression generating means 33 with the fixed logic shown in FIG. 6 is changed as shown in FIG. Further, if the coding description is made in the same manner as the logic description example shown in FIG.
The amount of coding is about twice that of the logic description example shown in the figure.

本発明はこのような問題を解消するもので、変数変更
などによる工数を削減し、変更によるバグを減らすこと
ができる装置を提供することを目的とする。
An object of the present invention is to solve such a problem, and an object of the present invention is to provide a device capable of reducing man-hours due to a variable change and the like and reducing bugs due to the change.

〔問題点を解決するための手段〕[Means for solving the problem]

本発明は、外部より検索用の変数を入力する変数入力
手段と、検索対象データを格納するデータ格納手段と、
入力された変数より条件式を生成する条件式生成手段
と、与えられた条件式により前記データ格納手段内のデ
ータを検索するデータ検索手段と、検索結果を外部に出
力する検索結果出力手段とを備えたファイルシステムの
検索装置において、前記条件式生成手段はロジックを固
定せずに全変数に対応する基本条件式をそのロジック外
に格納する基本条件格納手段を別に設け、この基本条件
格納手段に格納された基本条件式に基づき前記変数入力
手段から得た入力変数の未入力状態をチェックし、その
変数と関連する論理関数および記号とを基本条件式より
動的に削除して実行可能な条件式を生成する手段を含む
ことを特徴とする。
The present invention is a variable input means for inputting a search variable from the outside, a data storage means for storing search target data,
A conditional expression generating means for generating a conditional expression from the input variables; a data searching means for searching data in the data storage means by a given conditional expression; and a search result output means for outputting a search result to the outside. In the file system search apparatus provided, the conditional expression generating means is provided with a separate basic condition storing means for storing the basic conditional expressions corresponding to all the variables outside the logic without fixing the logic. Checking the uninput state of the input variable obtained from the variable input means based on the stored basic conditional expression, and dynamically deleting the logical function and the symbol related to the variable from the basic conditional expression to execute the executable condition It is characterized by including means for generating an expression.

〔作用〕[Action]

与えられた変数を含む条件式によりデータファイルを
検索するため変数を入力して条件式を生成するときに、
未入力の変数を条件式より削除するために各入力変数に
ついて未入力の判断を行い、条件式を割り当てるのをプ
ログラム中固定ロジックとして持たせずにロジックの外
に持たせた全変数を含む基本条件式から未入力変数と、
関連する条件式中の論理関数および記号とを削除して動
的に実行可能な条件式に作りかえる。
When generating a conditional expression by inputting a variable to search a data file by a conditional expression containing a given variable,
In order to remove uninput variables from the conditional expression, it is necessary to judge whether each input variable is not input and assign all the conditional expressions as a fixed logic in the program. Uninput variables from the conditional expression,
A logical function and a symbol in the related conditional expression are deleted to make the conditional expression dynamically executable.

これにより、基本条件式の変更および入力変数の増減
に対しプログラムロジックの変更を行うことなく基本条
件式の入れ替えだけで処理することができ、変数変更な
どによる工数を削減し、変更によるバグを減らすことが
できる。
As a result, changes in basic conditional expressions and changes in input variables can be processed simply by exchanging basic conditional expressions without changing program logic, reducing man-hours due to variable changes and reducing bugs due to changes. be able to.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。第1
図は本発明実施例の構成を示すブロック図。第2図は本
発明実施例における条件式生成パターン17の構成を示す
図、第3図は本発明実施例における入力変数の変更状態
を示す図、第4図は本発明実施例における基本条件式の
変更を示す図、第5図は本発明実施例における入力変数
が増加した場合の条件式生成パターンの構成を示す図で
ある。
Next, embodiments of the present invention will be described with reference to the drawings. First
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a diagram showing a configuration of a conditional expression generation pattern 17 in the embodiment of the present invention, FIG. 3 is a diagram showing a change state of an input variable in the embodiment of the present invention, and FIG. 4 is a basic conditional expression in the embodiment of the present invention. FIG. 5 is a diagram showing a configuration of a conditional expression generation pattern when an input variable increases in the embodiment of the present invention.

本発明実施例は、外部より検索用の変数を入力する変
数入力手段11と、検索対象データを格納するデータ格納
手段12と、入力された変数より条件式を生成する条件式
生成手段13と、与えられた条件式によりデータ格納手段
12内のデータを検索するデータ検索手段14と、検索結果
を外部に出力する検索結果出力手段16とを備え、さら
に、本発明の特徴として、条件式生成手段13にはロジッ
クを固定せずに全変数に対応する基本条件式のそのロジ
ック外に格納する基本条件格納手段15を設け、この基本
条件格納手段15に格納された基本条件式に基づき変数入
力手段11から得た入力変数の未入力状態をチェックし、
その変数と関連する論理関数および記号とを基本条件式
より動的に削除して実行可能な条件式を生成する手段を
含む。
The embodiment of the present invention includes a variable input unit 11 for externally inputting a variable for search, a data storage unit 12 for storing search target data, a conditional expression generating unit 13 for generating a conditional expression from the input variable, Data storage means according to given conditional expression
It comprises a data search means 14 for searching data in 12, and a search result output means 16 for outputting a search result to the outside, and as a feature of the present invention, the logic is not fixed to the conditional expression generation means 13 A basic condition storage means 15 for storing the basic condition expressions corresponding to all variables outside the logic is provided, and the input variables obtained from the variable input means 11 based on the basic condition expressions stored in the basic condition storage means 15 are not inputted. Check the status,
Means for dynamically deleting logical functions and symbols related to the variable from the basic conditional expression to generate an executable conditional expression.

すなわち、変数入力手段11は外部より検索用の変数を
入力し、データ格納手段12は検索対象データを格納する
実体であり、条件式生成手段13は基本条件式格納手段15
から基本条件式列を得て変数入力手段11から得た変数に
より検索条件式を生成する。またデータ検索手段14は与
えられた条件式によりデータ格納手段12内のデータを検
索するものであり、検索結果出力手段16は検索結果を外
部出力し、基本条件式格納手段15は全変数に対応する基
本条件式を格納する。条件式生成パターン17は第2図に
示すように本例における変数状態に対する基本条件式の
自動削除部分と有効な条件式列の一覧表である。
That is, the variable input means 11 inputs a search variable from the outside, the data storage means 12 is an entity for storing search target data, and the conditional expression generation means 13 is a basic conditional expression storage means 15.
And a search condition formula is generated by the variables obtained from the variable input means 11. The data search means 14 searches the data in the data storage means 12 according to the given conditional expression, the search result output means 16 outputs the search result to the outside, and the basic condition expression storage means 15 corresponds to all the variables. Stores the basic conditional expression to be performed. As shown in FIG. 2, the conditional expression generation pattern 17 is a list of an automatic deletion part of a basic conditional expression for a variable state in the present example and an effective conditional expression sequence.

また、第3図〜第5図は本発明実施例において入力変
数が増加した場合の変更部分を示すもので、入力変数の
変更は第3図に示すように変数が1個増えたことを示す
ものであり、基本条件式の変更は第4図に示すように変
数増加に伴い基本条件式の変わる部分を示したものであ
り、条件式生成パターン23は第5図に示すように第2図
に示した条件式生成パターン17同様変数増加時の入力変
数状態に対応する削除部分列および生成条件式列の一覧
表である。
FIGS. 3 to 5 show a change in the case where the number of input variables is increased in the embodiment of the present invention. The change of the input variables indicates that the number of variables is increased by one as shown in FIG. The change of the basic conditional expression indicates a portion where the basic conditional expression changes as the number of variables increases, as shown in FIG. 4, and the conditional expression generating pattern 23 has a pattern shown in FIG. 23 is a list of deletion subsequences and generation conditional expression sequences corresponding to the input variable state at the time of variable increase, as in the conditional expression generation pattern 17 shown in FIG.

次に、このように構成された本発明実施例の動作につ
いて説明する。
Next, the operation of the embodiment of the present invention thus configured will be described.

変数入力手段11からの変数入力状態および基本条件式
格納手段15中の基本条件式により、条件式生成手段13は
条件式生成パターン17のように条件式を生成する。削除
部分列の決定は条件式の文字列解析により関連性を認め
た部分列であり、特定の変数名、条件式の型に依存する
ものではない。生成された条件式はデータ検索手段14に
与えられ、データ格納手段12より条件に従ったデータが
検索され、検索結果出力手段16に出力される。
Based on the variable input state from the variable input unit 11 and the basic conditional expression in the basic conditional expression storage unit 15, the conditional expression generating unit 13 generates a conditional expression as a conditional expression generating pattern 17. The determination of the deleted subsequence is a subsequence that has been recognized to be relevant by character string analysis of the conditional expression, and does not depend on a specific variable name or the type of the conditional expression. The generated conditional expression is provided to the data search means 14, data is searched from the data storage means 12 according to the condition, and is output to the search result output means 16.

第2図に示すように入力条件が1個増加しても条件式
生成手段13の変更は必要なく、第4図に示す基本条件式
の変更に従い基本条件格納手段15中の基本条件式を入れ
替えるだけで条件式生成は条件式生成パターン23のよう
に変わる。
As shown in FIG. 2, even if the number of input conditions increases by one, there is no need to change the condition expression generating means 13, and the basic condition expressions in the basic condition storage means 15 are replaced in accordance with the change of the basic condition expressions shown in FIG. The conditional expression generation changes as in the conditional expression generation pattern 23.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、条件式によるフ
ァイル検索システムで変数の入力状態によって条件式を
生成するときに、基本条件式から未入力変数と、関連論
理式および記号とを動的に削除する手段を標準的に用意
し、変数の増加または減少などに対しプログラムロジッ
クを修正することなく基本条件式の入れ替えだけで処理
できるようにすることにより、変数変更などによる工数
を削減し、変更によるバグを減らすことができる効果が
ある。
As described above, according to the present invention, when a conditional expression is generated based on the input state of a variable in a file search system based on a conditional expression, an uninput variable, a related logical expression and a symbol are dynamically converted from the basic conditional expression. A means to delete is provided as standard, so that the increase or decrease of variables can be processed simply by exchanging basic conditional expressions without modifying the program logic, thereby reducing man-hours due to variable changes and other changes. This has the effect of reducing bugs.

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

第1図は本発明実施例の構成を示すブロック図。 第2図は本発明実施例における条件生成パターンの構成
を示す図。 第3図は本発明実施例における入力変数の変更を示す
図。 第4図は本発明実施例における基本条件変更を示す図。 第5図は本発明実施例における入力変数が増加した場合
の条件式生成パターンの構成を示す図。 第6図は従来例の構成を示すブロック図。 第7図は従来例におけるロジック記述の例を示す図。 第8図は従来例における入力変数の変更を示す図。 第9図は従来例におけるロジックの変更を示す図。 第10図は従来例におけるロジック記述例を示す図。 11……変数入力手段、12……データ格納手段、13……条
件式生成手段、14……データ検索手段、15……基本条件
式格納手段、16……検索結果出力手段、17……条件式生
成パターン、23……入力変数が増加した場合の条件式生
成パターン、33……ロジック固定による条件式生成手
段。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a diagram showing a configuration of a condition generation pattern in the embodiment of the present invention. FIG. 3 is a diagram showing a change of an input variable in the embodiment of the present invention. FIG. 4 is a diagram showing a change in basic conditions in the embodiment of the present invention. FIG. 5 is a diagram showing a configuration of a conditional expression generation pattern when an input variable increases in the embodiment of the present invention. FIG. 6 is a block diagram showing a configuration of a conventional example. FIG. 7 is a diagram showing an example of a logic description in a conventional example. FIG. 8 is a diagram showing a change of an input variable in a conventional example. FIG. 9 is a diagram showing a change in logic in a conventional example. FIG. 10 is a diagram showing an example of logic description in a conventional example. 11 ... variable input means, 12 ... data storage means, 13 ... conditional expression generation means, 14 ... data search means, 15 ... basic conditional expression storage means, 16 ... search result output means, 17 ... conditions Expression generation pattern, 23... Conditional expression generation pattern when input variables increase, 33.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】外部より検索用の変数を入力する変数入力
手段と、 検索対象データを格納するデータ格納手段と、 入力された変数より条件式を生成する条件式生成手段
と、 与えられた条件式により前記データ格納手段内のデータ
を検索するデータ検索手段と、 検索結果を外部に出力する検索結果出力手段と を備えたファイルシステムの検索装置において、 前記条件式生成手段はロジックを固定せずに全変数に対
応する基本条件式をそのロジック外に格納する基本条件
格納手段を別に設け、 この基本条件格納手段に格納された基本条件式に基づき
前記変数入力手段から得た入力変数の未入力状態をチェ
ックし、前記基本条件式より未入力の変数とこれに関連
する論理関数および記号とを削除して実行可能な条件式
を生成する手段を含む ことを特徴とするファイルシステムの検索装置。
1. Variable input means for externally inputting a search variable, data storage means for storing search target data, conditional expression generating means for generating a conditional expression from the input variables, and a given condition In a file system search device comprising: a data search unit that searches data in the data storage unit by an expression; and a search result output unit that outputs a search result to the outside, the conditional expression generation unit does not fix logic. In addition, a basic condition storage means for storing the basic conditional expressions corresponding to all the variables outside its logic is separately provided, and the input variables obtained from the variable input means based on the basic conditional expressions stored in the basic condition storing means are not inputted. Means for checking a state and deleting an uninput variable and a logical function and a symbol related thereto from the basic conditional expression to generate an executable conditional expression. Search device filesystem characterized.
JP1168944A 1989-06-29 1989-06-29 File system search device Expired - Fee Related JP2722684B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1168944A JP2722684B2 (en) 1989-06-29 1989-06-29 File system search device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1168944A JP2722684B2 (en) 1989-06-29 1989-06-29 File system search device

Publications (2)

Publication Number Publication Date
JPH0333978A JPH0333978A (en) 1991-02-14
JP2722684B2 true JP2722684B2 (en) 1998-03-04

Family

ID=15877433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1168944A Expired - Fee Related JP2722684B2 (en) 1989-06-29 1989-06-29 File system search device

Country Status (1)

Country Link
JP (1) JP2722684B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2710188B2 (en) * 1991-10-03 1998-02-10 インターナショナル・ビジネス・マシーンズ・コーポレイション Method and data processing apparatus for generating interaction between data processing system and user

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2639804B2 (en) * 1987-04-15 1997-08-13 三菱電機株式会社 Database search device

Also Published As

Publication number Publication date
JPH0333978A (en) 1991-02-14

Similar Documents

Publication Publication Date Title
JPH11212980A (en) Production of index and retrieval method
KR100240243B1 (en) Data searching apparatus
JP3205406B2 (en) Reference target variable determination processing method and translation processing system
CN112394928B (en) Method for constructing multilevel menu in embedded system and computer storage medium
CN106547573A (en) A kind of program file control methods and device
JP2722684B2 (en) File system search device
JP2925042B2 (en) Information link generation method
JP5932707B2 (en) Computer, program, and data generation method
JP6347023B1 (en) Recording medium with code automatic description 2 software recorded
US5241623A (en) Method and system for delineation of structure and linkages between knowledge base modules
JP3018579B2 (en) Name search processor
Harford et al. A new parsing method for non‐LR (1) grammars
Kalkhanda Learning AWK Programming: A fast, and simple cutting-edge utility for text-processing on the Unix-like environment
JP5048396B2 (en) Data management program
JPH06208587A (en) Method for retrieving code data string
JPH03248271A (en) File input/output device
JPH05313971A (en) Key word managing system in relational data base
JPH04342043A (en) File input/output system
JPH06274545A (en) Retrieval system
JPH07160555A (en) Device and method for managing file converting tool
JPH02273868A (en) Character-string data retrieving system
JP2002063202A (en) Information retrieving system and its method
JPH05342231A (en) Newest generation merchandize information retrieval system
JPH0546598A (en) Dictionary retrieval system
JPH1097542A (en) Full-text retrieval device and method therefor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees