JP7010538B2 - File management device, file management method, and program - Google Patents

File management device, file management method, and program Download PDF

Info

Publication number
JP7010538B2
JP7010538B2 JP2018066056A JP2018066056A JP7010538B2 JP 7010538 B2 JP7010538 B2 JP 7010538B2 JP 2018066056 A JP2018066056 A JP 2018066056A JP 2018066056 A JP2018066056 A JP 2018066056A JP 7010538 B2 JP7010538 B2 JP 7010538B2
Authority
JP
Japan
Prior art keywords
file
input
summary information
difference
registration
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.)
Active
Application number
JP2018066056A
Other languages
Japanese (ja)
Other versions
JP2019175373A (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 Solutions Innovators Ltd
Original Assignee
NEC Solutions Innovators 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 NEC Solutions Innovators Ltd filed Critical NEC Solutions Innovators Ltd
Priority to JP2018066056A priority Critical patent/JP7010538B2/en
Publication of JP2019175373A publication Critical patent/JP2019175373A/en
Application granted granted Critical
Publication of JP7010538B2 publication Critical patent/JP7010538B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ファイルシステムにおけるデータの管理を行うための、ファイル管理装置、及びファイル管理方法に関し、更には、これらを実現するためのプログラムに関する。 The present invention relates to a file management device for managing data in a file system, a file management method, and a program for realizing these.

従来から、コンピュータの分野では、記憶装置に格納されているデータを管理するために、ファイルシステムが導入されている。通常、ファイルシステムは、オペレーティングシステム(OS:Operating System)によって、その機能の1つとして提供されている。 Traditionally, in the field of computers, file systems have been introduced to manage data stored in storage devices. Normally, a file system is provided as one of its functions by an operating system (OS: Operating System).

ところで、コンピュータが出力するデータを全てそのまま記憶装置に格納すると、ファイルシステムにおいてデータサイズが増大化し、記憶装置の記憶容量が不足してしまう可能性がある。このため、例えば、特許文献1は、データの圧縮化を実行可能なファイルシステムを提案している。 By the way, if all the data output by the computer is stored in the storage device as it is, the data size in the file system may increase and the storage capacity of the storage device may be insufficient. Therefore, for example, Patent Document 1 proposes a file system capable of performing data compression.

具体的には、特許文献1に開示されたファイルシステムは、まず、入力されたデータと、モデルデータとの排他的論理和を算出し、算出した排他的論理和を差分として、更に、差分から非類似度を算出する。また、モデルデータは複数用意されており、非類似度の算出はモデルデータ毎に行われる。そして、特許文献1に開示されたファイルシステムは、算出した非類似度が一定の条件を満たすモデルデータが存在する場合は、差分と、入力されたデータの名称と、該当するモデルデータの名称と、非類似度とを関連付けて格納する。 Specifically, in the file system disclosed in Patent Document 1, first, an exclusive OR of the input data and the model data is calculated, and the calculated exclusive OR is used as a difference, and further, from the difference. Calculate the dissimilarity. In addition, a plurality of model data are prepared, and the dissimilarity is calculated for each model data. Then, in the file system disclosed in Patent Document 1, when the calculated dissimilarity satisfies a certain condition, the difference, the name of the input data, and the name of the corresponding model data are used. , Dissimilarity is associated and stored.

このように、入力されたデータは、データそのものではなく、モデルデータとの差分を用いた形式で格納されるので、特許文献1に開示されたファイルシステムによれば、格納されるデータは圧縮化され、データサイズの増大化が抑制される。また、特許文献1に開示されたファイルシステムは、非類似度が一定の条件を満たすモデルデータが存在しない場合は、入力されたデータを新たなモデルデータの1つとして、非圧縮で格納する。 In this way, the input data is stored not in the data itself but in a format using the difference from the model data. Therefore, according to the file system disclosed in Patent Document 1, the stored data is compressed. Therefore, the increase in data size is suppressed. Further, the file system disclosed in Patent Document 1 stores the input data as one of the new model data in an uncompressed manner when there is no model data in which the dissimilarity satisfies a certain condition.

特開2006-65424号公報Japanese Unexamined Patent Publication No. 2006-65524

しかしながら、特許文献1に開示されたファイルシステムでは、モデルデータ毎に、論理演算を実行して、当該モデルデータと入力されたデータとの排他的論理和を算出する必要がある。このため、このファイルシステムにおいては、圧縮処理の開始から終了までにかかる時間が長大化し、引いては、データの登録に時間がかかり過ぎてしまう。また、モデルデータの数は、コンピュータが稼働すると増加するため、特許文献1に開示されたファイルシステムでは、圧縮処理にかかる時間の短縮化は困難である。 However, in the file system disclosed in Patent Document 1, it is necessary to execute a logical operation for each model data to calculate the exclusive OR of the model data and the input data. Therefore, in this file system, the time required from the start to the end of the compression process becomes long, which in turn takes too much time to register the data. Further, since the number of model data increases as the computer operates, it is difficult to shorten the time required for the compression process in the file system disclosed in Patent Document 1.

本発明の目的の一例は、上記問題を解消し、ファイルシステムにおいて、データの圧縮化を図りつつ、データの登録にかかる時間の短縮化を図り得る、ファイル管理装置、ファイル管理方法、及びプログラムを提供することにある。 An example of an object of the present invention is to provide a file management device, a file management method, and a program that can solve the above-mentioned problems and reduce the time required for data registration while compressing data in a file system. To provide.

上記目的を達成するため、本発明の一側面におけるファイル管理装置は、
入力ファイルを分析して、前記入力ファイルの内容を示すサマリ情報を作成する、サマ
リ情報作成部と、
前記入力ファイルの前記サマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、前記登録ファイル毎に、前記入力ファイルとの類似度を算出する、類似度算出部と、
前記類似度が最も高い登録ファイルと前記入力ファイルとの差分を算出する、差分算出部と、
算出された前記差分、及び前記類似度が最も高い登録ファイルを特定する類似ファイル情報を、前記入力ファイルとして、登録する、登録部と、
を備えている、ことを特徴とする。
In order to achieve the above object, the file management device in one aspect of the present invention is
A summary information creation unit that analyzes the input file and creates summary information indicating the contents of the input file.
A similarity calculation unit that calculates the similarity with the input file for each registration file by comparing the summary information of the input file with the summary information of the already registered registration file.
A difference calculation unit that calculates the difference between the registration file with the highest degree of similarity and the input file, and
A registration unit that registers the calculated difference and similar file information that identifies the registration file having the highest degree of similarity as the input file.
It is characterized by having.

また、上記目的を達成するため、本発明の一側面におけるファイル管理方法は、
(a)入力ファイルを分析して、前記入力ファイルの内容を示すサマリ情報を作成する、ステップと、
(b)前記入力ファイルの前記サマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、前記登録ファイル毎に、前記入力ファイルとの類似度を算出する、ステップと、
(c)前記類似度が最も高い登録ファイルと前記入力ファイルとの差分を算出する、ステップと、
(d)算出された前記差分、及び前記類似度が最も高い登録ファイルを特定する類似ファイル情報を、前記入力ファイルとして、登録する、ステップと、
を有する、ことを特徴とする。
Further, in order to achieve the above object, the file management method in one aspect of the present invention is:
(A) A step of analyzing an input file and creating summary information indicating the contents of the input file.
(B) A step of comparing the summary information of the input file with the summary information of the already registered registration file and calculating the similarity with the input file for each registration file.
(C) A step for calculating the difference between the registration file having the highest degree of similarity and the input file, and
(D) A step of registering the calculated difference and the similar file information for specifying the registration file having the highest degree of similarity as the input file.
It is characterized by having.

更に、上記目的を達成するため、本発明の一側面におけるプログラムは、
コンピュータに、
(a)入力ファイルを分析して、前記入力ファイルの内容を示すサマリ情報を作成する、ステップと、
(b)前記入力ファイルの前記サマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、前記登録ファイル毎に、前記入力ファイルとの類似度を算出する、ステップと、
(c)前記類似度が最も高い登録ファイルと前記入力ファイルとの差分を算出する、ステップと、
(d)算出された前記差分、及び前記類似度が最も高い登録ファイルを特定する類似ファイル情報を、前記入力ファイルとして、登録する、ステップと、
を実行させる、ことを特徴とする。
Further, in order to achieve the above object, the program in one aspect of the present invention is:
On the computer
(A) A step of analyzing an input file and creating summary information indicating the contents of the input file.
(B) A step of comparing the summary information of the input file with the summary information of the already registered registration file and calculating the similarity with the input file for each registration file.
(C) A step for calculating the difference between the registration file having the highest degree of similarity and the input file, and
(D) A step of registering the calculated difference and the similar file information for specifying the registration file having the highest degree of similarity as the input file.
It is characterized by executing.

以上のように、本発明によれば、ファイルシステムにおいて、データの圧縮化を図りつつ、データの登録にかかる時間の短縮化を図ることができる。 As described above, according to the present invention, in the file system, it is possible to reduce the time required for data registration while reducing the data compression.

図1は、本発明の実施の形態におけるファイル管理装置の概略構成を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of a file management device according to an embodiment of the present invention. 図2は、本発明の実施の形態におけるファイル管理装置の具体的構成を示すブロック図である。FIG. 2 is a block diagram showing a specific configuration of the file management device according to the embodiment of the present invention. 図3は、本実施の形態において、ツリー構造によってデータベースに登録されているファイルの一例を示す図である。FIG. 3 is a diagram showing an example of a file registered in a database by a tree structure in the present embodiment. 図4は、入力ファイル及び登録ファイルが文書ファイルである場合のサマリ情報の一例を示している。FIG. 4 shows an example of summary information when the input file and the registration file are document files. 図5は、入力ファイル及び登録ファイルがソースファイルである場合のサマリ情報の一例を示している。FIG. 5 shows an example of summary information when the input file and the registration file are source files. 図6は、本発明の実施の形態におけるファイル管理装置の入力ファイル登録処理時の動作を示すフロー図である。FIG. 6 is a flow chart showing an operation of the file management device at the time of input file registration processing according to the embodiment of the present invention. 図7は、本発明の実施の形態におけるファイル管理装置のファイル読込処理時の動作を示すフロー図である。FIG. 7 is a flow chart showing an operation of the file management device at the time of file reading processing according to the embodiment of the present invention. 図8は、本発明の実施の形態におけるファイル管理装置のファイル削除処理時の動作を示すフロー図である。FIG. 8 is a flow chart showing the operation of the file management device at the time of file deletion processing according to the embodiment of the present invention. 図9は、本発明の実施の形態におけるファイル管理装置を実現するコンピュータの一例を示すブロック図である。FIG. 9 is a block diagram showing an example of a computer that realizes the file management device according to the embodiment of the present invention.

(実施の形態)
以下、本発明の実施の形態における、ファイル管理装置、ファイル管理方法、及びプログラムについて、図1~図9を参照しながら説明する。
(Embodiment)
Hereinafter, the file management device, the file management method, and the program according to the embodiment of the present invention will be described with reference to FIGS. 1 to 9.

[装置構成]
最初に、図1を用いて、本実施の形態におけるファイル管理装置の概略構成について説明する。図1は、本発明の実施の形態におけるファイル管理装置の概略構成を示すブロック図である。
[Device configuration]
First, the schematic configuration of the file management apparatus according to the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram showing a schematic configuration of a file management device according to an embodiment of the present invention.

図1に示す、本実施の形態におけるファイル管理装置10は、ファイルシステムにおいて、ファイルを管理するための装置である。図1に示すように、ファイル管理装置10は、サマリ情報作成部11と、類似度算出部12と、差分算出部13と、登録部14とを備えている。 The file management device 10 in the present embodiment shown in FIG. 1 is a device for managing files in a file system. As shown in FIG. 1, the file management device 10 includes a summary information creation unit 11, a similarity calculation unit 12, a difference calculation unit 13, and a registration unit 14.

サマリ情報作成部11は、ファイルが入力されると、このファイル(以下「入力ファイル」と表記する)を分析して、分析した入力ファイルの内容を示すサマリ情報を作成する。類似度算出部12は、まず、入力ファイルのサマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、登録ファイル毎に、入力ファイルとの類似度を算出する。 When a file is input, the summary information creation unit 11 analyzes this file (hereinafter referred to as "input file") and creates summary information indicating the contents of the analyzed input file. First, the similarity calculation unit 12 compares the summary information of the input file with the summary information of the registered file already registered, and calculates the similarity with the input file for each registered file.

差分算出部13は、類似度が最も高い登録ファイルと入力ファイルとの差分を算出する。
登録部14は、まず、類似度が最も高い登録ファイルを特定する類似ファイル情報を作成する。次いで、登録部14は、差分算出部13が算出した差分と、作成した類似ファイル情報とを、入力ファイルとして、登録する。
The difference calculation unit 13 calculates the difference between the registration file and the input file having the highest degree of similarity.
First, the registration unit 14 creates similar file information that identifies the registration file having the highest degree of similarity. Next, the registration unit 14 registers the difference calculated by the difference calculation unit 13 and the created similar file information as an input file.

このように、本実施の形態では、ファイル同士の類似度ではなく、入力ファイルのサマリ情報と登録ファイルのサマリ情報との類似度を用いるため、入力ファイルに類似する登録ファイルを高速に特定できる。そして、入力ファイルの登録は、差分と類似ファイル情報との登録によって完了する。このため、本実施の形態によれば、ファイルシステムにおいて、データの圧縮化を図りつつ、データの登録にかかる時間の短縮化を図ることができる。 As described above, in the present embodiment, since the similarity between the summary information of the input file and the summary information of the registration file is used instead of the similarity between the files, the registration file similar to the input file can be specified at high speed. Then, the registration of the input file is completed by the registration of the difference and the similar file information. Therefore, according to the present embodiment, in the file system, it is possible to reduce the time required for data registration while reducing the data compression.

続いて、図2~図5を用いて、本実施の形態におけるファイル管理装置の構成をより具体的に説明する。図2は、本発明の実施の形態におけるファイル管理装置の具体的構成を示すブロック図である。 Subsequently, the configuration of the file management device in the present embodiment will be described more specifically with reference to FIGS. 2 to 5. FIG. 2 is a block diagram showing a specific configuration of the file management device according to the embodiment of the present invention.

図2に示すように、本実施の形態では、ファイル管理装置10は、ファイルシステムを提供するファイルサーバ20に構築されている。具体的には、ファイル管理装置10は、本実施の形態におけるプログラムを、ファイルサーバ20のオペレーティングシステム上
で実行することによって構築されている。
As shown in FIG. 2, in the present embodiment, the file management device 10 is built on the file server 20 that provides the file system. Specifically, the file management device 10 is constructed by executing the program in the present embodiment on the operating system of the file server 20.

また、図2に示すように、ファイルサーバ20は、各種ファイルを登録したデータベース21を備えている。更に、ファイルサーバ20は、LAN(Local Area Network)等のネットワーク40を介して、端末装置30に接続されている。ユーザは、端末装置30を介して、ファイルサーバ20にアクセスすることで、データベース21への新たなファイルの登録、登録されているファイルの読み出し及び更新等を行うことができる。なお、ファイルサーバ20は、専用のサーバコンピュータによって実現されていても良いし、いずれかの端末装置30によって実現されていても良い。 Further, as shown in FIG. 2, the file server 20 includes a database 21 in which various files are registered. Further, the file server 20 is connected to the terminal device 30 via a network 40 such as a LAN (Local Area Network). By accessing the file server 20 via the terminal device 30, the user can register a new file in the database 21, read and update the registered file, and the like. The file server 20 may be realized by a dedicated server computer, or may be realized by any terminal device 30.

また、図2に示すように、ファイル管理装置10は、上述した、サマリ情報作成部11、類似度算出部12、差分算出部13、及び登録部14に加えて、ファイル操作部15を備えている。ファイル操作部15は、登録されているファイルの読み込み、及び登録されているファイルの削除といった、ファイル操作を実行する。 Further, as shown in FIG. 2, the file management device 10 includes a file operation unit 15 in addition to the summary information creation unit 11, the similarity calculation unit 12, the difference calculation unit 13, and the registration unit 14 described above. There is. The file operation unit 15 executes a file operation such as reading a registered file and deleting a registered file.

サマリ情報作成部11は、本実施の形態では、入力ファイルの種類に応じた最適な手法を用いて、サマリ情報を作成する。例えば、入力ファイルが、文書作成用のアプリケーションプログラムから出力された文書ファイルであるとする。この場合、サマリ情報作成部11は、入力ファイルにおける文章の構成を分析して、文章の先頭側の一部分を取り出し、取り出した部分を用いてサマリ情報を作成することができる。 In the present embodiment, the summary information creation unit 11 creates summary information by using an optimum method according to the type of the input file. For example, assume that the input file is a document file output from an application program for creating a document. In this case, the summary information creation unit 11 can analyze the structure of the sentence in the input file, extract a part on the head side of the sentence, and create summary information using the extracted part.

また、入力ファイルが、ソースファイルであるとする。この場合、サマリ情報作成部11は、入力ファイルから、関数定義を取り出し、取り出した関数定義を用いてサマリ情報を作成することができる。更に、入力ファイルが、画像ファイルであるとする。この場合、サマリ情報作成部11は、サマリ情報として、画像のサイズが元のサイズよりも縮小されたサムネイル画像を作成することができる。 Further, it is assumed that the input file is a source file. In this case, the summary information creation unit 11 can extract the function definition from the input file and create summary information using the extracted function definition. Further, it is assumed that the input file is an image file. In this case, the summary information creation unit 11 can create a thumbnail image in which the size of the image is reduced from the original size as the summary information.

類似度算出部12は、本実施の形態では、まず、入力ファイルのサマリ情報と登録ファイルのサマリ情報との差分を求める。次いで、類似度算出部12は、サマリ情報間の差分を用い、類似度として、入力ファイルのサマリ情報と登録ファイルのサマリ情報とがどれだけ似ているかを示す値を、0から1の範囲内で算出する。 In the present embodiment, the similarity calculation unit 12 first obtains the difference between the summary information of the input file and the summary information of the registration file. Next, the similarity calculation unit 12 uses the difference between the summary information, and sets a value indicating how similar the summary information of the input file and the summary information of the registration file are within the range of 0 to 1 as the similarity. Calculate with.

具体的には、類似度算出部12は、入力ファイルが文書ファイル又はソースファイルといったテキストによって構成されている場合は、次のように類似度を算出することができる。つまり、類似度算出部12は、入力ファイルのサマリ情報のサイズをS、登録ファイルのサマリ情報のサイズをSとし、更に、両者の差分のサイズを、size(diff(S,S))とすると、例えば、以下の数1によって、類似度を算出することができる。なお、max(S,S)は、サイズS及びSのうち、大きい方を表している。また、類似度算出部12は、ファイルの種類に応じて、別の式によって類似度を算出することもできる。 Specifically, when the input file is composed of text such as a document file or a source file, the similarity calculation unit 12 can calculate the similarity as follows. That is, the similarity calculation unit 12 sets the size of the summary information of the input file to SA , the size of the summary information of the registration file to SB , and further sets the size of the difference between the two to size ( diff ( SA , SB). )), For example, the similarity can be calculated by the following equation 1. Note that max ( SA , SB ) represents the larger of the sizes SA and SB . Further, the similarity calculation unit 12 can also calculate the similarity by another formula according to the type of the file.

