JP2010128892A - Database generation device, database generation method, and computer program - Google Patents

Database generation device, database generation method, and computer program Download PDF

Info

Publication number
JP2010128892A
JP2010128892A JP2008304310A JP2008304310A JP2010128892A JP 2010128892 A JP2010128892 A JP 2010128892A JP 2008304310 A JP2008304310 A JP 2008304310A JP 2008304310 A JP2008304310 A JP 2008304310A JP 2010128892 A JP2010128892 A JP 2010128892A
Authority
JP
Japan
Prior art keywords
filter condition
condition information
database
data
selection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008304310A
Other languages
Japanese (ja)
Inventor
Masao Sugimori
正夫 杉森
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.)
Keyence Corp
Original Assignee
Keyence Corp
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 Keyence Corp filed Critical Keyence Corp
Priority to JP2008304310A priority Critical patent/JP2010128892A/en
Publication of JP2010128892A publication Critical patent/JP2010128892A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a database generation device, a database generation method and a computer program for easily generating a new database including a tabulation result even when tabulation processing is executed by merging a plurality of chart data. <P>SOLUTION: This database generation device is configured; to acquire one or more electronic document files; to store one or more filter condition information for extracting data by record units by setting extraction conditions by database item as filter conditions for executing filtering processing to one or more acquired electronic document file; to accept the selection of one or more filter condition information to be applied to the execution time of filtering processing; to read one or more filter condition information whose selection has been accepted; to execute the filtering processing; to calculate statistics on the basis of the data after the execution of the filtering processing; and to generate a database by summarizing the data after the execution of the filtering processing including the calculated statistics. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、異なるデータ形式を有する複数の表データが存在する場合であっても、容易に新たなデータベースを生成することができるデータベース生成装置、データベース生成方法及びコンピュータプログラムに関する。   The present invention relates to a database generation device, a database generation method, and a computer program that can easily generate a new database even when a plurality of table data having different data formats exist.

関係データベースを生成する場合、事前に生成されている表データを利用することが多い。表データのデータベース項目が一致している場合には、複数の表データをマージすることにより容易に新たなデータベースを生成することができる。   When generating a relational database, table data generated in advance is often used. When the database items of the table data match, a new database can be easily generated by merging a plurality of table data.

しかし、表データのデータ形式が標準化されていない場合、表データのデータ形式は作成者に依存しており、また同一のアプリケーションであっても使用するソフトウェアプログラムによってデータベース項目の相違、データベース項目の配列順序の相違等が存在しており、そのままマージすることができない。斯かる問題を解決するべく、従来は中間ファイルフォーマットを用いて、データベース項目が相違している、あるいはデータベース項目の配列順序が相違している複数の表データをマージした新たな表データで構成されるデータベースを生成していた。  However, if the data format of the table data is not standardized, the data format of the table data depends on the creator, and even in the same application, the database items differ depending on the software program used, the database item array There is a difference in order and the like, and it cannot be merged as it is. In order to solve such a problem, conventionally, an intermediate file format is used, which is composed of new table data obtained by merging a plurality of table data having different database items or different database item arrangement orders. Database was generated.

例えば特許文献1では、表データの中間ファイルフォーマットとして良く用いられているCSVファイルを介して、複数の表データから1つのデータベースを生成しているデータベース管理システムが開示されている。
特開2006−059135号公報
For example, Patent Literature 1 discloses a database management system that generates one database from a plurality of table data via a CSV file that is often used as an intermediate file format for table data.
JP 2006-059135 A

特許文献1のように、CSVファイルを介して複数の表データをマージする場合、例えば項目ごとのデータを抽出することができないので、項目が一致しているデータの集計処理を実行することはできない。そのため、通常はマージしたデータベースに対して所定の条件でフィルタリング処理を実行して集計項目を絞り込んだ後、絞り込んだ集計項目に対応する数値データを集計している。   When a plurality of table data are merged via a CSV file as in Patent Document 1, for example, data for each item cannot be extracted, and therefore, the aggregation processing of data with matching items cannot be executed. . For this reason, usually, filtering processing is performed on the merged database under predetermined conditions to narrow down the total items, and then numerical data corresponding to the narrowed-down total items is totaled.

しかし、フィルタ条件ごとにフィルタリング結果が出力されるため、複雑な集計を行う場合等には、一のフィルタ条件にてフィルタリング処理を実行し、集計結果を記憶装置に記憶しておいた状態で、他のフィルタ条件で再度フィルタリング処理を実行する等、所望のフィルタリング結果を取得するための処理が煩雑になるという問題点があった。また、記憶しておいて集計結果を再度集計する必要もあるため、複数のファイルのデータを集計する場合には、上述した作業をファイル単位で繰り返す必要があり、相当の工数を要するという問題点もあった。   However, since the filtering result is output for each filter condition, when performing a complicated aggregation, the filtering process is executed under one filter condition, and the aggregation result is stored in the storage device. There is a problem that processing for obtaining a desired filtering result, such as performing filtering processing again under other filter conditions, becomes complicated. In addition, since it is necessary to add up the totaled results again, it is necessary to repeat the above-mentioned operations for each file, which requires considerable man-hours. There was also.

本発明は斯かる事情に鑑みてなされたものであり、複数の表データをマージして集計処理を実行する場合であっても、容易に集計結果を含む新たなデータベースを生成することができるデータベース生成装置、データベース生成方法及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and a database that can easily generate a new database including a totaling result even when a totaling process is performed by merging a plurality of table data. An object of the present invention is to provide a generation device, a database generation method, and a computer program.

上記目的を達成するために第1発明に係るデータベース生成装置は、表データが含まれる一又は複数の電子文書ファイルに対してフィルタリング処理したデータに基づいて新たなデータベースを生成するデータベース生成装置において、一又は複数の前記電子文書ファイルを取得する電子文書ファイル取得手段と、取得した一又は複数の電子文書ファイルに対してフィルタリング処理を実行するためのフィルタ条件として、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報を記憶するフィルタ条件情報記憶手段と、フィルタリング処理の実行時に適用する一又は複数の前記フィルタ条件情報の選択を受け付けるフィルタ条件情報選択受付手段と、選択を受け付けた一又は複数のフィルタ条件情報を読み出し、フィルタリング処理を実行するフィルタリング実行手段と、フィルタリング処理の実行後のデータに基づいて統計量を算出する統計量算出手段と、算出した統計量を含めてフィルタリング処理の実行後のデータを集約してデータベースを生成するデータベース生成手段とを備えることを特徴とする。   In order to achieve the above object, a database generation device according to a first aspect of the present invention is a database generation device that generates a new database based on data filtered for one or a plurality of electronic document files including table data. An extraction condition is set for each database item as an electronic document file acquisition unit that acquires one or a plurality of the electronic document files and a filter condition for performing filtering processing on the acquired one or a plurality of electronic document files. Filter condition information storage means for storing one or more filter condition information for extracting data in record units, and filter condition information selection receiving means for receiving selection of the one or more filter condition information to be applied when executing the filtering process And one or more fields that accept the selection. Filtering condition means for reading out the data condition information and executing the filtering process, a statistic calculating means for calculating the statistic based on the data after the filtering process is executed, and after the filtering process including the calculated statistic is executed. And database generating means for generating a database by aggregating data.

また、第2発明に係るデータベース生成装置は、第1発明において、前記フィルタ条件情報選択受付手段は、抽出されたレコードと表示されるレコードとが連動しているフィルタ条件情報と、抽出されたレコードと表示されるレコードとがそれぞれ独立しているフィルタ条件情報との組み合わせの選択を受け付けるようにしてあることを特徴とする。   In the database generation device according to the second invention, in the first invention, the filter condition information selection accepting means includes the filter condition information in which the extracted record and the record to be displayed are linked, and the extracted record. The selection of the combination with the filter condition information in which each of the records displayed is independent is accepted.

また、第3発明に係るデータベース生成装置は、第1又は第2発明において、算出した統計量のデータ列である統計量列を追加する統計量列追加手段を備えることを特徴とする。   The database generation device according to a third aspect of the invention is characterized in that, in the first or second aspect of the invention, a statistic sequence adding means for adding a statistic sequence that is a data sequence of the calculated statistic is provided.

また、第4発明に係るデータベース生成装置は、第1乃至第3発明のいずれか1つにおいて、前記統計量は百分率であり、前記データベース生成手段は、前記フィルタ条件情報の選択に従って、百分率算出のための分母となる集計値を算出するようにしてあることを特徴とする。   The database generation device according to a fourth aspect of the present invention is the database generation device according to any one of the first to third aspects, wherein the statistic is a percentage, and the database generation means calculates the percentage according to the selection of the filter condition information. The total value used as the denominator is calculated.

