JPH0816448A - Data deleting method for data group - Google Patents

Data deleting method for data group

Info

Publication number
JPH0816448A
JPH0816448A JP6142944A JP14294494A JPH0816448A JP H0816448 A JPH0816448 A JP H0816448A JP 6142944 A JP6142944 A JP 6142944A JP 14294494 A JP14294494 A JP 14294494A JP H0816448 A JPH0816448 A JP H0816448A
Authority
JP
Japan
Prior art keywords
data
deleted
deletion
link
designated
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
JP6142944A
Other languages
Japanese (ja)
Inventor
Tatsumi Tokumura
龍省 徳村
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP6142944A priority Critical patent/JPH0816448A/en
Publication of JPH0816448A publication Critical patent/JPH0816448A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily delete data by holding reference data that data specified as virtual data different from data constituting the data group, and then deleting the reference data and specified data. CONSTITUTION:When the deletion specification of data C is inputted at the time of the editing of, for example, a composite document A, a data base management file is opened and a relinking process routine is called. In the relinking process, the specified data C to be deleted are linked with the virtual data 100 different from the data constituting the hyper-structure data group used when specific data are deleted from the hyper-structure data group. Then storage position information on data A with which the specified data C to be deleted is linked is obtained from the data identifier of the data A. Further, its data management file is opened and link data for linking the data to be deleted are deleted from the link data of the data A with which the specified data C to be deleted are linked, and this file is closed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データ群のデータ削除
方法に係り、より詳しくは、少なくとも1個の上位デー
タを参照するためのデータ及び少なくとも1個の下位デ
ータを参照するためのデータの何れか一方を参照データ
として保持する複数のデータからなるデータ群から特定
のデータを削除するデータ群のデータ削除方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for deleting data from a data group, and more particularly, to a method for referring to at least one upper data and a data for referencing at least one lower data. The present invention relates to a data deletion method for a data group, in which specific data is deleted from a data group composed of a plurality of data that holds one of them as reference data.

【0002】[0002]

【従来の技術】従来より、図9に示すようなネットワー
ク状のデータ構造(以下、ハイパー構造データ群とい
う)を形成して、データを記憶することが行われてい
る。例えば、図9内のデータDは、上位データとしてデ
ータB、Gから参照(以下、リンクという)され、また
下位データとしてデータH、Iをリンクしている。この
ようなデータの種類としては、文書、図、表、グラフ等
がある。ここで、例えば、データAが文書データであ
り、データB、データCが図データであるとすると、文
書A(データA)は図B(データB)、図C(データ
C)をリンクした複合文書となる。
2. Description of the Related Art Conventionally, a network-like data structure (hereinafter referred to as a hyper-structured data group) as shown in FIG. 9 has been formed to store data. For example, the data D in FIG. 9 is referred to by the data B and G (hereinafter referred to as link) as upper data, and the data H and I are linked as lower data. Such data types include documents, figures, tables, graphs and the like. Here, for example, assuming that the data A is document data and the data B and data C are graphic data, the document A (data A) is a composite of FIG. B (data B) and C (data C) linked. It becomes a document.

【0003】このようにデータ間を自由にリンクして記
憶することで、あるデータ間に関連する別のデータを高
速に表示したり出力したりすることが可能になる。
By freely linking and storing data in this way, it becomes possible to display or output other data related to one data at high speed.

【0004】上記のようなハイパー構造データ群のデー
タの格納方法の1つとして一方向リンク方式が提案され
ている。一方向リンク方式は、少なくとも1個の上位デ
ータを参照するためのデータ及び少なくとも1個の下位
データを参照するためのデータの何れか一方をリンクデ
ータとして保持するものである。なお、図9に示すハイ
パー構造データ群は、少なくとも1個の下位データを参
照するためのデータをリンクデータとして保持する例で
ある。
A unidirectional link system has been proposed as one of the methods for storing the data of the above-mentioned hyper-structured data group. The one-way link method holds, as link data, either one of data for referencing at least one upper data and data for referencing at least one lower data. The hyper-structured data group shown in FIG. 9 is an example in which at least one piece of data for referencing lower order data is held as link data.

【0005】図9内の各データA〜Iの各々は、図10
に示すデータ自体を管理するデータ管理ファイルとデー
タの内容であるメディアファイルから構成される。メデ
ィアファイルは、テキストデータ、ベクトルデータ、イ
メージデータ、音声データ、動画データ等から構成され
て、データが文書、図、表、グラフ等として形成され
る。
Each of the data A to I in FIG. 9 is shown in FIG.
It is composed of a data management file that manages the data itself and a media file that is the content of the data. The media file is composed of text data, vector data, image data, audio data, moving image data, etc., and the data is formed as documents, figures, tables, graphs and the like.

【0006】データ管理ファイル(図10参照)は、属
性データ部(図10(a))と、リンクデータ部(図1
0(b))より構成される。属性データ部は、データ識
別子、メディアタイプ、作成日時、作成者、最終変更日
時、アトリビュートなどが格納される。また、リンクデ
ータ部は、例えば、下位データとのリンク数を示すリン
ク個数とリンクしている相手データをリンクするための
データ識別子やリンク情報などが格納される。なお、リ
ンク情報には、図10(c)に示す如く、リンク日時、
アトリビュートがある。ここで、図9に示したハイパー
構造データ群の図10(b)に示したリンクデータの内
容としては、図15(A)のようになっている。すなわ
ち、例えば、データAがリンクしているデータとしては
データB、Cの2つであるため、リンク数は2であり、
リンクデータとしてはB、Cである。また、例えば、デ
ータCについては、データCがリンクしているデータと
してはデータE、Fの2つであるため、リンク数は2で
あり、リンクデータとしてはE、Fとなっている。
The data management file (see FIG. 10) includes an attribute data section (FIG. 10A) and a link data section (FIG. 1).
0 (b)). The attribute data section stores a data identifier, a media type, a creation date and time, a creator, a last modification date and time, an attribute and the like. Further, the link data section stores, for example, the number of links indicating the number of links with lower-order data and the data identifier and link information for linking linked partner data. The link information includes the link date and time, as shown in FIG.
Has attributes. Here, the contents of the link data shown in FIG. 10 (b) of the hyper structure data group shown in FIG. 9 are as shown in FIG. 15 (A). That is, for example, since the data A is linked to two data B and C, the number of links is 2.
The link data are B and C. Further, for example, regarding the data C, since the data C is linked to two data E and F, the number of links is 2, and the link data is E and F.

【0007】このような内容となっている各データA〜
Iの各々は、図11に示す如く、データベース管理ファ
イルにより管理されている。データベース管理ファイル
は、記憶されているデータ数と、各データを識別するデ
ータ識別子とこれと対になるデータの格納位置情報とか
ら構成される。
Each data A having such contents
Each I is managed by a database management file as shown in FIG. The database management file is composed of the number of stored data, a data identifier for identifying each data, and storage position information of the data paired with the data identifier.

【0008】次に、図9のハイパー構造データ群を例に
とり、図12乃至図15を参照して一方向リンク方式に
おけるデータ削除方法を説明する。
Next, taking the hyper-structured data group of FIG. 9 as an example, a data deletion method in the one-way link system will be described with reference to FIGS. 12 to 15.