(数1)
類似度=1-size(diff(S,S))/max(S,S
(Number 1)
Similarity = 1 - size (diff ( SA , SB)) / max ( SA , SB )

差分算出部13は、本実施の形態では、例えば、入力ファイルが、文書ファイル又はソースファイル等のようにテキストによって構成されている場合は、差分として、入力ファイルと登録ファイルとの間の内容の差分を算出する。また、差分の算出は、一般的な文字列差分抽出アルゴリズムを用いて行うことができる。 In the present embodiment, when the input file is composed of text such as a document file or a source file, the difference calculation unit 13 determines the content between the input file and the registration file as a difference. Calculate the difference. Further, the difference can be calculated by using a general character string difference extraction algorithm.

また、入力ファイルが画像データである場合は、差分算出部13は、入力ファイルの画
素と、登録ファイル画素とを、RGBそれぞれのオクテット単位で比較(減算)して、画素間毎の差分を求めた、求めた差分の合計を登録ファイルと入力ファイルとの差分とする。なお、画像ファイルがα成分を含む場合は、差分算出部13は、RGBではなく、RGBAの全ての要素を用いて、画素毎の差分を計算する。
When the input file is image data, the difference calculation unit 13 compares (subtracts) the pixels of the input file and the pixels of the registered file in octet units of each RGB, and obtains the difference between the pixels. In addition, the total of the obtained differences is taken as the difference between the registered file and the input file. When the image file contains the α component, the difference calculation unit 13 calculates the difference for each pixel using all the elements of RGBA instead of RGB.

登録部14は、まず、上述したように、入力ファイルに対して最も類似度の高い登録ファイルについて、類似ファイル情報を作成する。そして、登録部14は、本実施の形態では、入力ファイルとして、差分と類似ファイル情報とをデータベース21に登録する。また、登録部14は、入力ファイル及び登録ファイルをツリー構造によって管理する。 First, as described above, the registration unit 14 creates similar file information for the registration file having the highest degree of similarity to the input file. Then, in the present embodiment, the registration unit 14 registers the difference and the similar file information in the database 21 as an input file. Further, the registration unit 14 manages the input file and the registration file by a tree structure.

図3に示すように、入力ファイルが、差分及び類似ファイル情報によって登録されている場合は、登録部14は、類似ファイル情報によって特定される登録ファイルを、入力ファイルの親ノードとする。 As shown in FIG. 3, when the input file is registered by the difference and the similar file information, the registration unit 14 sets the registration file specified by the similar file information as the parent node of the input file.

図3は、本実施の形態において、ツリー構造によってデータベースに登録されているファイルの一例を示す図である。図3の例では、ファイルB及びCは、ファイルAとの類似度が最も高いため、差分とファイルAを特定する類似ファイル情報とによって登録されている。 FIG. 3 is a diagram showing an example of a file registered in a database by a tree structure in the present embodiment. In the example of FIG. 3, since the files B and C have the highest degree of similarity to the file A, they are registered by the difference and the similar file information that identifies the file A.

ここで、サマリ情報作成部11、及び類似度算出部12による処理の具体例を図4及び図5を用いて説明する。図4は、入力ファイル及び登録ファイルが文書ファイルである場合のサマリ情報の一例を示している。図5は、入力ファイル及び登録ファイルがソースファイルである場合のサマリ情報の一例を示している。図4及び図5において、ファイルAは既に登録されているファイルである。 Here, specific examples of processing by the summary information creation unit 11 and the similarity calculation unit 12 will be described with reference to FIGS. 4 and 5. FIG. 4 shows an example of summary information when the input file and the registration file are document files. FIG. 5 shows an example of summary information when the input file and the registration file are source files. In FIGS. 4 and 5, the file A is a file that has already been registered.

図4の例では、入力ファイル及び登録ファイルは、文書ファイル、例えば、拡張子が「txt」、「docx」、「xml」、又は「md」等となるファイルである。また、入力ファイルはファイルBであり、登録ファイルはファイルAである。 In the example of FIG. 4, the input file and the registration file are document files, for example, files having an extension of "txt", "docx", "xml", "md", or the like. The input file is file B, and the registration file is file A.

サマリ情報作成部11は、入力ファイルが、拡張子にdocxを持つファイルなど、内容が圧縮されている場合は、まず、入力ファイルの内容を解凍する。次いで、サマリ情報作成部11は、文章タイトル及び章構成を抽出する。このとき、入力ファイルが、拡張子にxmlを持つファイルである場合は、タグの構成(タグ名のみ)を抽出する。 When the content of the input file is compressed, such as a file having docx as an extension, the summary information creation unit 11 first decompresses the content of the input file. Next, the summary information creation unit 11 extracts the sentence title and the chapter structure. At this time, if the input file is a file with xml in the extension, the tag structure (tag name only) is extracted.

また、サマリ情報作成部11は、入力ファイルの先頭の数行をテキストとして抽出する。これは、文書ファイルの先頭には、概要などが書かれることが多いためである。また、テンプレートに則って作成されている文書ファイルでは、文章の章構成がほぼ同じため、内容が異なっているにもかかわらず、類似していると判断される可能性があるからである。 Further, the summary information creation unit 11 extracts the first few lines of the input file as text. This is because the outline etc. is often written at the beginning of the document file. In addition, since the chapter structure of the text is almost the same in the document file created according to the template, it may be judged that they are similar even though the contents are different.

続いて、サマリ情報作成部11は、図4に示すように、抽出した、文章タイトル及び章構成と、先頭の数行とを1つにまとめ、これをサマリ情報とする。なお、得られたサマリ情報のサイズが大きすぎる場合は、サマリ情報作成部11は、これを一定のサイズにする。 Subsequently, as shown in FIG. 4, the summary information creation unit 11 combines the extracted sentence title and chapter structure and the first few lines into one, and uses this as summary information. If the size of the obtained summary information is too large, the summary information creation unit 11 sets it to a constant size.

類似度算出部12は、まず、ファイルAのサマリ情報とファイルBのサマリ情報との差分を抽出する。図4の例では、差分は0.1KBである。なお、差分は、一般的な文字列差分抽出アルゴリズムを用いて求められる。そして、類似度算出部12は、上記数1に、求めた差分を適用して、ファイルAとファイルBとの類似度を、0.9(=1-(0.1KB/1.0KB))と算出する。 The similarity calculation unit 12 first extracts the difference between the summary information of the file A and the summary information of the file B. In the example of FIG. 4, the difference is 0.1 KB. The difference is obtained by using a general character string difference extraction algorithm. Then, the similarity calculation unit 12 applies the obtained difference to the above number 1 to set the similarity between the file A and the file B to 0.9 (= 1- (0.1 KB / 1.0 KB)). Is calculated.

図5の例では、入力ファイル及び登録ファイルは、ソースファイル、例えば、c、cpp(c++)、 java等のファイルである。 In the example of FIG. 5, the input file and the registration file are source files, for example, files such as c, cpp (c ++), and java.

サマリ情報作成部11は、入力ファイルから、クラス定義、又はグローバル関数定義等を抽出し、抽出した定義をまとめてサマリ情報とする。なお、図5の例でも、得られたサマリ情報のサイズが大きすぎる場合は、サマリ情報作成部11は、これを一定のサイズにする。 The summary information creation unit 11 extracts a class definition, a global function definition, or the like from an input file, and collects the extracted definitions into summary information. Even in the example of FIG. 5, if the size of the obtained summary information is too large, the summary information creation unit 11 sets it to a constant size.

類似度算出部12は、図5の例でも、ファイルAのサマリ情報とファイルBのサマリ情報との差分を求める。差分は0.1KBである。なお、差分は、図5の例でも、一般的な文字列差分抽出アルゴリズムを用いて求められる。 The similarity calculation unit 12 also obtains the difference between the summary information of the file A and the summary information of the file B in the example of FIG. The difference is 0.1 KB. The difference is also obtained in the example of FIG. 5 by using a general character string difference extraction algorithm.

そして、類似度算出部12は、図5の例でも、上記数1に、求めた差分を適用して、ファイルAとファイルBとの類似度を、0.875(=1-(0.1KB/0.8KB))と算出する。 Then, the similarity calculation unit 12 applies the obtained difference to the above number 1 even in the example of FIG. 5, and sets the similarity between the file A and the file B to 0.875 (= 1- (0.1 KB). /0.8KB))).

