JP4481856B2 - Database creation system - Google Patents

Database creation system Download PDF

Info

Publication number
JP4481856B2
JP4481856B2 JP2005090570A JP2005090570A JP4481856B2 JP 4481856 B2 JP4481856 B2 JP 4481856B2 JP 2005090570 A JP2005090570 A JP 2005090570A JP 2005090570 A JP2005090570 A JP 2005090570A JP 4481856 B2 JP4481856 B2 JP 4481856B2
Authority
JP
Japan
Prior art keywords
data
parent
database
column
hierarchy
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
JP2005090570A
Other languages
Japanese (ja)
Other versions
JP2006276931A (en
Inventor
逸生 近藤
Original Assignee
日立建機ビジネスフロンティア株式会社
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 日立建機ビジネスフロンティア株式会社 filed Critical 日立建機ビジネスフロンティア株式会社
Priority to JP2005090570A priority Critical patent/JP4481856B2/en
Publication of JP2006276931A publication Critical patent/JP2006276931A/en
Application granted granted Critical
Publication of JP4481856B2 publication Critical patent/JP4481856B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、データベース作成システムに係り、特に、親子関係を有するデータのデータベースを作成するに好適なデータベース作成システムに関する。   The present invention relates to a database creation system, and more particularly to a database creation system suitable for creating a database of data having a parent-child relationship.

従来、データベースを作成するシステムとして、例えば、特開2003−15920号公報に記載のように、表計算ソフトのシートを用いるものが知られている。このように、一般によく用いられている表計算ソフトのシートを用いることで、専用のユーティティソフトを用いる場合に比べて、一般のオペレータでも、容易にデータベース用のデータの入力を容易にすることができる。   Conventionally, as a system for creating a database, for example, a system using a spreadsheet software sheet as described in Japanese Patent Application Laid-Open No. 2003-15920 is known. In this way, using a spreadsheet software sheet that is commonly used makes it easier for general operators to input data for the database compared to using dedicated utility software. Can do.

特開2003−15920号公報JP 2003-15920 A

しかしながら、特開2003−15920号公報に記載のように、表計算ソフトのシートを用いた場合でも、データ相互間に親子関係のあるデータについては、データ入力が容易でないという問題があった。また、親子関係に加えて、データ間に相互関係(データ相互の組合せが不可とか組合せが必須とかのカテゴライズや、互換性有りやインクルードありなどのルール等)があると、データ入力はさらに複雑化して容易でないという問題があった。   However, as described in Japanese Patent Laid-Open No. 2003-15920, even when a spreadsheet software sheet is used, there is a problem that data input is not easy for data having a parent-child relationship between data. In addition to parent-child relationships, there is a mutual relationship between data (categorization of whether data cannot be combined or a combination is required, rules such as compatibility and inclusion, etc.), and data input becomes more complicated There was a problem that it was not easy.

本発明の目的は、データ相互間に親子関係などがあっても容易にデータベース用のデータ入力が可能なデータベース作成システムを提供することにある。   An object of the present invention is to provide a database creation system capable of easily inputting data for a database even if there is a parent-child relationship between data.

(1)上記目的を達成するために、本発明は、入力されたデータを、データベースに登録できるテーブル構成のデータとして前記データベースに登録するデータベース作成システムであって、前記入力されたデータは、各列には、各行毎にデータが記述された表形式のデータであり、各列同士が親子関係を有する前記表形式のデータに対して、前記表形式のデータの列方向の親子関係を、第1列を第1階層とし、第2列を第1階層よりも下位の第2階層とし、第3列を第2階層よりも下位の第3階層とするように階層レベルの情報を含む第1のヘッダ情報を付加し、この第1のヘッダ情報に基づいて、前記表形式のデータを、前記データベースに登録できるテーブル構成のデータとして前記データベースに登録するものであり、前記テーブル構成のデータは、列方向に番号、名称、階層レベル、親のIDの各項目が記述され、行方向に各データが記述されるものであり、前記番号は連続的に付された番号であり、前記表形式のデータを、前記テーブル構成のデータとする際に、前記表形式のデータの第1階層のデータを前記データの項目に記述するときは、前記階層レベルは1で、前記親のID=0とし、前記表形式のデータの第2階層のデータを前記データの項目に記述するときは、前記階層レベルは2で、前記親のIDを親となるデータの前記番号とし、前記表形式のデータの第3階層のデータを前記データの項目に記述するときは、前記階層レベルが3で、前記親のIDを親となるデータの前記番号とするようにしたものである。
かかる構成により、データ相互間に親子関係などがあっても容易にデータベース用のデータ入力が可能となる。
(1) To achieve the above object, the present invention, the input data, a database creation system to be registered in the database as data in the table configuration can be registered in the database, the input data, each the column is data tabular data is written in each row, for the data of Table format each row to each other have a parent-child relationship, the parent-child relationship in the column direction of the data of said tabulated, the A first including hierarchical level information such that one column is a first hierarchy, a second column is a second hierarchy lower than the first hierarchy, and a third column is a third hierarchy lower than the second hierarchy . of adding header information, based on the first header information, the data of said tabulated, which is registered in the database as data in the table structure that can be registered in said database, said table The generated data describes the items of number, name, hierarchy level, and parent ID in the column direction, and each data in the row direction. The numbers are consecutively assigned numbers. When the table format data is the data of the table configuration, when the data of the first hierarchy of the table format data is described in the data item, the hierarchy level is 1, and the parent level When ID = 0 and second level data of the tabular data is described in the data item, the hierarchical level is 2, the parent ID is the number of the parent data, and the table When the data of the third hierarchy of the format data is described in the data item, the hierarchy level is 3, and the ID of the parent is the number of the parent data .
With this configuration, database data can be easily input even if there is a parent-child relationship between the data.

)上記(1)において、好ましくは、前記各同士が親子関係を有する前記表形式のデータに対して、さらに、データの組合せ関係を示す第2のヘッダ情報を付加し、該第2のヘッダ情報は、前記表形式のデータ第1行目に付加され、各行毎の階層レベルの情報を有し、前記第1のヘッダ情報で指定された第1のデータ群とは異なる第2のデータ群に対して生成され、該第2のデータ群のデータは、前記第2のヘッダ情報に続く列に順次記述されるものであり、前記第1のヘッダ情報で指定され、行方向に記述されたデータと、前記第2のヘッダ情報で指定され、列方向に記述されたデータのマトリックスの交点に、前記データ間の組合せのルールを定義し、前記第1のヘッダ情報と、前記第2のヘッダ情報と、前記マトリックスの交点の組合せの関係のルールに基づいて、前記表形式のデータを、前記データベースに登録できるテーブル構成のデータとして前記データベースに登録するようにしたものである。 In (2) above (1), preferably, with respect to the tabular data each row to each other have a parent-child relationship, further adds a second header information indicating a combination relationship between the data, said The second header information is added to the first row of the tabular data, has a hierarchical level information for each row, and is different from the first data group designated by the first header information. The data of the second data group is sequentially described in a column following the second header information, specified by the first header information, and in the row direction. and written data, the specified in the second header information, the intersection of the matrix of data described in the column direction, define the rules of combination between the data and the first header information, wherein Second header information and the matrix Based on the rules of the intersection combination relationships, the data of the table-format, in which be registered in the database as a data table configuration that can be registered in the database.

)上記()において、好ましくは、前記各データ間の組合せのルールは、前記第1のデータ群のデータと前記第2のデータ群のデータとは互換性があるか否かの互換性ルールや、前記第1のデータ群のデータに対して前記第2のデータ群のデータも含まれるインクルードルールからなるものである。 ( 3 ) In the above ( 2 ), preferably, the rule of the combination between the data is whether or not the data of the first data group and the data of the second data group are compatible. And an include rule that includes the data of the second data group with respect to the data of the first data group .

)上記(1)において、好ましくは、前記データベースに登録されたデータを用いて、親子関係のある情報を表示、若しくは選択するようにしたものである。 ( 4 ) In the above (1), preferably, information having a parent-child relationship is displayed or selected using data registered in the database.

本発明によれば、データ相互間に親子関係などがあっても容易にデータベース用のデータ入力が可能になる。   According to the present invention, it is possible to easily input data for a database even if there is a parent-child relationship between the data.