【0009】文書A(データA)の編集を行っているオ
ペレータが、該文書Aがリンクしている図C(データ
C)が不要であると判断した場合に、削除するデータ名
(データC)が入力されると(ステップ20(図12参
照))、ステップ21で、データベース管理ファイルが
オープンされ、ステップ22で、リンク解除処理ルーチ
ンが呼び出される。
If the operator editing the document A (data A) determines that the diagram C (data C) linked to the document A is unnecessary, the data name to be deleted (data C) Is input (step 20 (see FIG. 12)), the database management file is opened in step 21, and the link release processing routine is called in step 22.

【0010】このリンク解除処理ルーチン(図13参
照)のステップ201で、削除指定されたデータ(デー
タC)をリンクしていデータの識別子(データA)から
データ格納位置情報を獲得し、その情報をもとにステッ
プ202で、削除指定されたデータ(C)をリンクして
いるデータ(データA)のデータ管理ファイルをオープ
ンし、ステップ203で、オープンされたデータ管理フ
ァイル内のリンクデータ(データB、C)から削除指定
されたデータ(データC)のリンクデータを削除する。
この結果、データAのリンクデータは、データBのみと
なる(図15(B)参照)。そして、ステップ205
で、データ削除処理ルーチンが呼び出される。
In step 201 of this link release processing routine (see FIG. 13), the data storage position information is acquired from the identifier (data A) of the data that is linked with the data designated for deletion (data C), and the information is acquired. Originally, in step 202, the data management file of the data (data A) that links the data (C) designated for deletion is opened, and in step 203, the link data (data B) in the opened data management file is opened. , C) deletes the link data of the designated data (data C).
As a result, the link data of the data A is only the data B (see FIG. 15B). And step 205
Then, the data deletion processing routine is called.

【0011】データ削除処理ルーチン(図14参照)の
ステップ210で、削除指定されたデータ以外の全ての
データをカウントするための変数であるiを初期化(i
=0に設定)し、ステップ211で、変数iを1インク
リメントとし、ステップ212で、データベース管理フ
ァイル内のi番目のデータのデータ識別子からi番目の
データのデータ格納情報を獲得する。ステップ213
で、i番目のデータ格納情報からi番目のデータのデー
タ管理ファイルをオープンし、ステップ214で、i番
目のデータのデータ管理ファイル内のリンクデータに削
除指定されたデータ(データC)があるか否か判断する
ことにより、i番目のデータが削除指定されたデータを
リンクしているか判断する。
At step 210 of the data deletion processing routine (see FIG. 14), a variable i for counting all data other than the data designated for deletion is initialized (i
= 0), the variable i is incremented by 1 in step 211, and the data storage information of the i-th data is acquired from the data identifier of the i-th data in the database management file in step 212. Step 213
In step 214, the data management file of the i-th data is opened from the i-th data storage information, and in step 214, the link data in the data management file of the i-th data contains the data designated for deletion (data C). By determining whether or not it is determined whether the i-th data links the data designated for deletion.

【0012】この段階では、前述したように、リンク解
除処理ルーチン(図13)のステップ203で、削除指
定されたデータをリンクしているデータ(データA)の
リンクデータ(B、C)から削除指定されたデータ(デ
ータC)のリンクデータが削除されているので、ステッ
プ214では、削除指定されたデータをリンクしていな
いと判断することとなりステップ216に進む。ステッ
プ216で、iが、削除指定されたデータ以外の全ての
データ数N以上の値となっているか否か判断することに
より、削除指定されたデータC以外の全てのデータにつ
いてステップ214の処理を行ったか判断する。iがN
以上の値となっていない場合には、ステップ211に戻
って以上の処理(ステップ211〜ステップ214)を
繰り返す。
At this stage, as described above, in step 203 of the link release processing routine (FIG. 13), the data designated for deletion is deleted from the link data (B, C) of the linked data (data A). Since the link data of the designated data (data C) has been deleted, it is determined in step 214 that the data designated for deletion is not linked, and the process proceeds to step 216. In step 216, it is determined whether or not i has a value equal to or more than the number N of all the data other than the data designated to be deleted, and thus the processing of step 214 is performed for all the data other than the data C designated to be deleted. Judge whether you went. i is N
If the value is not the above value, the process returns to step 211 and the above processes (steps 211 to 214) are repeated.

【0013】一方、ステップ216で、iがN以上の値
となっている、すなわち、削除指定されたデータC以外
の全てのデータについてステップ211〜ステップ21
4の処理を行った場合には、ステップ217で、削除指
定されたデータ(データC)のデータ管理ファイルをオ
ープンし、ステップ218で、削除指定されたデータの
リンクデータ(データE、F)をカウントするための変
数jを初期化(j=0に設定)し、ステップ219で、
jを1インクリメントする。
On the other hand, in step 216, i is a value of N or more, that is, steps 211 to 21 for all data other than the data C designated for deletion.
When the process of No. 4 is performed, the data management file of the data designated for deletion (data C) is opened in step 217, and the link data (data E, F) of the data designated for deletion is opened in step 218. A variable j for counting is initialized (set to j = 0), and in step 219,
Increment j by 1.

【0014】ステップ220で、削除指定されたデータ
のj番目のリンクデータとのリンクを解除する。この処
理のため、前述したリンク解除処理ルーチン(図12)
をリカーシブコールして、前述したリンク解除処理ルー
チン(データ削除処理)を行う。
In step 220, the link of the data designated for deletion with the j-th link data is released. Because of this processing, the above-mentioned link release processing routine (FIG. 12)
Is recursively called to execute the above-mentioned link release processing routine (data deletion processing).

【0015】ステップ221で、jが削除指定されたデ
ータのリンクデータ数mより大きいか否か判断すること
により、削除指定されたデータの全てのリンクデータと
のリンクを解除したか否か判断し、全てのリンクデータ
とのリンクを解除するまで、以上の処理(ステップ21
9〜ステップ221)を繰り返す。この場合、削除指定
されたデータのリンクデータが他の全てのデータからリ
ンクされていない場合、例えば、図9の例ではデータF
であり、データFについては、データFのリンクデータ
が消去され(図15(B)参照)、該データFは、削除
される。そして、削除指定されたデータCのリンクデー
タが消去され(図15(B)参照)、全てのリンクデー
タとのリンクを解除した場合には、ステップ222で、
削除指定されたデータのデータ管理ファイルをクローズ
し、ステップ223で、削除指定されたデータのデータ
管理ファイル及びメディアファイルを削除し、ステップ
215で、削除指定されたデータ以外の他のデータのデ
ータ管理ファイルをクローズし、ステップ23(図12
参照)で、データベース管理ファイルをクローズして処
理を終了する。
In step 221, it is judged whether or not j is larger than the link data number m of the data designated to be deleted, and it is judged whether all the link data of the data designated to be deleted are released. , Until the link with all link data is released (step 21
9 to step 221) are repeated. In this case, if the link data of the data designated for deletion is not linked from all other data, for example, the data F in the example of FIG.
With respect to the data F, the link data of the data F is erased (see FIG. 15B), and the data F is deleted. Then, when the link data of the data C designated for deletion is erased (see FIG. 15B) and the links with all the link data are released, in step 222,
The data management file of the data designated for deletion is closed, the data management file and the media file of the data designated for deletion are deleted in step 223, and the data management of data other than the data designated for deletion in step 215. Close the file and go to step 23
Then, close the database management file and end the process.