また、図4及び図5には示されていないが、入力ファイル及び登録ファイルが、画像ファイルである場合は、サマリ情報作成部11は、上述したように、画像ファイルを圧縮して、低解像度のサムネイル画像を作成し、作成したサムネイル画像をサマリ情報とする。 Further, although not shown in FIGS. 4 and 5, when the input file and the registration file are image files, the summary information creation unit 11 compresses the image file as described above to reduce the resolution. Create a thumbnail image of, and use the created thumbnail image as summary information.

この場合、類似度算出部12は、入力ファイルのサムネイル画像の全ての画素それぞれ毎に、各画素と、登録ファイルのサムネイル画像の同一位置の画素とを、RGBそれぞれのオクテット単位で比較し、差分を計算する。なお、画像ファイルがα成分を含む場合は、類似度算出部12は、RGBではなく、RGBAの全ての要素を用いて、差分を計算する。 In this case, the similarity calculation unit 12 compares each pixel and the pixel at the same position of the thumbnail image of the registered file for each pixel of the thumbnail image of the input file in octet units of each RGB, and makes a difference. To calculate. When the image file contains the α component, the similarity calculation unit 12 calculates the difference using all the elements of RGBA instead of RGB.

そして、類似度算出部12は、画素毎のオクテットの差分(-128~127)の絶対値から二進対数(0~7)を求め、これを画素オクテット類似値とする。更に、類似度算出部12は、画素の構成要素(RGBまたはRGBA)の画素オクテット類似値の合計値を、要素数(RGBの場合3、RGBAの場合4)で割ったものを画素類似値とする。その後、類似度算出部12は、全ての画素の画素類似値の合計値を、画素数×7で除算し、得られた値を1から引いたものを類似度とする。なお、類似度の算出手法は、特に限定されず、上述した例以外の類似度計算アルゴリズムが用いられていても良い。 Then, the similarity calculation unit 12 obtains a binary logarithm (0 to 7) from the absolute value of the difference (−128 to 127) of the octets for each pixel, and uses this as the pixel octet similarity value. Further, the similarity calculation unit 12 divides the total value of the pixel octet similarity values of the pixel components (RGB or RGBA) by the number of elements (3 for RGB, 4 for RGBA) to obtain the pixel similarity value. do. After that, the similarity calculation unit 12 divides the total value of the pixel similarity values of all the pixels by the number of pixels × 7, and subtracts the obtained value from 1 to obtain the similarity. The similarity calculation method is not particularly limited, and a similarity calculation algorithm other than the above-mentioned example may be used.

類似度算出部12は、入力ファイルの画像サイズと、登録ファイルの画像ファイルとが異なる場合、差分を取る意味が無いため、類似度は0(ゼロ)と算出することもできる。 When the image size of the input file and the image file of the registered file are different from each other, the similarity calculation unit 12 can calculate the similarity as 0 (zero) because there is no point in taking a difference.

具体的には、サムネイル画像において、水平方向の画素数が64、垂直方向の画素数も64、画素の構成要素をRGBであるとする。また、2つのサムネイル画像の内、400画素(=20×20)が異なり、サムネイル画像間の差分(異なる各画素のRGBの各オクテットについての差分)の絶対値が40であるとする。 Specifically, in the thumbnail image, it is assumed that the number of pixels in the horizontal direction is 64, the number of pixels in the vertical direction is 64, and the component of the pixel is RGB. Further, it is assumed that 400 pixels (= 20 × 20) of the two thumbnail images are different, and the absolute value of the difference between the thumbnail images (difference for each RGB octet of each different pixel) is 40.

この場合、この差分400画素の画素オクテット類似値は、下記の数2のように計算され、結果、画素類似値は下記の数3のように計算される。これ以外の画素(64×64-400=3696画素)については等しいので画素類似値は0となる。これらの結果から、類似度は下記の数4のように計算される。なお、下記の数2において、round()は四捨五入を示し、lgは二進対数(2を底とする対数)を示している。 In this case, the pixel octet similarity value of the difference of 400 pixels is calculated as the following equation 2, and as a result, the pixel similarity value is calculated as the following equation 3. Since the other pixels (64 × 64-400 = 3696 pixels) are equal, the pixel similarity value is 0. From these results, the similarity is calculated as the following equation 4. In the following number 2, round () indicates rounding, and lg indicates a binary logarithm (logarithm with base 2).

(数2)
画素オクテット類似値=round(lg 40)≒round(5.32)=5
(Number 2)
Pixel octet similarity value = round (lg 40) ≒ round (5.32) = 5

(数3)
画素類似値=(5+5+5)/3=5
(Number 3)
Pixel similarity value = (5 + 5 + 5) / 3 = 5

(数4)
類似度=1-(5×400+0×3696) / (64×64×7)≒0.93
(Number 4)
Similarity = 1- (5 x 400 + 0 x 3696) / (64 x 64 x 7) ≒ 0.93

[装置動作]
次に、本実施の形態におけるファイル管理装置10の動作について図6~図8を用いて説明する。また、本実施の形態1では、ファイル管理装置10を動作させることによって、ファイル管理方法が実施される。よって、本実施の形態におけるファイル管理方法の説明は、以下のファイル管理装置10の動作説明に代える。
[Device operation]
Next, the operation of the file management device 10 in the present embodiment will be described with reference to FIGS. 6 to 8. Further, in the first embodiment, the file management method is implemented by operating the file management device 10. Therefore, the description of the file management method in the present embodiment is replaced with the following description of the operation of the file management device 10.

最初に、図6を用いて、ファイル管理装置10による入力ファイルの登録処理について説明する。図6は、本発明の実施の形態におけるファイル管理装置の入力ファイル登録処理時の動作を示すフロー図である。 First, the input file registration process by the file management device 10 will be described with reference to FIG. FIG. 6 is a flow chart showing an operation of the file management device at the time of input file registration processing according to the embodiment of the present invention.