以下、図1〜図8を用いて、本発明の一実施形態によるデータベース作成システムの構成及び処理動作について説明する。
最初に、図1を用いて、本実施形態によるデータベース作成システムのシステム構成について説明する。
図1は、本発明の一実施形態によるデータベース作成システムの構成を示すシステムブロック図である。
Hereinafter, the configuration and processing operation of a database creation system according to an embodiment of the present invention will be described with reference to FIGS.
First, the system configuration of the database creation system according to the present embodiment will be described with reference to FIG.
FIG. 1 is a system block diagram showing a configuration of a database creation system according to an embodiment of the present invention.

データベース作成システム10の入力データとしては、シート形式データD1がある。このデータD1は、表計算ソフトを用いて作成されたデータであり、表形式のデータであり、例えば、CSV形式で記述されたデータである。シート形式データD1のデータ構成については、図3及び図5を用いて後述する。シート形式データD1は、単一のシートでもよく、また、複数のシートでもよいものである。   The input data of the database creation system 10 includes sheet format data D1. The data D1 is data created by using spreadsheet software, and is tabular data, for example, data described in CSV format. The data structure of the sheet format data D1 will be described later with reference to FIGS. The sheet format data D1 may be a single sheet or a plurality of sheets.

データベース作成システム10は、親子関係シートデータD1オプション間ルール用シートデータD2を入力し、これらのデータに対して、親子関係や相互関係を生成した後、データベース(DB)20に登録するデータ形式に変換し、データベース20に登録する。   The database creation system 10 inputs the parent-child relationship sheet data D1 option rule sheet data D2, generates a parent-child relationship and a mutual relationship for these data, and then sets the data format to be registered in the database (DB) 20. Convert and register in the database 20.

ユーザは、Web端末装置30などを用いて、インターネットなどを経由してデータベース20にアクセスし、データベース20に登録されたデータをWeb端末装置30の表示画面に表示することができる。表示形式としては、例えば、ツリー形式(図1の左下の表示例の左側)や、ドリルダウン形式(図1の左下の表示例の右側)などを選択することができる。その結果、ツリー形式で表示したり、ドリルダウン形式で所定のデータを選択することができる。   The user can access the database 20 via the Internet using the Web terminal device 30 and the like, and can display data registered in the database 20 on the display screen of the Web terminal device 30. As the display format, for example, a tree format (left side of the lower left display example in FIG. 1) or a drill down format (right side of the lower left display example in FIG. 1) can be selected. As a result, it is possible to display in a tree format or select predetermined data in a drill-down format.

次に、図2を用いて、本実施形態によるデータベース作成システムの処理内容について説明する。
図2は、本発明の一実施形態によるデータベース作成システムの処理内容を示すフローチャートである。
Next, processing contents of the database creation system according to the present embodiment will be described with reference to FIG.
FIG. 2 is a flowchart showing the processing contents of the database creation system according to the embodiment of the present invention.

図2を用いて、最初に、データに対する親子関係の生成処理について説明する。この処理では、ステップs50,s60,s70,s80は実行しないため、これらの処理については、相互関係の生成処理時に後述する。   First, a process for generating a parent-child relationship for data will be described with reference to FIG. In this process, steps s50, s60, s70, and s80 are not executed. Therefore, these processes will be described later in the correlation generation process.

最初に、ステップs10において、データベース作成システム10は、シート形式データD1を、例えば、CSVファイルとして読み込む。ここでは、説明の簡単のため、シートは1枚とする。なお、シートが複数枚に亘るときは、ステップs20において、データベース作成システム10は、読み込まれたシート形式データD1を、シート毎に分割する処理を実行する。   First, in step s10, the database creation system 10 reads the sheet format data D1 as, for example, a CSV file. Here, for simplicity of explanation, the number of sheets is one. When there are a plurality of sheets, in step s20, the database creation system 10 executes a process of dividing the read sheet format data D1 for each sheet.

次に、ステップs30において、データベース作成システム10は、読み込まれたシート形式データD1のシートデータに対して、親子関係を生成する。   Next, in step s30, the database creation system 10 generates a parent-child relationship for the sheet data of the read sheet format data D1.

ここで、図3を用いて、データベース作成システム10に読み込まれるシート形式データD1及びそれに対して親子関係が生成されたデータの一例について説明する。
図3は、本発明の一実施形態によるデータベース作成システムのデータ読込処理及び親子関係生成処理によって得られたデータの一例の説明図である。
Here, an example of sheet format data D1 read by the database creation system 10 and data in which a parent-child relationship is generated for the sheet format data D1 will be described with reference to FIG.
FIG. 3 is an explanatory diagram illustrating an example of data obtained by the data reading process and the parent-child relation generation process of the database creation system according to the embodiment of the present invention.

図3に示す表形式のデータにおいて、第1〜4行目は、親子関係生成処理で付加されたデータ(親子関係用ヘッダ情報)である。第5行目以降は、データベース作成システム10によって読み込まれたシート形式データD1のシートデータである。   In the tabular data shown in FIG. 3, the first to fourth lines are data (parent-child relationship header information) added in the parent-child relationship generation processing. The fifth and subsequent lines are sheet data of the sheet format data D1 read by the database creation system 10.

まず、元のデータについて説明すると、ここでは、ノートパソコンの例を示している。第5行目の例では、「ノート型」で、「A4サイズ」に対して、「A4モデル1」というモデルがあることを示している。同様に、第6行目は、「A4モデル2」というモデルがあることを示している。   First, the original data will be described. Here, an example of a notebook computer is shown. The example of the fifth row indicates that there is a model “A4 model 1” for “note type” and “A4 size”. Similarly, the sixth line indicates that there is a model “A4 model 2”.

このような表形式のデータに対して、データベース作成システム10は、第1〜4行目に、親子関係の情報を含む各列の属性を示すヘッダ情報を付加して、このヘッダ情報により親子関係を生成している。   For such tabular data, the database creation system 10 adds header information indicating the attributes of each column including parent-child relationship information to the first to fourth rows, and uses this header information for parent-child relationship. Is generated.

ヘッダ情報は、第1行目の「#table_name」と、第2行目の「#field_name」と、第3行目の「#relation」と、第4行目の「#set_level」から構成され、これらの定義ファイルは、各行の第1列目(1A,2A,3A,4A)に配置する。   The header information is composed of “#table_name” on the first line, “#field_name” on the second line, “#relation” on the third line, and “#set_level” on the fourth line, These definition files are arranged in the first column (1A, 2A, 3A, 4A) of each row.

ヘッダ情報の第1行目の「#table_name」では、第5行目以降のデータによって作成するデータベースのテーブル名を定義する。ここでは、第1行第2列以降各列に「table1」と記載して、「table1」というテーブルを生成することを定義している。   In “#table_name” on the first line of the header information, the table name of the database created by the data on and after the fifth line is defined. Here, “table1” is described in each column after the first row, second column, and it is defined that a table “table1” is generated.

ヘッダ情報の第2行目の「#field_name」では、テーブル内のフィールド名を定義する。ここでは、第2,3,4列に記載されているデータは、名称(name)であることを示し、「ノート型」,「A4サイズ」,「A4モデル1」というデータが名称であることを示している。   In “#field_name” on the second line of the header information, a field name in the table is defined. Here, the data described in the 2nd, 3rd and 4th columns indicates a name (name), and the data “note type”, “A4 size”, and “A4 model 1” are names. Is shown.

ヘッダ情報の第3行目の「#relation」は、左隣の列のデータとの関係を示す属性を示している。すなわち、第3行第2列(3B)は、「root」と記載することにより、第2列は「親」であることを示している。また、第3行第3列,同行第4列は、「child」と記載することにより、左隣の列(第3列は第2列に対して,第4列は第3列に対して)「子」であることを示している。   “#Relation” in the third row of the header information indicates an attribute indicating a relationship with the data in the left adjacent column. That is, the third row and the second column (3B) indicate “root”, thereby indicating that the second column is “parent”. In addition, the third row, the third column, and the fourth column in the same row are described as “child”, so that the left adjacent column (the third column is for the second column and the fourth column is for the third column ) Indicates "child".