次に、上記目的を達成するために第5発明に係るデータベース生成方法は、表データが含まれる一又は複数の電子文書ファイルに対してフィルタリング処理したデータに基づいて新たなデータベースを生成するデータベース生成装置で実行することが可能なデータベース生成方法において、一又は複数の前記電子文書ファイルを取得し、取得した一又は複数の電子文書ファイルに対してフィルタリング処理を実行するためのフィルタ条件として、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報を記憶し、フィルタリング処理の実行時に適用する一又は複数の前記フィルタ条件情報の選択を受け付け、選択を受け付けた一又は複数のフィルタ条件情報を読み出し、フィルタリング処理を実行し、フィルタリング処理の実行後のデータに基づいて統計量を算出し、算出した統計量を含めてフィルタリング処理の実行後のデータを集約してデータベースを生成することを特徴とする。   Next, in order to achieve the above object, a database generation method according to a fifth aspect of the present invention is a database generation method for generating a new database based on data obtained by filtering one or a plurality of electronic document files including table data. In the database generation method that can be executed by the apparatus, one or a plurality of the electronic document files are acquired, and a database item is used as a filter condition for performing a filtering process on the acquired one or a plurality of electronic document files. One or a plurality of filter condition information for extracting data in units of records by setting an extraction condition for each record is stored, and selection of one or a plurality of the filter condition information to be applied at the time of executing the filtering process is accepted, and the selection is accepted Read one or more filter condition information and filter It is executed, to calculate the statistics based on data after the execution of the filtering process, and generates a database including the calculated statistic aggregates data after the execution of the filtering process.

また、第6発明に係るデータベース生成方法は、第5発明において、抽出されたレコードと表示されるレコードとが連動しているフィルタ条件情報と、抽出されたレコードと表示されるレコードとがそれぞれ独立しているフィルタ条件情報との組み合わせの選択を受け付けることを特徴とする。   The database generation method according to the sixth invention is the database generation method according to the fifth invention, wherein the filter condition information in which the extracted record and the record to be displayed are linked and the extracted record and the record to be displayed are independent of each other. It is characterized by accepting selection of a combination with the filtering condition information.

また、第7発明に係るデータベース生成方法は、第5又は第6発明において、算出した統計量のデータ列である統計量列を追加することを特徴とする。   The database generation method according to the seventh invention is characterized in that, in the fifth or sixth invention, a statistic sequence which is a data sequence of the calculated statistic is added.

また、第8発明に係るデータベース生成方法は、第5乃至第7発明のいずれか1つにおいて、前記統計量は百分率であり、前記フィルタ条件情報の選択に従って、百分率算出のための分母となる集計値を算出することを特徴とする。   The database generation method according to an eighth aspect of the present invention is the database generation method according to any one of the fifth to seventh aspects, wherein the statistic is a percentage and is a denominator for calculating the percentage according to the selection of the filter condition information. A value is calculated.

次に、上記目的を達成するために第9発明に係るコンピュータプログラムは、表データが含まれる一又は複数の電子文書ファイルに対してフィルタリング処理したデータに基づいて新たなデータベースを生成するデータベース生成装置で実行することが可能なコンピュータプログラムにおいて、前記データベース生成装置を、一又は複数の前記電子文書ファイルを取得する電子文書ファイル取得手段、取得した一又は複数の電子文書ファイルに対してフィルタリング処理を実行するためのフィルタ条件として、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報を記憶するフィルタ条件情報記憶手段、フィルタリング処理の実行時に適用する一又は複数の前記フィルタ条件情報の選択を受け付けるフィルタ条件情報選択手段、選択を受け付けた一又は複数の前記フィルタ条件情報を読み出し、フィルタリング処理を実行するフィルタリング実行手段、フィルタリング処理の実行後のデータに基づいて統計量を算出する統計量算出手段、及び算出した統計量を含めてフィルタリング処理の実行後のデータを集約してデータベースを生成するデータベース生成手段として機能させることを特徴とする。   Next, in order to achieve the above object, a computer program according to a ninth aspect of the present invention provides a database generation device for generating a new database based on data obtained by filtering one or a plurality of electronic document files including table data In the computer program that can be executed, the database generation device performs electronic document file acquisition means for acquiring one or a plurality of the electronic document files, and performs a filtering process on the acquired one or a plurality of electronic document files Filter condition information storage means for storing one or more filter condition information for setting the extraction condition for each database item and extracting data in units of records as filter conditions for performing, one or more applied at the time of executing the filtering process Selection of filter condition information Filter condition information selection means for accepting, filtering execution means for reading out one or a plurality of the filter condition information accepted for selection, performing filtering processing, and statistics calculating means for calculating statistics based on data after execution of filtering processing And a function of database generation means for generating a database by aggregating data after execution of the filtering process including the calculated statistics.

また、第10発明に係るコンピュータプログラムは、第9発明において、前記フィルタ条件情報選択受付手段を、抽出されたレコードと表示されるレコードとが連動しているフィルタ条件情報と、抽出されたレコードと表示されるレコードとがそれぞれ独立しているフィルタ条件情報との組み合わせの選択を受け付ける手段として機能させることを特徴とする。   The computer program according to a tenth aspect of the present invention is the computer program according to the ninth aspect, wherein the filter condition information selection accepting means is configured such that the filter condition information in which the extracted record and the record to be displayed are linked, the extracted record, It is characterized by functioning as means for receiving selection of a combination with filter condition information that is independent from each other of the displayed records.

また、第11発明に係るコンピュータプログラムは、第9又は第10発明において、前記データベース生成装置を、算出した統計量のデータ列である統計量列を追加する統計量列追加手段として機能させることを特徴とする。   According to an eleventh aspect of the invention, in the ninth or tenth aspect, the computer program causes the database generation device to function as a statistic sequence adding unit that adds a statistic sequence that is a data sequence of the calculated statistic. Features.

また、第12発明に係るコンピュータプログラムは、第9乃至第11発明のいずれか1つにおいて、前記統計量は百分率であり、前記データベース生成手段を、前記フィルタ条件情報の選択に従って、百分率算出のための分母となる集計値を算出する手段として機能させることを特徴とする。   The computer program according to a twelfth aspect of the present invention is the computer program according to any one of the ninth to eleventh aspects, wherein the statistic is a percentage, and the database generation means is configured to calculate a percentage according to the selection of the filter condition information. It is made to function as a means to calculate the total value used as the denominator.

第1発明、第5発明及び第9発明では、一又は複数の電子文書ファイルを取得し、取得した一又は複数の電子文書ファイルに対してフィルタリング処理を実行するためのフィルタ条件として、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報を記憶しておく。フィルタリング処理の実行時に適用する一又は複数のフィルタ条件情報の選択を受け付け、選択を受け付けた一又は複数のフィルタ条件情報を読み出し、フィルタリング処理を実行する。フィルタリング処理の実行後のデータに基づいて統計量を算出し、算出した統計量を含めてフィルタリング処理の実行後のデータを集約してデータベースを生成する。これにより、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報から適当なフィルタ条件情報の選択を受け付けることにより、複雑な統計量を算出する場合であっても、一度のフィルタリング処理によって必要なデータを絞り込むことができるとともに、抽出されたレコードと表示されるレコードとが必ずしも一致する必要が無いので、百分率で表示される統計量を算出する分母となる集計値を算出しておき、所望の分母に対する百分率を算出することが可能となる。   In the first invention, the fifth invention, and the ninth invention, each database item is acquired as a filter condition for acquiring one or a plurality of electronic document files and executing a filtering process on the acquired one or a plurality of electronic document files. One or a plurality of pieces of filter condition information for extracting data in units of records by setting an extraction condition is stored. A selection of one or a plurality of filter condition information to be applied at the time of executing the filtering process is received, the one or a plurality of filter condition information that has received the selection is read, and the filtering process is executed. A statistic is calculated based on the data after execution of the filtering process, and the database including the calculated statistic is aggregated to generate the database. This is a case where complicated statistics are calculated by accepting selection of appropriate filter condition information from one or a plurality of filter condition information that sets extraction conditions for each database item and extracts data in record units. However, the necessary data can be narrowed down by a single filtering process, and the extracted record and the displayed record do not necessarily need to match, so that it becomes a denominator for calculating the statistics displayed as a percentage. It is possible to calculate the total value and calculate the percentage with respect to the desired denominator.