図6に示すように、最初に、サマリ情報作成部11は、端末装置30からファイルサーバ20に入力されたファイル(入力ファイル)を受け付ける(ステップA1)。また、ステップA1では、サマリ情報作成部11は、入力ファイルが圧縮されている場合は、前処理として、これを解凍する。 As shown in FIG. 6, first, the summary information creation unit 11 receives a file (input file) input from the terminal device 30 to the file server 20 (step A1). Further, in step A1, if the input file is compressed, the summary information creation unit 11 decompresses it as a preprocessing.

次に、サマリ情報作成部11は、入力ファイルのサマリ情報を作成する(ステップA2)。具体的には、ステップA2では、サマリ情報作成部11は、入力ファイルの種類に応じた最適な手法を用いて、サマリ情報を作成する。 Next, the summary information creation unit 11 creates summary information for the input file (step A2). Specifically, in step A2, the summary information creation unit 11 creates summary information by using the optimum method according to the type of the input file.

次に、類似度算出部12は、登録ファイル毎に、入力ファイルのサマリ情報と登録ファイルのサマリ情報とを対比して、サマリ情報間の差分を抽出し、抽出した差分を用いて、入力ファイルと登録ファイルとの類似度を算出する(ステップA3)。 Next, the similarity calculation unit 12 compares the summary information of the input file with the summary information of the registration file for each registration file, extracts the difference between the summary information, and uses the extracted difference to input the input file. And the registration file are calculated (step A3).

次に、差分算出部13は、類似度が最も高い登録ファイルを特定し、特定した登録ファイルと入力ファイルとの差分を抽出する(ステップA4)。また、入力ファイルが圧縮されている場合は、差分算出部13は、解凍後の入力ファイルを用いて、登録ファイルとの差分を抽出する。また、登録ファイルが、差分と類似ファイル情報とで登録されている場合は、登録ファイルを対象にして、後述の図7に示す処理が実行される。 Next, the difference calculation unit 13 identifies the registration file having the highest degree of similarity, and extracts the difference between the specified registration file and the input file (step A4). When the input file is compressed, the difference calculation unit 13 extracts the difference from the registered file by using the decompressed input file. Further, when the registered file is registered with the difference and the similar file information, the process shown in FIG. 7 described later is executed for the registered file.

次に、登録部14は、入力ファイルに対して最も類似度の高い登録ファイルについて、類似ファイル情報を作成する(ステップA5)。具体的には、登録部14は、ツリー構造において、登録ファイルに付与されている識別番号を用いて、類似ファイル情報を作成する。本実施の形態では、この識別番号としては、一般的なファイルシステム上でファイルに割り振られている「i-node番号」が用いられている。以降においては、識別番号をi-node番号とも表記する。 Next, the registration unit 14 creates similar file information for the registration file having the highest degree of similarity to the input file (step A5). Specifically, the registration unit 14 creates similar file information using the identification number assigned to the registration file in the tree structure. In the present embodiment, as the identification number, an "i-node number" assigned to a file on a general file system is used. Hereinafter, the identification number is also referred to as an i-node number.

次に、登録部14は、入力ファイルの実ファイルの代わりに、ステップA4で抽出された差分と、ステップA5で作成された類似ファイル情報とを、データベース21に登録する(ステップA6)。 Next, the registration unit 14 registers the difference extracted in step A4 and the similar file information created in step A5 in the database 21 instead of the actual file of the input file (step A6).

ステップA6では、登録部14は、ステップA4で抽出された差分については、圧縮を行っても良い。また、登録部14は、入力ファイルとして、差分及び類似ファイル情報以
外にも、ファイル名等の他の情報を登録することもできる。更に、図3に示したように、登録部14は、入力ファイルをツリー構造によって管理する。
In step A6, the registration unit 14 may compress the difference extracted in step A4. Further, the registration unit 14 can also register other information such as a file name as an input file in addition to the difference and similar file information. Further, as shown in FIG. 3, the registration unit 14 manages the input file by a tree structure.

続いて、図7を用いて、ファイル管理装置10によるファイルの読込処理について説明する。図7は、本発明の実施の形態におけるファイル管理装置のファイル読込処理時の動作を示すフロー図である。 Subsequently, the file reading process by the file management device 10 will be described with reference to FIG. 7. FIG. 7 is a flow chart showing an operation of the file management device at the time of file reading processing according to the embodiment of the present invention.

図7に示すように、最初に、端末装置30から、ファイルサーバ20に対して、特定のファイルの読み込みが指示されると、ファイル管理装置10において、ファイル操作部15は、その指示を受け付ける(ステップB1)。 As shown in FIG. 7, when the terminal device 30 first instructs the file server 20 to read a specific file, the file management device 10 accepts the instruction (the file operation unit 15). Step B1).

次に、ファイル操作部15は、指示対象となったファイルが、データベース21に、実データで登録されているかどうかを判定する(ステップB2)。 Next, the file operation unit 15 determines whether or not the file to be referred is registered as actual data in the database 21 (step B2).

ステップB2の判定の結果、指示対象となったファイルが、実データで登録されていない場合は、ファイル操作部15は、指示対象となったファイルとして登録されている、差分及び類似ファイル情報を読み込む(ステップB3) As a result of the determination in step B2, if the file to be referred is not registered as actual data, the file operation unit 15 reads the difference and similar file information registered as the file to be referredent. (Step B3)

次に、ファイル操作部15は、ステップB3で読み込んだ類似ファイル情報から、それによって特定される登録ファイル(親ファイル)を特定する(ステップB4)。また、ファイル操作部15は、特定した登録ファイルを読み込む。なお、ステップB4で特定した登録ファイルが、差分と類似ファイル情報とで登録されている場合は、後述のステップB5の実行の前に、この登録ファイルを対象にして、ステップB1~B4と、後述のステップB5~B7が実行される。 Next, the file operation unit 15 identifies the registration file (parent file) specified by the similar file information read in step B3 (step B4). Further, the file operation unit 15 reads the specified registration file. If the registration file specified in step B4 is registered with the difference and similar file information, steps B1 to B4 and later are described for this registration file before the execution of step B5 described later. Steps B5 to B7 are executed.

次に、ファイル操作部15は、ステップB3で読み込んだ差分と、ステップB4で特定した親ファイルとを結合して、指示対象となったファイルを生成する(ステップB5)。 Next, the file operation unit 15 combines the difference read in step B3 with the parent file specified in step B4 to generate a file to be referred (step B5).

次に、ファイル操作部15は、ステップB5で生成したファイルを、指示対象となったファイルとして、ファイルサーバ20に出力する(ステップB6)。 Next, the file operation unit 15 outputs the file generated in step B5 to the file server 20 as a file to be instructed (step B6).

また、上述のステップB2の判定の結果、指示対象となったファイルが、実データで登録されている場合は、ファイル操作部15は、指示対象となったファイルを読み込む(ステップB7)。 Further, as a result of the determination in step B2 described above, when the file to be instructed is registered as actual data, the file operation unit 15 reads the file to be instructed (step B7).

ステップB6又はステップB7の実行後、ファイル管理装置10における処理は終了し、読み込まれたファイルは、ファイルサーバ20から端末装置30へと送信される。その後、ファイルサーバ20は、指示対象となったファイルを、端末装置30に送信する。 After the execution of step B6 or step B7, the processing in the file management device 10 is completed, and the read file is transmitted from the file server 20 to the terminal device 30. After that, the file server 20 transmits the file to be instructed to the terminal device 30.

続いて、図8を用いて、ファイル管理装置10によるファイルの削除処理について説明する。図8は、本発明の実施の形態におけるファイル管理装置のファイル削除処理時の動作を示すフロー図である。 Subsequently, the file deletion process by the file management device 10 will be described with reference to FIG. FIG. 8 is a flow chart showing the operation of the file management device at the time of file deletion processing according to the embodiment of the present invention.

図8に示すように、最初に、端末装置30から、ファイルサーバ20に対して、特定のファイル削除が指示されると、ファイル管理装置10において、ファイル操作部15は、その指示を受け付ける(ステップC1)。 As shown in FIG. 8, when a specific file deletion is first instructed by the terminal device 30 to the file server 20, the file operation unit 15 in the file management device 10 accepts the instruction (step). C1).

次に、ファイル操作部15は、指示対象となったファイルのファイル名とi-node番号との対応関係を、ファイルサーバ20が作成しているディレクトリ情報から削除する(ステップC2)。 Next, the file operation unit 15 deletes the correspondence between the file name of the file to be instructed and the inode number from the directory information created by the file server 20 (step C2).

次に、ファイル操作部15は、指示対象となったファイルに対して、それを特定する類似ファイル情報によって登録されているファイル(子ファイル)が、存在しているかどうかを判定する(ステップC3)。 Next, the file operation unit 15 determines whether or not a file (child file) registered by the similar file information for specifying the referent exists in the file to be instructed (step C3). ..

ステップC3の判定の結果、子ファイルが存在している場合は、ファイル操作部15は、何もしないで、処理を終了する。一方、ステップC3の判定の結果、子ファイルが存在していない場合は、ファイル操作部15は、指示対象となったファイルが実ファイルで登録されているかどうかを判定する(ステップC4)。 As a result of the determination in step C3, if the child file exists, the file operation unit 15 does nothing and ends the process. On the other hand, if the child file does not exist as a result of the determination in step C3, the file operation unit 15 determines whether or not the file to be instructed is registered as an actual file (step C4).

ステップC4の判定の結果、指示対象となったファイルが実ファイルで登録されている場合は、ファイル操作部15は、実ファイルを削除し(ステップC5)、処理を終了する。 As a result of the determination in step C4, if the file to be instructed is registered as an actual file, the file operation unit 15 deletes the actual file (step C5) and ends the process.

一方、ステップC4の判定の結果、指示対象となったファイルが実ファイルで登録されていない場合は、ファイル操作部15は、指示対象ファイルとして登録されている差分と類似度が最も高い登録ファイルを特定する類似ファイル情報(=i-node番号)とを、データベース21から削除する(ステップC6)。 On the other hand, as a result of the determination in step C4, if the file to be instructed is not registered as an actual file, the file operation unit 15 selects the registered file having the highest degree of similarity with the difference registered as the instructed file. The specified similar file information (= i-node number) is deleted from the database 21 (step C6).

次に、ファイル操作部15は、指示対象となったファイルの親ファイルが削除されているかどうかを判定する(ステップC7)。具体的には、ファイル操作部15は、親ファイルのファイル名とi-node番号との対応関係が、ディレクトリ情報から削除されているかどうかを判定する。 Next, the file operation unit 15 determines whether or not the parent file of the instructed file has been deleted (step C7). Specifically, the file operation unit 15 determines whether or not the correspondence between the file name of the parent file and the inode number is deleted from the directory information.

ステップC7の判定の結果、親ファイルが削除されていない場合は、ファイル操作部15は処理を終了する。一方、ステップC7の判定の結果、親ファイルが削除されている場合は、ファイル操作部15は、処理対象を親ファイルに変更し(ステップC8)、ファイル操作部15は、再度ステップC3~C8を実行する。 If the parent file has not been deleted as a result of the determination in step C7, the file operation unit 15 ends the process. On the other hand, if the parent file is deleted as a result of the determination in step C7, the file operation unit 15 changes the processing target to the parent file (step C8), and the file operation unit 15 again performs steps C3 to C8. Execute.

