JPH04270429A - Data erasing system for hyper structure data - Google Patents

Data erasing system for hyper structure data

Info

Publication number
JPH04270429A
JPH04270429A JP3030962A JP3096291A JPH04270429A JP H04270429 A JPH04270429 A JP H04270429A JP 3030962 A JP3030962 A JP 3030962A JP 3096291 A JP3096291 A JP 3096291A JP H04270429 A JPH04270429 A JP H04270429A
Authority
JP
Japan
Prior art keywords
data
link
link information
file
list file
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.)
Withdrawn
Application number
JP3030962A
Other languages
Japanese (ja)
Inventor
Kenji Mizuguchi
水口 健二
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3030962A priority Critical patent/JPH04270429A/en
Publication of JPH04270429A publication Critical patent/JPH04270429A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To erase data successively from a high-order data, to unnecessitate the use of a recursive program and to prevent the danger of stack overflow concerning the data erasing system of the hyper structure data. CONSTITUTION:At the data erasing system of the hyper structure data to erase the arbitrary data from a hyper structure data 1 constituted by linking the data to the plural high-order or low-order data, a link information erasing means 2 erases the link information of the data designated erasing with the low-order data. A file writing means 3 writes the link information erased by the link information erasing means 2 in a link data list file 4. A file reading means 5 reads the data designated by the link information written in the link data list file 4 and informs it of the link information erasing means 2. Thus, the data designated by all the link information in the link data list file 4 are successively erased.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はデータ削除方式に関し、
ハイパー構造データのデータ削除を行なうデータ削除方
式に関する。
[Industrial Application Field] The present invention relates to a data deletion method,
The present invention relates to a data deletion method for deleting hyperstructure data.

【0002】0002

【従来の技術】従来より、図5に示す如くデータD3 
を上位データD1 及びD2 とリンクし、また下位デ
ータD4 ,D5 及びD6 とリンクすることによっ
てハイパー構造のデータを形成することが行なわれてい
る。
[Prior Art] Conventionally, data D3 as shown in FIG.
Hyper-structured data is formed by linking the data with higher-order data D1 and D2 and with lower-order data D4, D5, and D6.

【0003】上記の各データD1 〜D6 等はデータ
管理ファイルとメディアファイルとで構成され、メディ
アファイルはテキストデータファイル、ベクトルデータ
ファイル、音声データファイル、イメージデータファイ
ル等で構成される。
Each of the above-mentioned data D1 to D6 etc. is composed of a data management file and a media file, and the media file is composed of a text data file, a vector data file, an audio data file, an image data file, etc.

【0004】データ管理ファイルは図6(A)に示す如
くデータ番号、各メディア情報、作成日時、最終更新日
時、アトリビュート、表示座標と共に、上位データとの
リンク情報10a及び下位データとのリンク情報10b
が格納されている。上位データとのリンク情報10aは
図6(B)に示す如く、リンク個数と各リンク相手のデ
ータ番号である。下位データとのリンク情報10bは図
6(C)に示す如く、リンク個数と、各リンク相手のデ
ータ番号と行、列を示すリンク座標X,Yとリンク日時
とアトリビュートである。
[0004] As shown in FIG. 6(A), the data management file includes data numbers, each media information, date and time of creation, date and time of last update, attributes, and display coordinates, as well as link information 10a with upper-level data and link information 10b with lower-level data.
is stored. As shown in FIG. 6(B), link information 10a with higher-level data includes the number of links and the data number of each link partner. As shown in FIG. 6C, the link information 10b with lower data includes the number of links, the data number of each link partner, link coordinates X and Y indicating rows and columns, link date and time, and attributes.

