JPH0535482A - Object oriented database for expert system - Google Patents

Object oriented database for expert system

Info

Publication number
JPH0535482A
JPH0535482A JP3191741A JP19174191A JPH0535482A JP H0535482 A JPH0535482 A JP H0535482A JP 3191741 A JP3191741 A JP 3191741A JP 19174191 A JP19174191 A JP 19174191A JP H0535482 A JPH0535482 A JP H0535482A
Authority
JP
Japan
Prior art keywords
slot
protection information
data
succession
slots
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
JP3191741A
Other languages
Japanese (ja)
Inventor
Yukimasa Shiyou
行正 招
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP3191741A priority Critical patent/JPH0535482A/en
Publication of JPH0535482A publication Critical patent/JPH0535482A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To easily protect data without fail by adding protection information to a slot, referring to the slot within a succession range and deciding the propriety of the change. CONSTITUTION:Frames C11, I11, and I12 to be a class or an instance of a knowledge base 1A is set up in a hierarchical structure with respective levels. In slots SA to SE, values decided by each level is described by a succession mechanism. In this case, protection information A and B is provided beside the value in the slots SA to SE. This protection information A and B is succeeded by having a succession mechanism like the succession of the slots SA to SE, setting whether the slots SA to SE can be referred to or changed. In short, in the case of updating data, the protection information A and B checks the succession of the data within the range to be succeeded, and prevents the interference from another inference process by adding inhibiting information.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、エキスパートシステム
におけるオブジェクト指向データベースに関する。
FIELD OF THE INVENTION The present invention relates to object-oriented databases in expert systems.

【0002】[0002]

【従来の技術】エキスパートシステムは、基本的には図
2に示す構成にされる。各分野の専門家の知識を知識ベ
ース1に格納しておき、ユーザからの質問に対して推論
機構2が知識ベース1の知識を使用した推論によって回
答を得る。
2. Description of the Related Art The expert system is basically constructed as shown in FIG. The knowledge of experts in each field is stored in the knowledge base 1, and the inference mechanism 2 obtains an answer to the question from the user by inference using the knowledge of the knowledge base 1.

【0003】推論機構2は推論作業過程に必要な知識ベ
ースの領域,ルール,事実等のデータをワーキングメモ
リ3に確保した推論を行う。また、ユーザとのマン・マ
シン・インターフェース4には情報の入出力に説明機能
を有した質問の受付や知識ベース1の入出力のためのエ
ディタ機能,デバッガ機能等を備える。
The inference mechanism 2 performs inference by securing data such as knowledge base areas, rules and facts necessary for the inference work process in the working memory 3. Further, the man-machine interface 4 with the user is provided with an editor function, a debugger function, etc. for accepting questions having an explanation function for inputting / outputting information and inputting / outputting the knowledge base 1.

【0004】知識ベース1の知識表現にはIF<条件部
>THEN<実行部>形式のプロダクションルール表現
と、抽象的概念及び実体を夫々フレームとして階層型ネ
ットワークで表現するフレーム表現とが知られ、さらに
は両者を併用したものもある。
Known knowledge representations of the knowledge base 1 are a production rule representation in the form of IF <condition part> THEN <execution part>, and a frame representation in which abstract concepts and entities are represented as frames in a hierarchical network. Furthermore, there is also a combination of both.

【0005】フレーム表現による知識ベースは、最近で
はオブジェクト指向のデータ構造にされ、データ構造と
その上で用いることのできる操作をまとめてデータ型
(フレーム)として定義され、各オブジェクトはそのデ
ータ型によって分類される。
The knowledge base based on the frame representation has recently been made into an object-oriented data structure, and the data structure and the operations that can be used on it are collectively defined as a data type (frame), and each object is defined by its data type. being classified.