[実施の形態における効果]
以上のように、本実施の形態では、ファイル同士の類似度ではなく、入力ファイルのサマリ情報と登録ファイルのサマリ情報との類似度から、入力ファイルに最も類似する登録ファイルが特定される。このため、入力ファイルに最も類似する登録ファイルの特定処理が、高速化できる。そして、入力ファイルの登録は、差分と類似ファイル情報との登録によって完了でき、また、差分については更に圧縮することができる。このため、本実施の形態によれば、ファイルシステムにおいて、データの圧縮化を図りつつ、データの登録にかかる時間の短縮化を図ることができる。
[Effect in the embodiment]
As described above, in the present embodiment, the registration file most similar to the input file is specified from the similarity between the summary information of the input file and the summary information of the registration file, not from the similarity between the files. Therefore, the process of specifying the registration file most similar to the input file can be speeded up. The registration of the input file can be completed by registering the difference and the similar file information, and the difference can be further compressed. Therefore, according to the present embodiment, in the file system, it is possible to reduce the time required for data registration while reducing the data compression.

[変形例]
続いて、本実施の形態における変形例について説明する。本変形例では、入力ファイルとの類似度が最も高い登録ファイルを効率良く特定するため、類似度算出部12は、以下のステップに沿って類似度を算出する。
[Modification example]
Subsequently, a modification of the present embodiment will be described. In this modification, in order to efficiently identify the registered file having the highest similarity with the input file, the similarity calculation unit 12 calculates the similarity according to the following steps.

まず、類似度算出部12は、登録ファイルを管理するツリー(図3参照)の根から、その直下のファイルを特定し、入力ファイルと、特定した直下のファイルとの類似度を算出する。なお、ツリーの根の直下のファイルは、差分と類似ファイル情報とで構成されていないファイルであり、図3の例では、ファイルA及びDが該当する。 First, the similarity calculation unit 12 identifies the file directly under the tree (see FIG. 3) that manages the registered files, and calculates the similarity between the input file and the specified file. The file directly under the root of the tree is a file that is not composed of the difference and the similar file information, and in the example of FIG. 3, the files A and D correspond to each other.

続いて、類似度算出部12は、ツリーの根の直下のファイルの中で最も類似度の高いファイルを特定し、特定したファイルにおいて子ファイルを検索する。子ファイルが存在す
る場合は、類似度算出部12は、ツリーの根の直下のファイルの更に直下にある子ファイルと入力ファイルとの類似度を算出する。
Subsequently, the similarity calculation unit 12 identifies the file having the highest similarity among the files directly under the root of the tree, and searches for child files in the identified file. If a child file exists, the similarity calculation unit 12 calculates the similarity between the child file directly under the file directly under the root of the tree and the input file.

算出した結果、ツリーの根の直下のファイルの類似度の方が、その直下にある子ファイルの類似度よりも高い場合は、類似度算出部12は、ツリーの根の直下のファイルを最も類似度の高いファイルとし、処理を終了する。 As a result of the calculation, if the similarity of the file directly under the root of the tree is higher than the similarity of the child files directly under it, the similarity calculation unit 12 is most similar to the file directly under the root of the tree. Make it a high-degree file and end the process.

一方、ツリーの根の直下のファイルの類似度よりも、その直下にある子ファイルの類似度の方が高い場合は、類似度算出部12は、その直下にある子ファイルの更に直下にある子ファイルを検索し、類似度を算出する。つまり、類似度算出部12は、子ファイルの類似度が高い限り、更に子ファイルを検索し、類似度を算出する。 On the other hand, if the similarity of the child files directly under the tree root is higher than the similarity of the files directly under the root of the tree, the similarity calculation unit 12 may use the child files directly under the child file directly under the tree root. Search the file and calculate the similarity. That is, the similarity calculation unit 12 further searches the child files and calculates the similarity as long as the similarity of the child files is high.

この検索及び類似度の算出は、親ファイルの類似度の方が直下の子ファイルの類似度よりも高くなるまで、又は子ファイルが存在しなくなるまで行われる。このように、本変形例では、類似度算出部12は、ツリーの根から葉ノードに向けて、類似度の高い方の枝を辿って、入力ファイルとの類似度が最も高い登録ファイルを検出する。 This search and calculation of the similarity are performed until the similarity of the parent file is higher than the similarity of the child files directly under it, or until the child files no longer exist. As described above, in this modification, the similarity calculation unit 12 traces the branch having the higher similarity from the root of the tree toward the leaf node, and detects the registration file having the highest similarity with the input file. do.

具体的には、類似度算出部12は、図3の例では、まず、ファイルAとファイルDとについて、入力ファイルとの類似度を算出する。そして、ファイルDの類似度がファイルAよりも高い場合は、類似度算出部12は、入力ファイルと、ファイルDの子ファイルEとの類似度を算出する。この場合において、ファイルDの類似度の方が、子ファイルEの類似度よりも高い場合は、類似度算出部12は処理を終了する。 Specifically, in the example of FIG. 3, the similarity calculation unit 12 first calculates the similarity between the file A and the file D with the input file. Then, when the similarity of the file D is higher than that of the file A, the similarity calculation unit 12 calculates the similarity between the input file and the child file E of the file D. In this case, if the similarity of the file D is higher than the similarity of the child file E, the similarity calculation unit 12 ends the process.

一方、子ファイルEの類似度の方がファイルDの類似度よりも高い場合は、類似度算出部12は、更に、ファイルEの直下にある孫ファイルFと入力ファイルとの類似度を算出する。そして、類似度算出部12は、子ファイルEの類似度と、孫ファイルFとの類似度とを比較し、比較の結果に応じては、更に下位のファイルを検索して類似度を算出する。 On the other hand, when the similarity of the child file E is higher than the similarity of the file D, the similarity calculation unit 12 further calculates the similarity between the grandchild file F directly under the file E and the input file. .. Then, the similarity calculation unit 12 compares the similarity between the child file E and the grandchild file F, and depending on the result of the comparison, searches for a lower file and calculates the similarity. ..

[応用例]
ここで、入力ファイルが、zipファイル等のアーカイブファイルである場合について説明する。
[Application example]
Here, a case where the input file is an archive file such as a zip file will be described.

<登録時>
入力ファイルとして、アーカイブファイルが入力された場合は、ファイル管理装置10は、アーカイブファイルの内部ファイル群を解凍し、それを構成しているファイル毎に、図6に示したステップA2~A6を実行する。
<At the time of registration>
When an archive file is input as an input file, the file management device 10 decompresses the internal files of the archive file and executes steps A2 to A6 shown in FIG. 6 for each file constituting the archive file. do.

つまり、アーカイブファイルにおいて、各ファイルは、差分と類似ファイル情報とによって登録される。また、このため、ファイル管理装置10は、ファイルサーバ20が提供するファイルシステムにおいて、アーカイブファイル自身を、ディレクトリのように扱えるようにすることもできる。 That is, in the archive file, each file is registered by the difference and the similar file information. For this reason, the file management device 10 can also handle the archive file itself like a directory in the file system provided by the file server 20.

<読み込み時>
アーカイブファイルの読み込みが指示された場合は、ファイル管理装置10は、アーカイブファイルの内部ファイル群を構成するファイル毎に、図7に示したステップB2~B6を実行する。これにより、元のアーカイブファイルが復元され、ユーザの端末装置30に送信される。
<When reading>
When the reading of the archive file is instructed, the file management device 10 executes steps B2 to B6 shown in FIG. 7 for each file constituting the internal file group of the archive file. As a result, the original archive file is restored and transmitted to the user's terminal device 30.

また、本実施の形態では、入力ファイルが、拡張子にdocx又はpptxを持つファイルなど、ファイル内に画像などの別ファイルを貼り付けられる形式のファイルであり、ファイル
に別ファイルが貼り付けられている場合は、ファイル管理装置10は、この入力ファイルを上記のアーカイブファイルと同様に扱うことができる。
Further, in the present embodiment, the input file is a file in a format in which another file such as an image can be pasted in the file, such as a file having doxx or pptx as an extension, and another file is pasted in the file. If so, the file management device 10 can handle this input file in the same manner as the above archive file.

[プログラム]
本実施の形態におけるプログラムは、コンピュータに、図6に示すステップA1~A6、図7に示すステップB1~B6、図8に示すステップC1~C8を実行させるプログラムであれば良い。このプログラムをコンピュータにインストールし、実行することによって、本実施の形態におけるファイル管理装置10とファイル管理方法とを実現することができる。この場合、コンピュータのプロセッサは、サマリ情報作成部11、類似度算出部12、差分算出部13、登録部14、及びファイル操作部15として機能し、処理を行なう。
[program]
The program in the present embodiment may be any program that causes a computer to execute steps A1 to A6 shown in FIG. 6, steps B1 to B6 shown in FIG. 7, and steps C1 to C8 shown in FIG. By installing and executing this program on a computer, the file management device 10 and the file management method according to the present embodiment can be realized. In this case, the computer processor functions as a summary information creation unit 11, a similarity calculation unit 12, a difference calculation unit 13, a registration unit 14, and a file operation unit 15 to perform processing.

また、本実施の形態では、データベース21は、コンピュータに備えられたハードディスク等の記憶装置に、これらを構成するデータファイルを格納することによって、又はこのデータファイルが格納された記録媒体をコンピュータと接続された読取装置に搭載することによって実現できる。 Further, in the present embodiment, the database 21 stores the data files constituting the database 21 in a storage device such as a hard disk provided in the computer, or connects the recording medium in which the data files are stored to the computer. It can be realized by mounting it on a reading device.

また、本実施の形態におけるプログラムは、複数のコンピュータによって構築されたコンピュータシステムによって実行されても良い。この場合は、例えば、各コンピュータが、それぞれ、サマリ情報作成部11、類似度算出部12、差分算出部13、登録部14、及びファイル操作部15のいずれかとして機能しても良い。また、データベース21は、本実施の形態におけるプログラムを実行するコンピュータとは別のコンピュータ上に構築されていても良い。 Further, the program in the present embodiment may be executed by a computer system constructed by a plurality of computers. In this case, for example, each computer may function as any one of the summary information creation unit 11, the similarity calculation unit 12, the difference calculation unit 13, the registration unit 14, and the file operation unit 15. Further, the database 21 may be built on a computer different from the computer that executes the program in the present embodiment.

ここで、本実施の形態におけるプログラムを実行することによって、ファイル管理装置10を実現するコンピュータについて図9を用いて説明する。図9は、本発明の実施の形態におけるファイル管理装置を実現するコンピュータの一例を示すブロック図である。 Here, a computer that realizes the file management device 10 by executing the program according to the present embodiment will be described with reference to FIG. FIG. 9 is a block diagram showing an example of a computer that realizes the file management device according to the embodiment of the present invention.

図9に示すように、コンピュータ110は、CPU(Central Processing Unit)111と、メインメモリ112と、記憶装置113と、入力インターフェイス114と、表示コントローラ115と、データリーダ/ライタ116と、通信インターフェイス117とを備える。これらの各部は、バス121を介して、互いにデータ通信可能に接続される。なお、コンピュータ110は、CPU111に加えて、又はCPU111に代えて、GPU(Graphics Processing Unit)、又はFPGA(Field-Programmable Gate Array)を備えていても良い。 As shown in FIG. 9, the computer 110 includes a CPU (Central Processing Unit) 111, a main memory 112, a storage device 113, an input interface 114, a display controller 115, a data reader / writer 116, and a communication interface 117. And. Each of these parts is connected to each other via a bus 121 so as to be capable of data communication. The computer 110 may include a GPU (Graphics Processing Unit) or an FPGA (Field-Programmable Gate Array) in addition to the CPU 111 or in place of the CPU 111.