【0005】図7(A),(B)はハイパー構造データ
の従来のデータ削除方式の一例のフローチャートを示す
。図7(A)のステップ19で削除コマンド及びデータ
名が入力されると、ステップ20でリンクデータチェッ
クルーチンが実行される。図7(B)に示すリンクデー
タチェックルーチンでは削除を指定されたデータのデー
タ管理ファイルがオープンされ(ステップ21)、削除
を指定されたデータのリンク先の上位データが解除とさ
れる(ステップ22)。次に指定されたデータが別の上
位データにリンクしているかどうかが判別され(ステッ
プ23)、リンクしていればデータ管理ファイルをクロ
ーズし(ステップ24)処理を終了する。別の上位デー
タにリンクしていなければ指定されたデータに下位デー
タがリンクしているかどうかを判別し(ステップ25)
、下位データとのリンクがあればステップ26で下位デ
ータとのリンク個数が0となるまでリンクデータチェッ
クルーチン(ステップ27)を繰り返す。リンク個数が
0となるとステップ28でデータ管理ファイルをクロー
ズして管理及びメディアファイルを削除し(ステップ2
9)、処理を終了する。
FIGS. 7A and 7B are flowcharts of an example of a conventional data deletion method for hyperstructure data. When the deletion command and data name are input in step 19 of FIG. 7(A), a link data check routine is executed in step 20. In the link data check routine shown in FIG. 7(B), the data management file of the data specified for deletion is opened (step 21), and the higher-order data linked to the data specified for deletion is canceled (step 22). ). Next, it is determined whether the specified data is linked to another higher-level data (step 23), and if so, the data management file is closed (step 24) and the process ends. If it is not linked to another higher-level data, determine whether the lower-level data is linked to the specified data (step 25).
, if there is a link with lower-order data, the link data check routine (step 27) is repeated at step 26 until the number of links with lower-order data becomes 0. When the number of links becomes 0, the data management file is closed in step 28 and the management and media files are deleted (step 2
9) End the process.

【0006】[0006]

【発明が解決しようとする課題】このように、関連する
複数のデータがリンクという形で関連付けられてハイパ
ー構造をしているリンクデータを削除する時、まずリン
ク関係にある二つのデータのお互いの管理ファイルのリ
ンク情報を削除することによりリンク状態を解除してか
ら、指定されたデータの管理ファイルと各メディアファ
イルを削除する。この時に削除しようとするデータに他
のデータがリンクしている場合は、指定さたデータと一
緒にリンクしているデータも同様にして削除するのだが
、そのリンクしているデータが他の別のデータにリンク
している場合やそのリンクしているデータに他のデータ
がリンクしている場合があるのでそのリンクしているデ
ータのリンク状態についても調べていかなければならず
、階層が深くなるようなリンク関係を持っているデータ
を削除するには、階層の一番下の位置のデータから順番
に削除していかなければならず、その階層の一番下にた
どり着くためのプログラムが階層の深い再帰的構造のプ
ログラムになり、理解しにくいプログラムになるだけで
はなく、戻りアドレスを格納するスタックのスタックオ
ーバーフローを起こす危険性があるという問題点があっ
た。
[Problem to be Solved by the Invention] In this way, when deleting link data in which a plurality of related data are associated in the form of links and have a hyper structure, first the two data in the link relationship are Release the link status by deleting the link information of the management file, and then delete the management file and each media file of the specified data. If other data is linked to the data to be deleted at this time, the data linked to the specified data will be deleted in the same way, but if the linked data is In some cases, the linked data may be linked to other data, so the link status of the linked data must also be investigated, and the hierarchy is deep. To delete data that has a link relationship such as Not only does this result in a program with a deep recursive structure that is difficult to understand, but there is also the risk of stack overflow of the stack that stores the return address.

【0007】本発明は、上記の点に鑑みなされたもので
、上位のデータから順にデータを削除でき、再帰的構造
のプログラムを用いる必要がなく、スタックオーバーフ
ローのおそれがないハイパー構造データのデータ削除方
式を提供することを目的とする。
The present invention has been made in view of the above points, and is a data deletion method for hyper-structured data that allows data to be deleted in order from the upper level data, eliminates the need to use a program with a recursive structure, and eliminates the risk of stack overflow. The purpose is to provide a method.

【0008】[0008]

【課題を解決するための手段】図1は本発明の原理図を
示す。
Means for Solving the Problems FIG. 1 shows a diagram of the principle of the present invention.

【0009】同図中、ハイパー構造データは、データを
複数の上位データ又は下位データとリンクして構成され
ている。
In the figure, hyper-structure data is constructed by linking data with a plurality of higher-order data or lower-order data.

【0010】リンク情報削除手段2は、削除を指定され
たデータの下位データとのリンク情報を削除する。
[0010] The link information deletion means 2 deletes the link information between the data designated for deletion and the subordinate data.

【0011】ファイル書込み手段3は、リンク情報削除
手段2で削除されるリンク情報をリンクデータ一覧ファ
イル4に書込む。
The file writing means 3 writes the link information deleted by the link information deletion means 2 into the link data list file 4.