ヘッダ情報の第4行目の「#set_level」は、親子関係を示す階層レベルを示している。第2列は、「親」であるので、階層レベルは「1」である。この親に対して、各「子」の階層レベルが示される。すなわち、第3列は、階層レベル「2」であり、「親」の1階層下に並ぶデータであることが示される。また、第4列は、階層レベル「3」であり、「親」の2階層下に並ぶデータであることが示される。   “#Set_level” in the fourth line of the header information indicates a hierarchical level indicating a parent-child relationship. Since the second column is “parent”, the hierarchy level is “1”. For this parent, the hierarchy level of each “child” is shown. In other words, the third column indicates that the data is arranged at a hierarchy level “2” and arranged one hierarchy below the “parent”. Further, the fourth column indicates that the data is arranged at the hierarchy level “3” and arranged two layers below the “parent”.

以上のようにして、ステップs30の親子関係生成処理では、データベース作成システム10によって読み込まれたシート形式データD1(図3の第5行目以降)に対して、図3の第1〜4行目に示した各列の属性を示すヘッダ情報を付加する。   As described above, in the parent-child relationship generation process in step s30, the first to fourth lines in FIG. 3 are applied to the sheet format data D1 (from the fifth line in FIG. 3) read by the database creation system 10. The header information indicating the attribute of each column shown in is added.

次に、図2のステップs60において、データベース作成システム10は、親子関係の付加されたデータの親子関係を確認し、親子関係が確認されると、データベース20に登録するデータに変換し、ステップs90において、データベース20に登録する。   Next, in step s60 of FIG. 2, the database creation system 10 confirms the parent-child relationship of the data to which the parent-child relationship is added, and when the parent-child relationship is confirmed, converts it into data to be registered in the database 20, step s90. In FIG.

ここで、図4を用いて、図3で示した親子関係を付加されたデータの親子関係と、データベース20に登録されるデータ構成について説明する。
図4は、本発明の一実施形態によるデータベース作成システムの親子関係確認処理及び登録処理によって得られたデータの一例の説明図である。なお、図4(A)は親子関係図を示し、図4(B)はデータベースに登録されるテーブル情報を示している。
Here, the parent-child relationship of the data to which the parent-child relationship shown in FIG. 3 is added and the data configuration registered in the database 20 will be described with reference to FIG.
FIG. 4 is an explanatory diagram showing an example of data obtained by the parent-child relationship confirmation processing and registration processing of the database creation system according to the embodiment of the present invention. 4A shows a parent-child relationship diagram, and FIG. 4B shows table information registered in the database.

親子関係確認処理では、データベース作成システム10は、図3に示した親子関係の属性ヘッダをベースにして、図4(A)に示すように、ツリー構造の親子関係図が成立するか否かから親子関係が正常に付与されているか否かを確認する。   In the parent-child relationship confirmation process, the database creation system 10 determines whether or not a tree-structure parent-child relationship diagram is established based on the parent-child relationship attribute header shown in FIG. 3 as shown in FIG. Check whether the parent-child relationship has been granted normally.

親子関係が確認されると、データベース作成システム10は、図3に示すデータを用いて、図4(B)に示すテーブル情報を作成し、データベース20に登録する。図4(B)に示すように、データベース20に登録されるテーブル情報は、「ID」と、「name」と、「level」と、「Parent_id」から構成されている。「ID」は各データを識別するためのユニークな番号等から構成され、例えば、図4(B)に示すように、「1」,「2」,「3」の連続した番号である。「name」は、図3に示された「name」の名称である。各名称は、図3をベースに、例えば、「ノート型」,「A4サイズ」,「A4モデル1」,「A4モデル2」などである。「level」は、図3に示された「#set_level」の階層が示される。例えば、「ノート型」は階層「1」,「A4サイズ」は階層「2」,「A4モデル1」は「階層3」というようになる。「Parent_id」は、親子関係の親の「ID」が記載されている。「A4サイズ」の親は、「ノート型」であるため、「ノート型」の「ID」である「1」が付されている。また、「A4モデル1」の親は、「A4サイズ」であるため、「A4サイズ」の「ID」である「2」が付されている。   When the parent-child relationship is confirmed, the database creation system 10 creates the table information shown in FIG. 4B using the data shown in FIG. As shown in FIG. 4B, the table information registered in the database 20 includes “ID”, “name”, “level”, and “Parent_id”. “ID” is composed of a unique number or the like for identifying each data. For example, as shown in FIG. 4B, “ID” is a consecutive number of “1”, “2”, and “3”. “Name” is the name of “name” shown in FIG. The names are, for example, “note type”, “A4 size”, “A4 model 1”, “A4 model 2” based on FIG. “Level” indicates the hierarchy of “#set_level” shown in FIG. For example, “note type” has a hierarchy “1”, “A4 size” has a hierarchy “2”, and “A4 model 1” has a “hierarchy 3”. “Parent_id” describes the “ID” of the parent of the parent-child relationship. Since the parent of “A4 size” is “note type”, “1” which is “ID” of “note type” is attached. Since the parent of “A4 model 1” is “A4 size”, “2” which is “ID” of “A4 size” is attached.

次に、図2及び図5を用いて、図2のステップs40のオプションカテゴライズ生成処理の内容について説明する。
図5は、本発明の一実施形態によるデータベース作成システムのオプションカテゴライズ生成処理によって得られたデータの一例の説明図である。
Next, the contents of the option categorization generation process in step s40 of FIG. 2 will be described using FIG. 2 and FIG.
FIG. 5 is an explanatory diagram of an example of data obtained by the option categorization generation process of the database creation system according to the embodiment of the present invention.

図2のステップs40では、データベース作成システム10は、データベース作成システム10に読み込まれるシート形式データD1に対して、オプションカテゴライズを施したデータを生成する。オプションカテゴライズとは、データ間の相対関係の一つであり、データ相互間において「組合せ不可」とか、「組合せ必須」とかの、データ間の組合せの可否を示す指標である。   In step s40 of FIG. 2, the database creation system 10 generates data obtained by subjecting the sheet format data D1 read into the database creation system 10 to option categorization. Option categorization is one of the relative relationships between data, and is an index indicating whether or not combinations between data are possible, such as “combination is impossible” or “combination required” between data.

図5に示す表形式のデータにおいて、第8行目以降であって、第2〜4列は、データベース作成システム10によって読み込まれたシート形式データD1の第2番目のシートデータである。この例では、図3に示した第1のシートデータに加えて、図5に示した第2のシートデータが存在する。そして、図2のステップs20のシート毎分割処理では、図3と図5のデータを含むシート形式データD1をそれぞれ図3及び図5の2つのシートに分割する。第1のシートデータに対しては、図3にて説明したように、親子関係が生成される。   In the tabular data shown in FIG. 5, the second and fourth columns after the eighth row are the second sheet data of the sheet format data D <b> 1 read by the database creation system 10. In this example, in addition to the first sheet data shown in FIG. 3, there is the second sheet data shown in FIG. 2, the sheet format data D1 including the data in FIGS. 3 and 5 is divided into two sheets in FIGS. 3 and 5 respectively. For the first sheet data, a parent-child relationship is generated as described with reference to FIG.

一方、図5に示したデータに対しては、親子関係生成処理とオプションカテゴライズ生成処理とが施される。   On the other hand, the data shown in FIG. 5 is subjected to parent-child relationship generation processing and option categorization generation processing.

最初に、データベース作成システム10によって読み込まれたシート形式データD1の第2番目のシートデータの内容について説明する。ここでは、同じくノートパソコンの例を示している。第8行目の例では、「内部ユニット」で、「CPU」に対して、「P3 1.8GHz」というCPUがあることを示している。同様に、第9行目は、「内部ユニット」で、「CPU」に対して、「P3 2.0GHz」というCPUがあることを示している。   First, the content of the second sheet data of the sheet format data D1 read by the database creation system 10 will be described. Here, an example of a notebook computer is also shown. In the example of the eighth row, “internal unit” indicates that there is a CPU of “P3 1.8 GHz” with respect to “CPU”. Similarly, the ninth line indicates that “internal unit” is “P3 2.0 GHz” CPU with respect to “CPU”.

このような表形式のデータに対して、データベース作成システム10は、第3〜7行目に、各列の属性を示す親子関係のヘッダ情報を付加して、このヘッダ情報により親子関係を生成している。   For such tabular data, the database creation system 10 adds the parent-child relationship header information indicating the attribute of each column to the third to seventh rows, and generates the parent-child relationship based on this header information. ing.