CPU111は、記憶装置113に格納された、本実施の形態におけるプログラム(コード)をメインメモリ112に展開し、これらを所定順序で実行することにより、各種の演算を実施する。メインメモリ112は、典型的には、DRAM(Dynamic Random Access Memory)等の揮発性の記憶装置である。また、本実施の形態におけるプログラムは、コンピュータ読み取り可能な記録媒体120に格納された状態で提供される。なお、本実施の形態におけるプログラムは、通信インターフェイス117を介して接続されたインターネット上で流通するものであっても良い。 The CPU 111 expands the programs (codes) of the present embodiment stored in the storage device 113 into the main memory 112 and executes them in a predetermined order to perform various operations. The main memory 112 is typically a volatile storage device such as a DRAM (Dynamic Random Access Memory). Further, the program in the present embodiment is provided in a state of being stored in a computer-readable recording medium 120. The program in the present embodiment may be distributed on the Internet connected via the communication interface 117.

また、記憶装置113の具体例としては、ハードディスクドライブの他、フラッシュメモリ等の半導体記憶装置が挙げられる。入力インターフェイス114は、CPU111と、キーボード及びマウスといった入力機器118との間のデータ伝送を仲介する。表示コントローラ115は、ディスプレイ装置119と接続され、ディスプレイ装置119での表示を制御する。 Further, specific examples of the storage device 113 include a semiconductor storage device such as a flash memory in addition to a hard disk drive. The input interface 114 mediates data transmission between the CPU 111 and an input device 118 such as a keyboard and mouse. The display controller 115 is connected to the display device 119 and controls the display on the display device 119.

データリーダ/ライタ116は、CPU111と記録媒体120との間のデータ伝送を仲介し、記録媒体120からのプログラムの読み出し、及びコンピュータ110における処理結果の記録媒体120への書き込みを実行する。通信インターフェイス117は、CPU111と、他のコンピュータとの間のデータ伝送を仲介する。 The data reader / writer 116 mediates the data transmission between the CPU 111 and the recording medium 120, reads the program from the recording medium 120, and writes the processing result in the computer 110 to the recording medium 120. The communication interface 117 mediates data transmission between the CPU 111 and another computer.

また、記録媒体120の具体例としては、CF(Compact Flash(登録商標))及びSD(Secure Digital)等の汎用的な半導体記憶デバイス、フレキシブルディスク(Flexible Disk)等の磁気記録媒体、又はCD-ROM(Compact Disk Read Only Memory)などの光学記録媒体が挙げられる。 Specific examples of the recording medium 120 include a general-purpose semiconductor storage device such as CF (Compact Flash (registered trademark)) and SD (Secure Digital), a magnetic recording medium such as a flexible disk, or a CD-. Examples include optical recording media such as ROM (Compact Disk Read Only Memory).

なお、本実施の形態におけるファイル管理装置10は、プログラムがインストールされたコンピュータではなく、各部に対応したハードウェアを用いることによっても実現可能である。更に、ファイル管理装置10は、一部がプログラムで実現され、残りの部分がハードウェアで実現されていてもよい。 The file management device 10 in the present embodiment can also be realized by using the hardware corresponding to each part instead of the computer in which the program is installed. Further, the file management device 10 may be partially realized by a program and the rest may be realized by hardware.

上述した実施の形態の一部又は全部は、以下に記載する(付記1)~(付記15)によって表現することができるが、以下の記載に限定されるものではない。 A part or all of the above-described embodiments can be expressed by the following descriptions (Appendix 1) to (Appendix 15), but the present invention is not limited to the following description.

(付記1)
入力ファイルを分析して、前記入力ファイルの内容を示すサマリ情報を作成する、サマリ情報作成部と、
前記入力ファイルの前記サマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、前記登録ファイル毎に、前記入力ファイルとの類似度を算出する、類似度算出部と、
前記類似度が最も高い登録ファイルと前記入力ファイルとの差分を算出する、差分算出部と、
算出された前記差分、及び前記類似度が最も高い登録ファイルを特定する類似ファイル情報を、前記入力ファイルとして、登録する、登録部と、
を備えている、ことを特徴とするファイル管理装置。
(Appendix 1)
A summary information creation unit that analyzes the input file and creates summary information indicating the contents of the input file.
A similarity calculation unit that calculates the similarity with the input file for each registration file by comparing the summary information of the input file with the summary information of the already registered registration file.
A difference calculation unit that calculates the difference between the registration file with the highest degree of similarity and the input file, and
A registration unit that registers the calculated difference and similar file information that identifies the registration file having the highest degree of similarity as the input file.
A file management device characterized by being equipped with.

(付記2)
付記1に記載のファイル管理装置であって、
前記登録部が、前記入力ファイル及び前記登録ファイルをツリー構造によって管理しており、前記入力ファイルが、前記差分及び前記類似ファイル情報によって登録されている場合は、前記入力ファイルを、前記類似ファイル情報によって特定される前記登録ファイルの直下のファイルとする、
ことを特徴とするファイル管理装置。
(Appendix 2)
The file management device described in Appendix 1
When the registration unit manages the input file and the registration file by a tree structure and the input file is registered by the difference and the similar file information, the input file is referred to as the similar file information. The file directly under the registration file specified by
A file management device characterized by that.

(付記3)
付記1または2に記載のファイル管理装置であって、
前記入力ファイルが、文書作成用のアプリケーションプログラムから出力された文書ファイルである場合に、
前記サマリ情報作成部が、前記入力ファイルにおける文章の構成を分析して、前記文章の先頭側の一部分を取り出し、取り出した部分を用いて前記サマリ情報を作成し、
前記類似度算出部が、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルのサマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理装置。
(Appendix 3)
The file management device according to Appendix 1 or 2.
When the input file is a document file output from an application program for creating a document,
The summary information creation unit analyzes the composition of the sentence in the input file, extracts a part of the beginning side of the sentence, and creates the summary information using the extracted part.
The similarity calculation unit identifies a difference between the summary information of the input file and the summary information of the registration file that has already been registered, and uses the size of the specified difference to register the input file and the registration. Calculate the similarity with the file,
A file management device characterized by that.

(付記4)
付記1または2に記載のファイル管理装置であって、
前記入力ファイルが、ソースファイルである場合に、
前記サマリ情報作成部が、前記入力ファイルから、関数定義を取り出し、取り出した関数定義を用いて前記サマリ情報を作成し、
前記類似度算出部が、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルの前記サマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理装置。
(Appendix 4)
The file management device according to Appendix 1 or 2.
When the input file is a source file,
The summary information creation unit extracts the function definition from the input file, creates the summary information using the extracted function definition, and creates the summary information.
The similarity calculation unit identifies a difference between the summary information of the input file and the summary information of the registered file that has already been registered, and uses the size of the specified difference to indicate the input file and the above. Calculate the similarity with the registration file,
A file management device characterized by that.

(付記5)
付記1または2に記載のファイル管理装置であって、
前記入力ファイルが、画像ファイルである場合に、
前記サマリ情報作成部が、前記サマリ情報として、画像のサイズが元のサイズよりも縮小されたサムネイル画像を作成し、
前記類似度算出部が、前記入力ファイルの前記サムネイル画像と、既に登録されている前記登録ファイルのサムネイル画像との差分を特定し、特定した前記差分から得られる画素類似度を用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理装置。
(Appendix 5)
The file management device according to Appendix 1 or 2.
When the input file is an image file,
The summary information creation unit creates a thumbnail image in which the size of the image is reduced from the original size as the summary information.
The similarity calculation unit identifies the difference between the thumbnail image of the input file and the thumbnail image of the registered file that has already been registered, and uses the pixel similarity obtained from the specified difference to input the input. Calculate the similarity between the file and the registration file,
A file management device characterized by that.

(付記6)
(a)入力ファイルを分析して、前記入力ファイルの内容を示すサマリ情報を作成する、ステップと、
(b)前記入力ファイルの前記サマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、前記登録ファイル毎に、前記入力ファイルとの類似度を算出する、ステップと、
(c)前記類似度が最も高い登録ファイルと前記入力ファイルとの差分を算出する、ステップと、
(d)算出された前記差分、及び前記類似度が最も高い登録ファイルを特定する類似ファイル情報を、前記入力ファイルとして、登録する、ステップと、
を有する、ことを特徴とするファイル管理方法。
(Appendix 6)
(A) A step of analyzing an input file and creating summary information indicating the contents of the input file.
(B) A step of comparing the summary information of the input file with the summary information of the already registered registration file and calculating the similarity with the input file for each registration file.
(C) A step for calculating the difference between the registration file having the highest degree of similarity and the input file, and
(D) A step of registering the calculated difference and the similar file information for specifying the registration file having the highest degree of similarity as the input file.
A file management method characterized by having.

(付記7)
付記6に記載のファイル管理方法であって、
前記(d)のステップにおいて、前記入力ファイル及び前記登録ファイルをツリー構造によって管理しており、前記入力ファイルが、前記差分及び前記類似ファイル情報によって登録されている場合は、前記入力ファイルを、前記類似ファイル情報によって特定される前記登録ファイルの直下のファイルとする、
ことを特徴とするファイル管理方法。
(Appendix 7)
The file management method described in Appendix 6
In the step (d), the input file and the registration file are managed by a tree structure, and when the input file is registered by the difference and the similar file information, the input file is used. The file directly under the registration file specified by the similar file information,
A file management method characterized by that.

(付記8)
付記6または7に記載のファイル管理方法であって、
前記入力ファイルが、文書作成用のアプリケーションプログラムから出力された文書ファイルである場合に、
前記(a)のステップにおいて、前記入力ファイルにおける文章の構成を分析して、前記文章の先頭側の一部分を取り出し、取り出した部分を用いて前記サマリ情報を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルのサマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理方法。
(Appendix 8)
The file management method described in Appendix 6 or 7.
When the input file is a document file output from an application program for creating a document,
In the step (a), the composition of the sentence in the input file is analyzed, a part of the beginning side of the sentence is taken out, and the summary information is created by using the taken out part.
In the step (b), the difference between the summary information of the input file and the summary information of the registered file that has already been registered is specified, and the input file and the said are used using the size of the specified difference. Calculate the similarity with the registration file,
A file management method characterized by that.

(付記9)
付記6または7に記載のファイル管理方法であって、
前記入力ファイルが、ソースファイルである場合に、
前記(a)のステップにおいて、前記入力ファイルから、関数定義を取り出し、取り出した関数定義を用いて前記サマリ情報を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルの前記サマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理方法。
(Appendix 9)
The file management method described in Appendix 6 or 7.
When the input file is a source file,
In the step (a), the function definition is extracted from the input file, and the summary information is created using the extracted function definition.
In the step (b), the difference between the summary information of the input file and the summary information of the registered file that has already been registered is specified, and the size of the specified difference is used with the input file. Calculate the similarity with the registration file,
A file management method characterized by that.