第2発明、第6発明及び第10発明では、抽出されたレコードと表示されるレコードとが連動しているフィルタ条件情報と、抽出されたレコードと表示されるレコードとがそれぞれ独立しているフィルタ条件情報との組み合わせの選択を受け付けることにより、抽出されたレコードに応じて表示されるレコードを特定するフィルタ条件情報に限定されることが無いので、百分率で表示される統計量を算出する場合に、別途分母となる集計値を算出して表示することができ、フィルタリング処理を実行するだけで所望の百分率を算出することが可能となる。   In the second invention, the sixth invention, and the tenth invention, the filter condition information in which the extracted record and the record to be displayed are linked and the filter in which the extracted record and the record to be displayed are independent By accepting the selection of the combination with the condition information, it is not limited to the filter condition information that identifies the records displayed according to the extracted records, so when calculating the statistics displayed in percentage In addition, an aggregate value as a denominator can be calculated and displayed separately, and a desired percentage can be calculated simply by executing a filtering process.

第3発明、第7発明及び第11発明では、算出した統計量のデータ列である統計量列を追加することにより、例えば百分率を算出する場合の分母となる集計値もデータベース中に含むことができ、フィルタリング処理を再実行することなく百分率を算出することが可能となる。   In the third invention, the seventh invention, and the eleventh invention, by adding a statistic sequence that is a data sequence of the calculated statistic, for example, a total value that becomes a denominator when calculating a percentage may be included in the database. The percentage can be calculated without re-execution of the filtering process.

第4発明、第8発明及び第12発明では、前記統計量は百分率であり、前記フィルタ条件情報の選択に従って、百分率算出のための分母となる集計値を算出することにより、百分率を算出する場合の分母となる集計値もデータベース中に保持することができ、フィルタリング処理を再実行することなく百分率を算出することが可能となる。   In the fourth, eighth and twelfth inventions, the statistic is a percentage, and the percentage is calculated by calculating a total value as a denominator for calculating the percentage according to the selection of the filter condition information. The total value serving as the denominator can be stored in the database, and the percentage can be calculated without re-executing the filtering process.

本発明によれば、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報から適当なフィルタ条件情報の選択を受け付けることにより、複雑な統計量を算出する場合であっても、一度のフィルタリング処理によって必要なデータを絞り込むことができるとともに、抽出されたレコードと表示されるレコードとが必ずしも一致する必要が無いので、百分率で表示される統計量を算出する分母となる集計値を算出しておき、所望の分母に対する百分率を算出することが可能となる。   According to the present invention, a complicated statistic is calculated by accepting selection of appropriate filter condition information from one or a plurality of filter condition information that sets extraction conditions for each database item and extracts data in units of records. Even in this case, the necessary data can be narrowed down by a single filtering process, and the extracted records and the displayed records do not necessarily need to match, so the statistics displayed as a percentage are calculated. It is possible to calculate a total value as a denominator and calculate a percentage with respect to a desired denominator.

以下、本発明の実施の形態に係るデータベース生成装置について、図面に基づいて具体的に説明する。以下の実施の形態は、特許請求の範囲に記載された発明を限定するものではなく、実施の形態の中で説明されている特徴的事項の組み合わせの全てが解決手段の必須事項であるとは限らないことは言うまでもない。   Hereinafter, a database generation device according to an embodiment of the present invention will be specifically described with reference to the drawings. The following embodiments do not limit the invention described in the claims, and all combinations of characteristic items described in the embodiments are essential to the solution. It goes without saying that it is not limited.

また、本発明は多くの異なる態様にて実施することが可能であり、実施の形態の記載内容に限定して解釈されるべきものではない。実施の形態を通じて同じ要素には同一の符号を付している。   The present invention can be implemented in many different modes and should not be construed as being limited to the description of the embodiment. The same symbols are attached to the same elements throughout the embodiments.

以下の実施の形態では、コンピュータシステムにコンピュータプログラムを導入したデータベース生成装置について説明するが、当業者であれば明らかな通り、本発明はその一部をコンピュータで実行することが可能なコンピュータプログラムとして実施することができる。したがって、本発明は、データベース生成装置というハードウェアとしての実施の形態、ソフトウェアとしての実施の形態、又はソフトウェアとハードウェアとの組み合わせの実施の形態をとることができる。コンピュータプログラムは、ハードディスク、DVD、CD、光記憶装置、磁気記憶装置等の任意のコンピュータで読み取ることが可能な記録媒体に記録することができる。   In the following embodiment, a database generation apparatus in which a computer program is introduced into a computer system will be described. However, as will be apparent to those skilled in the art, the present invention is a computer program that can be partially executed by a computer. Can be implemented. Therefore, the present invention can take an embodiment of hardware as a database generation device, an embodiment of software, or an embodiment of a combination of software and hardware. The computer program can be recorded on any computer-readable recording medium such as a hard disk, DVD, CD, optical storage device, magnetic storage device or the like.

図1は、本発明の実施の形態に係るデータベース生成装置の構成例を示すブロック図である。本発明の実施の形態に係るデータベース生成装置1は、少なくともCPU(中央演算装置)11、メモリ12、記憶装置13、I/Oインタフェース14、ビデオインタフェース15、可搬型ディスクドライブ16、通信インタフェース17及び上述したハードウェアを接続する内部バス18で構成されている。   FIG. 1 is a block diagram illustrating a configuration example of a database generation device according to an embodiment of the present invention. The database generation device 1 according to the embodiment of the present invention includes at least a CPU (Central Processing Unit) 11, a memory 12, a storage device 13, an I / O interface 14, a video interface 15, a portable disk drive 16, a communication interface 17, and The internal bus 18 connects the hardware described above.

CPU11は、内部バス18を介してデータベース生成装置1の上述したようなハードウェア各部と接続されており、上述したハードウェア各部の動作を制御するとともに、記憶装置13に記憶されているコンピュータプログラム100に従って、種々のソフトウェア的機能を実行する。メモリ12は、SRAM、SDRAM等の揮発性メモリで構成され、コンピュータプログラム100の実行時にロードモジュールが展開され、コンピュータプログラム100の実行時に発生する一時的なデータ等を記憶する。   The CPU 11 is connected to the above-described hardware units of the database generation device 1 via the internal bus 18, controls the operation of the above-described hardware units, and stores the computer program 100 stored in the storage device 13. Various software functions are executed according to the above. The memory 12 is composed of a volatile memory such as SRAM or SDRAM, and a load module is expanded when the computer program 100 is executed, and stores temporary data generated when the computer program 100 is executed.

記憶装置13は、内蔵される固定型記憶装置(ハードディスク)、SRAM等の揮発性メモリ、ROM等の不揮発性メモリ等で構成されている。記憶装置13に記憶されているコンピュータプログラム100は、プログラム及びデータ等の情報を記録したDVD、CD−ROM等の可搬型記録媒体90から、可搬型ディスクドライブ16によりダウンロードされ、実行時には記憶装置13からメモリ12へ展開して実行される。もちろん、通信インタフェース17を介してネットワーク2に接続されている外部のコンピュータからダウンロードされたコンピュータプログラムであっても良い。   The storage device 13 includes a built-in fixed storage device (hard disk), a volatile memory such as SRAM, and a nonvolatile memory such as ROM. The computer program 100 stored in the storage device 13 is downloaded by a portable disk drive 16 from a portable recording medium 90 such as a DVD or CD-ROM in which information such as programs and data is recorded. To the memory 12 and executed. Of course, a computer program downloaded from an external computer connected to the network 2 via the communication interface 17 may be used.

また記憶装置13は、電子文書ファイル記憶部131、フィルタ条件情報記憶部132、及びデータベース記憶部133を備えている。電子文書ファイル記憶部131には、表データを含み、新たなデータベースを生成するための基礎となる電子文書ファイルを記憶する。   The storage device 13 includes an electronic document file storage unit 131, a filter condition information storage unit 132, and a database storage unit 133. The electronic document file storage unit 131 stores an electronic document file that includes table data and serves as a basis for generating a new database.

フィルタ条件情報記憶部132には、取得した一又は複数の電子文書ファイルに対してフィルタリング処理を実行するためのフィルタ条件を示す一又は複数のフィルタ条件情報を記憶する。記憶するフィルタ条件情報は、フィルタ条件を識別する識別情報、例えばフィルタ条件名と対応付けて記憶されており、レコード単位で一又は複数のフィルタ条件情報を適用することができる。   The filter condition information storage unit 132 stores one or a plurality of filter condition information indicating a filter condition for performing a filtering process on the acquired one or more electronic document files. The filter condition information to be stored is stored in association with identification information for identifying the filter condition, for example, a filter condition name, and one or a plurality of filter condition information can be applied in units of records.

データベース記憶部133には、複数の電子文書ファイルに含まれる表データをマージして新たに生成されたデータベースを記憶する。   The database storage unit 133 stores a database newly generated by merging table data included in a plurality of electronic document files.