【0006】図3は会社種別のデータベース構成を示
し、会社という抽象的な概念を表現する最上位クラスか
ら自動車,電機などの業種を表現する最下位クラスまで
のクラス定義がなされ、クラスの下には夫々A社,B社
など具体的な物あるいは概念になるインスタンスが定義
される。
[0006] FIG. 3 shows a database structure for each company. Class definitions are made from the highest class that expresses the abstract concept of a company to the lowest class that expresses industries such as automobiles and electric appliances. Are defined as instances of concrete objects or concepts such as company A and company B, respectively.

【0007】各フレームは、メソッド(手続き的知識)
と呼ばれるそのクラスのオブジェクトに適用できる操作
集合が用意され、上位のクラスで定義されたメソッドを
下位のクラスで用いることができるメソッドの継承機構
を持ち、メソッドの定義が単純化される。
Each frame is a method (procedural knowledge)
A set of operations that can be applied to objects of that class called is prepared, and a method inheritance mechanism that allows a method defined in a higher class to be used in a lower class is provided and the method definition is simplified.

【0008】例えば、会社というクラスにスロットがあ
るとそのスロット値が会社のクラス以下のクラスとイン
スタンスに継承される。また、会社にスロット名“目
的”というスロットがあった場合に会社のクラス以下の
階層に“目的”というスロットが継承され、同時に値も
継承される。
For example, if a company class has a slot, the slot value is inherited by classes and instances below the company class. When the company has a slot with the name "purpose", the slot "purpose" is inherited in the hierarchy below the company class, and at the same time, the value is inherited.

【0009】[0009]

【発明が解決しようとする課題】従来のオブジェクト指
向データベースにおいては、継承機構によってデータ
(値)が継承され、またクラスやインスタンスの生成削
除も行われる。
In the conventional object-oriented database, the data (value) is inherited by the inheritance mechanism, and classes and instances are created and deleted.

【0010】このことは、単一の推論プロセスのみで有
効なデータベースを意味し、複数の推論プロセスから同
じデータベースを参照することを難しくする。
This means that the database is valid only for a single inference process, and it is difficult to refer to the same database from multiple inference processes.

【0011】例えば、一つの推論プロセスがある値を更
新中に他のプロセスが参照した場合に当該データを破壊
させることがある。また、クラススロットの場合、デー
タが保持される場所は定義されたクラスにあたるが、そ
の階層下のインスタンスやクラスからも参照,更新が可
能であるため複数プロセスからの参照,更新によってデ
ータ破壊になる。
For example, if one inference process refers to another process while updating a value, the data may be destroyed. In the case of a class slot, the location where data is stored corresponds to the defined class, but since it can be referenced and updated by instances and classes under that hierarchy, the data is destroyed by the reference and update by multiple processes. .

【0012】なお、データの更新時にデータベース全体
にロックをかける保護方法が考えられるが、その間は他
の推論プロセスからの参照,変更が不能になって処理効
率を悪くする。
A protection method may be considered in which the entire database is locked at the time of updating the data, but during that time, reference and change from other inference processes become impossible and the processing efficiency is deteriorated.

【0013】本発明の目的は、複数の推論プロセスから
の参照,変更を可能にしながらデータ保護を確実,容易
にするオブジェクト指向データベースを提供することに
ある。
It is an object of the present invention to provide an object-oriented database that ensures and facilitates data protection while allowing reference and modification from multiple inference processes.

【0014】[0014]

【課題を解決するための手段】本発明は、前記課題の解
決を図るため、メソッドの継承機構を持ち階層化された
フレーム構成を知識ベースとするエキスパートシステム
のオブジェクト指向データベースにおいて、前記各フレ
ームのスロットにはその値が継承される範囲内で推論プ
ロセスによる参照又は変更が可能か否かを決定する保護
情報を持たせたことを特徴とする。
In order to solve the above-mentioned problems, the present invention provides an expert system object-oriented database having a method-inheriting mechanism and a hierarchical frame structure as a knowledge base. The slot is characterized by having protection information for determining whether or not the slot can be referenced or changed by the inference process within the range where the value is inherited.

【0015】[0015]