(付記10)
付記6または7に記載のファイル管理方法であって、
前記入力ファイルが、画像ファイルである場合に、
前記(a)のステップにおいて、前記サマリ情報として、画像のサイズが元のサイズよりも縮小されたサムネイル画像を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サムネイル画像と、既に登録されている前記登録ファイルのサムネイル画像との差分を特定し、特定した前記差分から得られる画素類似度を用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理方法。
(Appendix 10)
The file management method described in Appendix 6 or 7.
When the input file is an image file,
In the step (a), as the summary information, a thumbnail image in which the size of the image is reduced from the original size is created.
In the step (b), the difference between the thumbnail image of the input file and the thumbnail image of the registered file already registered is specified, and the pixel similarity obtained from the specified difference is used to describe the difference. Calculate the similarity between the input file and the registration file,
A file management method characterized by that.

(付記11)
コンピュータに、
(a)入力ファイルを分析して、前記入力ファイルの内容を示すサマリ情報を作成する、ステップと、
(b)前記入力ファイルの前記サマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、前記登録ファイル毎に、前記入力ファイルとの類似度を算出する、ステップと、
(c)前記類似度が最も高い登録ファイルと前記入力ファイルとの差分を算出する、ステップと、
(d)算出された前記差分、及び前記類似度が最も高い登録ファイルを特定する類似ファイル情報を、前記入力ファイルとして、登録する、ステップと、
を実行させる、ことを特徴とするプログラム。
(Appendix 11)
On the computer
(A) A step of analyzing an input file and creating summary information indicating the contents of the input file.
(B) A step of comparing the summary information of the input file with the summary information of the already registered registration file and calculating the similarity with the input file for each registration file.
(C) A step for calculating the difference between the registration file having the highest degree of similarity and the input file, and
(D) A step of registering the calculated difference and the similar file information for specifying the registration file having the highest degree of similarity as the input file.
A program characterized by executing.

(付記12)
付記11に記載のプログラムであって、
前記(d)のステップにおいて、前記入力ファイル及び前記登録ファイルをツリー構造によって管理しており、前記入力ファイルが、前記差分及び前記類似ファイル情報によって登録されている場合は、前記入力ファイルを、前記類似ファイル情報によって特定される前記登録ファイルの直下のファイルとする、
ことを特徴とするプログラム。
(Appendix 12)
The program described in Appendix 11
In the step (d), the input file and the registration file are managed by a tree structure, and when the input file is registered by the difference and the similar file information, the input file is used. The file directly under the registration file specified by the similar file information,
A program characterized by that.

(付記13)
付記11または12に記載のプログラムであって、
前記入力ファイルが、文書作成用のアプリケーションプログラムから出力された文書ファイルである場合に、
前記(a)のステップにおいて、前記入力ファイルにおける文章の構成を分析して、前記文章の先頭側の一部分を取り出し、取り出した部分を用いて前記サマリ情報を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルのサマリ情報との差分を特定し、特定した前記差分のサイズを用
いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするプログラム。
(Appendix 13)
The program described in Appendix 11 or 12,
When the input file is a document file output from an application program for creating a document,
In the step (a), the composition of the sentence in the input file is analyzed, a part of the beginning side of the sentence is taken out, and the summary information is created by using the taken out part.
In the step (b), the difference between the summary information of the input file and the summary information of the registered file that has already been registered is specified, and the input file and the said are used using the size of the specified difference. Calculate the similarity with the registration file,
A program characterized by that.

(付記14)
付記11または12に記載のプログラムであって、
前記入力ファイルが、ソースファイルである場合に、
前記(a)のステップにおいて、前記入力ファイルから、関数定義を取り出し、取り出した関数定義を用いて前記サマリ情報を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルの前記サマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするプログラム。
(Appendix 14)
The program described in Appendix 11 or 12,
When the input file is a source file,
In the step (a), the function definition is extracted from the input file, and the summary information is created using the extracted function definition.
In the step (b), the difference between the summary information of the input file and the summary information of the registered file that has already been registered is specified, and the size of the specified difference is used with the input file. Calculate the similarity with the registration file,
A program characterized by that.

(付記15)
付記11または12に記載のプログラムであって、
前記入力ファイルが、画像ファイルである場合に、
前記(a)のステップにおいて、前記サマリ情報として、画像のサイズが元のサイズよりも縮小されたサムネイル画像を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サムネイル画像と、既に登録されている前記登録ファイルのサムネイル画像との差分を特定し、特定した前記差分から得られる画素類似度を用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするプログラム。
(Appendix 15)
The program described in Appendix 11 or 12,
When the input file is an image file,
In the step (a), as the summary information, a thumbnail image in which the size of the image is reduced from the original size is created.
In the step (b), the difference between the thumbnail image of the input file and the thumbnail image of the registered file already registered is specified, and the pixel similarity obtained from the specified difference is used to describe the difference. Calculate the similarity between the input file and the registration file,
A program characterized by that.

以上のように、本発明によれば、ファイルシステムにおいて、データの圧縮化を図りつつ、データの登録にかかる時間の短縮化を図ることができる。本発明は、各種ファイルシステムに有用である。 As described above, according to the present invention, in the file system, it is possible to reduce the time required for data registration while reducing the data compression. The present invention is useful for various file systems.

10 ファイル管理装置
11 サマリ情報作成部
12 類似度算出部
13 差分算出部
14 登録部
15 ファイル操作部
20 ファイルサーバ
21 データベース
30 端末装置
40 ネットワーク
110 コンピュータ
111 CPU
112 メインメモリ
113 記憶装置
114 入力インターフェイス
115 表示コントローラ
116 データリーダ/ライタ
117 通信インターフェイス
118 入力機器
119 ディスプレイ装置
120 記録媒体
121 バス
10 File management device 11 Summary information creation unit 12 Similarity calculation unit 13 Difference calculation unit 14 Registration unit 15 File operation unit 20 File server 21 Database 30 Terminal equipment 40 Network 110 Computer 111 CPU
112 Main memory 113 Storage device 114 Input interface 115 Display controller 116 Data reader / writer 117 Communication interface 118 Input device 119 Display device 120 Recording medium 121 Bus

Claims (15)