【0016】以上の処理の結果、削除指定されたデータ
CをリンクしているデータにはデータAがあり、データ
Aのリンクデータから削除指定されたデータCのリンク
データが削除される(図15(B)参照)。また、削除
指定されたデータCのリンクデータE、Fのうち、他の
データからリンクされたいないデータFについては、デ
ータFのリンクデータが消去され(図15(B)参
照)、削除指定されたデータCの削除と共に削除指定さ
れたデータCがリンクしているデータFが削除される
(図15(C)参照)。
As a result of the above processing, the data linking the data C designated for deletion includes the data A, and the link data of the data C designated for deletion is deleted from the link data of the data A (FIG. 15). (See (B)). Further, of the link data E and F of the data C designated for deletion, the link data of the data F is erased for the data F that is not linked from other data (see FIG. 15B), and the deletion is designated. Along with the deletion of the deleted data C, the data F linked with the specified deletion data C is deleted (see FIG. 15C).

【0017】[0017]

【発明が解決しようとする課題】しかしながら、このよ
うな一方向リンク方式におけるデータ削除方法では、削
除指定されたデータを削除する前には、他のデータの各
々のリンクデータにアクセスして、削除指定されたデー
タCがリンクしているデータE、Fについて各々、他の
データからリンクしていないか否か判断しなければなら
ず、また、他のデータからリンクされていないデータが
ある場合(例えば、データF)については、該データF
のリンクデータを削除すると共にデータFのリンクデー
タに基づいてリンクしているデータIが、他のデータか
らリンクされていないか否か判断して(なお、データI
についても同様に処理する)、データFを(該当する場
合には、データIも)削除して、削除指定されたデータ
Cを削除しなければならない。よって、データを削除す
るために時間がかかり、頻繁にリンクの解除が行われる
ような利用には不向きであるという問題があった。
However, in the data deletion method in such a one-way link method, before deleting the data designated to be deleted, each link data of other data is accessed and deleted. It is necessary to judge whether each of the data E and F to which the designated data C is linked is not linked from other data, and when there is data that is not linked from other data ( For example, for the data F), the data F
The link data of No. 1 is deleted, and it is judged whether the data I linked based on the link data of the data F is not linked from other data (note that the data I
Process is also performed), the data F (and the data I, if applicable) must be deleted, and the data C designated for deletion must be deleted. Therefore, there is a problem that it takes time to delete the data, and it is not suitable for use in which the link is frequently released.

【0018】本発明は、上記の点に鑑みなされたもの
で、簡易にデータの削除が行えるデータ群のデータ削除
方法を提供することを目的とする。
The present invention has been made in view of the above points, and it is an object of the present invention to provide a data deleting method of a data group that can easily delete data.

【0019】[0019]

【課題を解決するための手段】上記目的を達成するため
請求項1記載の発明は、少なくとも1個の上位データを
参照するためのデータ及び少なくとも1個の下位データ
を参照するためのデータの何れか一方を参照データとし
て保持する複数のデータからなるデータ群から特定のデ
ータを削除するデータ群のデータ削除方法において、前
記データ群を構成するデータとは異なる仮想データを設
け、削除指定されたデータが保持する参照データを前記
仮想データに保持させた後、前記削除指定されたデータ
と前記削除指定されたデータが保持する参照データとを
削除する、ようにしている。
In order to achieve the above object, the invention according to claim 1 is any one of data for referencing at least one upper data and data for referencing at least one lower data. In the data deletion method of a data group that deletes specific data from a data group composed of a plurality of data that holds one of them as reference data, virtual data different from the data that constitutes the data group is provided, and the specified deletion data After holding the reference data held by the virtual data in the virtual data, the deletion-designated data and the reference data held by the deletion-designated data are deleted.

【0020】請求項2記載の発明は、請求項1記載の発
明において、前記削除指定されたデータと前記削除指定
されたデータが保持する参照データとを削除した後、前
記仮想データに保持させた参照データを全て削除するま
で、前記仮想データに保持させた参照データに基づいて
参照されるデータが他のデータから参照されているか否
か判断する第1の工程と、他のデータから参照されてい
る場合には、前記仮想データから前記参照データを削除
する第2の工程と、他のデータから参照されていない場
合には、前記仮想データに保持された参照データに基づ
いて参照されるデータが保持する参照データを前記仮想
データに保持させた後、前記仮想データに保持させた参
照データに基づいて参照されるデータと前記仮想データ
に保持させた参照データに基づいて参照されるデータが
保持する参照データとを削除する第3の工程とを繰り返
すようにしている。
According to a second aspect of the invention, in the first aspect of the invention, the data designated to be deleted and the reference data held by the data designated to be deleted are held in the virtual data. Until all the reference data is deleted, the first step of determining whether the data referred to based on the reference data held in the virtual data is referred to by other data, The second step of deleting the reference data from the virtual data, and the data referred to based on the reference data held in the virtual data if not referenced from other data. After holding the reference data to be held in the virtual data, the data referred to based on the reference data held in the virtual data and the reference held in the virtual data Data referenced based on chromatography data is to repeat the third step of deleting the reference data stored.

【0021】[0021]

【作用】請求項1記載の発明のデータ群は、少なくとも
1個の上位データを参照するためのデータ及び少なくと
も1個の下位データを参照するためのデータの何れか一
方を参照データとして保持する複数のデータからなる。
A data group of the invention according to claim 1 is a plurality of data holding at least one of data for referencing at least one upper data and data for referencing at least one lower data as reference data. Data.

【0022】このようなデータ群のデータを削除するた
め、本発明では、データ群を構成するデータとは異なる
仮想データを設け、削除指定されたデータが保持する参
照データを仮想データに保持させた後、削除指定された
データと削除指定されたデータが保持する参照データと
を削除する。
In order to delete the data of such a data group, in the present invention, virtual data different from the data forming the data group is provided, and the reference data held by the data designated for deletion is held in the virtual data. Then, the data designated for deletion and the reference data held by the data designated for deletion are deleted.

【0023】ここで、削除指定されたデータが保持する
参照データを仮想データに保持させた後は、削除指定さ
れたデータが保持する参照データを削除した後に削除指
定されたデータを削除するようにしてもよく、また、削
除指定されたデータを削除した後に削除指定されたデー
タが保持する参照データを削除してもよく、更に、削除
指定されたデータと削除指定されたデータが保持する参
照データとを一括して削除するようにしてもよい。な
お、削除指定されたデータが保持する参照データが複数
存在する場合には、一括して複数の参照データを削除し
てもよく、また、複数の参照データを1個つづ削除する
ようにしてもよい。
Here, after the reference data held by the data designated for deletion is held in the virtual data, the reference data held by the data designated for deletion is deleted and then the data designated for deletion is deleted. Alternatively, the reference data held by the data designated for deletion may be deleted after the data designated for deletion is deleted, and further, the reference data held by the data designated for deletion and the reference data held by the data designated for deletion And may be deleted at once. When there are a plurality of reference data held by the data designated for deletion, a plurality of reference data may be deleted at once, or a plurality of reference data may be deleted one by one. Good.

【0024】このように、削除指定されたデータが保持
する参照データを仮想データに保持させた後、削除指定
されたデータと削除指定されたデータが保持する参照デ
ータとを削除するため、削除指定されたデータが保持す
る参照データに基づいて参照されるデータを参照してい
るデータがあるかどうかを他の全てのデータについて判
断しなくて削除指定されたデータを削除することができ
るので、データの削除を簡易に行うことができる。
As described above, after the reference data held by the data designated for deletion is held in the virtual data, the data designated for deletion and the reference data held by the data designated for deletion are deleted. Deleted data can be deleted without determining whether all other data refer to the referenced data based on the reference data held by the deleted data. Can be easily deleted.