通信インタフェース17は内部バス18に接続されており、インターネット、LAN、WAN等の外部のネットワーク2に接続されることにより、外部のコンピュータ等とデータ送受信を行うことが可能となっている。電子文書ファイル記憶部131は、データベース生成装置1の記憶装置13に備えることに限定されるものではなく、外部のコンピュータの記憶装置に記憶されることによりネットワーク2上に点在していても良い。   The communication interface 17 is connected to an internal bus 18 and can transmit and receive data to and from an external computer or the like by connecting to an external network 2 such as the Internet, LAN, or WAN. The electronic document file storage unit 131 is not limited to be provided in the storage device 13 of the database generation device 1 and may be scattered on the network 2 by being stored in a storage device of an external computer. .

I/Oインタフェース14は、キーボード21、マウス22等のデータ入力媒体と接続され、データの入力を受け付ける。また、ビデオインタフェース15は、CRTモニタ、LCD等の表示装置23と接続され、所定の画像を表示する。   The I / O interface 14 is connected to a data input medium such as a keyboard 21 and a mouse 22 and receives data input. The video interface 15 is connected to a display device 23 such as a CRT monitor or LCD, and displays a predetermined image.

図2は、本発明の実施の形態に係るデータベース生成装置1の機能ブロック図である。電子文書ファイル取得部201は、一又は複数の表データを含む電子文書ファイルを取得する。電子文書ファイルは、記憶装置13の電子文書ファイル記憶部131に記憶されている電子文書ファイルを読み出しても良いし、ネットワーク2を介して外部のコンピュータから読み出しても良い。また、キーボード21、マウス22等の入力装置を介して入力を受け付けても良い。なお、電子文書ファイルを記憶装置13の電子文書ファイル記憶部131に記憶する場合、電子文書ファイルをそのままのファイル形式で記憶しても良いし、事前に一又は複数の電子文書ファイルの表データからデータを抽出してデータベースを生成し、生成したデータベースからデータを表データとして読み出すことができるように構成しておくことで、一又は複数の電子文書ファイルの表データを実質的に読み出すことができるようにしても良い。   FIG. 2 is a functional block diagram of the database generation device 1 according to the embodiment of the present invention. The electronic document file acquisition unit 201 acquires an electronic document file including one or more table data. The electronic document file may be read from the electronic document file stored in the electronic document file storage unit 131 of the storage device 13 or may be read from an external computer via the network 2. Further, input may be received via an input device such as a keyboard 21 and a mouse 22. When the electronic document file is stored in the electronic document file storage unit 131 of the storage device 13, the electronic document file may be stored in the file format as it is, or from the table data of one or a plurality of electronic document files in advance. By creating a database by extracting the data and reading the data from the generated database as table data, the table data of one or more electronic document files can be substantially read out. You may do it.

フィルタ条件情報選択受付部202は、記憶装置13のフィルタ条件情報記憶部132に記憶してある、フィルタリング処理を実行するためのフィルタ条件を示す一又は複数のフィルタ条件情報から、フィルタリング処理の実行時に適用するフィルタ条件情報の選択を受け付ける。フィルタ条件情報とは、表データを絞り込むためのフィルタリング処理の実行時に適用する条件に関する情報を意味しており、抽出されたレコードと表示されるレコードとが連動しているフィルタ条件情報と、抽出されたレコードと表示されるレコードとがそれぞれ独立しているフィルタ条件情報との両方を含む広い概念である。フィルタ条件情報の選択は、例えばマウス22によるクリック操作、キーボード21によるにキーイン操作等によって受け付ける。   The filter condition information selection accepting unit 202 executes the filtering process from one or a plurality of filter condition information indicating the filter condition for executing the filtering process stored in the filter condition information storage unit 132 of the storage device 13. Accept selection of filter condition information to apply. Filter condition information means information related to the conditions to be applied when executing the filtering process to narrow down the table data, and the filter condition information in which the extracted record and the record to be displayed are linked and extracted. This is a broad concept including both the filter condition information in which the recorded record and the displayed record are independent of each other. The selection of the filter condition information is accepted by, for example, a click operation with the mouse 22 or a key-in operation with the keyboard 21.

フィルタリング実行部203は、選択を受け付けた一又は複数のフィルタ条件情報を読み出し、フィルタリング処理を実行する。統計量算出部204は、フィルタリング処理の実行後のデータに基づいて、総計、平均、標準偏差等の統計量を算出する。   The filtering execution unit 203 reads one or more pieces of filter condition information that has received the selection, and executes a filtering process. The statistic calculation unit 204 calculates a statistic such as a total, an average, and a standard deviation based on the data after execution of the filtering process.

データベース生成部205は、算出した統計量を含むフィルタリング処理の実行後のデータを集約してデータベースを生成する。また、統計量列追加部206は、データベース生成部205でのデータベース生成時に、算出した統計量を示す統計量列をデータベースに追加する。統計量列を追加することで、例えば総計を示す総計列を含むデータベースとしておくことで、その他の百分率を含む統計量を容易に算出することができる。   The database generation unit 205 generates a database by aggregating data after execution of the filtering process including the calculated statistics. Further, the statistic column adding unit 206 adds a statistic column indicating the calculated statistic to the database when the database generating unit 205 generates the database. By adding a statistic column, for example, by creating a database including a total column indicating the total, a statistic including other percentages can be easily calculated.

図3は、本発明の実施の形態に係るデータベース生成装置1のCPU11のデータベース生成処理の手順を示すフローチャートである。図3において、データベース生成装置1のCPU11は、一又は複数の表データを含む電子文書ファイルを取得する(ステップS301)。電子文書ファイルは、記憶装置13の電子文書ファイル記憶部131に記憶されている電子文書ファイルを読み出しても良いし、ネットワーク2を介して外部のコンピュータから読み出しても良い。また、キーボード21、マウス22等の入力装置を介して入力を受け付けても良い。   FIG. 3 is a flowchart showing a database generation process procedure of the CPU 11 of the database generation apparatus 1 according to the embodiment of the present invention. In FIG. 3, the CPU 11 of the database generation apparatus 1 acquires an electronic document file including one or more table data (step S301). The electronic document file may be read from the electronic document file stored in the electronic document file storage unit 131 of the storage device 13 or may be read from an external computer via the network 2. Further, input may be received via an input device such as a keyboard 21 and a mouse 22.

CPU11は、記憶装置13のフィルタ条件情報記憶部132に記憶してある、フィルタリング処理を実行するためのフィルタ条件を示す一又は複数のフィルタ条件情報から、フィルタリング処理の実行時に適用するフィルタ条件情報の選択を受け付ける(ステップS302)。フィルタ条件情報とは、表データを絞り込むためのフィルタリング処理の実行時に適用する条件に関する情報を意味しており、抽出されたレコードと表示されるレコードとが連動しているフィルタ条件情報と、抽出されたレコードと表示されるレコードとがそれぞれ独立しているフィルタ条件情報との両方を含む広い概念である。フィルタ条件情報の選択は、例えばマウス22によるクリック操作、キーボード21によるにキーイン操作等によって受け付ける。また、フィルタ条件情報の選択は、電子文書ファイル単位に限定されるものではなく、電子文書ファイルに含まれるシート単位でも良いし、シートに含まれるレコード単位でも良い。   The CPU 11 stores the filter condition information to be applied at the time of executing the filtering process from one or a plurality of filter condition information indicating the filter condition for executing the filtering process stored in the filter condition information storage unit 132 of the storage device 13. The selection is accepted (step S302). Filter condition information means information related to the conditions to be applied when executing the filtering process to narrow down the table data, and the filter condition information in which the extracted record and the record to be displayed are linked and extracted. This is a broad concept including both the filter condition information in which the recorded record and the displayed record are independent of each other. The selection of the filter condition information is accepted by, for example, a click operation with the mouse 22 or a key-in operation with the keyboard 21. The selection of the filter condition information is not limited to the electronic document file unit, but may be a sheet unit included in the electronic document file or a record unit included in the sheet.

CPU11は、選択を受け付けた一又は複数のフィルタ条件情報を読み出し、取得した電子文書ファイルに対してフィルタリング処理を実行する(ステップS303)。複数のフィルタ条件情報を一の電子文書ファイルに対して適用することもできるので、所望のフィルタリング結果を得ることができる。また、フィルタリング処理の実行により抽出されたデータを必ずしも表示データとして表示させる必要も無い。したがって、複数のフィルタ条件情報の選択を受け付けておき、それぞれのフィルタ条件情報に基づくフィルタリング結果を独立して求めることができる。   The CPU 11 reads out one or a plurality of filter condition information whose selection has been accepted, and executes a filtering process on the acquired electronic document file (step S303). Since a plurality of filter condition information can be applied to one electronic document file, a desired filtering result can be obtained. Further, it is not always necessary to display the data extracted by executing the filtering process as display data. Therefore, selection of a plurality of filter condition information can be received, and a filtering result based on each filter condition information can be obtained independently.