入力ファイルを分析して、前記入力ファイルの内容を示すサマリ情報を作成する、サマリ情報作成部と、
前記入力ファイルの前記サマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、前記登録ファイル毎に、前記入力ファイルとの類似度を算出する、類似度算出部と、
前記類似度が最も高い登録ファイルと前記入力ファイルとの差分を算出する、差分算出部と、
算出された前記差分、及び前記類似度が最も高い登録ファイルを特定する類似ファイル情報を、前記入力ファイルとして、登録する、登録部と、
を備えている、ことを特徴とするファイル管理装置。
A summary information creation unit that analyzes the input file and creates summary information indicating the contents of the input file.
A similarity calculation unit that calculates the similarity with the input file for each registration file by comparing the summary information of the input file with the summary information of the already registered registration file.
A difference calculation unit that calculates the difference between the registration file with the highest degree of similarity and the input file, and
A registration unit that registers the calculated difference and similar file information that identifies the registration file having the highest degree of similarity as the input file.
A file management device characterized by being equipped with.
請求項1に記載のファイル管理装置であって、
前記登録部が、前記入力ファイル及び前記登録ファイルをツリー構造によって管理しており、前記入力ファイルが、前記差分及び前記類似ファイル情報によって登録されている場合は、前記入力ファイルを、前記類似ファイル情報によって特定される前記登録ファイルの直下のファイルとする、
ことを特徴とするファイル管理装置。
The file management device according to claim 1.
When the registration unit manages the input file and the registration file by a tree structure and the input file is registered by the difference and the similar file information, the input file is referred to as the similar file information. The file directly under the registration file specified by
A file management device characterized by that.
請求項1または2に記載のファイル管理装置であって、
前記入力ファイルが、文書作成用のアプリケーションプログラムから出力された文書ファイルである場合に、
前記サマリ情報作成部が、前記入力ファイルにおける文章の構成を分析して、前記文章の先頭側の一部分を取り出し、取り出した部分を用いて前記サマリ情報を作成し、
前記類似度算出部が、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルのサマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理装置。
The file management device according to claim 1 or 2.
When the input file is a document file output from an application program for creating a document,
The summary information creation unit analyzes the composition of the sentence in the input file, extracts a part of the beginning side of the sentence, and creates the summary information using the extracted part.
The similarity calculation unit identifies a difference between the summary information of the input file and the summary information of the registration file that has already been registered, and uses the size of the specified difference to register the input file and the registration. Calculate the similarity with the file,
A file management device characterized by that.
請求項1または2に記載のファイル管理装置であって、
前記入力ファイルが、ソースファイルである場合に、
前記サマリ情報作成部が、前記入力ファイルから、関数定義を取り出し、取り出した関数定義を用いて前記サマリ情報を作成し、
前記類似度算出部が、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルの前記サマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理装置。
The file management device according to claim 1 or 2.
When the input file is a source file,
The summary information creation unit extracts the function definition from the input file, creates the summary information using the extracted function definition, and creates the summary information.
The similarity calculation unit identifies a difference between the summary information of the input file and the summary information of the registered file that has already been registered, and uses the size of the specified difference to indicate the input file and the above. Calculate the similarity with the registration file,
A file management device characterized by that.
請求項1または2に記載のファイル管理装置であって、
前記入力ファイルが、画像ファイルである場合に、
前記サマリ情報作成部が、前記サマリ情報として、画像のサイズが元のサイズよりも縮小されたサムネイル画像を作成し、
前記類似度算出部が、前記入力ファイルの前記サムネイル画像と、既に登録されている前記登録ファイルのサムネイル画像との差分を特定し、特定した前記差分から得られる画素類似度を用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理装置。
The file management device according to claim 1 or 2.
When the input file is an image file,
The summary information creation unit creates a thumbnail image in which the size of the image is reduced from the original size as the summary information.
The similarity calculation unit identifies the difference between the thumbnail image of the input file and the thumbnail image of the registered file that has already been registered, and uses the pixel similarity obtained from the specified difference to input the input. Calculate the similarity between the file and the registration file,
A file management device characterized by that.
(a)入力ファイルを分析して、前記入力ファイルの内容を示すサマリ情報を作成する、ステップと、
(b)前記入力ファイルの前記サマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、前記登録ファイル毎に、前記入力ファイルとの類似度を算出する、ステップと、
(c)前記類似度が最も高い登録ファイルと前記入力ファイルとの差分を算出する、ステップと、
(d)算出された前記差分、及び前記類似度が最も高い登録ファイルを特定する類似ファイル情報を、前記入力ファイルとして、登録する、ステップと、
を有する、ことを特徴とするファイル管理方法。
(A) A step of analyzing an input file and creating summary information indicating the contents of the input file.
(B) A step of comparing the summary information of the input file with the summary information of the already registered registration file and calculating the similarity with the input file for each registration file.
(C) A step for calculating the difference between the registration file having the highest degree of similarity and the input file, and
(D) A step of registering the calculated difference and the similar file information for specifying the registration file having the highest degree of similarity as the input file.
A file management method characterized by having.
請求項6に記載のファイル管理方法であって、
前記(d)のステップにおいて、前記入力ファイル及び前記登録ファイルをツリー構造によって管理しており、前記入力ファイルが、前記差分及び前記類似ファイル情報によって登録されている場合は、前記入力ファイルを、前記類似ファイル情報によって特定される前記登録ファイルの直下のファイルとする、
ことを特徴とするファイル管理方法。
The file management method according to claim 6.
In the step (d), the input file and the registration file are managed by a tree structure, and when the input file is registered by the difference and the similar file information, the input file is used. The file directly under the registration file specified by the similar file information,
A file management method characterized by that.
請求項6または7に記載のファイル管理方法であって、
前記入力ファイルが、文書作成用のアプリケーションプログラムから出力された文書ファイルである場合に、
前記(a)のステップにおいて、前記入力ファイルにおける文章の構成を分析して、前記文章の先頭側の一部分を取り出し、取り出した部分を用いて前記サマリ情報を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルのサマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理方法。
The file management method according to claim 6 or 7.
When the input file is a document file output from an application program for creating a document,
In the step (a), the composition of the sentence in the input file is analyzed, a part of the beginning side of the sentence is taken out, and the summary information is created by using the taken out part.
In the step (b), the difference between the summary information of the input file and the summary information of the registered file that has already been registered is specified, and the input file and the said are used using the size of the specified difference. Calculate the similarity with the registration file,
A file management method characterized by that.
請求項6または7に記載のファイル管理方法であって、
前記入力ファイルが、ソースファイルである場合に、
前記(a)のステップにおいて、前記入力ファイルから、関数定義を取り出し、取り出した関数定義を用いて前記サマリ情報を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルの前記サマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理方法。
The file management method according to claim 6 or 7.
When the input file is a source file,
In the step (a), the function definition is extracted from the input file, and the summary information is created using the extracted function definition.
In the step (b), the difference between the summary information of the input file and the summary information of the registered file that has already been registered is specified, and the size of the specified difference is used with the input file. Calculate the similarity with the registration file,
A file management method characterized by that.
請求項6または7に記載のファイル管理方法であって、
前記入力ファイルが、画像ファイルである場合に、
前記(a)のステップにおいて、前記サマリ情報として、画像のサイズが元のサイズよりも縮小されたサムネイル画像を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サムネイル画像と、既に登録されている前記登録ファイルのサムネイル画像との差分を特定し、特定した前記差分から得られる画素類似度を用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするファイル管理方法。
The file management method according to claim 6 or 7.
When the input file is an image file,
In the step (a), as the summary information, a thumbnail image in which the size of the image is reduced from the original size is created.
In the step (b), the difference between the thumbnail image of the input file and the thumbnail image of the registered file already registered is specified, and the pixel similarity obtained from the specified difference is used to describe the difference. Calculate the similarity between the input file and the registration file,
A file management method characterized by that.
コンピュータに、
(a)入力ファイルを分析して、前記入力ファイルの内容を示すサマリ情報を作成する、ステップと、
(b)前記入力ファイルの前記サマリ情報と、既に登録されている登録ファイルのサマリ情報とを対比して、前記登録ファイル毎に、前記入力ファイルとの類似度を算出する、ス
テップと、
(c)前記類似度が最も高い登録ファイルと前記入力ファイルとの差分を算出する、ステップと、
(d)算出された前記差分、及び前記類似度が最も高い登録ファイルを特定する類似ファイル情報を、前記入力ファイルとして、登録する、ステップと、
を実行させる、ことを特徴とするプログラム。
On the computer
(A) A step of analyzing an input file and creating summary information indicating the contents of the input file.
(B) A step of comparing the summary information of the input file with the summary information of the already registered registration file and calculating the similarity with the input file for each registration file.
(C) A step for calculating the difference between the registration file having the highest degree of similarity and the input file, and
(D) A step of registering the calculated difference and the similar file information for specifying the registration file having the highest degree of similarity as the input file.
A program characterized by executing.
請求項11に記載のプログラムであって、
前記(d)のステップにおいて、前記入力ファイル及び前記登録ファイルをツリー構造によって管理しており、前記入力ファイルが、前記差分及び前記類似ファイル情報によって登録されている場合は、前記入力ファイルを、前記類似ファイル情報によって特定される前記登録ファイルの直下のファイルとする、
ことを特徴とするプログラム。
The program according to claim 11.
In the step (d), the input file and the registration file are managed by a tree structure, and when the input file is registered by the difference and the similar file information, the input file is used. The file directly under the registration file specified by the similar file information,
A program characterized by that.
請求項11または12に記載のプログラムであって、
前記入力ファイルが、文書作成用のアプリケーションプログラムから出力された文書ファイルである場合に、
前記(a)のステップにおいて、前記入力ファイルにおける文章の構成を分析して、前記文章の先頭側の一部分を取り出し、取り出した部分を用いて前記サマリ情報を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルのサマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするプログラム。
The program according to claim 11 or 12.
When the input file is a document file output from an application program for creating a document,
In the step (a), the composition of the sentence in the input file is analyzed, a part of the beginning side of the sentence is taken out, and the summary information is created by using the taken out part.
In the step (b), the difference between the summary information of the input file and the summary information of the registered file that has already been registered is specified, and the input file and the said are used using the size of the specified difference. Calculate the similarity with the registration file,
A program characterized by that.
請求項11または12に記載のプログラムであって、
前記入力ファイルが、ソースファイルである場合に、
前記(a)のステップにおいて、前記入力ファイルから、関数定義を取り出し、取り出した関数定義を用いて前記サマリ情報を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サマリ情報と、既に登録されている前記登録ファイルの前記サマリ情報との差分を特定し、特定した前記差分のサイズを用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするプログラム。
The program according to claim 11 or 12.
When the input file is a source file,
In the step (a), the function definition is extracted from the input file, and the summary information is created using the extracted function definition.
In the step (b), the difference between the summary information of the input file and the summary information of the registered file that has already been registered is specified, and the size of the specified difference is used with the input file. Calculate the similarity with the registration file,
A program characterized by that.
請求項11または12に記載のプログラムであって、
前記入力ファイルが、画像ファイルである場合に、
前記(a)のステップにおいて、前記サマリ情報として、画像のサイズが元のサイズよりも縮小されたサムネイル画像を作成し、
前記(b)のステップにおいて、前記入力ファイルの前記サムネイル画像と、既に登録されている前記登録ファイルのサムネイル画像との差分を特定し、特定した前記差分から得られる画素類似度を用いて、前記入力ファイルと前記登録ファイルとの前記類似度を算出する、
ことを特徴とするプログラム。
The program according to claim 11 or 12.
When the input file is an image file,
In the step (a), as the summary information, a thumbnail image in which the size of the image is reduced from the original size is created.
In the step (b), the difference between the thumbnail image of the input file and the thumbnail image of the registered file already registered is specified, and the pixel similarity obtained from the specified difference is used to describe the difference. Calculate the similarity between the input file and the registration file,
A program characterized by that.
JP2018066056A 2018-03-29 2018-03-29 File management device, file management method, and program Active JP7010538B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018066056A JP7010538B2 (en) 2018-03-29 2018-03-29 File management device, file management method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018066056A JP7010538B2 (en) 2018-03-29 2018-03-29 File management device, file management method, and program

Publications (2)

Publication Number Publication Date
JP2019175373A JP2019175373A (en) 2019-10-10
JP7010538B2 true JP7010538B2 (en) 2022-01-26

Family

ID=68167062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018066056A Active JP7010538B2 (en) 2018-03-29 2018-03-29 File management device, file management method, and program

Country Status (1)

Country Link
JP (1) JP7010538B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006065424A (en) 2004-08-25 2006-03-09 Nec Corp Data storage system, data storage device, similar file recording method to be used for the same and program therefor
JP2006134042A (en) 2004-11-05 2006-05-25 Canon Inc Image processing system
JP2007150491A (en) 2005-11-25 2007-06-14 Nikon Corp Camera, and image control program
JP2008097480A (en) 2006-10-16 2008-04-24 Fuji Xerox Co Ltd Document management server, document management system and program
JP2009134735A (en) 1999-01-27 2009-06-18 Ricoh Co Ltd Image classification device, and computer-readable recording medium recording program for making computer function as image classification device
JP2012194945A (en) 2011-03-18 2012-10-11 Fujitsu Ltd Management program, management method, and management device
US20170124067A1 (en) 2015-11-04 2017-05-04 Kabushiki Kaisha Toshiba Document processing apparatus, method, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11134359A (en) * 1997-10-31 1999-05-21 Nippon Telegr & Teleph Corp <Ntt> Document similarity calculation method and device therefor, and recording medium for recording document similarity calculation program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009134735A (en) 1999-01-27 2009-06-18 Ricoh Co Ltd Image classification device, and computer-readable recording medium recording program for making computer function as image classification device
JP2006065424A (en) 2004-08-25 2006-03-09 Nec Corp Data storage system, data storage device, similar file recording method to be used for the same and program therefor
JP2006134042A (en) 2004-11-05 2006-05-25 Canon Inc Image processing system
JP2007150491A (en) 2005-11-25 2007-06-14 Nikon Corp Camera, and image control program
JP2008097480A (en) 2006-10-16 2008-04-24 Fuji Xerox Co Ltd Document management server, document management system and program
JP2012194945A (en) 2011-03-18 2012-10-11 Fujitsu Ltd Management program, management method, and management device
US20170124067A1 (en) 2015-11-04 2017-05-04 Kabushiki Kaisha Toshiba Document processing apparatus, method, and program

Also Published As

Publication number Publication date
JP2019175373A (en) 2019-10-10

Similar Documents

Publication Publication Date Title
US10795812B1 (en) Virtual copy forward method and system for garbage collection in cloud computing networks
US7844139B2 (en) Information management apparatus, information management method, and computer program product
KR102128138B1 (en) Hydration and dehydration with placeholders
US8924366B2 (en) Data storage deduplication systems and methods
US7191391B2 (en) Form processing device, and form processing method and program
JP5886447B2 (en) Location independent files
JP2007521528A (en) Creating a volume image
US20130067237A1 (en) Providing random access to archives with block maps
US9922041B2 (en) Storing data files in a file system
US9286228B2 (en) Facilitating caching in an image-processing system
US9934081B2 (en) Conditional saving of input data
CN110569147B (en) Deleted file recovery method based on index, terminal device and storage medium
US20080229186A1 (en) Persisting digital ink annotations as image metadata
CN113296709B (en) Method and apparatus for deduplication
JP6193406B2 (en) Serialization for differential encoding
US20190311746A1 (en) Indexing media content library using audio track fingerprinting
JP5217155B2 (en) File compression automatic determination method and method, and program
US7421451B2 (en) Padding management for content files
US7647588B2 (en) Smart archive for JAR files
JP7010538B2 (en) File management device, file management method, and program
JP5890340B2 (en) Image classification device and image classification program
TWI546727B (en) Computer accessible storage medium and method for cross-platform synchronizing attributes of files
US8422831B2 (en) Information management apparatus, information management method, and computer readable medium which determine similarities
US20230409438A1 (en) Creating file recipes for copy overwrite workloads in deduplication file systems
CN115812198A (en) Consistent entity tagging with multi-protocol data access

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211125

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20211214

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220106

R150 Certificate of patent or registration of utility model

Ref document number: 7010538

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150