【0025】請求項2記載の発明では、請求項1記載の
発明において、削除指定されたデータと削除指定された
データが保持する参照データとを削除した後、仮想デー
タに保持させた参照データを全て削除するまで、第1の
工程、第2の工程、第3の工程を繰り返す。
According to a second aspect of the present invention, in the first aspect of the present invention, after deleting the designated deletion data and the reference data held by the designated deletion data, the reference data held in the virtual data is deleted. The first step, the second step, and the third step are repeated until all are deleted.

【0026】ここで、第1の工程とは、仮想データに保
持させた参照データに基づいて参照されるデータが他の
データから参照されているか否か判断するものである。
Here, the first step is to judge whether or not the data referred to is referred to by other data based on the reference data held in the virtual data.

【0027】また、第2の工程とは、他のデータから参
照されている場合には、仮想データから参照データを削
除するものである。
The second step is to delete the reference data from the virtual data when the data is referenced by other data.

【0028】更に、第3の工程とは、他のデータから参
照されていない場合には、仮想データに保持された参照
データに基づいて参照されるデータが保持する参照デー
タを仮想データに保持させた後、仮想データに保持され
た参照データに基づいて参照されるデータと仮想データ
に保持された参照データに基づいて参照されるデータが
保持する参照データとを削除するものである。
Further, the third step is to make the virtual data hold the reference data held by the data referred to on the basis of the reference data held in the virtual data when it is not referred to by other data. After that, the data referred to based on the reference data held in the virtual data and the reference data held by the data referred to based on the reference data held in the virtual data are deleted.

【0029】このように、仮想データに保持させた参照
データを全て削除するまで、第1の工程と、第2の工程
と、第3の工程とを繰り返すことから、他のデータから
参照されなくなったデータを削除する際も、該データが
保持する参照データを仮想データに保持させた後、該デ
ータと該データが保持しいてる参照データとを削除する
ため、他のデータから参照されなくなったデータが保持
している参照データに基づいて参照されるデータを参照
されているデータがあるかどうかを他の全てのデータに
ついて判断しなくても、他のデータから参照されくなっ
たデータを削除することができ、データの削除を簡易に
行うことができる。
As described above, since the first step, the second step, and the third step are repeated until all the reference data held in the virtual data are deleted, it is not referred to by other data. Even when deleting the data, the reference data held by the data is held in the virtual data, and the data and the reference data held by the data are deleted, so that the data that is no longer referenced by other data is deleted. Deletes data that is no longer referenced by other data without having to determine for all other data whether the referenced data is based on the reference data held by Therefore, the data can be easily deleted.

【0030】[0030]

【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。図1には、本実施例におけるデータ群(ハ
イパー構造データ群)の1例が示されている。従来のハ
イパー構造データ群と比較すると、削除用の仮想データ
100を備えている点が異なる。この仮想データ100
は、ハイパー構造データ群から特定のデータを削除する
際に用いられるハイパー構造データ群を構成するデータ
とは異なる仮想のデータである。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 shows an example of a data group (hyper-structured data group) in this embodiment. Compared with the conventional hyper-structured data group, the difference is that the virtual data 100 for deletion is provided. This virtual data 100
Is virtual data different from the data forming the hyper structure data group used when deleting specific data from the hyper structure data group.

【0031】図1に示す各データA〜Iの各々は、前述
したようにデータ管理ファイル(図10参照)とメディ
アファイルから構成される。そして、前述したように、
各データA〜Iの各々は、データベース管理ファイル
(図11)により管理されている。ここで、本実施例で
は、データベース管理ファイルには更に、図2に示すよ
うに、ハイパー構造データ群から特定のデータを削除す
る際に用いられる仮想データ100にリンクするデータ
のリンクデータを格納する部分(以下、削除指定データ
テーブルという)が存在する。
Each of the data A to I shown in FIG. 1 is composed of a data management file (see FIG. 10) and a media file as described above. And, as mentioned above,
Each of the data A to I is managed by the database management file (FIG. 11). Here, in this embodiment, as shown in FIG. 2, the database management file further stores link data of data linked to the virtual data 100 used when deleting specific data from the hyper-structured data group. There is a part (hereinafter referred to as a deletion designation data table).

【0032】ここで、図1に示すハイパー構造データ群
のデータとしては、前述したように、例えば、文書、
図、表等である。すなわち、例えば、データAは文書で
あり、データB及びデータCは図と想定すると、文書A
(データA)は、図B(データB)と図C(データC)
をリンクした複合文書となります。そして、オペレータ
が、複合文書Aを編集している際、図Cが不要であると
判断して、該図Cを削除指定した場合に本実施例のデー
タ群のデータ削除方法が適用される。
Here, as the data of the hyper structure data group shown in FIG. 1, as described above, for example, a document,
Figures, tables, etc. That is, for example, assuming that data A is a document and data B and data C are figures, document A
(Data A) is shown in Figure B (Data B) and Figure C (Data C).
It is a compound document that links. Then, when the operator edits the compound document A, it is determined that FIG. C is unnecessary, and the operator designates deletion of FIG. C, the data deletion method of the data group of the present embodiment is applied.

【0033】図3は、本実施例におけるデータ群のデー
タ削除方法が適用可能なシステムの構成概略を示す。図
3に示すように、本システムは、本システム全体を制御
するCPU10、CPU10の制御処理に係わるプログ
ラムを格納している各種処理におけるワークエリアとな
どで構成される主記憶装置12を備えている。また、本
システムは、マウスのような指示装置14、キーボード
ようなコマンドやテキストデータなどを入力する入力装
置16を備えている。さらに、本システムは、ビットマ
ップディスプレイのような表示装置18、電源を切って
もその内容が保存される例えば磁気ディスクや光ディス
ク等の補助記憶装置20を備えている。補助記憶装置2
0には、前述した各データ(データ管理ファイル、メデ
ィアファイル)、データベース管理ファイル及び各種プ
ログラムが格納されている。ここで、格納位置情報は、
データの補助記憶装置20内のデータベースの格納位置
を表す情報である。なお、これら各種構成要素はバス2
2によって電気的に接続されている。
FIG. 3 shows a schematic configuration of a system to which the data deletion method of the data group in this embodiment can be applied. As shown in FIG. 3, the present system includes a main storage device 12 including a CPU 10 that controls the entire system and a work area for various processes that stores programs related to control processing of the CPU 10. . The system also includes an instruction device 14 such as a mouse and an input device 16 such as a keyboard for inputting commands and text data. Further, the present system includes a display device 18 such as a bit map display, and an auxiliary storage device 20 such as a magnetic disk or an optical disk whose contents are saved even when the power is turned off. Auxiliary storage device 2
0 stores the above-mentioned data (data management file, media file), database management file, and various programs. Here, the storage location information is
This is information indicating the storage location of the database in the auxiliary storage device 20 for data. These various components are the bus 2
2 electrically connected.