【0012】ファイル読出し手段5は、リンクデータ一
覧ファイルに書かれているリンク情報で指定されたデー
タを読出してリンク情報削除手段2に通知する。
The file reading means 5 reads the data specified by the link information written in the link data list file and notifies the link information deletion means 2 of the data.

【0013】上記リンクデータ一覧ファイル4の全ての
リンク情報で指定されたデータを順次削除する。
Data specified by all the link information in the link data list file 4 is sequentially deleted.

【0014】[0014]

【作用】本発明においては、リンク情報削除手段2で下
位データのリンク情報を削除し、このリンク情報で一旦
リンクデータ一覧ファイル4に書込んでおき、ファイル
読出し手段5でリンクデータ一覧ファイル4よりリンク
情報を順次読出してリンク情報削除手段2に通知するた
め、上位データから順にデータを削除でき、このために
再帰的構造のプログラムを用いる必要がなくなり、戻り
アドレスを格納するスタックのスタックオーバーフロー
のおそれがなくなる。
[Operation] In the present invention, the link information deletion means 2 deletes the link information of lower-order data, this link information is temporarily written in the link data list file 4, and the file reading means 5 writes the link information from the link data list file 4. Since the link information is read out sequentially and notified to the link information deletion means 2, the data can be deleted in order from the upper level data, which eliminates the need to use a program with a recursive structure, and there is a risk of stack overflow of the stack that stores the return address. disappears.

【0015】[0015]

【実施例】図2は本発明方式の一実施例のフローチャー
トを示す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 2 shows a flowchart of an embodiment of the method of the present invention.

【0016】同図中、ステップ40で削除コマンドとそ
のデータ名が入力されると、ステップ41で指定された
削除データのデータ管理ファイルをオープンし、現在リ
ンクしている上位データとのリンク情報を削除してリン
クを解除する。このとき上位データの管理ファイル内の
削除データとのリンク情報も同時に削除する。次に、削
除データに別の上位データがリンクしているかどうかを
判別し(ステップ42)、リンクがあればデータ管理フ
ァイルをクローズし(ステップ43)、処理を終了する
。上位データとのリンクがなければ、リンクデータ一覧
ファイルを作成してオープンし(ステップ44)、ステ
ップ45でリンクデータ一覧ファイル書込みルーチンを
実行する。
In the figure, when a deletion command and its data name are input in step 40, the data management file of the specified deletion data is opened in step 41, and the link information with the currently linked upper data is stored. Delete and unlink. At this time, link information with the deleted data in the management file of the higher-level data is also deleted at the same time. Next, it is determined whether the deleted data is linked to other higher-level data (step 42), and if there is a link, the data management file is closed (step 43), and the process ends. If there is no link with higher-level data, a link data list file is created and opened (step 44), and a link data list file writing routine is executed in step 45.

【0017】図3はリンクデータ一覧ファイル書込みル
ーチンのフローチャートを示す。同図中、ステップ60
では管理ファイル内の下位データとのリンク情報10b
のリンク個数が0となるまでリンクするデータを1個ず
つチェックし、リンク個数が0でなければステップ61
でまず削除データのリンク情報を削除し、次に下位デー
タのデータ管理ファイル内の削除データとのリンク情報
を削除する。ステップ62では上記削除した下位データ
のリンク情報を図4に示すリンクデータ一覧ファイルに
書込み、ステップ63でリンクデータ一覧ファイルの書
込みオフセット(書込みアドレス)を更新し、ステップ
64で削除データの下位データとのリンク情報10bの
リンク個数を1だけ減少させてステップ60に戻る。
FIG. 3 shows a flowchart of the link data list file writing routine. In the figure, step 60
Now, link information 10b with lower-level data in the management file.
Check the data to be linked one by one until the number of links becomes 0, and if the number of links is not 0, step 61
First, delete the link information of the deleted data, and then delete the link information between the lower data and the deleted data in the data management file. In step 62, the link information of the deleted lower data is written to the link data list file shown in FIG. 4, in step 63 the write offset (write address) of the link data list file is updated, and in step 64 the lower data of the deleted data The number of links in the link information 10b is decreased by 1 and the process returns to step 60.

【0018】上記ステップ60〜64の繰り返しにより
、削除データのデータ管理ファイルで下位データとのリ
ンク個数がN個であれば図4のリンクデータ一覧ファイ
ルの1番目からN番目のリンク情報が書込まれる。
By repeating steps 60 to 64 above, if the number of links with lower-order data in the data management file of deleted data is N, the 1st to Nth link information in the link data list file of FIG. 4 is written. It will be done.