【作用】各フレームのスロットに保護情報を付加し、推
論プロセスによるスロット値の変更には保護情報をスロ
ットの継承範囲内で参照,変更の禁止情報とし、他の推
論プロセスからの参照,変更を該継承範囲内に限って禁
止する。スロット値の変更終了では該継承範囲の禁止情
報を解除する。
[Operation] When the protection information is added to the slot of each frame and the slot value is changed by the inference process, the protection information is referred to as the prohibition information of the slot within the inheritance range of the slot, and the reference and the change from other inference processes are made. It is prohibited only within the inheritance range. When the change of the slot value is completed, the prohibition information of the inheritance range is released.

【0016】[0016]

【実施例】図1は本発明の一実施例を示すデータベース
構成図である。知識ベース1Aのクラス又はインスタン
スになるフレームC11,I11,I12は夫々のレベ
ルを持った階層構造にされ、スロットSA〜SEには夫
々のレベルで決まる値等が継承機構を持って記述され
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a database configuration diagram showing an embodiment of the present invention. Frames C11, I11, I12, which are classes or instances of the knowledge base 1A, have a hierarchical structure having respective levels, and slots SA to SE are described with values determined by the respective levels having an inheritance mechanism.

【0017】ここで、スロットにはその値のほかに保護
情報A,Bが設けられる。この保護情報はスロットの継
承と同様に継承機構を有して継承され、当該スロットが
現在参照または更新が可能か否かを設定する。即ち、保
護情報はあるデータを更新する場合にそのデータが継承
される範囲について継承をたどって調べ、禁止情報を付
加することで他の推論プロセスからの干渉を防ぐ。この
禁止情報は更新が終了した時点で同様の継承をたどって
解除される。
Here, the slot is provided with protection information A and B in addition to its value. This protection information is inherited with an inheritance mechanism similar to the inheritance of slots, and sets whether or not the slot can be currently referenced or updated. That is, the protection information checks the inheritance of the range in which the data is inherited when updating certain data, and adds prohibition information to prevent interference from other inference processes. This prohibition information is released following the same inheritance when the update is completed.

【0018】例えば、推論プロセス2Aによるクラスフ
レームC11のスロットSAの値を更新するときにはイ
ンスタンスフレームI11,I12をたどって夫々該当
するスロットに禁止情報を付加し、この更新中には他の
推論プロセス2Bによる参照,更新を禁止する。
For example, when updating the value of the slot SA of the class frame C11 by the inference process 2A, the instance frames I11 and I12 are traced and prohibition information is added to the corresponding slots, respectively. During this update, another inference process 2B is executed. References and updates by are prohibited.

【0019】ここで、保護されるデータ領域はフレーム
構成の階層をたどって継承される範囲に限られるため、
禁止情報がかけられる保護データ領域は最小限になり、
保護情報の処理を簡単にすると共に他の推論プロセスと
の競合を最小限に抑え、保護情報の付加が推論プロセス
毎のアクセス速度を低下させることは殆ど無い。
Here, since the protected data area is limited to the range which is inherited by tracing the hierarchy of the frame structure,
The protected data area to which prohibited information is applied is minimized,
The protection information can be easily processed, competition with other inference processes can be minimized, and addition of the protection information hardly reduces the access speed of each inference process.

【0020】[0020]

【発明の効果】以上のとおり、本発明によれば、スロッ
トに保護情報を付加し、保護情報は継承範囲内のスロッ
ト参照,変更の可否を決定するようにしたため、フレー
ムのデータ更新時に他の推論プロセスからの参照を禁止
してデータ保護を確実にし、しかも継承範囲内の参照禁
止になって保護情報の処理を簡単にすると共に他の推論
プロセスによる参照を継承範囲外で可能となる。
As described above, according to the present invention, since the protection information is added to the slot and the protection information determines whether to refer to or change the slot within the inheritance range, other data is updated when the frame data is updated. The reference from the inference process is prohibited to ensure the data protection, and the reference is prohibited within the inheritance range to simplify the processing of the protection information, and the reference by other inference process can be performed outside the inheritance range.

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