【0034】次に、本実施例の作用を図4乃至図8を参
照して詳細に説明する。前述したように、例えば、オペ
レータが、複合文書Aを編集している際、図C(データ
C)が不要であると判断して、図Cを削除指定した場
合、すなわち、データの削除指定を入力すると(ステッ
プ30(図4参照))、ステップ31でデータベース管
理ファイルをオープンし、ステップ32でリンク付け替
え処理ルーチンをコールする。
Next, the operation of this embodiment will be described in detail with reference to FIGS. As described above, for example, when the operator edits the compound document A and decides that the diagram C (data C) is unnecessary and designates the diagram C to be deleted, that is, the data is designated to be deleted. When input (step 30 (see FIG. 4)), the database management file is opened in step 31, and the link replacement processing routine is called in step 32.

【0035】リンク付替処理(図5参照)では、まず、
ステップ301で、削除指定されたデータを仮想データ
100にリンクする。これは、削除指定されたデータの
データ識別子及び削除指定されたデータの格納位置情報
を図2に示した削除用データテーブルのM′(=M+
1)番目に格納することにより行う。なお、現段階で
は、削除指定されたデータはデータCのみであるので、
削除用データテーブルには、データCのデータ識別子及
びデータCの格納情報のみが格納されている。
In the link replacement process (see FIG. 5), first,
In step 301, the data designated for deletion is linked to the virtual data 100. This is because the data identifier of the data designated to be deleted and the storage position information of the data designated to be deleted are M ′ (= M +) in the data table for deletion shown in FIG.
1) The first storage is performed. At this stage, the data designated for deletion is only data C, so
Only the data identifier of the data C and the storage information of the data C are stored in the deletion data table.

【0036】ステップ302で、削除指定されたデータ
をリンクしているデータのデータ識別子からデータ格納
情報を獲得する。ここで、前述したように、図B(デー
タB)及び図C(データC)をリンクしている文書A
(データA)及び図C(データC)を表示装置18に表
示して編集を行っているときに図Cが不要であると判断
しているため、データAがデータCをリンクしていると
判断できるため、データCをリンクしているデータAの
格納位置情報を獲得できる。ステップ303で、このデ
ータ管理ファイルをオープンし、ステップ304で、削
除指定されたデータをリンクしているデータのリンクデ
ータから削除するデータをリンクするためのリンクデー
タを消す。そして、ステップ305で、データ管理ファ
イルをクローズして処理を終了する。なお、以上の処理
(図4及び図5)は、データの削除処理ではなく、リン
クの付替処理である。
In step 302, the data storage information is acquired from the data identifier of the data that links the data designated for deletion. Here, as described above, the document A that links FIG. B (data B) and FIG. C (data C)
Since it is determined that FIG. C is unnecessary when (DATA A) and FIG. C (DATA C) are displayed on the display device 18 and edited, it is assumed that the data A is linked to the data C. Since the determination can be made, the storage location information of the data A linked to the data C can be acquired. In step 303, this data management file is opened, and in step 304, the link data for linking the data to be deleted is erased from the link data of the data linking the data designated for deletion. Then, in step 305, the data management file is closed and the process ends. The above process (FIGS. 4 and 5) is not a data deletion process but a link reassignment process.

【0037】このようなリンク付替処理が終了した後、
次のように、仮想データ100にリンクされたデータを
実際に削除する処理(図6参照)を行う。
After the link reassigning process is completed,
As described below, the process of actually deleting the data linked to the virtual data 100 (see FIG. 6) is performed.

【0038】ステップ40で、仮想データ100にリン
クされたデータの削除指示を入力し、ステップ41で、
データベース管理ファイルをオープンする。ステップ4
2で、仮想データ100にリンクされたデータの孤立化
判定処理(図7参照)を行う。この孤立化判定処理は、
削除指定されたデータ(仮想データ100にリンクされ
たデータ)が他のデータにリンクされているかどうかを
判定するための処理である。
In step 40, an instruction to delete the data linked to the virtual data 100 is input, and in step 41,
Opens the database management file. Step 4
At 2, the isolation determination process (see FIG. 7) of the data linked to the virtual data 100 is performed. This isolation determination process is
This is a process for determining whether the data designated for deletion (data linked to the virtual data 100) is linked to another data.

【0039】この孤立化判定処理では、まず、ステップ
400で、補助記憶装置20におけるデータベース内の
削除指定されたデータ以外の全データをカウントする変
数kを初期化(k=0に設定)し、ステップ401で、
この変数を1インクリメントする。ステップ402で、
k番目のデータのデータ格納情報を獲得し、ステップ4
03で、そのデータ管理ファイルをオープンする。ステ
ップ404で、削除指定されたデータをカウントするた
めの変数hを初期化(h=0に設定する)し、ステップ
405で、変数hを1インクリメントする。なお、本実
施例では、削除指定されたデータは、データCのみであ
るので、変数hの最大個数は1である。
In this isolation determination process, first, at step 400, a variable k that counts all data other than the data designated for deletion in the database in the auxiliary storage device 20 is initialized (set to k = 0), In step 401,
This variable is incremented by 1. In step 402,
Obtain the data storage information of the k-th data, and step 4
At 03, the data management file is opened. In step 404, a variable h for counting the data designated for deletion is initialized (set to h = 0), and in step 405, the variable h is incremented by 1. In the present embodiment, the data designated for deletion is only the data C, so the maximum number of variables h is 1.

【0040】ステップ406で、k番目のデータがh番
目の削除指定されたデータをリンクしているかどうかを
判定し、リンクしている場合には、ステップ407に進
み、リンクしていない場合には、ステップ408に進
む。なお、図1に例では、前述したリンク付替処理にお
けるステップ304で、削除指定されたデータ(C)を
リンクしているデータ(A)のリンクデータから削除指
定されたデータ(C)をリンクするためのリンクデータ
が削除されているので、k番目のデータがh番目の削除
対象データをリンクしていないと判定される。
In step 406, it is judged whether or not the k-th data links the h-th designated data for deletion. If they are linked, the process proceeds to step 407, and if they are not linked, , Go to step 408. In the example of FIG. 1, in step 304 in the above-described link reassignment process, the data (C) specified to be deleted is linked from the link data of the data (A) linked to the data (C) specified to be deleted. Since the link data for deleting is deleted, it is determined that the kth data does not link the hth deletion target data.

【0041】ステップ407で、削除指定されたデータ
が他のデータからリンクされていると判断されるため、
削除指定されたデータの仮想データ100とのリンクを
解除する。
At step 407, since it is judged that the data designated for deletion is linked with other data,
The link of the data designated for deletion with the virtual data 100 is released.

【0042】ステップ408で、全ての削除指定された
データについて削除指定されたデータ以外の他の全ての
データからリンクされているかどうかを判定する。すな
わち、変数hが、削除指定された全データ数H以上の値
となったか否か判定する。全ての削除指定されたデータ
についてこの判定が終わっていない場合はステップ40
5に戻り、以上の処理(ステップ405〜ステップ40
8)を繰り返し、全ての削除指定されたデータについて
この判定が終わっている場合は、ステップ409で、k
番目のデータ管理ファイルをクローズする。
In step 408, it is determined whether all the data designated for deletion are linked with all the data other than the data designated for deletion. That is, it is determined whether or not the variable h has become a value equal to or larger than the total number H of data designated for deletion. If this judgment has not been completed for all data specified for deletion, step 40
Returning to step 5, the above processing (step 405 to step 40
8) is repeated, and when this judgment is completed for all the data designated for deletion, in step 409, k
Close the second data management file.