ヘッダ情報は、第3行目の「#table_name」と、第4行目の「#field_name」と、第5行目の「#relation」と、第6行目の「#set_level」と、第7行目の「#matrix」とから構成され、これらの定義ファイルは、各行の第1列目に配置する。これらの項目は、図3と同じである。   The header information includes “#table_name” on the third line, “#field_name” on the fourth line, “#relation” on the fifth line, “#set_level” on the sixth line, It is composed of “#matrix” on the line, and these definition files are arranged in the first column of each line. These items are the same as those in FIG.

ヘッダ情報の第3行目の「#table_name」では、第8行目以降のデータによって作成するデータベースのテーブル名を定義する。ここでは、第3行第2,3,4列に「table1」と記載して、「table1」というテーブルを生成することを定義している。   In “#table_name” on the third line of the header information, the table name of the database created by the data on and after the eighth line is defined. Here, “table1” is described in the third row, the second, third, and fourth columns to define that a table “table1” is generated.

ヘッダ情報の第4行目の「#field_name」では、テーブル内のフィールド名を定義する。ここでは、第2,3,4列に記載されているデータは、名称(name)であることを示し、「内部ユニット」,「CPU」,「P3 1.8G」というデータが名称であることを示している。   In “#field_name” on the fourth line of the header information, a field name in the table is defined. Here, the data described in the second, third, and fourth columns indicates a name (name), and the data “internal unit”, “CPU”, and “P3 1.8G” are names. Is shown.

ヘッダ情報の第5行目の「#relation」は、左隣の列のデータとの関係を示す属性を示している。すなわち、第5行第2列(5B)は、「child」と記載することにより、第2列は「子」であることを示している。また、第5行第3列(5C),同行第4列(5D)も、左隣の列「子」であることを示している。   “#Relation” in the fifth row of the header information indicates an attribute indicating a relationship with the data in the left adjacent column. That is, the fifth row and the second column (5B) indicate “child”, thereby indicating that the second column is “child”. Further, the fifth row, third column (5C), and the fourth row (5D) of the same row also indicate that they are “children” on the left side.

ヘッダ情報の第6行目の「#set_level」は、親子関係の階層レベルを示している。図3に示したように、「親」の階層レベルを「1」とした時、この親に対する、各「子」の階層レベルが示される。すなわち、第2列は、階層レベル「4」であり、「親」の3階層下に並ぶデータであることが示される。また、第4列は、階層レベル「5」であり、「親」の4階層下に並ぶデータであることが示される。また、第6列は、階層レベル「6」であり、「親」の5階層下に並ぶデータであることが示される。   “#Set_level” on the sixth line of the header information indicates the hierarchical level of the parent-child relationship. As shown in FIG. 3, when the hierarchy level of “parent” is “1”, the hierarchy level of each “child” for this parent is shown. In other words, the second column indicates that the data is arranged at the hierarchy level “4” and arranged under the “parent” three layers. Further, the fourth column indicates that the data is arranged at the hierarchy level “5”, which is arranged under the four layers of “parent”. Further, the sixth column indicates that the data is arranged at the hierarchy level “6” and arranged under the “parent” five layers.

ヘッダ情報の第7行目の「matrix」は、後述するオプションカテゴライズ用のマトリックスデータがあることを示している。   “Matrix” in the seventh line of the header information indicates that there is matrix data for option categorization described later.

以上のようにして、親子関係生成処理により、第3〜7行の親子関係生成処理用ヘッダ情報により、親子関係が生成される。   As described above, a parent-child relationship is generated by the parent-child relationship generation processing header information in the third to seventh lines by the parent-child relationship generation processing.

さらに、オプションカテゴライズ用生成処理では、まず、第1,2行目が、カテゴライズ生成処理用のヘッダ情報として付加される。   Further, in the option categorization generation process, first and second lines are added as header information for the categorization generation process.

カテゴライズ生成処理用のヘッダ情報は、第1行目の第5列目(1E)の「#table_name」と、同行第6列目(1F)の「#field_name」と、同行第7列目(1G)の「#relation」と、同行第8列目(1H)の「#set_level」と、同行第9列目(1I)の「#matrix」とから構成される。   The header information for categorization generation processing includes “#table_name” in the fifth column (1E) of the first row, “#field_name” in the sixth column (1F) of the first row, and the seventh column (1G of the same row). ) “#Relation”, “#set_level” in the eighth column (1H) of the same row, and “#matrix” in the ninth column (1I) of the same row.

カテゴライズ生成処理用のヘッダ情報の「#table_name」では、第2行目の第5列目のデータによって作成するデータベースのテーブル名を定義する。ここでは、第2行第5列に「table1」と記載して、「table1」というテーブルを生成することを定義している。このテーブルは、図3に示した第1のシートデータによって作成されるテーブルと同じテーブルである。   In “#table_name” of the header information for categorization generation processing, the table name of the database created by the data in the second column and the fifth column is defined. Here, “table1” is described in the second row and fifth column to define that a table “table1” is generated. This table is the same table as the table created by the first sheet data shown in FIG.

ヘッダ情報の「#field_name」では、テーブル内のフィールド名を定義する。ここでは、第2行第10,11列(2J,2K)に記載されているデータは、名称(name)であることを示し、「A4モデル1」,「A4モデル2」というデータが名称であることを示している。   In “#field_name” of the header information, a field name in the table is defined. Here, the data described in the second row, the 10th and 11th columns (2J, 2K) indicates that the name is “name”, and the data “A4 model 1” and “A4 model 2” are the names. It shows that there is.

ヘッダ情報の「#relation」は、第2行のデータが親子関係の「親」であるか、「子」であるかと、前列とペアのデータかどうかを示している。すなわち、第2行第6列(2F)は、「child」と記載することにより、「子」であることを示している。   “#Relation” in the header information indicates whether the data in the second row is “parent” or “child” in the parent-child relationship, and whether the data is paired with the previous column. That is, the second row and sixth column (2F) indicates “child” by describing “child”.

ヘッダ情報の「#set_level」は、親子関係の階層レベルを示している。図3に示したように、「親」の階層レベルを「1」とした時、この親に対する、各「子」の階層レベルが示される。すなわち、第2行は、階層レベル「3」であり、「親」の2階層下に並ぶデータであることが示される。この階層レベルは、図3に示した階層レベル「3」のデータと同じものである。   “#Set_level” in the header information indicates the hierarchical level of the parent-child relationship. As shown in FIG. 3, when the hierarchical level of “parent” is “1”, the hierarchical level of each “child” for this parent is shown. That is, the second row indicates that the data is arranged at the hierarchy level “3” and arranged under the two layers of “parent”. This hierarchical level is the same as the data of the hierarchical level “3” shown in FIG.

さらに、階層レベル「3」と階層レベル「6」の間のオプションカテゴライズ用が、マトリックスの交点に、符号(「0」,「1」,「2」,「空欄」)によって付記される。例えば、階層レベル「3」の「A4モデル1」と階層レベル「6」の「P31.8GHz」との交点(8J)には、「2」と付記され、階層レベル「3」の「A4モデル1」と階層レベル「6」の「P32.0GHz」との交点には、「0」(9J)と付記される。   Further, the option categorization between the hierarchy level “3” and the hierarchy level “6” is added to the intersection of the matrix by a code (“0”, “1”, “2”, “blank”). For example, the intersection (8J) between “A4 model 1” of the hierarchy level “3” and “P31.8 GHz” of the hierarchy level “6” is appended with “2”, and the “A4 model of the hierarchy level“ 3 ” “0” (9J) is added to the intersection of “1” and “P32.0 GHz” of the hierarchy level “6”.