CPU11は、フィルタリング処理の実行後のデータに基づいて、総計、平均、標準偏差等の統計量を算出する(ステップS304)。複数のフィルタ条件情報に基づくフィルタリング結果に基づいて、所定のフィルタリング結果については総計を、他のフィルタリング結果については他の統計量を、それぞれ算出することができ、含有率等の百分率算出時に用いることができる。   The CPU 11 calculates a statistic such as a total, an average, and a standard deviation based on the data after execution of the filtering process (step S304). Based on the filtering results based on multiple filter condition information, the total can be calculated for the predetermined filtering results, and other statistics can be calculated for the other filtering results, and used when calculating the percentage of content, etc. Can do.

CPU11は、算出した統計量を含めてフィルタリング処理の実行後のデータを集約する(ステップS305)。なお、データの集約時に、算出した統計量を示す統計量列を追加してデータベース化しても良い。例えば総計を示す総計列を含むデータベースとしておくことで、含有率、その他の百分率を含む統計量を算出する場合に、従来のフィルタリング処理では算出の基礎となる総計も順次絞り込まれるのに対して、フィルタ条件情報に基づいて百分率算出の分母となる総計列を複数表データに組み込むことができるので、算出する百分率に応じて所望の分母を選択することができる。   The CPU 11 aggregates the data after the filtering process including the calculated statistics (step S305). Note that, at the time of data aggregation, a statistics column indicating the calculated statistics may be added to form a database. For example, by calculating a database that includes a total column that indicates the total, and calculating the statistics that include the content rate and other percentages, the conventional filtering process also narrows down the total that is the basis of the calculation in turn, Based on the filter condition information, a total column that becomes a denominator of percentage calculation can be incorporated into a plurality of table data, so that a desired denominator can be selected according to the percentage to be calculated.

CPU11は、データベースを更新して新たなデータベースを生成する生成指示を受け付けたか否かを判断する(ステップS306)。CPU11が、生成指示を受け付けていないと判断した場合(ステップS306:NO)、CPU11は、処理をステップS302へ戻して、上述した処理を繰り返す。CPU11が、生成指示を受け付けたと判断した場合(ステップS306:YES)、CPU11は、集約したデータに基づいて新たなデータベースを生成して、データベース記憶部133に記憶する(ステップS307)。   CPU11 judges whether the production | generation instruction | indication which updates a database and produces | generates a new database was received (step S306). When the CPU 11 determines that the generation instruction has not been received (step S306: NO), the CPU 11 returns the process to step S302 and repeats the above-described process. If the CPU 11 determines that a generation instruction has been received (step S306: YES), the CPU 11 generates a new database based on the aggregated data and stores it in the database storage unit 133 (step S307).

以下、表示装置23に表示される画面イメージに基づいて、具体的なデータベースの生成処理の手順について説明する。図4は、本発明の実施の形態に係るデータベースに記憶されている内容を一覧表示するフィルタリング処理操作画面の例示図である。   Hereinafter, based on the screen image displayed on the display device 23, a specific procedure for generating a database will be described. FIG. 4 is a view showing an example of a filtering processing operation screen that displays a list of contents stored in the database according to the embodiment of the present invention.

図4の例では、フィルタリング処理操作画面は、フィルタリング処理の対象となる電子文書ファイルを識別する情報、例えば電子文書ファイル名を表示する電子文書ファイル名表示領域41、電子文書ファイルに複数のシートが含まれる場合に、フィルタリング処理の対象となるシートを識別する情報、例えばシート名を表示するシート名表示領域42、シートの項目情報を表示する項目情報表示領域43、及び項目ごとのデータ列を表示するデータ列表示領域44で構成されている。また、フィルタリング処理における各操作ボタンを集約した操作指定領域40に各種の操作ボタンが配置されている。   In the example of FIG. 4, the filtering processing operation screen includes information for identifying an electronic document file to be filtered, for example, an electronic document file name display area 41 for displaying an electronic document file name, and a plurality of sheets in the electronic document file. When included, information for identifying a sheet to be subjected to filtering processing, for example, a sheet name display area 42 for displaying a sheet name, an item information display area 43 for displaying sheet item information, and a data string for each item are displayed. The data string display area 44 is configured. In addition, various operation buttons are arranged in the operation designation area 40 in which the operation buttons in the filtering process are collected.

「フィルタ条件設定」ボタン45がマウス22等により選択された場合、ポップアップウインドウ等でフィルタ条件情報を設定することが可能なフィルタ条件設定画面が表示される。図5は、本発明の実施の形態に係るフィルタ条件設定画面の例示図である。   When the “filter condition setting” button 45 is selected with the mouse 22 or the like, a filter condition setting screen in which filter condition information can be set in a pop-up window or the like is displayed. FIG. 5 is a view showing an example of a filter condition setting screen according to the embodiment of the present invention.

図5に示すフィルタ条件設定画面は、項目部分が階層状に構成されている場合に、絞り込むサブ階層を設定する画面の一例である。フィルタ対象項目設定領域51は、フィルタリング処理の対象となるデータベース項目名の入力を受け付ける。データベース項目名の入力は、マウス22によるコピーアンドペースト操作、キーボード21によるキーイン操作等により受け付ける。   The filter condition setting screen shown in FIG. 5 is an example of a screen for setting a sub-hierarchy to be narrowed down when the item portion is configured in a hierarchy. The filter target item setting area 51 receives an input of a database item name that is a target of filtering processing. The input of the database item name is accepted by a copy and paste operation with the mouse 22, a key-in operation with the keyboard 21, or the like.

絞込み対象項目設定領域52はチェックボックスとなっており、絞り込むサブ項目名をチェックする。表示されるサブ項目名は、フィルタ対象項目設定領域51に入力されたデータベース項目名に従って変動する。チェックボックスへのチェック入力は、マウス22によるクリック操作で受け付ける。   The narrowing target item setting area 52 is a check box for checking the sub item name to be narrowed down. The displayed sub item name varies according to the database item name input in the filtering target item setting area 51. A check input to the check box is accepted by a click operation with the mouse 22.

「全クリア」ボタン53がマウス22等により選択された場合、絞込み対象項目設定領域52のチェックボックスがすべてクリアされる。「キャンセル」ボタン55がマウス22等により選択された場合、フィルタリング処理操作画面へ戻る。「OK」ボタン54がマウス22等により選択された場合、フィルタ条件保存画面に切り替わる。図6は、本発明の実施の形態に係るフィルタ条件保存画面の例示図である。   When the “clear all” button 53 is selected by the mouse 22 or the like, all the check boxes in the narrowing target item setting area 52 are cleared. When the “Cancel” button 55 is selected with the mouse 22 or the like, the screen returns to the filtering processing operation screen. When the “OK” button 54 is selected by the mouse 22 or the like, the screen is switched to the filter condition saving screen. FIG. 6 is a view showing an example of a filter condition saving screen according to the embodiment of the present invention.

図6に示すフィルタ条件保存画面は、図4に示すフィルタリング処理操作画面にて「フィルタ条件保存」ボタン46がマウス22等により選択された場合もポップアップウインドウ等で表示される。フィルタ条件入力領域61は、フィルタ条件として識別するためのフィルタ条件名の入力を受け付ける。   The filter condition saving screen shown in FIG. 6 is displayed in a pop-up window or the like even when the “filter condition saving” button 46 is selected by the mouse 22 or the like on the filtering processing operation screen shown in FIG. The filter condition input area 61 receives an input of a filter condition name for identifying as a filter condition.

「キャンセル」ボタン63がマウス22等により選択された場合、入力されたフィルタ条件名はキャンセルされ、フィルタリング処理操作画面へ戻る。「OK」ボタン62がマウス22等により選択された場合、入力されたフィルタ条件名がフィルタリング処理を実行するためのフィルタ条件情報に対応付けてフィルタ条件情報記憶部132に記憶され、フィルタリング処理操作画面へ戻る。   When the “Cancel” button 63 is selected with the mouse 22 or the like, the input filter condition name is canceled and the screen returns to the filtering processing operation screen. When the “OK” button 62 is selected with the mouse 22 or the like, the input filter condition name is stored in the filter condition information storage unit 132 in association with the filter condition information for executing the filtering process, and the filtering process operation screen is displayed. Return to.