【0043】ステップ410で、削除指定されたデータ
以外の他の全てのデータについて、削除指定されたデー
タをリンクしているか否かの判定を行ったか否か判定す
る。これは、kが、削除指定されたデータ以外の他の全
データ数K以上の値となったか否かにより行う。削除指
定されたデータ以外の他の全てのデータについて、削除
指定されたデータをリンクしているかいなかの判定を行
っていない場合には、ステップ401に戻り、以上の処
理(ステップ401〜ステップ410)を繰り返し、削
除指定されたデータ以外の他の全てのデータについてこ
の判定を行った場合には、孤立化判定処理を終了する。
In step 410, it is determined whether or not it is determined whether or not the data designated for deletion is linked to all the data other than the data designated for deletion. This is performed depending on whether k has become a value equal to or larger than the total number of data K other than the data designated for deletion. When it is not determined whether the data designated for deletion is linked to all the data other than the data designated for deletion, the process returns to step 401, and the above processing (steps 401 to 410). When the determination is repeated for all the data other than the data designated for deletion, the isolation determination process ends.

【0044】この処理の結果、削除指定されたデータの
うち、削除指定されたデータ以外の他のデータからリン
クされていないデータが、仮想データ100にリンクさ
れているままなので、仮想データ100には、削除指定
されたデータ以外の他のデータからリンクされていない
孤立したデータのみがリンクされることになる。
As a result of this processing, among the data designated for deletion, data that is not linked to data other than the data designated for deletion remains linked to the virtual data 100. , Only isolated data that is not linked from other data other than the specified deletion data will be linked.

【0045】次に、ステップ43(図6参照)で、孤立
したデータの削除処理を行う。この孤立したデータの削
除処理(図8参照)では、まず、ステップ411で、削
除データテーブルを、補助記憶装置20内のローカルエ
リアにコピーし、ステップ412で、削除データテーブ
ルを初期化する。ステップ413で、ローカルエリアに
コピーされた削除データテーブル内に格納されたデータ
(孤立データ)をカウントするための変数pを初期化
(p=0に設定)する。
Next, in step 43 (see FIG. 6), the process of deleting the isolated data is performed. In the process of deleting the isolated data (see FIG. 8), first, in step 411, the deleted data table is copied to the local area in the auxiliary storage device 20, and in step 412, the deleted data table is initialized. In step 413, a variable p for counting the data (isolated data) stored in the deleted data table copied to the local area is initialized (set to p = 0).

【0046】ステップ414で、変数pを1インクリメ
ントする。ステップ415で、p番目の孤立データのデ
ータ管理ファイルをオープンし、ステップ416で、p
番目の孤立データのリンクデータをカウントするための
変数qを初期化(qを0に設定)する。ステップ418
で、p番目の孤立データのq番目のリンクデータのリン
ク付け替え処理を行う。この処理のため、前述したリン
ク付替処理ルーチン(図5参照)をリカーシブコールす
る。すなわち、図1の例では、孤立データ(C)のリン
クデータには、データE、Fがあるので、例えば、ま
ず、データEを仮想データ100にリンクして(リンク
付替処理(図5参照)におけるステップ301)、デー
タCのリンクデータからデータEの情報を消す(ステッ
プ302〜ステップ305)。次に、データFを仮想デ
ータ100にリンクして、データCのリンクデータから
データFの情報を消す。
In step 414, the variable p is incremented by 1. In step 415, the data management file for p-th isolated data is opened, and in step 416, p
A variable q for counting the link data of the th isolated data is initialized (q is set to 0). Step 418
Then, the link replacement processing of the q-th link data of the p-th isolated data is performed. For this processing, the above-mentioned link replacement processing routine (see FIG. 5) is recursively called. That is, in the example of FIG. 1, the link data of the isolated data (C) includes the data E and F. Therefore, for example, first, the data E is linked to the virtual data 100 (see the link replacement process (see FIG. 5). )), The information of the data E is erased from the link data of the data C (steps 302 to 305). Next, the data F is linked to the virtual data 100, and the information of the data F is erased from the link data of the data C.

【0047】ステップ419で、qが全リンクデータ数
Q以上となったかいなか判断する。すなわち、p番目の
孤立データのリンクデータ全てを仮想データ100にリ
ンクしたか否か判断する。p番目の孤立データのリンク
データ全てを仮想データ100にリンクしていない場合
には、ステップ417に戻って以上の処理(ステップ4
17〜ステップ419)を繰り返す。一方、p番目の孤
立データのリンクデータ全てを仮想データ100にリン
クした場合には、ステップ420で、p番目の孤立デー
タのデータ管理ファイルをクローズし、ステップ421
で、p番目の孤立データのデータ管理ファイル及びメデ
ィアファイルを削除する。
At step 419, it is determined whether q is equal to or more than the total number Q of link data. That is, it is determined whether all the link data of the p-th isolated data are linked to the virtual data 100. When all the link data of the p-th isolated data are not linked to the virtual data 100, the process returns to step 417 and the above processing (step 4
17 to step 419) is repeated. On the other hand, if all the link data of the p-th isolated data are linked to the virtual data 100, the data management file of the p-th isolated data is closed in step 420, and step 421.
Then, the data management file and the media file of the p-th orphan data are deleted.

【0048】ステップ422で、全ての孤立データを削
除したか否か判断し、全ての孤立データを削除していな
い場合には、ステップ414に戻って以上の処理(ステ
ップ414〜ステップ422)を繰り返し、全ての孤立
データを削除した場合には、ステップ44(図6参照)
に戻る。
In step 422, it is determined whether or not all the isolated data has been deleted. If all the isolated data have not been deleted, the process returns to step 414 and the above processing (steps 414 to 422) is repeated. If all orphan data is deleted, step 44 (see FIG. 6)
Return to

【0049】このように、削除指定されたデータのリン
クデータを仮想データ100に保持させた後、削除指定
されたデータと削除指定されたデータのリンクデータと
を削除するため、削除指定されたデータが保持するリン
クデータに基づいてリンクされるデータをリンクしてい
るデータがあるかどうかを他の全てのデータについて判
断しなくても、削除指定されたデータを削除することが
できるので、データの削除を簡易に行うことができる。
In this way, after the link data of the data designated to be deleted is held in the virtual data 100, the data designated to be deleted and the link data of the data designated to be deleted are deleted. The specified data can be deleted without having to judge for all other data whether or not there is data linking the linked data based on the link data held by. It can be easily deleted.

【0050】ステップ44で、仮想データ100にリン
クされたデータのリンクデータ数が0であるか否か判断
する。図1の例では、前述した孤立データ削除処理にお
けるステップ418で、データE、Fが仮想データ10
0にリンクされているので、仮想データ100にリンク
されたデータのリンクデータ数は0でないと判断される
で、ステップ42に戻って以上の処理(ステップ42、
ステップ43)を繰り返す。すなわち、孤立化判定処理
(図7)では、削除指定されたデータ(C)及び削除指
定されたデータ(E、F)のリンクデータ以外の他のデ
ータがデータE、Fをリンクしているか否か判断する。
データEについては、データB、IがデータEをリンク
しているので、データEの仮想データ100とのリンク
を解除する。一方、データFについては、データCのみ
がデータFをリンクしているので、データFは、仮想デ
ータ100からのリンクは解除されない。この場合、デ
ータFのみが孤立データと判断されるので(データE
は、データB、Iにリンクされているので、孤立データ
と判断されない)、孤立データ削除処理(図8参照)に
おいて削除対象となるデータは、データFとなる。
At step 44, it is judged whether the number of linked data of the data linked to the virtual data 100 is 0 or not. In the example of FIG. 1, the data E and F are the virtual data 10 in step 418 in the above-described isolated data deletion processing.
Since it is linked to 0, it is determined that the number of linked data of the data linked to the virtual data 100 is not 0, and the process returns to step 42 (step 42,
Repeat step 43). That is, in the isolation determination process (FIG. 7), whether or not other data other than the link data of the data (C) designated for deletion and the data (E, F) designated for deletion link the data E, F. To determine.
Regarding the data E, since the data B and I link the data E, the link of the data E with the virtual data 100 is released. On the other hand, as for the data F, only the data C links the data F, so the data F is not released from the virtual data 100. In this case, only the data F is judged to be the isolated data (data E
Is not determined to be isolated data because it is linked to the data B and I), and the data to be deleted in the isolated data deletion processing (see FIG. 8) is the data F.