ここで、符号「0」は「組合せ不可」を示し、符号「1」は「標準」を示し、符号「2」は「必須」を示し、符号「空欄」は「組合せ可」を示している。すなわち、階層レベル「3」の「A4モデル1」に対しては、階層レベル「6」の「P31.8GHz」のCPUが「必須」の組合せとされ、階層レベル「3」の「A4モデル1」に対しては、階層レベル「6」の「P32.0GHz」のCPUは「組合せ不可」とされる。同様にして、階層レベル「3」の「A4モデル1」に対しては、階層レベル「6」の「512MB」のメモリが「標準」(10J)の組合せとされ、階層レベル「3」の「A4モデル1」に対しては、階層レベル「6」の「1024MB」のメモリは「組合せ可」(11J)とされる。   Here, the symbol “0” indicates “combination is impossible”, the symbol “1” indicates “standard”, the symbol “2” indicates “essential”, and the symbol “blank” indicates “combination is possible”. . That is, for “A4 model 1” of the hierarchy level “3”, the CPU of “P31.8 GHz” of the hierarchy level “6” is the “essential” combination, and the “A4 model 1” of the hierarchy level “3”. ”, The CPU of“ P32.0 GHz ”at the hierarchy level“ 6 ”is set to“ uncombinable ”. Similarly, for “A4 model 1” of the hierarchy level “3”, the memory of “512 MB” of the hierarchy level “6” is set to the combination of “standard” (10J), and “ For “A4 model 1”, the memory of “1024 MB” at the hierarchy level “6” is set to “combinable” (11J).

このように、マトリックスの交点に、両者の組合せの可能性に関する情報(オプションカテゴライズ用)を付記することで、2つのデータの組合せが可能であるか、標準の組合せであるか、組合せが不可であるか、必須の組合せであるかなどの組合せ情報を持たせることができる。   In this way, by adding information (for optional categorization) on the possibility of the combination of the two at the intersection of the matrix, it is possible to combine the two data, whether it is a standard combination, or impossible to combine Combination information such as whether or not there is an essential combination can be provided.

以上のようにして、オプションカテゴライズ用生成処理により、第3〜7行の親子関係生成処理用ヘッダ情報、及び2つのデータのマトリックスの交点の情報により、オプションカテゴライズ用情報が生成される。   As described above, the option categorization information is generated by the option categorization generation process from the parent-child relationship generation process header information in the third to seventh rows and the information of the intersection of the two data matrices.

次に、図2のステップ70において、データベース作成システム10は、オプションカテゴライズ用の付加されたデータのカテゴライズ関係を確認し、この相間関係が確認されると、データベース20に登録するデータに変換し、ステップs90において、データベース20に登録する。   Next, in step 70 of FIG. 2, the database creation system 10 confirms the categorization relationship of the added data for option categorization, and when this interphase relationship is confirmed, converts it into data to be registered in the database 20, In step s90, registration is made in the database 20.

ここで、図6を用いて、図4で示したオプションカテゴライズ用を付加されたデータの親子関係と、データベース20に登録されるデータ構成について説明する。
図6は、本発明の一実施形態によるデータベース作成システムのオプションカテゴライズ用確認処理及び登録処理によって得られたデータの一例の説明図である。なお、図6(A)は親子関係図を示し、図6(B)はデータベースに登録されるテーブル情報を示している。
Here, the parent-child relationship of the data added with the option categorization shown in FIG. 4 and the data configuration registered in the database 20 will be described with reference to FIG.
FIG. 6 is an explanatory diagram of an example of data obtained by the option categorization confirmation process and registration process of the database creation system according to the embodiment of the present invention. 6A shows a parent-child relationship diagram, and FIG. 6B shows table information registered in the database.

オプションカテゴライズ用確認処理では、データベース作成システム10は、図5に示した親子関係の属性ヘッダをベースにして、図6(A)に示すように、ツリー構造の親子関係図が成立するか否かから親子関係が正常に付与されているか否かを確認する。   In the confirmation processing for option categorization, the database creation system 10 determines whether or not a parent-child relationship diagram having a tree structure is established as shown in FIG. 6A based on the parent-child relationship attribute header shown in FIG. Check whether the parent-child relationship has been granted normally.

親子関係が確認されると、データベース作成システム10は、図5に示すデータを用いて、図6(B)に示すテーブル情報を作成し、データベース20に登録する。図6(B)に示すように、データベース20に登録されるテーブル情報は、「ID」と、「name」と、「level」と、「Parent_id」から構成されている。「ID」は各データを識別するためのユニークな番号等から構成され、例えば、図4(B)に示すように、「1」,「2」,「3」の連続した番号である。「name」は、図3に示された「name」の名称である。各名称は、図3,図5をベースに、例えば、「ノート型」,「A4サイズ」,「A4モデル1」,「A4モデル2」,「内部ユニット」,「外部ユニット」,「CPU」,「メモリ」などである。「level」は、図3に示された「#set_level」の階層が示される。例えば、「ノート型」は階層「1」,「A4サイズ」は階層「2」,「A4モデル1」は「階層3」というようになる。「Parent_id」は、親子関係の親の「ID」が記載されている。「A4サイズ」の親は、「ノート型」であるため、「ノート型」の「ID」である「1」が付されている。   When the parent-child relationship is confirmed, the database creation system 10 creates table information shown in FIG. 6B using the data shown in FIG. As shown in FIG. 6B, the table information registered in the database 20 includes “ID”, “name”, “level”, and “Parent_id”. “ID” is composed of a unique number or the like for identifying each data. For example, as shown in FIG. 4B, “ID” is a consecutive number of “1”, “2”, and “3”. “Name” is the name of “name” shown in FIG. Each name is based on FIGS. 3 and 5, for example, “note type”, “A4 size”, “A4 model 1”, “A4 model 2”, “internal unit”, “external unit”, “CPU”. , “Memory”, etc. “Level” indicates the hierarchy of “#set_level” shown in FIG. For example, “note type” has a hierarchy “1”, “A4 size” has a hierarchy “2”, and “A4 model 1” has a “hierarchy 3”. “Parent_id” describes the “ID” of the parent of the parent-child relationship. Since the parent of “A4 size” is “note type”, “1” which is “ID” of “note type” is attached.

さらに、オプションカテゴライズ用情報の関係としては、「name」は、図3に示された「name」の名称である。各名称は、図5をベースに、例えば、「内部ユニット」,「外部ユニット」,「CPU」,「メモリ」などである。「level」は、図3に示された「#set_level」の階層が示される。例えば、「内部ユニット」や「外部ユニット」は階層「4」,「CPU」,「メモリ」は階層「5」,「P3 1.8G」は「階層6」というようになる。「Parenet_id」は、親子関係の親の「ID」が記載されている。「内部ユニット」の親は、「A4モデル1」,「A4モデル2」であるため、「A4モデル1」,「A4モデル2」の「ID」である「4」,「5」が付されている。   Further, as a relation of the information for option categorization, “name” is the name of “name” shown in FIG. Each name is, for example, “internal unit”, “external unit”, “CPU”, “memory” based on FIG. “Level” indicates the hierarchy of “#set_level” shown in FIG. For example, “internal unit” and “external unit” are layer “4”, “CPU”, “memory” are layer “5”, and “P3 1.8G” is “layer 6”. “Parenet_id” describes “ID” of the parent of the parent-child relationship. Since the parent of “internal unit” is “A4 model 1” and “A4 model 2”, “4” and “5” which are “ID” of “A4 model 1” and “A4 model 2” are attached. ing.

次に、図2及び図7を用いて、図2のステップs50のオプション間ルール生成処理の内容について説明する。
図7は、本発明の一実施形態によるデータベース作成システムのオプション間ルール生成処理によって得られたデータの一例の説明図である。
Next, the contents of the inter-option rule generation process in step s50 of FIG. 2 will be described using FIG. 2 and FIG.
FIG. 7 is an explanatory diagram showing an example of data obtained by the inter-option rule generation processing of the database creation system according to the embodiment of the present invention.

図2のステップs50では、データベース作成システム10は、データベース作成システム10に読み込まれるシート形式データD1に対して、オプション間ルールを施したデータを生成する。オプション間ルールとは、データ間の相対関係の一つであり、データ相互間において「互換性」ルールとか、「インクルード」ルールとかの、データ間のルールである。ここで、「互換性」ルールとは、排他制御により、複数のデータ間で付けられるとか、付けられないとかを示すルールである。例えば、データAで示される部品Aには、データBで示される部品Bが付けられるとか、付けられないとかを示すものである。「インクルード」ルールとは、あるデータA(例えば、部品A)に別のデータ(例えば、部品B)を取り付けると、その他のデータ(例えば、部品C)も自動的に取り付けるというルールである。   In step s50 of FIG. 2, the database creation system 10 generates data in which the inter-option rule is applied to the sheet format data D1 read by the database creation system 10. The rule between options is one of the relative relationships between data, and is a rule between data such as a “compatibility” rule or an “include” rule between data. Here, the “compatibility” rule is a rule indicating whether or not data can be attached between a plurality of data by exclusive control. For example, the part A indicated by the data A indicates whether or not the part B indicated by the data B is attached. The “include” rule is a rule that when another data (for example, part B) is attached to a certain data A (for example, part A), other data (for example, part C) is automatically attached.