図4に戻って、「フィルタ条件選択」ボタン47がマウス22等により選択された場合、適用するフィルタ条件情報を選択するフィルタ条件選択画面がポップアップウインドウ等で表示される。図7は、本発明の実施の形態に係るフィルタ条件選択画面の例示図である。   Returning to FIG. 4, when the “filter condition selection” button 47 is selected by the mouse 22 or the like, a filter condition selection screen for selecting filter condition information to be applied is displayed in a pop-up window or the like. FIG. 7 is an exemplary view of a filter condition selection screen according to the embodiment of the present invention.

図7に示すフィルタ条件選択画面は、フィルタ条件情報記憶部132に記憶されているフィルタ条件情報から一のフィルタ条件情報の選択を受け付ける。図7の例では、フィルタ条件指定領域71はプルダウンメニューであり、選択対象となるフィルタ条件情報の選択をマウス22等により受け付ける。   The filter condition selection screen shown in FIG. 7 accepts selection of one filter condition information from the filter condition information stored in the filter condition information storage unit 132. In the example of FIG. 7, the filter condition designation area 71 is a pull-down menu, and the selection of filter condition information to be selected is accepted by the mouse 22 or the like.

「キャンセル」ボタン73がマウス22等により選択された場合、選択を受け付けたフィルタ条件情報はキャンセルされ、フィルタリング処理操作画面へ戻る。「OK」ボタン72がマウス22等により選択された場合、選択を受け付けたフィルタ条件情報が現在フィルタリング処理操作画面にて内容が表示されているデータベースに対して適用される。   When the “Cancel” button 73 is selected with the mouse 22 or the like, the filter condition information accepted for selection is canceled and the screen returns to the filtering processing operation screen. When the “OK” button 72 is selected with the mouse 22 or the like, the filter condition information for which the selection has been accepted is applied to the database whose contents are currently displayed on the filtering processing operation screen.

図8は、本発明の実施の形態に係る集計表示画面の例示図である。図8の例では、「集計表示」ボタン48がマウス22等により選択された場合、集計表示領域81が追加表示される。集計表示領域81には、各データベース項目の合計を算出する集計項目が追加されている。   FIG. 8 is a view showing an example of a total display screen according to the embodiment of the present invention. In the example of FIG. 8, when the “total display” button 48 is selected with the mouse 22 or the like, a total display area 81 is additionally displayed. In the total display area 81, total items for calculating the total of each database item are added.

集計項目としては、合計を算出する項目に限定されるものではない。「集計項目の追加」ボタン82がマウス22等により選択された場合、追加する集計項目を設定する集計項目設定画面が表示される。図9は、本発明の実施の形態に係る集計項目設定画面の例示図である。   The total item is not limited to the item for calculating the total. When the “add total item” button 82 is selected with the mouse 22 or the like, a total item setting screen for setting the total item to be added is displayed. FIG. 9 is a view showing an example of a total item setting screen according to the embodiment of the present invention.

図9において、集計項目名表示領域91は、追加する集計項目名の入力を受け付ける。フィルタ条件指定領域92はプルダウンメニューであり、適用するフィルタ条件名の選択をマウス22等により受け付ける。   In FIG. 9, the total item name display area 91 accepts input of the total item name to be added. The filter condition designation area 92 is a pull-down menu, and accepts selection of a filter condition name to be applied by the mouse 22 or the like.

対象項目指定領域93はプルダウンメニューであり、集計する対象となるデータベース項目の選択をマウス22等により受け付ける。集計単位設定領域94はプルダウンメニューであり、集計する単位、例えば複数の電子文書ファイルに含まれるデータ全体、一の電子文書ファイルに含まれるブック(複数シート)単位、シート単位等の選択を、マウス22等により受け付ける。集計内容設定領域95はプルダウンメニューであり、集計する内容、例えば平均を求める、最小値を求める、最大値を求める、標準偏差を求める等の選択を、マウス22等により受け付ける。また、「キャンセル」ボタン97がマウス22等により選択された場合、受け付けた選択がキャンセルされる。「OK」ボタン96がマウス22等により選択された場合、集計表示画面に切り替わる。   The target item designation area 93 is a pull-down menu, and accepts selection of a database item to be aggregated with the mouse 22 or the like. A totaling unit setting area 94 is a pull-down menu, and a mouse is used to select a unit to be totaled, for example, whole data included in a plurality of electronic document files, a book (multiple sheets) unit included in one electronic document file, a sheet unit, and the like. 22 or the like. The tabulation content setting area 95 is a pull-down menu, and accepts selections such as tabulation content, for example, obtaining an average, obtaining a minimum value, obtaining a maximum value, and obtaining a standard deviation, with the mouse 22 or the like. When the “cancel” button 97 is selected with the mouse 22 or the like, the accepted selection is canceled. When the “OK” button 96 is selected by the mouse 22 or the like, the screen is switched to the total display screen.

図10は、部品の成分含有量を求める場合のデータベースの内容の例示図である。図10の例では、データベース項目として「製品名」、「部品メーカ」、「部品名」、「部品質量(g)」、「含有特定物質」、「含有率」が設定されているとともに、集計項目として「集計1」、「集計2」、計算項目として「計算1」が用意されている。   FIG. 10 is a view showing an example of the contents of a database when the component content of a part is obtained. In the example of FIG. 10, “Product name”, “Part manufacturer”, “Part name”, “Part mass (g)”, “Content specific substance”, and “Content rate” are set as the database items, and totaling is performed. “Total 1” and “Total 2” are prepared as items, and “Calculation 1” is prepared as a calculation item.

「集計1」は、フィルタリング処理の実行時のフィルタ条件情報に連動している集計項目であり、部品質量×含有率の製品ごとの合計を集計している。「集計2」は、フィルタリング処理の実行時のフィルタ条件情報とは連動せず独立している集計項目であり、部品質量の製品ごとの合計を集計している。「計算1」は、集計1/集計2を百分率で表している。   “Total 1” is a total item linked to the filter condition information at the time of executing the filtering process, and totals each product of the part mass × content rate. “Total 2” is an independent total item that is not linked to the filter condition information at the time of executing the filtering process, and totals the parts mass for each product. “Calculation 1” represents total 1 / total 2 as a percentage.

例えばフィルタ条件情報が、「含有特定物質」として「Cu」に絞り込む情報であった場合、「Cu」が含まれる製品名に絞り込まれる。図11は、「Cu」に絞り込まれた場合のデータベースの内容の例示図である。   For example, if the filter condition information is information that narrows down to “Cu” as “included specific substance”, it is narrowed down to product names that include “Cu”. FIG. 11 is an exemplary diagram of the contents of the database when narrowed down to “Cu”.

従来のフィルタリング処理を実行した場合、「Cu」を含む製品に絞り込むことは同様にできるが、「集計2」の値が変動してしまう。すなわち、フィルタリング処理の実行時のフィルタ条件情報と連動していることから、絞り込まれた製品に対応するデータのみを用いて部品質量の製品ごとの合計を集計する。したがって、製品ごとの「Cu」含有率を算出する場合には、分母が製品全体の部品質量ではないことから正しい値を求めることができない。   When the conventional filtering process is executed, it is possible to narrow down to products including “Cu” in the same manner, but the value of “total 2” fluctuates. That is, since it is linked with the filter condition information at the time of executing the filtering process, the total of the parts mass for each product is totaled using only the data corresponding to the narrowed products. Therefore, when calculating the “Cu” content rate for each product, a correct value cannot be obtained because the denominator is not the part mass of the entire product.

それに対して本発明の実施の形態では、「集計2」がフィルタリング処理の実行時のフィルタ条件情報とは連動せず独立していることから、「Cu」を含む製品に絞り込んだ場合であっても製品全体の部品質量である「集計2」の値は変動していない。したがって、製品ごとの「Cu」含有率を正しく算出することができる。   On the other hand, in the embodiment of the present invention, “Total 2” is independent of the filter condition information at the time of executing the filtering process and is independent. However, the value of “Total 2”, which is the mass of parts of the entire product, has not changed. Therefore, the “Cu” content rate for each product can be calculated correctly.

同様に、フィルタ条件情報が、「含有特定物質」として「Ag」に絞り込む情報であった場合、「Ag」が含まれる製品名に絞り込まれる。図12は、「Ag」に絞り込まれた場合のデータベースの内容の例示図である。   Similarly, if the filter condition information is information that narrows down to “Ag” as “included specific substance”, the product name including “Ag” is narrowed down. FIG. 12 is an exemplary diagram of the contents of the database when narrowed down to “Ag”.