【0051】データFについて行われる孤立データ削除
処理では、前述したように、データFのリンクデータI
が仮想データ100にリンクされ、データFが削除され
る。孤立データ削除処理が終了すると、ステップ44
(図6参照)に進み、ステップ44で、仮想データ10
0のリンクデータ数が0であるか否か判断される。この
場合、データIが仮想データ100にリンクされている
ので、仮想データ100にリンクされたデータのリンク
データ数は0でないと判断され、ステップ42に戻り、
孤立化判定処理(ステップ42)が行われる。
In the isolated data deletion processing performed on the data F, as described above, the link data I of the data F is deleted.
Is linked to the virtual data 100, and the data F is deleted. When the orphan data deletion processing ends, step 44
(See FIG. 6), in step 44, the virtual data 10
It is determined whether or not the number of link data of 0 is 0. In this case, since the data I is linked to the virtual data 100, it is determined that the number of linked data of the data linked to the virtual data 100 is not 0, and the process returns to step 42,
The isolation determination process (step 42) is performed.

【0052】この孤立化判定処理では、データIが他の
データからリンクされているか判断される。この場合、
データIがデータDにリンクされているので、データI
の仮想データ100とのリンクが解除され、孤立データ
がなくなる。すなわち、仮想データ100にリンクされ
たデータがなくなる。これにより、全ての処理を終了す
る。
In this isolation determination process, it is determined whether the data I is linked with other data. in this case,
Since data I is linked to data D, data I
The link with the virtual data 100 is released, and the isolated data disappears. That is, there is no data linked to the virtual data 100. This completes all the processing.

【0053】このように、削除指定されたデータと削除
指定されたデータのリンクデータとを削除した後、仮想
データのリンクデータに基づいてリンクされるデータが
他のデータからリンクされているか否か判断し、他のデ
ータからリンクされている場合には、仮想データからリ
ンクデータを削除し、他のデータからリンクされていな
い場合には、仮想データのリンクデータに基づいてリン
クされるデータのリンクデータを仮想データに保持させ
た後、仮想データのリンクデータに基づいてリンクされ
るデータと該データのリンクデータとを削除する処理
を、仮想データ100のリンクデータを全て削除するま
で繰り返すので、他のデータからリンクされなくなった
データのリンクデータに基づいてリンクされるデータを
リンクしているデータがあるかどうかを他の全てのデー
タについて判断しなくても、他のデータからリンクされ
くなったデータを削除することができ、データの削除を
簡易に行うことができる。
As described above, after deleting the data designated to be deleted and the link data of the data designated to be deleted, whether the data linked based on the link data of the virtual data is linked from other data or not. Judge, delete the link data from the virtual data if linked from other data, and link the data linked based on the linked data of virtual data if not linked from other data After the data is held in the virtual data, the process of deleting the data linked based on the link data of the virtual data and the link data of the data is repeated until all the link data of the virtual data 100 is deleted. The data that is linked based on the link data of the data that is no longer linked from the data It is not necessary to determine for all of the other data to see if is there, it is possible to delete the data that became link of Lek from other data, it is possible to perform the deletion of data easily.

【0054】このように、ハイパー構造データを、一方
向リンク方式において、簡易にデータの削除が行なえる
データ群のデータ削除方法で管理できるため、データ間
のリンク操作の処理が簡素化される。また、データ削除
を指定した時の処理時間が短くなるため、実用上きわめ
て有効である。
As described above, since the hyper-structured data can be managed by the data deletion method of the data group that can easily delete the data in the one-way link method, the processing of the link operation between the data is simplified. In addition, the processing time when data deletion is designated is shortened, which is extremely effective in practice.

【0055】以上説明した実施例では、少なくとも1個
の下位データを参照するためのデータを参照データとし
て保持する複数のデータからなるデータ群から特定のデ
ータを削除する例について説明したが、これに限定する
ものでなく、少なくとも1個の上位データを参照するた
めのデータを参照データとして保持する複数のデータか
らなるデータ群から特定のデータを削除する場合にも適
用できる。
In the embodiment described above, an example in which specific data is deleted from a data group consisting of a plurality of data that holds at least one piece of data for referring to lower data as reference data has been described. The present invention is not limited to this, and can also be applied to the case of deleting specific data from a data group including a plurality of data that holds at least one piece of data for referencing higher-order data as reference data.

【0056】[0056]

【発明の効果】以上説明したように請求項1記載の発明
は、削除指定されたデータが保持する参照データを仮想
データに保持させた後、削除指定されたデータと削除指
定されたデータが保持する参照データとを削除するた
め、削除指定されたデータが保持する参照データに基づ
いて参照されるデータを参照しているデータがあるかど
うかを他の全てのデータについて判断しなくて削除指定
されたデータを削除することができるので、データの削
除を簡易に行うことができる、という効果を有する。
As described above, according to the first aspect of the invention, after the reference data held by the data designated for deletion is held in the virtual data, the data designated for deletion and the data designated for deletion are held. In order to delete the reference data to be deleted, it is specified to be deleted without judging whether all the other data refer to the data referred to based on the reference data held by the specified deletion data. Since the deleted data can be deleted, there is an effect that the data can be deleted easily.

【0057】請求項2記載の発明は、仮想データに保持
させた参照データを全て削除するまで、第1の工程と、
第2の工程と、第3の工程とを繰り返すことから、他の
データから参照されなくなったデータを削除する際も、
該データが保持する参照データを仮想データに保持させ
た後、該データと該データが保持しいてる参照データと
を削除するため、他のデータから参照されなくなったデ
ータが保持している参照データに基づいて参照されるデ
ータを参照されているデータがあるかどうかを他の全て
のデータについて判断しなくても、他のデータから参照
されくなったデータを削除することができ、データの削
除を簡易に行うことができる、という効果を有する。
According to the second aspect of the invention, the first step is performed until all the reference data held in the virtual data is deleted.
Since the second step and the third step are repeated, even when deleting data that is no longer referenced by other data,
After the reference data held by the data is held in the virtual data, the reference data held by the data that is no longer referenced by other data is deleted because the data and the reference data held by the data are deleted. It is possible to delete data that is no longer referenced by other data without having to determine whether there is referenced data for all other data based on the data referenced based on It has an effect that it can be performed easily.

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

【図1】本実施例におけるハイパー構造データ例と削除
指定されたデータがリンクされる仮想データとを示した
図である。
FIG. 1 is a diagram showing an example of hyper-structured data and virtual data to which data designated for deletion is linked in the present embodiment.