【0019】図2のステップ46では削除データのデー
タ管理ファイルをクローズして削除データのデータ管理
ファイル及びメディアファイルを削除する。
At step 46 in FIG. 2, the data management file for the deleted data is closed and the data management file and media file for the deleted data are deleted.

【0020】次にステップ47でリンクデータ一覧ファ
イル書込みルーチンからの復帰値のリンク個数を判別し
、このリンク個数が0でなければステップ48でリンク
データ一覧ファイルがEOF(エンド・オブ・ファイル
)となるまでステップ49以降の処理を実行する。
Next, in step 47, the number of links in the return value from the link data list file writing routine is determined, and if this number of links is 0, the link data list file is determined to be EOF (end of file) in step 48. The processing from step 49 onwards is executed until the result is reached.

【0021】ステップ49ではリンクデータ一覧ファイ
ルから1個のリンク情報を読出し、ステップ50でこの
リンク情報で指定されたデータのデータ管理ファイルを
オープンする。
In step 49, one piece of link information is read from the link data list file, and in step 50, a data management file for the data specified by this link information is opened.

【0022】次に、このリンク情報で指定されたデータ
に別の上位データがリンクしているかどうかを判別し(
ステップ51)、リンクがあればデータ管理ファイルを
クローズし(ステップ54)、上位データとのリンクが
なければステップ52でリンクデータ一覧ファイル書込
みルーチンを実行する。
[0022] Next, it is determined whether the data specified by this link information is linked to other higher-level data (
In step 51), if there is a link, the data management file is closed (step 54), and if there is no link with higher-level data, a linked data list file writing routine is executed in step 52.

【0023】この後、ステップ53でデータ管理ファイ
ルをクローズして、このデータのデータ管理ファイル及
びメディアファイルを削除する。
Thereafter, in step 53, the data management file is closed, and the data management file and media file of this data are deleted.

【0024】ステップ53又は54の後はステップ55
でリンクデータ一覧ファイルの読出しオフセット(読出
しアドレス)を更新してステップ48に戻る。
After step 53 or 54, step 55
Then, the read offset (read address) of the link data list file is updated, and the process returns to step 48.

【0025】ステップ48〜55を繰り返してリンクデ
ータ一覧ファイルがEOFとなると、又はステップ47
でリンク個数が0の場合にはステップ56に進み、ここ
でリンクデータ一覧ファイルをクローズし、ステップ5
7でリンクデータ一覧ファイルを削除して処理を終了す
る。
[0025] If the link data list file becomes EOF by repeating steps 48 to 55, or step 47
If the number of links is 0, proceed to step 56, close the link data list file, and proceed to step 5.
At step 7, the link data list file is deleted and the process ends.

【0026】このように、下位データのリンク情報を削
除し、このリンク情報で一旦リンクデータ一覧ファイル
に書込んでおき、リンクデータ一覧ファイル4よりリン
ク情報を順次読出して、このリンク情報の下位データの
リンク情報の削除を繰り返すため、上位データから順に
データを削除でき、このために再帰的構造のプログラム
を用いる必要がなくなり、戻りアドレスを格納するスタ
ックのスタックオーバーフローのおそれがなくなる。
In this way, the link information of the lower-order data is deleted, this link information is temporarily written in the link data list file, and the link information is sequentially read out from the link data list file 4, and the lower-order data of this link information is Since link information is repeatedly deleted, data can be deleted in order starting from the upper data, which eliminates the need to use a program with a recursive structure, and eliminates the risk of stack overflow of the stack that stores the return address.

【0027】[0027]

【発明の効果】上述の如く、本発明のハイパー構造デー
タのデータ削除方式によれば、なされたもので、上位の
データから順にデータを削除でき、再帰的構造のプログ
ラムを用いる必要がなく、スタックオーバーフローのお
それがなく、実用上きわめて有用である。
[Effects of the Invention] As described above, according to the data deletion method for hyperstructure data of the present invention, it is possible to delete data in order from the upper level data, and there is no need to use a program with a recursive structure. There is no risk of overflow, and it is extremely useful in practice.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の原理図である。FIG. 1 is a diagram showing the principle of the present invention.