図7に示す表形式のデータにおいて、第7行目以降であって、第2列は、データベース作成システム10によって読み込まれたシート形式データD1の第3番目のシートデータである。この例では、図3に示した第1のシートデータ,図5に示した第2のシートデータに加えて、図7に示した第3のシートデータが存在する。そして、図2のステップs20のシート毎分割処理では、図3,図5,図7のデータを含むシート形式データD1をそれぞれ図3,図5及び図7の3つのシートに分割する。第1のシートデータに対しては、図3にて説明したように、親子関係が生成される。また、第2のシートデータに対しては、図5にて説明したように、親子関係生成処理とオプションカテゴライズ生成処理が施される。   In the tabular data shown in FIG. 7, the second column is the third sheet data of the sheet format data D <b> 1 read by the database creation system 10 after the seventh row. In this example, in addition to the first sheet data shown in FIG. 3 and the second sheet data shown in FIG. 5, there is the third sheet data shown in FIG. Then, in the sheet-by-sheet division processing in step s20 in FIG. 2, the sheet format data D1 including the data in FIGS. 3, 5, and 7 is divided into the three sheets in FIGS. 3, 5, and 7, respectively. For the first sheet data, a parent-child relationship is generated as described with reference to FIG. Further, as described with reference to FIG. 5, the parent-child relationship generation process and the option categorization generation process are performed on the second sheet data.

さらに、図7に示したデータに対しては、オプション間ルール生成処理とが施される。   Furthermore, an inter-option rule generation process is performed on the data shown in FIG.

最初に、データベース作成システム10によって読み込まれたシート形式データD1の第3番目のシートデータの内容について説明する。ここでは、同じくノートパソコンの例を示している。第7〜10行の第2列(7B,8B,9B,10B)の例では、オプション間ルールが適用されるパーツとして、「512MB」,「1012MB」のメモリや、「プリンタ」,「ケーブル」のプリンタ部品があることを示している。   First, the contents of the third sheet data of the sheet format data D1 read by the database creation system 10 will be described. Here, an example of a notebook computer is also shown. In the example of the second column (7B, 8B, 9B, 10B) in the seventh to tenth rows, “512 MB”, “1012 MB” memory, “printer”, “cable” are the parts to which the rule between options is applied. This indicates that there are printer parts.

このような表形式のデータに対して、データベース作成システム10は、第3〜6行目に、各列の属性を示すヘッダ情報を付加する。   The database creation system 10 adds header information indicating the attribute of each column to the third to sixth rows with respect to such tabular data.

ヘッダ情報は、第3行目の「#sheet_name」と、第4行目の「#table_name」と、第5行目の「#field_name」と、第6行目の「#matrix」とから構成され、これらの定義ファイルは、各行の第1列目に配置する。   The header information is composed of “#sheet_name” on the third line, “#table_name” on the fourth line, “#field_name” on the fifth line, and “#matrix” on the sixth line. These definition files are arranged in the first column of each row.

ヘッダ情報の第3行目の「#sheet_name」は、図7に示したオプション間ルールを適用する範囲(カテゴリー設定シート)を示すものである。この例では、カテゴリー設定シートは図5であり、このシート名は「A4Note」である。従って、図7に示したルールの適用範囲は「A4モデル1」、「A4モデル2」となる。   “#Sheet_name” on the third line of the header information indicates a range (category setting sheet) to which the inter-option rule shown in FIG. 7 is applied. In this example, the category setting sheet is FIG. 5, and the sheet name is “A4Note”. Therefore, the application range of the rule shown in FIG. 7 is “A4 model 1” and “A4 model 2”.

ヘッダ情報の第4行目の「#table_name」では、テーブル内のテーブル名を定義する。ここでは、第2列に記載されているデータは、「option」であり、「option」というテーブルを生成することを定義している。   In “#table_name” on the fourth line of the header information, a table name in the table is defined. Here, the data described in the second column is “option”, and defines that a table “option” is generated.

ヘッダ情報の第5行目の「#field_name」では、テーブル内のフィールド名を定義する。ここでは、第5行第2列に記載されているデータは、オプション名称(opt_name)であることを示し、第7行目以降の「512MB」,「1012MB」,「プリンタ」,「ケーブル」というデータがオプション名称であることを示している。   In “#field_name” on the fifth line of the header information, a field name in the table is defined. Here, the data described in the 5th row and the 2nd column indicates an option name (opt_name), which is referred to as “512 MB”, “1012 MB”, “printer”, and “cable” in the seventh row and thereafter. Indicates that the data is an option name.

ヘッダ情報の第6行目の「matrix」は、後述するオプション間ルールのマトリックスデータがあることを示している。   “Matrix” in the sixth line of the header information indicates that there is matrix data for an option rule to be described later.

さらに、オプション間ルール生成処理では、まず、第1,2行目が、オプション間ルール生成処理用のヘッダ情報として付加される。   Further, in the inter-option rule generation process, first, the first and second lines are added as header information for the inter-option rule generation process.

オプション間ルール生成処理用のヘッダ情報は、第1行目の第3列目(1C)の「#table_name」と、同行第4行目(1D)の「#field_name」と、同列第5行目(1E)の「#matrix」とから構成される。   The header information for inter-option rule generation processing includes “#table_name” in the third column (1C) of the first row, “#field_name” in the fourth row (1D) of the first row, and the fifth row of the same column. (1E) “#matrix”.

ここで、図7に示すテーブルの第4行2列(4B)と第2行3列(2C)は同じものであり、第5行2列(5B)と第2行4列(2D)は同じものであり、第6行2列(6B)と第2行5列(2E)は同じものであり、第7行2列(7B)と第2行6列(2F)は同じものであり、第8行2列(8B)と第2行7列(2G)は同じものであり、第9行2列(9B)と第2行8列(2H)は同じものであり、第10行2列(10B)と第2行9列(2I)は同じものである。すなわち、第2列の第7〜10行と、第2行の第6〜9行によって、同じデータ同士組合せに対するマトリックスが形成されている。   Here, the fourth row and second column (4B) and the second row and third column (2C) in the table shown in FIG. 7 are the same, and the fifth row and second column (5B) and the second row and fourth column (2D) are 6th row and 2nd column (6B) and 2nd row and 5th column (2E) are the same, 7th row and 2nd column (7B) and 2nd row and 6th column (2F) are the same The eighth row and the second column (8B) and the second row and the seventh column (2G) are the same, the ninth row and the second column (9B) and the second row and the eighth column (2H) are the same, and the tenth row The second column (10B) and the second row and ninth column (2I) are the same. That is, a matrix for the same combination of data is formed by the 7th to 10th rows in the second column and the 6th to 9th rows in the second row.

そして、これらのデータに対するオプション間ルールが 、マトリックスの交点に、符号(「1」,「2」,「空欄」)によって付記される。例えば、「512MB」のメモリと、「1012MB」のメモリとの交点(7G)には、「1」と付記され、「ケーブル」に対する「プリンタ」の交点(10H)には、「2」と付記される。   Then, the inter-option rules for these data are added to the intersection of the matrix by a code (“1”, “2”, “blank”). For example, “1” is added to the intersection (7G) between the memory of “512 MB” and the memory of “1012 MB”, and “2” is added to the intersection (10H) of “printer” to “cable”. Is done.

ここで、符号「1」は、前述した「互換性」ルールを示し、符号「2」は、前述した「インクルード」ルールを示し、符号「空欄」は「ルールなし」を示している。すなわち、「512MB」のメモリと、「1012MB」のメモリとは、「互換性」があり、「512MB」のメモリを付けた場合には、「1012MB」のメモリは付けられないことを示している。また、「ケーブル」に対して、「プリンタ」は「インクルード」であり、「ケーブル」を取り付けるには、「プリンタ」も一緒に取り付ける必要があることを示している。   Here, the symbol “1” indicates the “compatibility” rule described above, the symbol “2” indicates the “include” rule described above, and the symbol “blank” indicates “no rule”. That is, the “512 MB” memory and the “1012 MB” memory have “compatibility”, and when the “512 MB” memory is attached, the “1012 MB” memory cannot be attached. . In addition, “printer” is “include” with respect to “cable”, and it is necessary to attach “printer” together to attach “cable”.