【図2】データ管理ファイル内の削除指定されたデータ
の格納テーブル(削除データテーブル)を示す図であ
る。
FIG. 2 is a diagram showing a storage table (deleted data table) of data designated for deletion in a data management file.

【図3】本実施例が適用可能なシステムの概略図であ
る。
FIG. 3 is a schematic diagram of a system to which this embodiment is applicable.

【図4】本実施例におけるリンク付替処理のメインルー
チンを示すフローチャートである。
FIG. 4 is a flowchart showing a main routine of a link replacement process in the present embodiment.

【図5】本実施例におけるリンク付替処理のサブルーチ
ンを示すフローチャートである。
FIG. 5 is a flowchart showing a subroutine of link replacement processing in the present embodiment.

【図6】本実施例におけるデータ削除処理のメインルー
チンを示すフローチャートである。
FIG. 6 is a flowchart showing a main routine of data deletion processing in the present embodiment.

【図7】本実施例のデータ削除処理のメインルーチンに
おける孤立化判定処理のサブルーチンを示すフローチャ
ートである。
FIG. 7 is a flowchart showing a subroutine of isolation determination processing in the main routine of the data deletion processing of the present embodiment.

【図8】本実施例のデータ削除処理のメインルーチンに
おける孤立データ削除処理のサブルーチンを示すフロー
チャートである。
FIG. 8 is a flowchart showing a subroutine of an orphan data deletion process in the main routine of the data deletion process of this embodiment.

【図9】ハイパー構造データを示す図である。FIG. 9 is a diagram showing hyper structure data.

【図10】データ管理ファイルの構成図である。FIG. 10 is a configuration diagram of a data management file.

【図11】データベース管理ファイルの構成図である。FIG. 11 is a configuration diagram of a database management file.

【図12】一方向リンク方式におけるデータ削除処理の
メインルーチンを示すフローチャートである。
FIG. 12 is a flowchart showing a main routine of data deletion processing in the one-way link method.

【図13】図12のデータ削除処理のメインルーチンに
おけるリンク解除処理のサブルーチンを示すフローチャ
ートである。
FIG. 13 is a flowchart showing a subroutine of a link releasing process in the main routine of the data deleting process of FIG.

【図14】図13のリンク解除処理のサブルーチンにお
けるデータ削除処理のサブルーチンを示すフローチャー
トである。
14 is a flowchart showing a subroutine of data deletion processing in the subroutine of link cancellation processing of FIG.

【図15】データの削除処理を行っている際のデータ管
理ファイル内のリンクデータの内容を示した図である。
FIG. 15 is a diagram showing the contents of link data in a data management file during data deletion processing.

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

100 削除用の仮想データ 100 virtual data for deletion

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも1個の上位データを参照する
ためのデータ及び少なくとも1個の下位データを参照す
るためのデータの何れか一方を参照データとして保持す
る複数のデータからなるデータ群から特定のデータを削
除するデータ群のデータ削除方法において、 前記データ群を構成するデータとは異なる仮想データを
設け、 削除指定されたデータが保持する参照データを前記仮想
データに保持させた後、前記削除指定されたデータと前
記削除指定されたデータが保持する参照データとを削除
する、 ことを特徴とするデータ群のデータ削除方法。
1. A specific data group consisting of a plurality of data which holds, as reference data, one of data for referencing at least one upper data and data for referencing at least one lower data. In the method of deleting data of a data group for deleting data, virtual data different from the data making up the data group is provided, reference data held by the data designated for deletion is held in the virtual data, and then the deletion designation is made. The deleted data and the reference data held by the specified deletion data are deleted.
【請求項2】 前記削除指定されたデータと前記削除指
定されたデータが保持する参照データとを削除した後、
前記仮想データに保持させた参照データを全て削除する
まで、 前記仮想データに保持させた参照データに基づいて参照
されるデータが他のデータから参照されているか否か判
断する第1の工程と、 他のデータから参照されている場合には、前記仮想デー
タから前記参照データを削除する第2の工程と、 他のデータから参照されていない場合には、前記仮想デ
ータに保持された参照データに基づいて参照されるデー
タが保持する参照データを前記仮想データに保持させた
後、前記仮想データに保持させた参照データに基づいて
参照されるデータと前記仮想データに保持させた参照デ
ータに基づいて参照されるデータが保持する参照データ
とを削除する第3の工程とを繰り返す、 ことを特徴とする請求項1記載のデータ群のデータ削除
方法。
2. After the deletion-designated data and the reference data held by the deletion-designated data are deleted,
A first step of determining whether or not the data referred to based on the reference data held in the virtual data is referred to by other data until all the reference data held in the virtual data is deleted, The second step of deleting the reference data from the virtual data when the data is referenced by other data, and the reference data held in the virtual data when the data is not referenced by other data. Based on the reference data held based on the reference data held in the virtual data after holding the reference data held by the data referred to based on the virtual data, based on the reference data held in the virtual data The method of deleting data of a data group according to claim 1, wherein the third step of deleting the reference data held by the referenced data is deleted.
JP6142944A 1994-06-24 1994-06-24 Data deleting method for data group Pending JPH0816448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6142944A JPH0816448A (en) 1994-06-24 1994-06-24 Data deleting method for data group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6142944A JPH0816448A (en) 1994-06-24 1994-06-24 Data deleting method for data group

Publications (1)

Publication Number Publication Date
JPH0816448A true JPH0816448A (en) 1996-01-19

Family

ID=15327284

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6142944A Pending JPH0816448A (en) 1994-06-24 1994-06-24 Data deleting method for data group

Country Status (1)

Country Link
JP (1) JPH0816448A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100389855B1 (en) * 1998-06-24 2003-08-19 삼성전자주식회사 Method for recording and/or reproducing still pictures
KR100597411B1 (en) * 2004-08-04 2006-07-05 삼성전자주식회사 Method and apparatus for effective data management of file

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100389855B1 (en) * 1998-06-24 2003-08-19 삼성전자주식회사 Method for recording and/or reproducing still pictures
KR100597411B1 (en) * 2004-08-04 2006-07-05 삼성전자주식회사 Method and apparatus for effective data management of file
CN100399294C (en) * 2004-08-04 2008-07-02 三星电子株式会社 Method and apparatus for effective data management of files

Similar Documents

Publication Publication Date Title
US5551028A (en) Design data management system and associated method
JP4141556B2 (en) Structured document management method, apparatus for implementing the method, and medium storing the processing program
CA1316262C (en) Version management tool
JPH0816448A (en) Data deleting method for data group
JPH06215037A (en) Automatic updating device for index
JP4056622B2 (en) Database management device
JPH05225240A (en) Document data base device
JP3637606B2 (en) Data processing device
JPH056272A (en) Software designing device
KR0175579B1 (en) Version Control Method of Object-Oriented SDL Specification
JPH04220768A (en) Text conversion method
JPH02130667A (en) Document editing device
JPH038070A (en) Keyword extracting system
JPH06301668A (en) Method for constructing simulation data
JP2001027947A (en) Software design supporting device and recording medium
JPH04293128A (en) Expert system
JPH04314129A (en) File managing system
JPH09223134A (en) Document processor
JPH07160560A (en) System and method for managing data storage version
JPH06324853A (en) Source program editor setting object oriented programming language as target
JPH0744446A (en) Relating method for grouped information
JPH03157729A (en) Multiple succession control system
JPH0644057A (en) Automatic programming device
JPH0635786A (en) Control device for constitution change of shared object
JPH03226829A (en) Information processor