【図1】実施例のデータベース構成図。FIG. 1 is a database configuration diagram of an embodiment.

【図2】エキスパートシステムの基本構成図。FIG. 2 is a basic configuration diagram of an expert system.

【図3】オブジェクト指向データベースのフレーム構成
図。
FIG. 3 is a frame configuration diagram of an object-oriented database.

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

1…知識ベース、2…推論機構、3…ワーキングメモ
リ、4…マン・マシン・インターフェース、1A…知識
ベース、2A,2B…推論プロセス。
1 ... Knowledge base, 2 ... Inference mechanism, 3 ... Working memory, 4 ... Man-machine interface, 1A ... Knowledge base, 2A, 2B ... Inference process.

Claims (1)

【特許請求の範囲】 【請求項1】 メソッドの継承機構を持ち階層化された
フレーム構成を知識ベースとするエキスパートシステム
のオブジェクト指向データベースにおいて、前記各フレ
ームのスロットにはその値が継承される範囲内で推論プ
ロセスによる参照又は変更が可能か否かを決定する保護
情報を持たせたことを特徴とするエキスパートシステム
のオブジェクト指向データベース。
Claim: What is claimed is: 1. In an object-oriented database of an expert system having a method inheritance mechanism and having a hierarchical frame structure as a knowledge base, a range in which the value is inherited to the slot of each frame. An object-oriented database of an expert system, which has protection information for determining whether or not it can be referenced or changed by an inference process in the database.
JP3191741A 1991-07-31 1991-07-31 Object oriented database for expert system Pending JPH0535482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3191741A JPH0535482A (en) 1991-07-31 1991-07-31 Object oriented database for expert system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3191741A JPH0535482A (en) 1991-07-31 1991-07-31 Object oriented database for expert system

Publications (1)

Publication Number Publication Date
JPH0535482A true JPH0535482A (en) 1993-02-12

Family

ID=16279731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3191741A Pending JPH0535482A (en) 1991-07-31 1991-07-31 Object oriented database for expert system

Country Status (1)

Country Link
JP (1) JPH0535482A (en)

Similar Documents

Publication Publication Date Title
US5257371A (en) System packaging object class defining information
CN113806940B (en) Digital twin representation and naming method
Selic An efficient object-oriented variation of the statecharts formalism for distributed real-time systems
JPH07121424A (en) System and method for management of object
Jeong et al. A new algorithm for the binate covering problem and its application to the minimization of boolean relations
US7117293B1 (en) Method and apparatus for archiving and unarchiving objects
US6212376B1 (en) Methods for inhibiting and allowing alarm handling in a digital cellular system
JPH0535482A (en) Object oriented database for expert system
Fink et al. Generic metaheuristics application to industrial engineering problems
US6654753B1 (en) Combination associative and directed graph representation of command structures
US7120899B1 (en) Method for implementing component object model interfaces
US20050289501A1 (en) Method and system for enforcing ontological context rules for object-oriented programs
US6128772A (en) Object-oriented apparatus and method in a computer system for establishing/altering the ownership relationship between objects
JP2776750B2 (en) CAD system design data management method
Kot et al. Bisimulation equivalence of a BPP and a finite-state system can be decided in polynomial time
Ferrari Alves et al. Update rules in Datalog programs
Biundo et al. Modeling Planning Domains Systematically'
US5535304A (en) Inference system having a frame structure and method of storing information therein
Torres et al. Closed external schemas in object-oriented databases
Stavrakas et al. Accommodating changes in semistructured databases using multidimensional OEM
Padmanabhan DECIMAL: A requirements engineering tool for product families
JP2937893B2 (en) How to check input data
KR980004109A (en) Action table based error overcoming system
EP1993037A1 (en) System and method for identifying opportunities for refactoring in an object-oriented program
Harhalakis et al. UPN: A Petri Net Based Graphical Representation of Company Policy Specifications in CIM