このように、マトリックスの交点に、両者の組合せ時のルール(オプション間ルール)を付記することで、2つのデータの互換性ルールやインクルードルールの情報を持たせることができる。   In this way, by adding a rule (a rule between options) at the time of combination of the two to the intersection of the matrix, it is possible to have information on compatibility rules and include rules of the two data.

以上のようにして、オプション間ルール生成処理により、第3〜6行のヘッダ情報,第1〜2行のヘッダ情報、及び2つのデータのマトリックスの交点の情報により、オプション間ルール情報が生成される。   As described above, the inter-option rule information is generated from the header information of the third to sixth lines, the header information of the first and second lines, and the information of the intersection of the two data matrixes by the inter-option rule generation process. The

次に、図2のステップ80において、データベース作成システム10は、オプション間ルールの付加されたデータのオプション間ルール関係を確認し、この相間関係が確認されると、データベース20に登録するデータに変換し、ステップs90において、データベース20に登録する。   Next, in step 80 of FIG. 2, the database creation system 10 confirms the inter-option rule relationship of the data to which the inter-option rule is added, and when this inter-phase relationship is confirmed, converts it into data to be registered in the database 20. In step s90, it is registered in the database 20.

ここで、図8を用いて、図4で示したオプション間ルールを付加されたデータの関係と、データベース20に登録されるデータ構成について説明する。
図8は、本発明の一実施形態によるデータベース作成システムのオプション間ルール確認処理及び登録処理によって得られたデータの一例の説明図である。なお、図8(A)はルールの関係図を示し、図8(B)はデータベースに登録されるテーブル情報を示している。
Here, with reference to FIG. 8, the relationship between the data to which the rule between options shown in FIG. 4 is added and the data configuration registered in the database 20 will be described.
FIG. 8 is an explanatory diagram showing an example of data obtained by the inter-option rule checking process and the registration process of the database creation system according to the embodiment of the present invention. FIG. 8A shows a rule relation diagram, and FIG. 8B shows table information registered in the database.

オプション間ルール確認処理では、データベース作成システム10は、図7に示した属性ヘッダをベースにして、図8(A)に示すように、ツリー構造の関係図が成立するか否かからルール関係が正常に付与されているか否かを確認する。   In the inter-option rule confirmation process, the database creation system 10 determines whether the rule relationship is based on whether or not a tree structure relationship diagram is established, as shown in FIG. 8A, based on the attribute header shown in FIG. Check whether it has been granted normally.

ルール関係が確認されると、データベース作成システム10は、図7に示すデータを用いて、図7のマトリクスから符号が付けられている箇所を抽出して、図8(B)に示すようなテーブルを作成する。次に、データベース作成システム10は、図8(B)のテーブルから、図8(C)に示すテーブル情報を作成し、データベース20に登録する。図8(C)のテーブルは、図8(B)のテーブルにおいて、縦方向オプション名から「table1」に記述した「ID」を抽出し、図8(C)の「ID_x」に設定し、また、横方向のオプション名からも同様に「ID」を抽出し、図8(C)の「ID_y」に設定する。そして、抽出した符号は、「Rule_id」に設定する。   When the rule relationship is confirmed, the database creation system 10 uses the data shown in FIG. 7 to extract a portion to which a code is attached from the matrix of FIG. 7, and to create a table as shown in FIG. Create Next, the database creation system 10 creates table information shown in FIG. 8C from the table in FIG. 8B and registers it in the database 20. The table of FIG. 8C extracts “ID” described in “table1” from the vertical option name in the table of FIG. 8B and sets it to “ID_x” of FIG. 8C. Similarly, “ID” is extracted from the option name in the horizontal direction, and set to “ID_y” in FIG. The extracted code is set to “Rule_id”.

以上説明したように、表計算ソフト等によって生成された表形式のデータを用いることで、多数のデータ入力が容易になる。   As described above, a large number of data can be input easily by using tabular data generated by spreadsheet software or the like.

データ間に親子関係を有する場合には、表形式のデータに、親子関係を示す階層レベルのヘッダ情報を定義することで、容易に親子関係を定義することができる。そして、この親子関係を示す階層レベルを用いて、データベース用のデータを生成することができる。したがって、データベースの構成が変更になった場合でも、再度表形式のデータを並べ替えることが不要であり、データベースの構成の変更を容易に行うことができる。   When there is a parent-child relationship between the data, the parent-child relationship can be easily defined by defining header information at a hierarchical level indicating the parent-child relationship in the tabular data. Then, the data for the database can be generated using the hierarchical level indicating the parent-child relationship. Therefore, even when the configuration of the database is changed, it is not necessary to rearrange the tabular data again, and the configuration of the database can be easily changed.

また、2つのデータ間の組合せ関係(組合せの可否)をオプションカテゴライズ用のヘッダ情報を追加して、2つのデータ間のマトリックスの交点に組合せ関係を定義することで、組合せ関係を有するデータについても、データベース用のデータを容易に生成することができる。   Also, by adding header information for option categorization of the combination relationship between two data (possibility of combination) and defining the combination relationship at the intersection of the matrix between two data, Data for a database can be easily generated.

さらに、2つのデータであるオプション間の互換性やインクルードなどのルールを、2つのデータ間のマトリックスの交点にルールを定義することで、ルールのあるデータについても、データベース用のデータを容易に生成することができる。
In addition, by defining rules such as compatibility and inclusion between two data options at the intersection of the matrix between the two data, it is easy to generate database data for data with rules. can do.

本発明の一実施形態によるデータベース作成システムの構成を示すシステムブロック図である。It is a system block diagram which shows the structure of the database creation system by one Embodiment of this invention. 本発明の一実施形態によるデータベース作成システムの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the database creation system by one Embodiment of this invention. 本発明の一実施形態によるデータベース作成システムのデータ読込処理及び親子関係生成処理によって得られたデータの一例の説明図である。It is explanatory drawing of an example of the data obtained by the data reading process of the database creation system by one Embodiment of this invention, and a parent-child relationship generation process. 本発明の一実施形態によるデータベース作成システムの親子関係確認処理及び登録処理によって得られたデータの一例の説明図である。なお、図4It is explanatory drawing of an example of the data obtained by the parent-child relationship confirmation process and registration process of the database creation system by one Embodiment of this invention. Note that FIG. 本発明の一実施形態によるデータベース作成システムのオプションカテゴライズ生成処理によって得られたデータの一例の説明図である。It is explanatory drawing of an example of the data obtained by the option categorization production | generation process of the database creation system by one Embodiment of this invention. 本発明の一実施形態によるデータベース作成システムのオプションカテゴライズ用確認処理及び登録処理によって得られたデータの一例の説明図である。It is explanatory drawing of an example of the data obtained by the confirmation process for option categorization of a database creation system by one Embodiment of this invention, and a registration process. 本発明の一実施形態によるデータベース作成システムのオプション間ルール生成処理によって得られたデータの一例の説明図である。It is explanatory drawing of an example of the data obtained by the rule creation process between options of the database creation system by one Embodiment of this invention. 本発明の一実施形態によるデータベース作成システムのオプション間ルール確認処理及び登録処理によって得られたデータの一例の説明図である。It is explanatory drawing of an example of the data obtained by the rule confirmation process between options of a database creation system by one Embodiment of this invention, and a registration process.

符号の説明Explanation of symbols

10…データベース作成システム
20…データベース
30…Web端末装置
DESCRIPTION OF SYMBOLS 10 ... Database creation system 20 ... Database 30 ... Web terminal device

Claims (4)