従来のフィルタリング処理を実行した場合、「Ag」を含む製品に絞り込むことは同様にできるが、「集計2」の値が変動してしまう。すなわち、フィルタリング処理の実行時のフィルタ条件情報と連動していることから、絞り込まれた製品に対応するデータのみを用いて部品質量の製品ごとの合計を集計する。したがって、製品ごとの「Ag」含有率を算出する場合には、分母が製品全体の部品質量ではないことから正しい値を求めることができない。   When the conventional filtering process is executed, it is possible to narrow down to products including “Ag” in the same manner, but the value of “total 2” fluctuates. That is, since it is linked with the filter condition information at the time of executing the filtering process, the total of the parts mass for each product is totaled using only the data corresponding to the narrowed products. Therefore, when calculating the “Ag” content rate for each product, a correct value cannot be obtained because the denominator is not the part mass of the entire product.

それに対して本発明の実施の形態では、「集計2」がフィルタリング処理の実行時のフィルタ条件情報とは連動せず独立していることから、「Ag」を含む製品に絞り込んだ場合であっても製品全体の部品質量である「集計2」の値が変動していないことがわかる。したがって、製品ごとの「Ag」含有率を正しく算出することができる。   On the other hand, in the embodiment of the present invention, since “Total 2” is independent of the filter condition information at the time of executing the filtering process, it is independent of the product including “Ag”. It can also be seen that the value of “Total 2”, which is the part mass of the entire product, has not changed. Therefore, the “Ag” content rate for each product can be calculated correctly.

以上のように本実施の形態によれば、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報から適当なフィルタ条件情報の選択を受け付けることにより、複雑な統計量を算出する場合であっても、一度のフィルタリング処理によって必要なデータを絞り込むことができるとともに、抽出されたレコードと表示されるレコードとが必ずしも一致する必要が無いので、百分率で表示される統計量を算出する分母となる集計値を算出しておき、所望の分母に対する百分率を算出して表示することが可能となる。   As described above, according to the present embodiment, by selecting selection of appropriate filter condition information from one or a plurality of filter condition information that sets extraction conditions for each database item and extracts data in record units, Even when calculating statistical statistics, the necessary data can be narrowed down by a single filtering process, and the extracted records do not necessarily match the displayed records, so they are displayed as a percentage. It is possible to calculate and display a percentage with respect to a desired denominator by calculating a total value that serves as a denominator for calculating the statistic.

なお、本発明は上記実施例に限定されるものではなく、本発明の趣旨の範囲内であれば多種の変更、改良等が可能である。例えば、画面イメージを介した操作についてはマウス22等を用いる操作に限定されるものではなく、例えばタッチパネル等を用いた指による操作であっても良い。また、画面の構成、配置についても同一の機能を担保することができれば特に限定されるものではない。   The present invention is not limited to the above-described embodiments, and various changes and improvements can be made within the scope of the present invention. For example, the operation via the screen image is not limited to the operation using the mouse 22 or the like, and may be an operation with a finger using a touch panel or the like, for example. Further, the screen configuration and arrangement are not particularly limited as long as the same function can be secured.

本発明の実施の形態に係るデータベース生成装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the database production | generation apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係るデータベース生成装置の機能ブロック図である。It is a functional block diagram of the database production | generation apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係るデータベース生成装置のCPUのデータベース生成処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the database production | generation process of CPU of the database production | generation apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係るデータベースに記憶されている内容を一覧表示するフィルタリング処理操作画面の例示図である。It is an illustration figure of the filtering process operation screen which displays the list memorize | stored in the database which concerns on embodiment of this invention. 本発明の実施の形態に係るフィルタ条件設定画面の例示図である。It is an illustration figure of the filter condition setting screen which concerns on embodiment of this invention. 本発明の実施の形態に係るフィルタ条件保存画面の例示図である。It is an illustration figure of the filter condition preservation | save screen which concerns on embodiment of this invention. 本発明の実施の形態に係るフィルタ条件選択画面の例示図である。It is an illustration figure of the filter condition selection screen which concerns on embodiment of this invention. 本発明の実施の形態に係る集計表示画面の例示図である。It is an illustration figure of the total display screen which concerns on embodiment of this invention. 本発明の実施の形態に係る集計項目設定画面の例示図である。It is an illustration figure of the total item setting screen which concerns on embodiment of this invention. 部品の成分含有量を求める場合のデータベースの内容の例示図である。It is an illustration figure of the content of the database in the case of calculating | requiring the component content of components. 「Cu」に絞り込まれた場合のデータベースの内容の例示図である。It is an illustration figure of the content of the database at the time of narrowing down to "Cu". 「Ag」に絞り込まれた場合のデータベースの内容の例示図である。It is an illustration figure of the content of the database at the time of narrowing down to "Ag".

符号の説明Explanation of symbols

1 データベース生成装置
2 ネットワーク
11 CPU
12 メモリ
13 記憶装置
14 I/Oインタフェース
15 ビデオインタフェース
16 可搬型ディスクドライブ
17 通信インタフェース
18 内部バス
23 表示装置
90 可搬型記録媒体
100 コンピュータプログラム
131 電子文書ファイル記憶部
132 フィルタ条件情報記憶部
133 データベース記憶部
1 Database generator 2 Network 11 CPU
12 memory 13 storage device 14 I / O interface 15 video interface 16 portable disk drive 17 communication interface 18 internal bus 23 display device 90 portable recording medium 100 computer program 131 electronic document file storage unit 132 filter condition information storage unit 133 database storage Part

Claims (12)