【図2】本発明方式の一実施例のフローチャートである
FIG. 2 is a flowchart of one embodiment of the method of the present invention.

【図3】リンクデータ一覧ファイル書込みルーチンのフ
ローチャートである。
FIG. 3 is a flowchart of a link data list file writing routine.

【図4】リンクデータ一覧ファイルを示す図である。FIG. 4 is a diagram showing a link data list file.

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

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

【図7】従来方式の一例のフローチャートである。FIG. 7 is a flowchart of an example of a conventional method.

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

1  ハイパー構造データ 2  リンク情報削除手段 3  ファイル書込み手段 4  リンクデータ一覧ファイル 5  ファイル読出し手段 1 Hyper structure data 2 Link information deletion means 3 File writing means 4 Link data list file 5 File reading means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  データを複数の上位データ又は下位デ
ータとリンクして構成したハイパー構造データ(1)か
ら任意のデータを削除するハイパー構造データのデータ
削除方式において、削除を指定されたデータの下位デー
タとのリンク情報を削除するリンク情報削除手段(2)
と、該リンク情報削除手段(2)で削除されるリンク情
報をリンクデータ一覧ファイル(4)に書込むファイル
書込み手段(3)と、該リンクデータ一覧ファイル(4
)に書かれているリンク情報で指定されたデータを読出
して該リンク情報削除手段(2)に通知するファイル読
出し手段(5)とを有し、該リンクデータ一覧ファイル
(4)の全てのリンク情報で指定されたデータを順次削
除することを特徴とするハイパー構造データのデータ削
除方式。
Claim 1: In a data deletion method for hyper-structured data that deletes arbitrary data from hyper-structured data (1) configured by linking data with a plurality of higher-order data or lower-order data, Link information deletion means (2) for deleting link information with data
, file writing means (3) for writing the link information deleted by the link information deletion means (2) into the link data list file (4), and the link data list file (4).
), the file reading means (5) reads out the data specified by the link information written in the link information and notifies the link information deletion means (2), and all the links in the link data list file (4) are read out. A data deletion method for hyperstructure data characterized by sequentially deleting data specified by information.
JP3030962A 1991-02-26 1991-02-26 Data erasing system for hyper structure data Withdrawn JPH04270429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3030962A JPH04270429A (en) 1991-02-26 1991-02-26 Data erasing system for hyper structure data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3030962A JPH04270429A (en) 1991-02-26 1991-02-26 Data erasing system for hyper structure data

Publications (1)

Publication Number Publication Date
JPH04270429A true JPH04270429A (en) 1992-09-25

Family

ID=12318301

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3030962A Withdrawn JPH04270429A (en) 1991-02-26 1991-02-26 Data erasing system for hyper structure data

Country Status (1)

Country Link
JP (1) JPH04270429A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08161215A (en) * 1994-12-07 1996-06-21 Fujitsu Ltd File management system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08161215A (en) * 1994-12-07 1996-06-21 Fujitsu Ltd File management system

Similar Documents

Publication Publication Date Title
KR100437199B1 (en) Methods for accessing computer systems and data stored on them
US5274807A (en) Method for reducing magnetic storage volume for computer disk image backup
US5117495A (en) Method of sorting data records
KR910020584A (en) Data management method and data management system
CN109684292A (en) A kind of method that flash memory database quickly carries out data recovery
JP3542589B2 (en) Automatic data name conversion system, automatic data name conversion method, automatic data name conversion program
JPH02297284A (en) Document processing system and version control system
JPH04270429A (en) Data erasing system for hyper structure data
JPH01191270A (en) Graphic editor
JPH04360246A (en) Device for compressing file
JPH05158771A (en) Meth0d and system for file management
JPH05324421A (en) Electronic filing device
JP2005222531A (en) Data recording apparatus and data recording method
JP3001549B1 (en) Hierarchical storage method and system for electronic circuit connection information
JPS6231378B2 (en)
JP3424236B2 (en) Data I / O device with table interface
JPH04165543A (en) Electronic filing device
JPH0736942A (en) Generating and updating process method for index data
JPH05158670A (en) Screen type program editor
JPS6010360A (en) Stack form managing system of edited data in editing processing
JPH0375942A (en) Editing history control system for file
KR970000266B1 (en) Method for writing and reading a data in a memory
JPS62159251A (en) File managing device
Vitter Computational complexity of an optical disk interface
JPH11282730A (en) Record data processor and recording medium

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514