入力されたデータを、データベースに登録できるテーブル構成のデータとして前記データベースに登録するデータベース作成システムであって、
前記入力されたデータは、各列には、各行毎にデータが記述された表形式のデータであり、
各列同士が親子関係を有する前記表形式のデータに対して、前記表形式のデータの列方向の親子関係を、第1列を第1階層とし、第2列を第1階層よりも下位の第2階層とし、第3列を第2階層よりも下位の第3階層とするように階層レベルの情報を含む第1のヘッダ情報を付加し、
この第1のヘッダ情報に基づいて、前記表形式のデータを、前記データベースに登録できるテーブル構成のデータとして前記データベースに登録する
ものであり、
前記テーブル構成のデータは、列方向に番号、名称、階層レベル、親のIDの各項目が記述され、行方向に各データが記述されるものであり、前記番号は連続的に付された番号であり、
前記表形式のデータを、前記テーブル構成のデータとする際に、
前記表形式のデータの第1階層のデータを前記データの項目に記述するときは、前記階層レベルは1で、前記親のID=0とし、
前記表形式のデータの第2階層のデータを前記データの項目に記述するときは、前記階層レベルは2で、前記親のIDを親となるデータの前記番号とし、
前記表形式のデータの第3階層のデータを前記データの項目に記述するときは、前記階層レベルが3で、前記親のIDを親となるデータのぜmぉ番号とする
ことを特徴とするデータベース作成システム。
A database creation system that registers input data in the database as data of a table configuration that can be registered in the database,
The input data is tabular data in which data is described for each row in each column .
For the tabular data in which each column has a parent-child relationship, the parent-child relationship in the column direction of the tabular data is that the first column is the first hierarchy and the second column is lower than the first hierarchy. The first header information including the information of the hierarchy level is added so as to be the second hierarchy, and the third column is the third hierarchy lower than the second hierarchy ,
Based on the first header information, the tabular data is registered in the database as table configuration data that can be registered in the database.
In the data of the table configuration, each item of the number, name, hierarchical level, and parent ID is described in the column direction, and each data is described in the row direction. The numbers are consecutively assigned numbers. And
When the data in the table format is the data of the table configuration,
When the data of the first hierarchy of the tabular data is described in the data item, the hierarchy level is 1 and the parent ID = 0,
When describing the data of the second hierarchy of the tabular data in the data item, the hierarchy level is 2, and the ID of the parent is the number of the parent data,
When the data of the third hierarchy of the tabular data is described in the data item, the hierarchy level is 3, and the parent ID is the number of the parent data. A database creation system characterized by
請求項1記載のデータベース作成システムにおいて、
前記各同士が親子関係を有する前記表形式のデータに対して、さらに、データの組合せ関係を示す第2のヘッダ情報を付加し、
該第2のヘッダ情報は、前記表形式のデータ第1行目に付加され、各行毎の階層レベルの情報を有し、前記第1のヘッダ情報で指定された第1のデータ群とは異なる第2のデータ群に対して生成され、
該第2のデータ群のデータは、前記第2のヘッダ情報に続く列に順次記述されるものであり、
前記第1のヘッダ情報で指定され、行方向に記述されたデータと、前記第2のヘッダ情報で指定され、列方向に記述されたデータのマトリックスの交点に、前記データ間の組合せのルールを定義し、
前記第1のヘッダ情報と、前記第2のヘッダ情報と、前記マトリックスの交点の組合せの関係のルールに基づいて、前記表形式のデータを、前記データベースに登録できるテーブル構成のデータとして前記データベースに登録することを特徴とするデータベース作成システム。
The database creation system according to claim 1,
With respect to the tabular data having the respective rows with each other parent-child relationship, further adds a second header information indicating a combination relationship between the data,
The second header information is added to the first row of the tabular data, has hierarchical level information for each row, and is different from the first data group specified by the first header information. Generated for a second data set,
The data of the second data group is sequentially described in a column following the second header information,
The specified in the first header information, and data described in the row direction, as specified in the second header information, the intersection of the matrix of data described in the column direction, the rule of combination between the data Define
Based on the rule of the relationship between the first header information, the second header information, and the intersection of the matrix, the tabular data is stored in the database as table-structured data that can be registered in the database. A database creation system characterized by registration.
請求項2記載のデータベース作成システムにおいて、The database creation system according to claim 2,
前記各データ間の組合せのルールは、前記第1のデータ群のデータと前記第2のデータ群のデータとは互換性があるか否かの互換性ルールや、前記第1のデータ群のデータに対して前記第2のデータ群のデータも含まれるインクルードルールからなることを特徴とするデータベース作成システム。The combination rule between the data includes a compatibility rule as to whether or not the data of the first data group and the data of the second data group are compatible, and the data of the first data group. A database creation system comprising an include rule that also includes data of the second data group.
請求項1記載のデータベース作成システムにおいて、
前記データベースに登録されたデータを用いて、親子関係のある情報を表示、若しくは選択することを特徴とするデータベース作成システム。
The database creation system according to claim 1,
A database creation system for displaying or selecting information having a parent-child relationship using data registered in the database.
JP2005090570A 2005-03-28 2005-03-28 Database creation system Active JP4481856B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005090570A JP4481856B2 (en) 2005-03-28 2005-03-28 Database creation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005090570A JP4481856B2 (en) 2005-03-28 2005-03-28 Database creation system

Publications (2)

Publication Number Publication Date
JP2006276931A JP2006276931A (en) 2006-10-12
JP4481856B2 true JP4481856B2 (en) 2010-06-16

Family

ID=37211677

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005090570A Active JP4481856B2 (en) 2005-03-28 2005-03-28 Database creation system

Country Status (1)

Country Link
JP (1) JP4481856B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6575219B2 (en) 2015-08-18 2019-09-18 富士通株式会社 Item value association processing method, item value association processing program, and information processing apparatus
JP6604086B2 (en) 2015-08-18 2019-11-13 富士通株式会社 Item value association processing method, item value association processing program, and information processing apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668151A (en) * 1992-06-15 1994-03-11 Fuji Xerox Co Ltd Database access method and its device
JPH08180123A (en) * 1994-12-26 1996-07-12 Casio Comput Co Ltd Data processor
JP2000271826A (en) * 1999-03-24 2000-10-03 Mitsubishi Electric Corp Product component combination judging device
JP2002032631A (en) * 2000-07-18 2002-01-31 Pfu Ltd Commodity configuration device, database generation device, and program recording medium
JP2002312404A (en) * 2001-01-12 2002-10-25 Tsuyuki Soft Laboratory Ltd System and program for managing relating information, and recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668151A (en) * 1992-06-15 1994-03-11 Fuji Xerox Co Ltd Database access method and its device
JPH08180123A (en) * 1994-12-26 1996-07-12 Casio Comput Co Ltd Data processor
JP2000271826A (en) * 1999-03-24 2000-10-03 Mitsubishi Electric Corp Product component combination judging device
JP2002032631A (en) * 2000-07-18 2002-01-31 Pfu Ltd Commodity configuration device, database generation device, and program recording medium
JP2002312404A (en) * 2001-01-12 2002-10-25 Tsuyuki Soft Laboratory Ltd System and program for managing relating information, and recording medium

Also Published As

Publication number Publication date
JP2006276931A (en) 2006-10-12

Similar Documents

Publication Publication Date Title
CN1677343B (en) Grid canvas
US8001155B2 (en) Hierarchically presenting tabular data
US8051371B2 (en) Document analysis system and document adaptation system
US20100031176A1 (en) Method of defining focus movement order and moving focus, and computer readable recording medium for executing the method
US7380201B2 (en) Checking missing transaction values in generated document
JP4481856B2 (en) Database creation system
US20080216010A1 (en) Method and system for displaying hierarchical information
US8201106B2 (en) Method for transforming a tree structure into a more human-comprehensible document
JP2002133360A (en) Layout-based input/output method for cell in spreadsheet operation, and recording medium stored with program for the same
JP4720695B2 (en) Content provision method
JP4084168B2 (en) Design and manufacturing data management system and program
JP2008015960A (en) Business form making system
JP5579086B2 (en) Check sheet registration system
JP4788241B2 (en) Document processing device
WO2021025091A2 (en) Information management device and file management method
JP5959351B2 (en) Insurance data processing device and insurance contract system
JP6043114B2 (en) Insurance data processing device and insurance contract system
JP2004213636A (en) Medium production information system
CN107766427A (en) A kind of page rendering method and system
JP6555174B2 (en) Information processing apparatus and program
Prior After the revolution: An alternative future for Atlantic History
Yamamoto Synthesis system for Web based examination generation and marking by XML
JP2002215393A (en) Business application constructing method
JP4221620B2 (en) Document analysis system, document analysis method, and program
CN103294659A (en) Method for building and protecting text object typesetting logs in collaborative typesetting

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070305

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091225

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: 20100316

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100318

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130326

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150