表データが含まれる一又は複数の電子文書ファイルに対してフィルタリング処理したデータに基づいて新たなデータベースを生成するデータベース生成装置において、
一又は複数の前記電子文書ファイルを取得する電子文書ファイル取得手段と、
取得した一又は複数の電子文書ファイルに対してフィルタリング処理を実行するためのフィルタ条件として、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報を記憶するフィルタ条件情報記憶手段と、
フィルタリング処理の実行時に適用する一又は複数の前記フィルタ条件情報の選択を受け付けるフィルタ条件情報選択受付手段と、
選択を受け付けた一又は複数のフィルタ条件情報を読み出し、フィルタリング処理を実行するフィルタリング実行手段と、
フィルタリング処理の実行後のデータに基づいて統計量を算出する統計量算出手段と、
算出した統計量を含めてフィルタリング処理の実行後のデータを集約してデータベースを生成するデータベース生成手段と
を備えることを特徴とするデータベース生成装置。
In a database generation device that generates a new database based on data filtered for one or a plurality of electronic document files including table data,
Electronic document file acquisition means for acquiring one or more electronic document files;
Stores one or more filter condition information for extracting data in record units by setting an extraction condition for each database item as a filter condition for executing filtering processing on one or more acquired electronic document files Filter condition information storage means;
Filter condition information selection accepting means for accepting selection of one or a plurality of the filter condition information to be applied when executing the filtering process;
Filtering execution means for reading out one or a plurality of filter condition information for which selection has been accepted and executing filtering processing;
A statistic calculation means for calculating a statistic based on data after execution of the filtering process;
A database generation device comprising: database generation means for generating a database by aggregating data after execution of filtering processing including the calculated statistics.
前記フィルタ条件情報選択受付手段は、抽出されたレコードと表示されるレコードとが連動しているフィルタ条件情報と、抽出されたレコードと表示されるレコードとがそれぞれ独立しているフィルタ条件情報との組み合わせの選択を受け付けるようにしてあることを特徴とする請求項1記載のデータベース生成装置。   The filter condition information selection accepting means includes filter condition information in which the extracted record and the record to be displayed are linked, and filter condition information in which the extracted record and the record to be displayed are independent from each other. 2. The database generation apparatus according to claim 1, wherein selection of a combination is accepted. 算出した統計量のデータ列である統計量列を追加する統計量列追加手段を備えることを特徴とする請求項1又は2記載のデータベース生成装置。   The database generation apparatus according to claim 1, further comprising a statistic sequence adding unit that adds a statistic sequence that is a data sequence of the calculated statistic. 前記統計量は百分率であり、
前記データベース生成手段は、前記フィルタ条件情報の選択に従って、百分率算出のための分母となる集計値を算出するようにしてあることを特徴とする請求項1乃至3のいずれか一項に記載のデータベース生成装置。
The statistic is a percentage;
The database according to any one of claims 1 to 3, wherein the database generation unit calculates a total value as a denominator for calculating a percentage in accordance with the selection of the filter condition information. Generator.
表データが含まれる一又は複数の電子文書ファイル中に対してフィルタリング処理したデータに基づいて新たなデータベースを生成するデータベース生成装置で実行することが可能なデータベース生成方法において、
一又は複数の前記電子文書ファイルを取得し、
取得した一又は複数の電子文書ファイルに対してフィルタリング処理を実行するためのフィルタ条件として、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報を記憶し、
フィルタリング処理の実行時に適用する一又は複数の前記フィルタ条件情報の選択を受け付け、
選択を受け付けた一又は複数のフィルタ条件情報を読み出し、フィルタリング処理を実行し、
フィルタリング処理の実行後のデータに基づいて統計量を算出し、
算出した統計量を含めてフィルタリング処理の実行後のデータを集約してデータベースを生成することを特徴とするデータベース生成方法。
In a database generation method that can be executed by a database generation device that generates a new database based on data filtered in one or a plurality of electronic document files including table data,
Obtaining one or more electronic document files;
Stores one or more filter condition information for extracting data in units of records by setting an extraction condition for each database item as a filter condition for performing filtering processing on one or more acquired electronic document files ,
Receiving selection of one or a plurality of the filter condition information to be applied at the time of executing the filtering process;
Read out one or more filter condition information that has received the selection, execute the filtering process,
Calculate the statistics based on the data after the filtering process,
A database generation method characterized in that a database is generated by aggregating data after execution of filtering processing including calculated statistics.
抽出されたレコードと表示されるレコードとが連動しているフィルタ条件情報と、抽出されたレコードと表示されるレコードとがそれぞれ独立しているフィルタ条件情報との組み合わせの選択を受け付けることを特徴とする請求項5記載のデータベース生成方法。   It is characterized by accepting a selection of a combination of filter condition information in which the extracted record and the displayed record are linked, and filter condition information in which the extracted record and the displayed record are independent from each other. The database generation method according to claim 5. 算出した統計量のデータ列である統計量列を追加することを特徴とする請求項5又は6記載のデータベース生成方法。   7. The database generation method according to claim 5 or 6, wherein a statistics string that is a data string of the calculated statistics is added. 前記統計量は百分率であり、
前記フィルタ条件情報の選択に従って、百分率算出のための分母となる集計値を算出することを特徴とする請求項5乃至7のいずれか一項に記載のデータベース生成方法。
The statistic is a percentage;
8. The database generation method according to claim 5, wherein an aggregate value that is a denominator for percentage calculation is calculated according to the selection of the filter condition information. 9.
表データが含まれる一又は複数の電子文書ファイルに対してフィルタリング処理したデータに基づいて新たなデータベースを生成するデータベース生成装置で実行することが可能なコンピュータプログラムにおいて、
前記データベース生成装置を、
一又は複数の前記電子文書ファイルを取得する電子文書ファイル取得手段、
取得した一又は複数の電子文書ファイルに対してフィルタリング処理を実行するためのフィルタ条件として、データベース項目ごとに抽出条件を設定してレコード単位でデータを抽出する一又は複数のフィルタ条件情報を記憶するフィルタ条件情報記憶手段、
フィルタリング処理の実行時に適用する一又は複数の前記フィルタ条件情報の選択を受け付けるフィルタ条件情報選択受付手段、
選択を受け付けた一又は複数のフィルタ条件情報を読み出し、フィルタリング処理を実行するフィルタリング実行手段、
フィルタリング処理の実行後のデータに基づいて統計量を算出する統計量算出手段、及び
算出した統計量を含めてフィルタリング処理の実行後のデータを集約してデータベースを生成するデータベース生成手段
として機能させることを特徴とするコンピュータプログラム。
In a computer program that can be executed by a database generation device that generates a new database based on data subjected to filtering processing on one or a plurality of electronic document files including table data,
The database generation device;
Electronic document file acquisition means for acquiring one or more electronic document files;
Stores one or more filter condition information for extracting data in record units by setting an extraction condition for each database item as a filter condition for executing filtering processing on one or more acquired electronic document files Filter condition information storage means,
Filter condition information selection accepting means for accepting selection of one or a plurality of the filter condition information to be applied when executing the filtering process;
Filtering execution means for reading out one or a plurality of filter condition information accepted for selection and executing filtering processing;
Functions as a statistic calculation unit that calculates a statistic based on data after execution of filtering processing, and a database generation unit that aggregates data after execution of filtering processing including the calculated statistic and generates a database A computer program characterized by the above.
前記フィルタ条件情報選択受付手段を、抽出されたレコードと表示されるレコードとが連動しているフィルタ条件情報と、抽出されたレコードと表示されるレコードとがそれぞれ独立しているフィルタ条件情報との組み合わせの選択を受け付ける手段として機能させることを特徴とする請求項9記載のコンピュータプログラム。   The filter condition information selection accepting means includes: filter condition information in which the extracted record and the displayed record are linked, and filter condition information in which the extracted record and the displayed record are independent from each other. The computer program according to claim 9, wherein the computer program functions as means for receiving selection of a combination. 前記データベース生成装置を、
算出した統計量のデータ列である統計量列を追加する統計量列追加手段として機能させることを特徴とする請求項9又は10記載のコンピュータプログラム。
The database generation device;
The computer program according to claim 9 or 10, wherein the computer program is made to function as a statistic sequence adding means for adding a statistic sequence which is a data sequence of the calculated statistic.
前記統計量は百分率であり、
前記データベース生成手段を、前記フィルタ条件情報の選択に従って、百分率算出のための分母となる集計値を算出する手段として機能させることを特徴とする請求項9乃至11のいずれか一項に記載のコンピュータプログラム。
The statistic is a percentage;
12. The computer according to claim 9, wherein the database generation unit functions as a unit that calculates an aggregate value that serves as a denominator for percentage calculation according to the selection of the filter condition information. program.
JP2008304310A 2008-11-28 2008-11-28 Database generation device, database generation method, and computer program Pending JP2010128892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008304310A JP2010128892A (en) 2008-11-28 2008-11-28 Database generation device, database generation method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008304310A JP2010128892A (en) 2008-11-28 2008-11-28 Database generation device, database generation method, and computer program

Publications (1)

Publication Number Publication Date
JP2010128892A true JP2010128892A (en) 2010-06-10

Family

ID=42329229

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008304310A Pending JP2010128892A (en) 2008-11-28 2008-11-28 Database generation device, database generation method, and computer program

Country Status (1)

Country Link
JP (1) JP2010128892A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012079110A (en) * 2010-10-01 2012-04-19 Shinkichi Himeno Method and device for creating invoice for medical service fee
WO2017183265A1 (en) * 2016-04-20 2017-10-26 株式会社岩崎電機製作所 Database building device, database building method, and database building program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012079110A (en) * 2010-10-01 2012-04-19 Shinkichi Himeno Method and device for creating invoice for medical service fee
WO2017183265A1 (en) * 2016-04-20 2017-10-26 株式会社岩崎電機製作所 Database building device, database building method, and database building program
CN107533505A (en) * 2016-04-20 2018-01-02 株式会社岩崎电机制作所 Database sharing device, database construction method and database sharing program
US10572457B2 (en) 2016-04-20 2020-02-25 Iwasaki Electric Mfg. Co., Ltd. Database construction device, database construction method, and database construction program

Similar Documents

Publication Publication Date Title
JP6282116B2 (en) Associating captured image data with a spreadsheet
JP5703195B2 (en) Differential comparison test system and test method for new and old versions of program
CN110618926A (en) Source code analysis method and source code analysis device
US11030352B2 (en) Clearance check method and clearance check device
JP2010128892A (en) Database generation device, database generation method, and computer program
JP5794568B2 (en) Data editing apparatus and data editing method
JP5045042B2 (en) Business flow editing program, business flow editing apparatus, and business flow editing method
JP2017072957A (en) File edition method, file edition device and file edition program
JP5845961B2 (en) Information processing apparatus and information processing program
JP5064791B2 (en) Form data search device, form data search method and program
JP5334901B2 (en) Checklist automatic generation apparatus, checklist automatic generation method, and checklist automatic generation program
JP2007241642A (en) Analysis method, analysis apparatus, and computer program
JP5299898B2 (en) Database generation apparatus, database generation method, and computer program
JP2010097262A (en) Database creation device, database creation method, and computer program
JP2010128894A (en) Database generation device, method of generating database, and computer program
JP6552162B2 (en) Information processing apparatus, information processing method, and program
JP2005321849A (en) Data analysis support program, method, and device
JP5447082B2 (en) Accounting support apparatus, accounting support program, and accounting support method
JP2007122440A (en) Information analysis apparatus, method of analyzing information, and computer program
US20130060778A1 (en) Device, method, and program for displaying document list
JP2009032024A (en) Order decision program, order decision method, and order decision device
JP2008310672A (en) Operation support system, operation support method, and operation support program
JP5944945B2 (en) In-memory management system and in-memory management program
JP5821528B2 (en) Data check program, data check method, and data check device
JP2009223626A (en) Information processing apparatus and program