WO2016147354A1 - Database design assistance device and database design assistance program - Google Patents

Database design assistance device and database design assistance program Download PDF

Info

Publication number
WO2016147354A1
WO2016147354A1 PCT/JP2015/058113 JP2015058113W WO2016147354A1 WO 2016147354 A1 WO2016147354 A1 WO 2016147354A1 JP 2015058113 W JP2015058113 W JP 2015058113W WO 2016147354 A1 WO2016147354 A1 WO 2016147354A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
unit
information
calculation
definition
Prior art date
Application number
PCT/JP2015/058113
Other languages
French (fr)
Japanese (ja)
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 JP2017505955A priority Critical patent/JP6289735B2/en
Priority to PCT/JP2015/058113 priority patent/WO2016147354A1/en
Publication of WO2016147354A1 publication Critical patent/WO2016147354A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures

Definitions

  • This invention relates to a technology for supporting database design using tabular data.
  • the system builder When an existing database system is improved and a new database system is constructed, the system builder designs the database and generates database definition information. At this time, the system builder generates the database definition information by using the design information of the existing system and the drawing in which the facility configuration information is described.
  • Patent Document 1 describes that database definition information is generated by inputting tabular data including data items and data belonging to the data items.
  • a data storage table of a database is constructed using one sheet of tabular data as one data unit.
  • An object of the present invention is to reduce the load on a system builder when designing a database.
  • the database design support apparatus is: A group information receiving unit that receives input of group information indicating each group obtained by grouping a plurality of data items included in tabular data; For each data item that the tabular data has, a type reception unit that receives input of a classification type indicating whether it is individual data or total data obtained by totaling the individual data; A table definition unit for generating table definition information having an attribute indicating a data item whose classification type received by the type reception unit is individual data; For each group indicated by the group information received by the group information reception unit, hierarchy definition information is generated with a data item whose classification type is aggregated data as a parent and a data item whose classification type is individual data as a child. And a hierarchy definition unit.
  • a table having an attribute indicating a data item whose classification type is individual data is defined, and for a data item whose classification type is aggregated data, a hierarchy definition between the data item whose classification type is individual data Generate information.
  • the number of table attributes can be reduced, and an efficient table is defined. Therefore, the load of correction work of the system builder is reduced, and the load of the system builder when designing the database can be reduced.
  • FIG. 1 is a configuration diagram of a database design support apparatus 100 according to Embodiment 1.
  • FIG. 5 is a flowchart showing the operation of the interface unit 110. Explanatory drawing of the input screen 31.
  • FIG. Explanatory drawing of a table definition process. 7 is a flowchart showing a hierarchy definition process that is an operation of the hierarchy definition unit 122; Explanatory drawing of a hierarchy definition process.
  • the block diagram of the database design assistance apparatus 100 which concerns on Embodiment 2.
  • FIG. 1 The flowchart which shows the calculation definition process which is operation
  • Embodiment 1 FIG. *** Explanation of configuration *** Based on FIG. 1, the structure of the database design support apparatus 100 which concerns on Embodiment 1 is demonstrated.
  • the database design support apparatus 100 includes an interface unit 110 and a processing unit 120.
  • the interface unit 110 is an interface with a user of the database design support apparatus 100 such as a system builder.
  • the interface unit 110 includes a data display unit 111, a group information reception unit 112, a type reception unit 113, a table information reception unit 114, and a generation instruction reception unit 115.
  • the data display unit 111 displays an input screen showing the tabular data 11 designated by the user on the display device.
  • the tabular data 11 has a plurality of data items, and a value is set for each data item.
  • the data display unit 111 may display the tabular data 11 in a table state, or may display the tabular data 11 as a graph when the tabular data 11 can be displayed as a graph.
  • the group information receiving unit 112 receives input of group information 12 indicating each group obtained by grouping a plurality of data items included in the tabular data 11.
  • the group information receiving unit 112 receives the group information 12 input by the user operating the input screen displayed by the data display unit 111.
  • the type reception unit 113 receives an input of the classification type 13 as to whether each data item included in the tabular data 11 is individual data or total data obtained by tabulating the individual data. That is, for each data item, the type accepting unit 113 is individual data in which a measurement value or the like for a facility with the data item is set, or total data in which a value obtained by totaling values of a plurality of individual data is set The input of the classification type 13 is received.
  • the type receiving unit 113 receives an input of the classification type 13 input by the user operating the input screen displayed by the data display unit 111.
  • the table information receiving unit 114 receives an input of a table name 14 of a table for storing data of each data item included in the tabular data 11.
  • the table information receiving unit 114 may automatically set the file name of the tabular data 11 as the table name 14 when the table name 14 is not input.
  • the generation instruction reception unit 115 receives input of instruction information 15 that instructs the processing unit 120 to generate the database definition information 21.
  • the generation instruction receiving unit 115 outputs the tabular data 11 displayed by the data display unit 111 to the processing unit 120.
  • the generation instruction receiving unit 115 includes an item classification including the group information 12 received by the group information receiving unit 112, the classification type 13 received by the type receiving unit 113, and the table name 14 received by the table information receiving unit 114.
  • Information 16 is output to the processing unit 120.
  • the group information receiving unit 112 includes a data item in which the classification type 13 is individual data and a data item in which the classification type 13 is total data. Group information 12 grouped so as to be the same group is received.
  • the processing unit 120 generates the database definition information 21 based on the item classification information 16 and the tabular data 11 output from the generation instruction receiving unit 115.
  • the processing unit 120 includes a table definition unit 121 and a hierarchy definition unit 122.
  • the table definition unit 121 generates table definition information 22 that is one of the database definition information 21.
  • the table definition unit 121 has an attribute indicating a data item in which the classification type 13 received by the type reception unit 113 is individual data, and table definition information 22 having the table name 14 received by the table information reception unit 114 as the table name. Is generated.
  • the table definition unit 121 does not have a data item whose classification type 13 is aggregated data in at least one of the groups as an attribute, and has only a data item whose classification type 13 is individual data as an attribute. Definition information 22 is generated.
  • the hierarchy definition unit 122 generates hierarchy definition information 23 that is one of the database definition information 21.
  • the hierarchy definition unit 122 generates, for each group indicated by the group information 12, hierarchy definition information 23 having a data item whose classification type 13 is aggregated data as a parent and a data item whose classification type 13 is individual data as a child. .
  • the tabular data 11 will be described with reference to FIG.
  • the tabular data 11 has a plurality of data items, and a value is set for each data item.
  • a unit indicating a reference value of each data item is set.
  • tabular data 11 named file A is shown.
  • the tabular data 11 has data for the entire building, 1F, 2F, and 3F, and the amount of power from January to December is set for each data item.
  • KW (kilowatt) is set as the unit of the value of each data item.
  • the item classification information 16 has items of data item name, type, group name, unit, table name, and tabular data name for each of a plurality of data items.
  • the data item name indicates the name of the data item defined in the tabular data 11.
  • the type indicates the classification type 13 of the data item received by the type receiving unit 113.
  • the group name indicates a name for identifying a group of data items indicated by the group information 12 received by the group information receiving unit 112.
  • the unit indicates the unit of the data item defined by the tabular data 11.
  • the table name indicates the table name 14 for storing the data item received by the table information receiving unit 114.
  • the tabular data name indicates the file name and file path of the tabular data 11.
  • the operation of the database design support apparatus 100 according to the first embodiment will be described with reference to FIGS.
  • the operation of the database design support apparatus 100 according to the first embodiment corresponds to the database design support method according to the first embodiment.
  • the operation of the database design support apparatus 100 according to the first embodiment corresponds to the processing of the database design support program according to the first embodiment.
  • the data display unit 111 displays an input screen 31 as shown in FIG. 5 showing the tabular data 11 designated by the user.
  • the input screen 31 includes a display field 32 for tabular data 11 and a display field 33 for item classification information 16.
  • the display column 32 for the tabular data 11 includes a selection column 34 for the tabular data 11.
  • the selection button is pressed while the table format data 11 designated in the selection field 34 is shown, the table format data 11 is designated, and the designated table format data 11 is displayed.
  • tabular data 11 named file A shown in FIG. 2 is designated, and tabular data 11 is displayed as a graph.
  • the group information reception unit 112 receives the group information 12 having the entire building, 1F, 2F, and 3F data items as one group and the name as BUILD.
  • the type reception unit 113 indicates that the data is total data for the entire building, and receives a classification type 13 that indicates individual data for 1F, 2F, and 3F.
  • the table information receiving unit 114 receives a table name 14 called TableA.
  • the generation instruction reception unit 115 receives the input of the instruction information 15, and outputs the item classification information 16 and the tabular data 11 to the processing unit 120.
  • the generation instruction receiving unit 115 outputs the item classification information 16 shown in FIG. 3 and the tabular data 11 shown in FIG. 2 to the processing unit 120.
  • the processing unit 120 will be described with reference to FIGS. First, based on FIG.6 and FIG.7, the table definition process which is operation
  • the table definition unit 121 acquires the item classification information 16 output in S105.
  • the table definition unit 121 acquires one data item from the item classification information 16 acquired in S201.
  • the table definition unit 121 determines whether or not the classification type 13 of the data item acquired in S202 is individual data. If the table definition unit 121 is individual data (YES in S203), the process proceeds to S204. If the table definition unit 121 is total data (NO in S203), the process proceeds to S205.
  • the table definition unit 121 adds an attribute indicating the data item acquired in S202 to the table definition information 22. Specifically, if there is no table whose name is the table name 14 of the data item acquired in S202, the table definition unit 121 adds the name table to the table definition information 22 and then adds the data item. Add an attribute whose name is the name. On the other hand, when there is a table whose name is the table name 14 of the data item acquired in S202, the table definition unit 121 adds an attribute whose name is the data item name to the table.
  • the table definition unit 121 determines whether an attribute indicating the data item acquired in S202 exists in the table definition information 22. Specifically, the table definition unit 121 determines whether or not the table definition information 22 includes an attribute having the name of the data item name in the table having the name of the table name 14 acquired in S202. If the table definition unit 121 exists (YES in S205), the process proceeds to S206. If the table definition unit 121 does not exist (NO in S205), the process proceeds to S207.
  • the table definition unit 121 deletes the attribute indicating the data item acquired in S202 from the table definition information 22. Specifically, the table definition unit 121 deletes from the table definition information 22 the attribute whose name is the data item name of the table whose name is the table name 14 acquired in S202.
  • the table definition unit 121 determines whether or not the data item acquired in S202 is the last data item of the item classification information 16 acquired in S201. If it is the last data item (YES in S207), the table defining unit 121 advances the process to S208. If it is not the last data item (NO in S207), the table defining unit 121 returns the process to S202.
  • the table definition unit 121 converts the table definition information 22 into a database operation language.
  • the table definition unit 121 converts the table definition information 22 into SQL (Structured Query Language).
  • the table definition process generates table definition information 22 in which a table called TableA having attributes of 1F, 2F, and 3F whose classification type 13 is individual data is defined. Then, the table definition information 22 is subjected to SQL conversion.
  • the hierarchy definition unit 122 acquires the item classification information 16 output in S105.
  • the hierarchy definition unit 122 acquires one data item from the item classification information 16 acquired in S301.
  • the hierarchy definition unit 122 determines whether or not the classification type 13 of the data item acquired in S302 is total data. The hierarchy definition unit 122 advances the process to S304 if the data is aggregate data (YES in S303), and advances the process to S308 if the data is individual data (NO in S303).
  • the hierarchy definition unit 122 determines whether or not individual data of the same group exists in the hierarchy definition information 23. Specifically, the hierarchy definition unit 122 includes a data item having the same group name as the data item group name acquired in S ⁇ b> 302 and having the classification type 13 as individual data in the hierarchy definition information 23. It is determined whether or not. If the hierarchy definition unit 122 does not exist (NO in S304), the process proceeds to S305, and if it exists (YES in S304), the process proceeds to S306.
  • the hierarchy definition unit 122 adds the data item acquired in S302 to the hierarchy definition information 23 as an element of the i hierarchy that is the initial hierarchy for the aggregated data.
  • the hierarchy definition unit 122 acquires the hierarchy j of the individual data of the same group.
  • the hierarchy definition unit 122 adds the data item acquired in S302 to the hierarchy definition information 23 as an element of the hierarchy j-1 that is the parent hierarchy of the hierarchy j acquired in S306. To do.
  • the hierarchy definition unit 122 determines whether or not the aggregate data of the same group exists in the hierarchy definition information 23. More specifically, the hierarchy definition unit 122 includes a data item having the same group name as the data item group name acquired in S ⁇ b> 302, and a data item whose classification type 13 is aggregated data exists in the hierarchy definition information 23. It is determined whether or not. If the hierarchy definition unit 122 does not exist (NO in S308), the process proceeds to S309, and if it exists (YES in S308), the process proceeds to S310.
  • the hierarchy definition unit 122 adds the data item acquired in S302 to the hierarchy definition information 23 as an element of the k hierarchy that is the initial hierarchy for the individual data.
  • the hierarchy definition unit 122 acquires the hierarchy m of the aggregate data of the same group. Then, in the child hierarchy setting process of S311, the hierarchy definition unit 122 adds the data item acquired in S302 to the hierarchy definition information 23 as an element of the hierarchy m + 1 that is a child hierarchy of the hierarchy m acquired in S310.
  • the hierarchy definition unit 122 determines whether the data item acquired in S302 is the last data item of the item classification information 16 acquired in S301. If it is the last data item (YES in S312), the hierarchy defining unit 122 advances the process to S313, and if it is not the last data item (NO in S312), returns the process to S302.
  • the hierarchy definition unit 122 converts the hierarchy definition information 23 into a database operation language.
  • the hierarchy definition unit 122 performs SQL conversion on the hierarchy definition information 23.
  • the hierarchy definition information 23 is defined as 1F, 2F, and 3F in which the classification type 13 is the individual data, and the classification type 13 is the individual data. Is generated. Then, the hierarchy definition information 23 is subjected to SQL conversion.
  • the database definition information including the table definition information 22 and the hierarchy definition information 23 is obtained by operating the table format data 11 output from the existing system or the like. 21 can be generated.
  • the table definition information 22 has only data items whose classification type 13 is individual data as attributes. Therefore, the number of table attributes can be reduced, and an efficient table is defined. Therefore, the load of correction work of the system builder is reduced, and the load of the system builder when designing the database can be reduced.
  • the operation of the tabular data 11 does not require understanding of design information and acquisition of specialized knowledge such as a database language.
  • the load on the system builder's prior work is reduced, and the load on the system builder when designing the database can be reduced.
  • the tabular data 11 when the tabular data 11 is output from an existing system, users of the existing system often have experience using the tabular data 11. Therefore, in this case, the operation of the tabular data 11 can be performed even by a user who uses an existing system or the like. In particular, a simple system database design such as a demo system can be performed even by a user.
  • the interface unit 110 may perform the processing from S101 to S105 of FIG. At this time, if the same table name 14 is designated in S104, data items in the plurality of tabular data 11 can be set as attributes of one table.
  • a data item whose classification type 13 is aggregated data in a certain tabular data 11 is included in the table definition information 22 as an attribute. May be defined.
  • the data item X is individual data in the tabular data 11Y and is total data in the tabular data 11Z.
  • the data item X is defined as an attribute in the processing of the tabular data 11Y, but the data item X is defined in the processing of the tabular data 11Z.
  • the attribute that defined is deleted. Therefore, the data item X is not defined in the table definition information 22 as an attribute.
  • the data item X is not defined as an attribute in the processing of the tabular data 11Z, and the data item X is defined as an attribute in the processing of the tabular data 11Y. Defined. Therefore, the data item X is defined in the table definition information 22 as an attribute. Therefore, after the process for all the tabular data 11 is completed, the attribute deletion process of S206 may be executed for the data item whose classification type 13 is the total data in all the tabular data 11. Thereby, it is possible to prevent a data item in which the classification type 13 is aggregated data in a certain table format data 11 from being defined in the table definition information 22 as an attribute.
  • the table format data 11 is assumed to have a unit set for the value of each data item. However, there may be a case where no unit is set. In this case, the table information reception part 114 should just receive the unit input about the value of each data item with the table name 14. FIG.
  • Embodiment 2 is different from the first embodiment in that calculation definition information 24 that defines a method for calculating aggregate data by using individual data as input is generated. In the second embodiment, this different point will be described.
  • the structure of the database design assistance apparatus 100 which concerns on Embodiment 2 is demonstrated. 1 differs from the database design support apparatus 100 shown in FIG. 1 in that the interface unit 110 includes a calculation information acquisition unit 116 and a unit conversion information acquisition unit 117, and the processing unit 120 includes a calculation unit 123 and a calculation definition unit 124.
  • the calculation information acquisition unit 116 acquires a plurality of calculation information 17 indicating a calculation method.
  • the tabular data 11 is data in a format corresponding to the spreadsheet software.
  • the calculation information acquisition unit 116 acquires calculation information 17 indicating calculation methods such as summation and averaging, which are defined by the spreadsheet software corresponding to the tabular data 11, from the spreadsheet software.
  • the unit conversion information acquisition unit 117 acquires a plurality of unit conversion information 18 indicating a conversion method for converting a unit indicating a value reference to another unit.
  • the unit conversion information 18 is registered in advance by a user or the like, and the unit conversion information acquisition unit 117 acquires the registered unit conversion information 18.
  • the unit conversion information 18 may be input when the tabular data 11 is specified, or may be acquired from an external server or the like.
  • the calculation unit 123 uses the data item whose classification type 13 is aggregated data as a target item, and receives the value of the data item whose classification type 13 in the same group as the target item is individual data, and the calculation information acquisition unit 116 acquires it. Calculation is performed by a calculation method indicated by each calculation information 17.
  • the calculation unit 123 uses the unit conversion information 18 acquired by the unit conversion information acquisition unit 117 to The unit of the value of the data item whose classification type 13 in the same group is individual data is converted into the unit of the value of the target item. Then, the calculation unit 123 performs the calculation by the calculation method indicated by each calculation information 17 after the conversion.
  • the calculation definition unit 124 generates calculation definition information 24 that is one of the database definition information 21.
  • the calculation definition unit 124 generates the calculation information 17 indicating the calculation method when the result calculated by the calculation unit 123 matches the value of the target item as the calculation definition information 24 for the target item.
  • the calculation definition unit 124 uses the unit conversion information 18 to convert units, the calculation definition unit 124 generates the calculation definition information 24 by combining the calculation information 17 and the used unit conversion information 18.
  • the unit conversion information 18 will be described based on FIG.
  • the unit conversion information 18 indicates a conversion method for converting a unit to another unit.
  • each unit conversion information 18 has a unit after conversion and a conversion formula to the unit after conversion.
  • FIG. 11 shows a conversion formula “unit A (ampere) ⁇ unit V (volt)” for the unit W (watt) that is the unit after conversion and a conversion formula “( 2.8 ⁇ 10 ⁇ 6 ) units KW (kilowatts) ”.
  • the operation of the database design support apparatus 100 according to the second embodiment will be described with reference to FIGS.
  • the calculation definition process which is the operation of the calculation unit 123 and the calculation definition unit 124 will be described.
  • the operation of the database design support apparatus 100 according to the second embodiment corresponds to the database design support method according to the second embodiment.
  • the operation of the database design support apparatus 100 according to the second embodiment corresponds to the processing of the database design support program according to the second embodiment.
  • the calculation unit 123 acquires the item classification information 16 and the plurality of calculation information 17 output in S105.
  • the calculation unit 123 acquires all data items for the target data from the item classification information 16 acquired in S401, with one tabular data 11 as target data.
  • the calculation unit 123 acquires all the data items for the target group from the data items acquired in S402, with one group as the target group.
  • the calculation unit 123 acquires one calculation information 17 from the calculation information 17 acquired in S401.
  • the calculation unit 123 receives the value of the data item whose classification type 13 in the target group is individual data, and executes the calculation by the calculation method indicated by the calculation information 17 acquired in S404. .
  • the calculation unit 123 determines whether the result calculated in S405 matches the value of the data item (target item) whose classification type 13 in the target group is aggregated data. . If they match (YES in S406), operation unit 123 advances the process to S407, and if they do not match (NO in S406), advances the process to S408.
  • the calculation definition unit 124 In the first calculation definition process of S407, the calculation definition unit 124 generates the calculation information 17 acquired in S404 as the calculation definition information 24 for the target item.
  • the calculation unit 123 calculates the difference between the result calculated in S405 and the value of the target item and registers it in the difference list.
  • the calculation unit 123 determines whether or not the calculation information 17 acquired in S404 is the last calculation information 17 acquired in S401. If the calculation unit 123 is the last calculation information 17 (YES in S409), the process proceeds to S501 in FIG. 13, and if it is not the last calculation information 17 (NO in S409), the process returns to S404.
  • the calculation unit 123 determines whether the data item for the target group acquired in S403 is the data item for the last group in the tabular data 11 acquired in S402. . If it is a data item for the last group (YES in S410), the arithmetic unit 123 advances the process to S411, and if it is not a data item for the last group (NO in S410), returns the process to S403.
  • the calculation unit 123 determines whether the data item for the target data acquired in S402 is the data item for the last tabular data 11 in the item classification information 16 acquired in S401. Determine whether or not. If it is a data item for the last tabular data 11 (YES in S411), the calculation unit 123 ends the process, and if it is not a data item for the last tabular data 11 (NO in S411), the processing is performed in S402. Return to.
  • the calculation unit 123 acquires one data item whose classification type 13 of the target group is individual data together with the value unit of the data item.
  • the calculation unit 123 determines whether the value unit of the target item is the same as the value unit of the data item acquired in S501. If they are the same (YES in S502), operation unit 123 advances the process to S503, and if not (NO in S502), advances the process to S504.
  • the calculation unit 123 adds the data item acquired in S501 to the target list.
  • the calculation unit 123 acquires the unit conversion information 18 including the unit of the target item as the unit after conversion and including the unit of the value of the data item acquired in S501 in the conversion formula. That is, the calculation unit 123 acquires the unit conversion information 18 for converting from the data item value unit acquired in S501 to the target item value unit.
  • the calculation unit 123 replaces the unit of the value of the data item acquired in S501 of the conversion formula in the unit conversion information 18 acquired in S504 with the data item acquired in S501. In addition, the calculation unit 123 acquires a data item having the remaining unit in the conversion formula from the data item of the target group. Then, the remaining units in the conversion formula are replaced with corresponding data items. Thereby, the calculating part 123 produces
  • the calculation unit 123 adds the unit conversion formula generated in S505 to the target list.
  • the calculation unit 123 determines whether or not the data item acquired in S501 is the last data item whose classification type 13 in the target group is individual data. At this time, the data item acquired in S505 is treated as acquired. If it is the last data item (YES in S507), the arithmetic unit 123 advances the process to S508, and if it is not the last data item (NO in S507), returns the process to S501.
  • the calculation unit 123 acquires one calculation information 17 from the calculation information 17 acquired in S401.
  • the calculation unit 123 is acquired in S508 using the data items added to the target list in S503 and the data items constituting the unit conversion formula added to the target list in S506.
  • An aggregation formula that constitutes the calculation method indicated by the calculation information 17 is generated.
  • the calculation unit 123 inputs the value of the data item to the aggregation formula generated in S509, and executes the calculation by the calculation method indicated by the calculation information 17 acquired in S508.
  • the calculation unit 123 determines whether the result calculated in S510 matches the value of the target item. If they match (YES in S511), operation unit 123 advances the process to S512, and if they do not match (NO in S511), advances the process to S513.
  • the calculation definition unit 124 In the second calculation definition process of S512, the calculation definition unit 124 generates the aggregation formula generated in S509 as the calculation definition information 24 for the target item.
  • the calculation unit 123 calculates the difference between the result calculated in S510 and the value of the target item, and registers it in the difference list.
  • the calculation unit 123 determines whether or not the calculation information 17 acquired in S508 is the last calculation information 17 acquired in S401. If the calculation unit 123 is the last calculation information 17 (YES in S514), the process proceeds to S515. If the calculation unit 123 is not the last calculation information 17 (NO in S514), the process returns to S508.
  • the calculation definition unit 124 In the third calculation definition process of S515, the calculation definition unit 124 generates, as the calculation definition information 24 for the target item, the calculation information 17 or the aggregation formula having the smallest difference among the differences registered in the difference list.
  • step S401 item classification information 16 and a plurality of calculation information 17 are acquired ((1) to (2) in FIG. 14). Further, in S402 to S403, all data items of the file “Group” “BUILD” are acquired ((3) in FIG. 14). In S404, “total” for calculating the total value of the input values is obtained as one piece of calculation information 17 ((4) in FIG. 14). Then, in S405, the calculation method indicated by the calculation information 17 using the values “1000”, “500”, and “250” set in the data items “1F”, “2F”, and “3F” of the individual data as inputs. The calculation is executed by “total” ((5) in FIG.
  • the values set for the entire building whose classification type 13 is aggregated data are the values set for 1F, 2F and 3F whose classification type 13 is individual data, as shown in FIG.
  • the operation definition information 24 that is defined to be the sum of is generated.
  • the calculation definition information 24 is generated as the data search viewpoint definition information 25 together with the hierarchy definition information 23.
  • the data retrieval viewpoint definition information 25 is subjected to SQL conversion.
  • step S401 item classification information 16 and a plurality of calculation information 17 are acquired ((1) to (2) in FIG. 16). Further, in S402 to S403, all data items of the file “B” group “BUILD” are acquired ((3) in FIG. 16).
  • the calculation result and the value set to “1F” which is the data item of the total data do not match in S406. Therefore, the process proceeds from S409 to S501 in FIG.
  • S501 the data item “1F_voltage” of the individual data is acquired together with the unit “KV (kilovolt)” ((4) in FIG. 16).
  • total is acquired as one piece of operation information 17 ((9) in FIG. 16).
  • a totaling formula constituting the calculation method “total” is generated ((10) in FIG. 16).
  • the values “50”, “20”, “500” set in the data items “1F_voltage”, “1F_current”, and “1F_other”, which are individual data items, are input and the calculation is performed using the aggregation formula. ((11) in FIG. 16).
  • the calculation result “1500 ( (20 ⁇ 50) +500)” and the value “1500” set to “1F” which is the data item of the total data match, so in S512, the total formula is
  • the calculation definition information 24 of “1F” which is a data item of the total data is used ((12) in FIG. 16). That is, the value of “1F” is defined as a value obtained by tabulating the values set in “1F_Voltage”, “1F_Current”, and “1F_Other” by the tabulation formula.
  • the value in which the classification type 13 is set to 1F, which is total data, is set to 1F_voltage, 1F_current, 1F_, etc., in which the classification type 13 is individual data, as shown in FIG.
  • Operation definition information 24 is generated that is defined to be a value obtained by tabulating the obtained values with a summation formula.
  • the calculation definition information 24 is generated as the data search viewpoint definition information 25 together with the hierarchy definition information 23. Then, the data retrieval viewpoint definition information 25 is subjected to SQL conversion.
  • the calculation is performed on the data for January, and it is determined whether the calculation result matches the value of the total data.
  • an operation may be performed on the data for each month, and it may be determined whether or not the operation result and the value of the aggregate data match for all the month data.
  • the database design support apparatus 100 defines a calculation method for data items whose classification type 13 is aggregated data, based on the calculation information 17 used in the tabular data 11. Thereby, it is possible to generate the database definition information 21 that can calculate the value of the data item that is not generated as an attribute of the table from the value of the data item generated as the attribute. As a result, it is possible to reduce the load on the system builder when designing the database.
  • the calculation method is performed by converting the units. Define As a result, it is possible to reduce the load on the system builder when designing the database.
  • FIG. 18 is a diagram illustrating a hardware configuration example of the database design support apparatus 100 according to the first and second embodiments.
  • the database design support apparatus 100 is a computer.
  • the database design support apparatus 100 includes hardware such as a processor 901, an auxiliary storage device 902, a memory 903, a communication device 904, an input interface 905, and a display interface 906.
  • the processor 901 is connected to other hardware via the signal line 910, and controls these other hardware.
  • the input interface 905 is connected to the input device 907 by a cable 911.
  • the display interface 906 is connected to the display 908 by a cable 912.
  • the processor 901 is an IC (Integrated Circuit) that performs processing.
  • the processor 901 is, for example, a CPU (Central Processing Unit), a DSP (Digital Signal Processor), or a GPU (Graphics Processing Unit).
  • the auxiliary storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or an HDD (Hard Disk Drive).
  • the memory 903 is, for example, a RAM (Random Access Memory).
  • the communication device 904 includes a receiver 9041 that receives data and a transmitter 9042 that transmits data.
  • the communication device 904 is, for example, a communication chip or a NIC (Network Interface Card).
  • the input interface 905 is a port to which the cable 911 of the input device 907 is connected.
  • the input interface 905 is, for example, a USB (Universal Serial Bus) terminal.
  • the display interface 906 is a port to which the cable 912 of the display 908 is connected.
  • the display interface 906 is, for example, a USB terminal or an HDMI (registered trademark) (High Definition Multimedia Interface) terminal.
  • the input device 907 is, for example, a mouse, a keyboard, or a touch panel.
  • the display 908 is, for example, an LCD (Liquid Crystal Display).
  • the auxiliary storage device 902 includes the interface unit 110, the data display unit 111, the group information reception unit 112, the type reception unit 113, the table information reception unit 114, the generation instruction reception unit 115, the calculation information acquisition unit 116, and unit conversion information.
  • Acquisition unit 117, processing unit 120, table definition unit 121, hierarchy definition unit 122, calculation unit 123, calculation definition unit 124 (hereinafter, interface unit 110, data display unit 111, group information reception unit 112, type reception unit 113, table
  • the information reception unit 114, the generation instruction reception unit 115, the calculation information acquisition unit 116, the unit conversion information acquisition unit 117, the processing unit 120, the table definition unit 121, the hierarchy definition unit 122, the calculation unit 123, and the calculation definition unit 124 are collectively referred to as “ A program that realizes the function of “part” is stored.
  • This program is loaded into the memory 903, read into the processor 901, and executed by the processor 901. Further, the auxiliary storage device 902 also stores an OS (Operating System). Then, at least a part of the OS is loaded into the memory 903, and the processor 901 executes a program that realizes the function of “unit” while executing the OS.
  • the database design support apparatus 100 may include a plurality of processors 901. A plurality of processors 901 may execute a program for realizing the function of “unit” in cooperation with each other.
  • information, data, signal values, and variable values indicating the results of the processing of “unit” are stored as files in the memory 903, the auxiliary storage device 902, or a register or cache memory in the processor 901.
  • Parts may be provided by “Circuitry”. Further, “part” may be read as “circuit”, “process”, “procedure”, or “processing”. “Circuit” and “Circuitry” include not only the processor 901 but also other types of processing circuits such as logic IC, GA (Gate Array), ASIC (Application Specific Integrated Circuit), or FPGA (Field-Programmable Gate Array). It is a concept to include.
  • 100 database design support device 110 interface unit, 111 data display unit, 112 group information reception unit, 113 type reception unit, 114 table information reception unit, 115 generation instruction reception unit, 116 calculation information acquisition unit, 117 unit conversion information acquisition unit , 120 processing section, 121 table definition section, 122 hierarchy definition section, 123 calculation section, 124 calculation definition section, 11 tabular data, 12 group information, 13 classification type, 14 table name, 15 instruction information, 16 item classification information, 17 calculation information, 18 unit conversion information, 21 database definition information, 22 table definition information, 23 hierarchy definition information, 24 calculation definition information, 25 data search viewpoint definition information.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

For each data item which chart data (11) comprises, an interface unit (110) accepts input of a classification type (13) which signifies whether the data item is discrete data, or aggregate data in which the discrete data have been aggregated. A processing unit (120) generates database definition information (21), which includes table definition information (22) in which the data items for which the classification type is the discrete data are treated as attributes, and hierarchy definition information (23) in which the data items for which the classification type (13) is the aggregate data are treated as parents, and the data items for which the classification type (13) is the discrete data are treated as children.

Description

データベース設計支援装置及びデータベース設計支援プログラムDatabase design support apparatus and database design support program
 この発明は、表形式データを用いてデータベース設計を支援する技術に関する。 This invention relates to a technology for supporting database design using tabular data.
 既存データベースシステムの改善と新規データベースシステムの構築とを行う場合、システム構築者はデータベース設計を行いデータベース定義情報を生成する。この際、システム構築者は、既存システムの設計情報と、設備の構成情報等が記載された図面と等を利用してデータベース定義情報を生成する。 場合 When an existing database system is improved and a new database system is constructed, the system builder designs the database and generates database definition information. At this time, the system builder generates the database definition information by using the design information of the existing system and the drawing in which the facility configuration information is described.
 特許文献1には、データ項目とデータ項目に属するデータとを含む表形式データを入力としてデータベース定義情報を生成することが記載されている。特許文献1では、表形式データの1つのシートを1つのデータ単位としてデータベースのデータ格納用テーブルを構築する。これにより、データベース言語等の専門知識習得を含むデータベースシステム構築作業の負荷軽減を図っている。 Patent Document 1 describes that database definition information is generated by inputting tabular data including data items and data belonging to the data items. In Patent Document 1, a data storage table of a database is constructed using one sheet of tabular data as one data unit. As a result, the load of database system construction work including acquisition of specialized knowledge such as a database language is reduced.
特開2004-341770号公報JP 2004-341770 A
 特許文献1に記載された技術では、データ検索速度とアプリケーション開発効率と等は全く考慮されず、表形式データのデータ項目を属性として持つテーブルを単純に定義するだけである。そのため、システム構築者は、生成されたデータベース定義情報の修正に長い時間がかかってしまう。
 この発明は、データベース設計時のシステム構築者の負荷を軽減することを目的とする。
In the technique described in Patent Document 1, data retrieval speed and application development efficiency are not considered at all, and a table having data items of tabular data as attributes is simply defined. Therefore, the system builder takes a long time to correct the generated database definition information.
An object of the present invention is to reduce the load on a system builder when designing a database.
 この発明に係るデータベース設計支援装置は、
 表形式データが有する複数のデータ項目をグループ分けした各グループを示すグループ情報の入力を受け付けるグループ情報受付部と、
 前記表形式データが有する各データ項目について、個別データであるか、前記個別データを集計した集計データであるかを示す分類種別の入力を受け付ける種別受付部と、
 前記種別受付部が受け付けた分類種別が個別データであるデータ項目を示す属性を持つテーブル定義情報を生成するテーブル定義部と、
 前記グループ情報受付部が受け付けたグループ情報が示す各グループについて、前記分類種別が集計データであるデータ項目を親とし、前記分類種別が個別データであるデータ項目を子とする階層定義情報を生成する階層定義部と
を備える。
The database design support apparatus according to the present invention is:
A group information receiving unit that receives input of group information indicating each group obtained by grouping a plurality of data items included in tabular data;
For each data item that the tabular data has, a type reception unit that receives input of a classification type indicating whether it is individual data or total data obtained by totaling the individual data;
A table definition unit for generating table definition information having an attribute indicating a data item whose classification type received by the type reception unit is individual data;
For each group indicated by the group information received by the group information reception unit, hierarchy definition information is generated with a data item whose classification type is aggregated data as a parent and a data item whose classification type is individual data as a child. And a hierarchy definition unit.
 この発明では、分類種別が個別データであるデータ項目を示す属性を持つテーブルを定義し、分類種別が集計データであるデータ項目については、分類種別が個別データであるデータ項目との間の階層定義情報を生成する。これにより、テーブルの属性数を少なく抑えることができ、効率的なテーブルが定義される。したがって、システム構築者の修正作業の負荷が減り、データベース設計時のシステム構築者の負荷を軽減することができる。 In this invention, a table having an attribute indicating a data item whose classification type is individual data is defined, and for a data item whose classification type is aggregated data, a hierarchy definition between the data item whose classification type is individual data Generate information. As a result, the number of table attributes can be reduced, and an efficient table is defined. Therefore, the load of correction work of the system builder is reduced, and the load of the system builder when designing the database can be reduced.
実施の形態1に係るデータベース設計支援装置100の構成図。1 is a configuration diagram of a database design support apparatus 100 according to Embodiment 1. FIG. 表形式データ11の説明図。Explanatory drawing of the tabular data 11. FIG. 項目分類情報16の説明図。Explanatory drawing of the item classification information 16. FIG. インターフェース部110の動作を示すフローチャート。5 is a flowchart showing the operation of the interface unit 110. 入力画面31の説明図。Explanatory drawing of the input screen 31. FIG. テーブル定義部121の動作であるテーブル定義処理を示すフローチャート。The flowchart which shows the table definition process which is operation | movement of the table definition part 121. FIG. テーブル定義処理の説明図。Explanatory drawing of a table definition process. 階層定義部122の動作である階層定義処理を示すフローチャート。7 is a flowchart showing a hierarchy definition process that is an operation of the hierarchy definition unit 122; 階層定義処理の説明図。Explanatory drawing of a hierarchy definition process. 実施の形態2に係るデータベース設計支援装置100の構成図。The block diagram of the database design assistance apparatus 100 which concerns on Embodiment 2. FIG. 単位変換情報18の説明図。Explanatory drawing of the unit conversion information 18. FIG. 演算部123及び演算定義部124の動作である演算定義処理を示すフローチャート。The flowchart which shows the calculation definition process which is operation | movement of the calculating part 123 and the calculation definition part 124. FIG. 演算部123及び演算定義部124の動作である演算定義処理を示すフローチャート。The flowchart which shows the calculation definition process which is operation | movement of the calculating part 123 and the calculation definition part 124. FIG. 図12に示す処理の動作例を示す図。The figure which shows the operation example of the process shown in FIG. 図12に示す処理の説明図。Explanatory drawing of the process shown in FIG. 図13に示す処理の動作例を示す図。The figure which shows the operation example of the process shown in FIG. 図13に示す処理の説明図。Explanatory drawing of the process shown in FIG. 実施の形態1,2に係るデータベース設計支援装置100のハードウェア構成例を示す図。The figure which shows the hardware structural example of the database design assistance apparatus 100 which concerns on Embodiment 1,2.
 実施の形態1.
 ***構成の説明***
 図1に基づき、実施の形態1に係るデータベース設計支援装置100の構成を説明する。
 データベース設計支援装置100は、インターフェース部110と、処理部120とを備える。
Embodiment 1 FIG.
*** Explanation of configuration ***
Based on FIG. 1, the structure of the database design support apparatus 100 which concerns on Embodiment 1 is demonstrated.
The database design support apparatus 100 includes an interface unit 110 and a processing unit 120.
 インターフェース部110は、システム構築者等のデータベース設計支援装置100のユーザとのインターフェースである。
 インターフェース部110は、データ表示部111と、グループ情報受付部112と、種別受付部113と、テーブル情報受付部114と、生成指示受付部115とを備える。
The interface unit 110 is an interface with a user of the database design support apparatus 100 such as a system builder.
The interface unit 110 includes a data display unit 111, a group information reception unit 112, a type reception unit 113, a table information reception unit 114, and a generation instruction reception unit 115.
 データ表示部111は、ユーザによって指定された表形式データ11を示した入力画面を表示装置に表示する。表形式データ11は、複数のデータ項目を有しており、各データ項目について値が設定されている。
 データ表示部111は、表形式データ11を表の状態で表示してもよいし、表形式データ11をグラフとして表示できる場合には、グラフとして表示してもよい。
The data display unit 111 displays an input screen showing the tabular data 11 designated by the user on the display device. The tabular data 11 has a plurality of data items, and a value is set for each data item.
The data display unit 111 may display the tabular data 11 in a table state, or may display the tabular data 11 as a graph when the tabular data 11 can be displayed as a graph.
 グループ情報受付部112は、表形式データ11が有する複数のデータ項目をグループ分けした各グループを示すグループ情報12の入力を受け付ける。ここでは、グループ情報受付部112は、データ表示部111が表示した入力画面をユーザが操作することにより入力されたグループ情報12を受け付ける。 The group information receiving unit 112 receives input of group information 12 indicating each group obtained by grouping a plurality of data items included in the tabular data 11. Here, the group information receiving unit 112 receives the group information 12 input by the user operating the input screen displayed by the data display unit 111.
 種別受付部113は、表形式データ11が有する各データ項目について、個別データであるか、個別データを集計した集計データであるかの分類種別13の入力を受け付ける。つまり、種別受付部113は、各データ項目について、そのデータ項目がある設備についての計測値等が設定される個別データであるか、複数の個別データの値を集計した値が設定される集計データであるかの分類種別13の入力を受け付ける。ここでは、種別受付部113は、データ表示部111が表示した入力画面をユーザが操作することにより入力された分類種別13の入力を受け付ける。 The type reception unit 113 receives an input of the classification type 13 as to whether each data item included in the tabular data 11 is individual data or total data obtained by tabulating the individual data. That is, for each data item, the type accepting unit 113 is individual data in which a measurement value or the like for a facility with the data item is set, or total data in which a value obtained by totaling values of a plurality of individual data is set The input of the classification type 13 is received. Here, the type receiving unit 113 receives an input of the classification type 13 input by the user operating the input screen displayed by the data display unit 111.
 テーブル情報受付部114は、表形式データ11が有する各データ項目について、そのデータ項目のデータを格納するためのテーブルのテーブル名14の入力を受け付ける。
 なお、テーブル情報受付部114は、テーブル名14の入力がない場合には、表形式データ11のファイル名を自動的にテーブル名14として設定してもよい。
The table information receiving unit 114 receives an input of a table name 14 of a table for storing data of each data item included in the tabular data 11.
The table information receiving unit 114 may automatically set the file name of the tabular data 11 as the table name 14 when the table name 14 is not input.
 生成指示受付部115は、処理部120にデータベース定義情報21の生成を指示する指示情報15の入力を受け付ける。
 生成指示受付部115は、指示情報15の入力を受け付けると、データ表示部111が表示した表形式データ11を処理部120へ出力する。また、生成指示受付部115は、グループ情報受付部112が受け付けたグループ情報12と、種別受付部113が受け付けた分類種別13と、テーブル情報受付部114が受け付けたテーブル名14とを含む項目分類情報16を処理部120へ出力する。
The generation instruction reception unit 115 receives input of instruction information 15 that instructs the processing unit 120 to generate the database definition information 21.
When receiving the input of the instruction information 15, the generation instruction receiving unit 115 outputs the tabular data 11 displayed by the data display unit 111 to the processing unit 120. Further, the generation instruction receiving unit 115 includes an item classification including the group information 12 received by the group information receiving unit 112, the classification type 13 received by the type receiving unit 113, and the table name 14 received by the table information receiving unit 114. Information 16 is output to the processing unit 120.
 なお、ここでは、グループ情報受付部112は、分類種別13が個別データであるデータ項目と、分類種別13が個別データであるデータ項目を集計した、分類種別13が集計データであるデータ項目とが同じグループになるようにグループ分けしたグループ情報12を受け付ける。 Here, the group information receiving unit 112 includes a data item in which the classification type 13 is individual data and a data item in which the classification type 13 is total data. Group information 12 grouped so as to be the same group is received.
 処理部120は、生成指示受付部115が出力した項目分類情報16及び表形式データ11に基づき、データベース定義情報21を生成する。
 処理部120は、テーブル定義部121と、階層定義部122とを備える。
The processing unit 120 generates the database definition information 21 based on the item classification information 16 and the tabular data 11 output from the generation instruction receiving unit 115.
The processing unit 120 includes a table definition unit 121 and a hierarchy definition unit 122.
 テーブル定義部121は、データベース定義情報21の1つであるテーブル定義情報22を生成する。テーブル定義部121は、種別受付部113が受け付けた分類種別13が個別データであるデータ項目を示す属性を持ち、テーブル情報受付部114が受け付けたテーブル名14をテーブルの名称とするテーブル定義情報22を生成する。
 ここでは、テーブル定義部121は、少なくともいずれかのグループにおいて分類種別13が集計データとなっているデータ項目については属性として持たず、分類種別13が個別データであるデータ項目だけを属性として持つテーブル定義情報22を生成する。
The table definition unit 121 generates table definition information 22 that is one of the database definition information 21. The table definition unit 121 has an attribute indicating a data item in which the classification type 13 received by the type reception unit 113 is individual data, and table definition information 22 having the table name 14 received by the table information reception unit 114 as the table name. Is generated.
Here, the table definition unit 121 does not have a data item whose classification type 13 is aggregated data in at least one of the groups as an attribute, and has only a data item whose classification type 13 is individual data as an attribute. Definition information 22 is generated.
 階層定義部122は、データベース定義情報21の1つである階層定義情報23を生成する。階層定義部122は、グループ情報12が示す各グループについて、分類種別13が集計データであるデータ項目を親とし、分類種別13が個別データであるデータ項目を子とする階層定義情報23を生成する。 The hierarchy definition unit 122 generates hierarchy definition information 23 that is one of the database definition information 21. The hierarchy definition unit 122 generates, for each group indicated by the group information 12, hierarchy definition information 23 having a data item whose classification type 13 is aggregated data as a parent and a data item whose classification type 13 is individual data as a child. .
 図2に基づき、表形式データ11を説明する。
 表形式データ11は、複数のデータ項目を有しており、各データ項目について値が設定されている。また、表形式データ11は、各データ項目の値の基準を示す単位が設定されている。
 図2では、ファイルAという名称の表形式データ11が示されている。表形式データ11は、ビル全体と、1Fと、2Fと、3Fとのデータ項目を有しており、各データ項目について、1月から12月までの電力量が設定されている。また、図2では、各データ項目の値の単位としてKW(キロワット)が設定されている。
The tabular data 11 will be described with reference to FIG.
The tabular data 11 has a plurality of data items, and a value is set for each data item. In the tabular data 11, a unit indicating a reference value of each data item is set.
In FIG. 2, tabular data 11 named file A is shown. The tabular data 11 has data for the entire building, 1F, 2F, and 3F, and the amount of power from January to December is set for each data item. In FIG. 2, KW (kilowatt) is set as the unit of the value of each data item.
 図3に基づき、項目分類情報16を説明する。
 項目分類情報16は、複数のデータ項目それぞれについて、データ項目名と、種別と、グループ名と、単位と、テーブル名と、表形式データ名との項目を有する。
 データ項目名は、表形式データ11で定義されたデータ項目の名称を示す。種別は、種別受付部113が受け付けたデータ項目の分類種別13を示す。グループ名は、グループ情報受付部112が受け付けたグループ情報12が示すデータ項目のグループを識別する名称を示す。単位は、表形式データ11で定義されたデータ項目の単位を示す。テーブル名は、テーブル情報受付部114が受け付けたデータ項目を格納するためのテーブル名14を示す。表形式データ名は、表形式データ11のファイル名及びファイルパスを示す。
The item classification information 16 will be described with reference to FIG.
The item classification information 16 has items of data item name, type, group name, unit, table name, and tabular data name for each of a plurality of data items.
The data item name indicates the name of the data item defined in the tabular data 11. The type indicates the classification type 13 of the data item received by the type receiving unit 113. The group name indicates a name for identifying a group of data items indicated by the group information 12 received by the group information receiving unit 112. The unit indicates the unit of the data item defined by the tabular data 11. The table name indicates the table name 14 for storing the data item received by the table information receiving unit 114. The tabular data name indicates the file name and file path of the tabular data 11.
 ***動作の説明***
 図4から図9に基づき、実施の形態1に係るデータベース設計支援装置100の動作を説明する。
 実施の形態1に係るデータベース設計支援装置100の動作は、実施の形態1に係るデータベース設計支援方法に相当する。また、実施の形態1に係るデータベース設計支援装置100の動作は、実施の形態1に係るデータベース設計支援プログラムの処理に相当する。
*** Explanation of operation ***
The operation of the database design support apparatus 100 according to the first embodiment will be described with reference to FIGS.
The operation of the database design support apparatus 100 according to the first embodiment corresponds to the database design support method according to the first embodiment. The operation of the database design support apparatus 100 according to the first embodiment corresponds to the processing of the database design support program according to the first embodiment.
 図4及び図5に基づき、インターフェース部110の動作を説明する。
 S101のデータ表示処理では、データ表示部111が、ユーザによって指定された表形式データ11を示した、図5のような入力画面31を表示する。
 入力画面31には、表形式データ11の表示欄32と、項目分類情報16の表示欄33とがある。表形式データ11の表示欄32には、表形式データ11の選択欄34がある。選択欄34に指定する表形式データ11が示された状態で、選択ボタンが押下されると、表形式データ11が指定され、指定された表形式データ11が表示される。ここでは、図2に示すファイルAという名称の表形式データ11が指定され、表形式データ11がグラフとして表示されている。
The operation of the interface unit 110 will be described with reference to FIGS.
In the data display process of S101, the data display unit 111 displays an input screen 31 as shown in FIG. 5 showing the tabular data 11 designated by the user.
The input screen 31 includes a display field 32 for tabular data 11 and a display field 33 for item classification information 16. The display column 32 for the tabular data 11 includes a selection column 34 for the tabular data 11. When the selection button is pressed while the table format data 11 designated in the selection field 34 is shown, the table format data 11 is designated, and the designated table format data 11 is displayed. Here, tabular data 11 named file A shown in FIG. 2 is designated, and tabular data 11 is displayed as a graph.
 S102のグループ情報受付処理と、S103の種別受付処理と、S104のテーブル情報受付処理とでは、グループ情報受付部112と種別受付部113とテーブル情報受付部114とが、ユーザによって入力画面31が操作され入力された、項目分類情報16を構成する各種情報を受け付ける。
 ここでは、グループ情報受付処理でグループ情報受付部112が、ビル全体と1Fと2Fと3Fとのデータ項目を1つのグループとし、名称をBUILDとするグループ情報12を受け付ける。種別受付処理で種別受付部113が、ビル全体について集計データであることを示し、1Fと2Fと3Fとについて、個別データであることを示す分類種別13を受け付ける。テーブル情報受付処理でテーブル情報受付部114が、TableAというテーブル名14を受け付ける。
In the group information reception process in S102, the type reception process in S103, and the table information reception process in S104, the group information reception unit 112, the type reception unit 113, and the table information reception unit 114 are operated by the user on the input screen 31. Then, various information constituting the item classification information 16 is received.
Here, in the group information receiving process, the group information receiving unit 112 receives the group information 12 having the entire building, 1F, 2F, and 3F data items as one group and the name as BUILD. In the type reception process, the type reception unit 113 indicates that the data is total data for the entire building, and receives a classification type 13 that indicates individual data for 1F, 2F, and 3F. In the table information receiving process, the table information receiving unit 114 receives a table name 14 called TableA.
 S105の生成指示受付処理では、生成指示受付部115が、指示情報15の入力を受け付け、項目分類情報16と表形式データ11とを処理部120へ出力する。
 ここでは、生成指示受付部115は、指示情報15の入力を受け付けると、図3に示す項目分類情報16と図2に示す表形式データ11とを処理部120へ出力する。
In the generation instruction reception process of S105, the generation instruction reception unit 115 receives the input of the instruction information 15, and outputs the item classification information 16 and the tabular data 11 to the processing unit 120.
Here, when receiving the input of the instruction information 15, the generation instruction receiving unit 115 outputs the item classification information 16 shown in FIG. 3 and the tabular data 11 shown in FIG. 2 to the processing unit 120.
 図6から図9に基づき、処理部120の動作を説明する。
 まず、図6及び図7に基づき、テーブル定義部121の動作であるテーブル定義処理を説明する。
 S201の情報取得処理では、テーブル定義部121が、S105で出力された項目分類情報16を取得する。
The operation of the processing unit 120 will be described with reference to FIGS.
First, based on FIG.6 and FIG.7, the table definition process which is operation | movement of the table definition part 121 is demonstrated.
In the information acquisition process of S201, the table definition unit 121 acquires the item classification information 16 output in S105.
 S202の項目取得処理では、テーブル定義部121が、S201で取得された項目分類情報16から1つのデータ項目を取得する。 In the item acquisition process of S202, the table definition unit 121 acquires one data item from the item classification information 16 acquired in S201.
 S203の種別判定処理では、テーブル定義部121が、S202で取得されたデータ項目の分類種別13が個別データであるか否かを判定する。テーブル定義部121は、個別データである場合(S203でYES)、処理をS204へ進め、集計データである場合(S203でNO)、処理をS205へ進める。 In the type determination process of S203, the table definition unit 121 determines whether or not the classification type 13 of the data item acquired in S202 is individual data. If the table definition unit 121 is individual data (YES in S203), the process proceeds to S204. If the table definition unit 121 is total data (NO in S203), the process proceeds to S205.
 S204の属性追加処理では、テーブル定義部121が、S202で取得されたデータ項目を示す属性をテーブル定義情報22に追加する。
 具体的には、テーブル定義部121は、S202で取得されたデータ項目のテーブル名14を名称とするテーブルがない場合には、その名称のテーブルをテーブル定義情報22に追加した上で、データ項目名を名称とする属性を追加する。一方、テーブル定義部121は、S202で取得されたデータ項目のテーブル名14を名称とするテーブルがある場合には、そのテーブルにデータ項目名を名称とする属性を追加する。
In the attribute addition process of S204, the table definition unit 121 adds an attribute indicating the data item acquired in S202 to the table definition information 22.
Specifically, if there is no table whose name is the table name 14 of the data item acquired in S202, the table definition unit 121 adds the name table to the table definition information 22 and then adds the data item. Add an attribute whose name is the name. On the other hand, when there is a table whose name is the table name 14 of the data item acquired in S202, the table definition unit 121 adds an attribute whose name is the data item name to the table.
 S205の属性判定処理では、テーブル定義部121が、S202で取得されたデータ項目を示す属性がテーブル定義情報22に存在するか否かを判定する。
 具体的には、テーブル定義部121は、S202で取得されたテーブル名14を名称とするテーブルに、データ項目名を名称とする属性がテーブル定義情報22に存在するか否かを判定する。
 テーブル定義部121は、存在する場合(S205でYES)、処理をS206へ進め、存在しない場合(S205でNO)、処理をS207へ進める。
In the attribute determination process of S205, the table definition unit 121 determines whether an attribute indicating the data item acquired in S202 exists in the table definition information 22.
Specifically, the table definition unit 121 determines whether or not the table definition information 22 includes an attribute having the name of the data item name in the table having the name of the table name 14 acquired in S202.
If the table definition unit 121 exists (YES in S205), the process proceeds to S206. If the table definition unit 121 does not exist (NO in S205), the process proceeds to S207.
 S206の属性削除処理では、テーブル定義部121が、S202で取得されたデータ項目を示す属性をテーブル定義情報22から削除する。
 具体的には、テーブル定義部121は、S202で取得されたテーブル名14を名称とするテーブルの、データ項目名を名称とする属性を、テーブル定義情報22から削除する。
In the attribute deletion process of S206, the table definition unit 121 deletes the attribute indicating the data item acquired in S202 from the table definition information 22.
Specifically, the table definition unit 121 deletes from the table definition information 22 the attribute whose name is the data item name of the table whose name is the table name 14 acquired in S202.
 S207の項目判定処理では、テーブル定義部121が、S202で取得されたデータ項目が、S201で取得された項目分類情報16の最後のデータ項目か否かを判定する。
 テーブル定義部121は、最後のデータ項目である場合(S207でYES)、処理をS208へ進め、最後のデータ項目でない場合(S207でNO)、処理をS202へ戻す。
In the item determination process of S207, the table definition unit 121 determines whether or not the data item acquired in S202 is the last data item of the item classification information 16 acquired in S201.
If it is the last data item (YES in S207), the table defining unit 121 advances the process to S208. If it is not the last data item (NO in S207), the table defining unit 121 returns the process to S202.
 S208の変換処理では、テーブル定義部121が、テーブル定義情報22をデータベース操作言語に変換する。ここでは、テーブル定義部121は、テーブル定義情報22をSQL(Structured Query Language)変換する。 In the conversion process of S208, the table definition unit 121 converts the table definition information 22 into a database operation language. Here, the table definition unit 121 converts the table definition information 22 into SQL (Structured Query Language).
 ここでは、テーブル定義処理により、図7に示すように、分類種別13が個別データである1Fと2Fと3Fとの属性を有するTableAというテーブルが定義されたテーブル定義情報22が生成される。そして、テーブル定義情報22がSQL変換される。 Here, as shown in FIG. 7, the table definition process generates table definition information 22 in which a table called TableA having attributes of 1F, 2F, and 3F whose classification type 13 is individual data is defined. Then, the table definition information 22 is subjected to SQL conversion.
 次に、図8及び図9に基づき、階層定義部122の動作である階層定義処理を説明する。
 S301の情報取得処理では、階層定義部122が、S105で出力された項目分類情報16を取得する。
Next, the hierarchy definition process that is the operation of the hierarchy definition unit 122 will be described with reference to FIGS.
In the information acquisition process of S301, the hierarchy definition unit 122 acquires the item classification information 16 output in S105.
 S302の項目取得処理では、階層定義部122が、S301で取得された項目分類情報16から1つのデータ項目を取得する。 In the item acquisition process of S302, the hierarchy definition unit 122 acquires one data item from the item classification information 16 acquired in S301.
 S303の種別判定処理では、階層定義部122が、S302で取得されたデータ項目の分類種別13が集計データであるか否かを判定する。階層定義部122は、集計データである場合(S303でYES)、処理をS304へ進め、個別データである場合(S303でNO)、処理をS308へ進める。 In the type determination process of S303, the hierarchy definition unit 122 determines whether or not the classification type 13 of the data item acquired in S302 is total data. The hierarchy definition unit 122 advances the process to S304 if the data is aggregate data (YES in S303), and advances the process to S308 if the data is individual data (NO in S303).
 S304の第1階層判定処理では、階層定義部122が、同じグループの個別データが階層定義情報23に存在するか否かを判定する。
 具体的には、階層定義部122は、S302で取得されたデータ項目のグループ名と同じグループ名のデータ項目であって、分類種別13が個別データであるデータ項目が階層定義情報23に存在するか否かを判定する。
 階層定義部122は、存在しない場合(S304でNO)、処理をS305へ進め、存在する場合(S304でYES)、処理をS306へ進める。
In the first hierarchy determination process of S304, the hierarchy definition unit 122 determines whether or not individual data of the same group exists in the hierarchy definition information 23.
Specifically, the hierarchy definition unit 122 includes a data item having the same group name as the data item group name acquired in S <b> 302 and having the classification type 13 as individual data in the hierarchy definition information 23. It is determined whether or not.
If the hierarchy definition unit 122 does not exist (NO in S304), the process proceeds to S305, and if it exists (YES in S304), the process proceeds to S306.
 S305の第1初期階層設定処理では、階層定義部122が、集計データについての初期階層であるi階層の要素として、S302で取得されたデータ項目を階層定義情報23に追加する。 In the first initial hierarchy setting process of S305, the hierarchy definition unit 122 adds the data item acquired in S302 to the hierarchy definition information 23 as an element of the i hierarchy that is the initial hierarchy for the aggregated data.
 S306の第1階層取得処理では、階層定義部122が、同じグループの個別データの階層jを取得する。そして、S307の親階層設定処理では、階層定義部122が、S306で取得された階層jの親階層である階層j-1の要素として、S302で取得されたデータ項目を階層定義情報23に追加する。 In the first hierarchy acquisition process of S306, the hierarchy definition unit 122 acquires the hierarchy j of the individual data of the same group. In the parent hierarchy setting process of S307, the hierarchy definition unit 122 adds the data item acquired in S302 to the hierarchy definition information 23 as an element of the hierarchy j-1 that is the parent hierarchy of the hierarchy j acquired in S306. To do.
 S308の第2階層判定処理では、階層定義部122が、同じグループの集計データが階層定義情報23に存在するか否かを判定する。
 具体的には、階層定義部122は、S302で取得されたデータ項目のグループ名と同じグループ名のデータ項目であって、分類種別13が集計データであるデータ項目が階層定義情報23に存在するか否かを判定する。
 階層定義部122は、存在しない場合(S308でNO)、処理をS309へ進め、存在する場合(S308でYES)、処理をS310へ進める。
In the second hierarchy determination process of S308, the hierarchy definition unit 122 determines whether or not the aggregate data of the same group exists in the hierarchy definition information 23.
More specifically, the hierarchy definition unit 122 includes a data item having the same group name as the data item group name acquired in S <b> 302, and a data item whose classification type 13 is aggregated data exists in the hierarchy definition information 23. It is determined whether or not.
If the hierarchy definition unit 122 does not exist (NO in S308), the process proceeds to S309, and if it exists (YES in S308), the process proceeds to S310.
 S309の第2初期階層設定処理では、階層定義部122が、個別データについての初期階層であるk階層の要素として、S302で取得されたデータ項目を階層定義情報23に追加する。 In the second initial hierarchy setting process of S309, the hierarchy definition unit 122 adds the data item acquired in S302 to the hierarchy definition information 23 as an element of the k hierarchy that is the initial hierarchy for the individual data.
 S310の第2階層取得処理では、階層定義部122が、同じグループの集計データの階層mを取得する。そして、S311の子階層設定処理では、階層定義部122が、S310で取得された階層mの子階層である階層m+1の要素として、S302で取得されたデータ項目を階層定義情報23に追加する。 In the second hierarchy acquisition process of S310, the hierarchy definition unit 122 acquires the hierarchy m of the aggregate data of the same group. Then, in the child hierarchy setting process of S311, the hierarchy definition unit 122 adds the data item acquired in S302 to the hierarchy definition information 23 as an element of the hierarchy m + 1 that is a child hierarchy of the hierarchy m acquired in S310.
 S312の項目判定処理では、階層定義部122が、S302で取得されたデータ項目が、S301で取得された項目分類情報16の最後のデータ項目か否かを判定する。
 階層定義部122は、最後のデータ項目である場合(S312でYES)、処理をS313へ進め、最後のデータ項目でない場合(S312でNO)、処理をS302へ戻す。
In the item determination process of S312, the hierarchy definition unit 122 determines whether the data item acquired in S302 is the last data item of the item classification information 16 acquired in S301.
If it is the last data item (YES in S312), the hierarchy defining unit 122 advances the process to S313, and if it is not the last data item (NO in S312), returns the process to S302.
 S313の変換処理では、階層定義部122が、階層定義情報23をデータベース操作言語に変換する。ここでは、階層定義部122は、階層定義情報23をSQL変換する。 In the conversion process of S313, the hierarchy definition unit 122 converts the hierarchy definition information 23 into a database operation language. Here, the hierarchy definition unit 122 performs SQL conversion on the hierarchy definition information 23.
 ここでは、階層定義処理により、図9に示すように、分類種別13が集計データであるビル全体を親とし、分類種別13が個別データである1Fと2Fと3Fとして定義された階層定義情報23が生成される。そして、階層定義情報23がSQL変換される。 Here, as shown in FIG. 9, the hierarchy definition information 23 is defined as 1F, 2F, and 3F in which the classification type 13 is the individual data, and the classification type 13 is the individual data. Is generated. Then, the hierarchy definition information 23 is subjected to SQL conversion.
 ***効果の説明***
 以上のように、実施の形態1に係るデータベース設計支援装置100では、既存システム等から出力された表形式データ11を操作させることにより、テーブル定義情報22と階層定義情報23とを含むデータベース定義情報21を生成することが可能である。特に、データベース定義情報21では、テーブル定義情報22は分類種別13が個別データであるデータ項目のみを属性として有している。
 そのため、テーブルの属性数を少なく抑えることができ、効率的なテーブルが定義される。したがって、システム構築者の修正作業の負荷が減り、データベース設計時のシステム構築者の負荷を軽減することができる。
*** Explanation of effects ***
As described above, in the database design support apparatus 100 according to the first embodiment, the database definition information including the table definition information 22 and the hierarchy definition information 23 is obtained by operating the table format data 11 output from the existing system or the like. 21 can be generated. In particular, in the database definition information 21, the table definition information 22 has only data items whose classification type 13 is individual data as attributes.
Therefore, the number of table attributes can be reduced, and an efficient table is defined. Therefore, the load of correction work of the system builder is reduced, and the load of the system builder when designing the database can be reduced.
 また、実施の形態1に係るデータベース設計支援装置100では、表形式データ11の操作には、設計情報の理解や、データベース言語等の専門知識の習得は必要ない。そのため、システム構築者の事前作業の負荷が減り、データベース設計時のシステム構築者の負荷を軽減することができる。 In the database design support apparatus 100 according to the first embodiment, the operation of the tabular data 11 does not require understanding of design information and acquisition of specialized knowledge such as a database language. As a result, the load on the system builder's prior work is reduced, and the load on the system builder when designing the database can be reduced.
 また、表形式データ11が既存システムから出力されるものである場合には、既存システムの利用者は表形式データ11の使用経験があることが多い。そのため、この場合、表形式データ11の操作は、既存システム等を利用している利用者であっても行うことが可能である。特に、デモシステム等の簡易システムのデータベース設計であれば、利用者であっても行うことが可能となる。 Further, when the tabular data 11 is output from an existing system, users of the existing system often have experience using the tabular data 11. Therefore, in this case, the operation of the tabular data 11 can be performed even by a user who uses an existing system or the like. In particular, a simple system database design such as a demo system can be performed even by a user.
 なお、上記説明では、1つの表形式データ11だけを対象とする場合を説明した。しかし、複数の表形式データ11を対象とすることも可能である。
 複数の表形式データ11を対象とする場合、インターフェース部110が、図4のS101からS105の処理を各表形式データ11について実行すればよい。この際、S104で同一のテーブル名14を指定すれば、複数の表形式データ11におけるデータ項目を1つのテーブルの属性とすることも可能である。
In the above description, the case where only one tabular data 11 is targeted has been described. However, a plurality of tabular data 11 can be targeted.
When a plurality of tabular data 11 are targeted, the interface unit 110 may perform the processing from S101 to S105 of FIG. At this time, if the same table name 14 is designated in S104, data items in the plurality of tabular data 11 can be set as attributes of one table.
 複数の表形式データ11を対象とする場合、図6に示す処理では、実行順序によっては、ある表形式データ11で分類種別13が集計データとなっているデータ項目が属性としてテーブル定義情報22に定義されてしまう可能性がある。
 例えば、データ項目Xについて、表形式データ11Yでは、個別データとなっており、表形式データ11Zでは、集計データとなっているとする。この場合に、表形式データ11Yが表形式データ11Zよりも先に処理されれば、表形式データ11Yの処理においてデータ項目Xが属性として定義されるが、表形式データ11Zの処理においてデータ項目Xを定義した属性が削除される。したがって、データ項目Xは属性としてテーブル定義情報22に定義されない。しかし、表形式データ11Zが表形式データ11Yよりも先に処理されると、表形式データ11Zの処理ではデータ項目Xが属性として定義されず、表形式データ11Yの処理においてデータ項目Xが属性として定義される。したがって、データ項目Xは属性としてテーブル定義情報22に定義されてしまう。
 そこで、全ての表形式データ11についての処理が終了した後に、全ての表形式データ11における分類種別13が集計データであるデータ項目を対象として、S206の属性削除処理を実行してもよい。これにより、ある表形式データ11で分類種別13が集計データとなっているデータ項目が属性としてテーブル定義情報22に定義されることを防止できる。
When a plurality of tabular data 11 are targeted, in the processing shown in FIG. 6, depending on the execution order, a data item whose classification type 13 is aggregated data in a certain tabular data 11 is included in the table definition information 22 as an attribute. May be defined.
For example, it is assumed that the data item X is individual data in the tabular data 11Y and is total data in the tabular data 11Z. In this case, if the tabular data 11Y is processed before the tabular data 11Z, the data item X is defined as an attribute in the processing of the tabular data 11Y, but the data item X is defined in the processing of the tabular data 11Z. The attribute that defined is deleted. Therefore, the data item X is not defined in the table definition information 22 as an attribute. However, when the tabular data 11Z is processed before the tabular data 11Y, the data item X is not defined as an attribute in the processing of the tabular data 11Z, and the data item X is defined as an attribute in the processing of the tabular data 11Y. Defined. Therefore, the data item X is defined in the table definition information 22 as an attribute.
Therefore, after the process for all the tabular data 11 is completed, the attribute deletion process of S206 may be executed for the data item whose classification type 13 is the total data in all the tabular data 11. Thereby, it is possible to prevent a data item in which the classification type 13 is aggregated data in a certain table format data 11 from being defined in the table definition information 22 as an attribute.
 また、上記説明では、表形式データ11には、各データ項目の値について単位が設定されているとした。しかし、単位が設定されていない場合も考えられる。この場合、テーブル情報受付部114がテーブル名14とともに、各データ項目の値について単位の入力を受け付ければよい。 Further, in the above description, the table format data 11 is assumed to have a unit set for the value of each data item. However, there may be a case where no unit is set. In this case, the table information reception part 114 should just receive the unit input about the value of each data item with the table name 14. FIG.
 実施の形態2.
 実施の形態2では、個別データを入力として集計データを演算する方法を定義した演算定義情報24を生成する点が実施の形態1と異なる。実施の形態2では、この異なる点について説明する。
Embodiment 2. FIG.
The second embodiment is different from the first embodiment in that calculation definition information 24 that defines a method for calculating aggregate data by using individual data as input is generated. In the second embodiment, this different point will be described.
 ***構成の説明***
 図10に基づき、実施の形態2に係るデータベース設計支援装置100の構成を説明する。
 インターフェース部110が演算情報取得部116と単位変換情報取得部117とを備え、処理部120が演算部123と演算定義部124とを備える点が、図1に示すデータベース設計支援装置100と異なる。
*** Explanation of configuration ***
Based on FIG. 10, the structure of the database design assistance apparatus 100 which concerns on Embodiment 2 is demonstrated.
1 differs from the database design support apparatus 100 shown in FIG. 1 in that the interface unit 110 includes a calculation information acquisition unit 116 and a unit conversion information acquisition unit 117, and the processing unit 120 includes a calculation unit 123 and a calculation definition unit 124.
 演算情報取得部116は、演算方法を示す複数の演算情報17を取得する。
 ここでは、表形式データ11は、表計算ソフトウェアに対応した形式のデータである。演算情報取得部116は、表形式データ11が対応した表計算ソフトウェアで規定された、合算、平均等の演算方法を示す演算情報17を表計算ソフトウェアから取得する。
The calculation information acquisition unit 116 acquires a plurality of calculation information 17 indicating a calculation method.
Here, the tabular data 11 is data in a format corresponding to the spreadsheet software. The calculation information acquisition unit 116 acquires calculation information 17 indicating calculation methods such as summation and averaging, which are defined by the spreadsheet software corresponding to the tabular data 11, from the spreadsheet software.
 単位変換情報取得部117は、値の基準を示す単位を他の単位へ変換する変換方法を示す複数の単位変換情報18を取得する。
 ここでは、単位変換情報18は、事前にユーザ等により登録されており、単位変換情報取得部117は登録された単位変換情報18を取得する。なお、単位変換情報18は、表形式データ11の指定時に入力させてもよいし、外部のサーバ等から取得してもよい。
The unit conversion information acquisition unit 117 acquires a plurality of unit conversion information 18 indicating a conversion method for converting a unit indicating a value reference to another unit.
Here, the unit conversion information 18 is registered in advance by a user or the like, and the unit conversion information acquisition unit 117 acquires the registered unit conversion information 18. The unit conversion information 18 may be input when the tabular data 11 is specified, or may be acquired from an external server or the like.
 演算部123は、分類種別13が集計データであるデータ項目を対象項目とし、対象項目と同じグループにおける分類種別13が個別データであるデータ項目の値を入力として、演算情報取得部116が取得した各演算情報17が示す演算方法により演算する。
 演算部123は、対象項目の値の単位と個別データであるデータ項目の値の単位とが異なる場合、単位変換情報取得部117が取得したいずれかの単位変換情報18を使用して、対象項目と同じグループにおける分類種別13が個別データであるデータ項目の値の単位を、対象項目の値の単位に変換する。そして、演算部123は、変換した上で、各演算情報17が示す演算方法により演算する。
The calculation unit 123 uses the data item whose classification type 13 is aggregated data as a target item, and receives the value of the data item whose classification type 13 in the same group as the target item is individual data, and the calculation information acquisition unit 116 acquires it. Calculation is performed by a calculation method indicated by each calculation information 17.
When the unit of the value of the target item is different from the unit of the value of the data item that is individual data, the calculation unit 123 uses the unit conversion information 18 acquired by the unit conversion information acquisition unit 117 to The unit of the value of the data item whose classification type 13 in the same group is individual data is converted into the unit of the value of the target item. Then, the calculation unit 123 performs the calculation by the calculation method indicated by each calculation information 17 after the conversion.
 演算定義部124は、データベース定義情報21の1つである演算定義情報24を生成する。演算定義部124は、演算部123が演算した結果が対象項目の値と一致した場合における演算方法を示す演算情報17を、対象項目についての演算定義情報24として生成する。演算定義部124は、演算部123が単位変換情報18を使用して単位を変換した場合には、演算情報17と、使用した単位変換情報18とを合わせて、演算定義情報24として生成する。 The calculation definition unit 124 generates calculation definition information 24 that is one of the database definition information 21. The calculation definition unit 124 generates the calculation information 17 indicating the calculation method when the result calculated by the calculation unit 123 matches the value of the target item as the calculation definition information 24 for the target item. When the calculation unit 123 uses the unit conversion information 18 to convert units, the calculation definition unit 124 generates the calculation definition information 24 by combining the calculation information 17 and the used unit conversion information 18.
 図11に基づき、単位変換情報18を説明する。
 単位変換情報18は、単位を他の単位へ変換する変換方法を示す。ここでは、各単位変換情報18は、変換後単位と、変換後単位への変換式とを有する。
 図11には、変換後単位である単位W(ワット)についての変換式“単位A(アンペア)×単位V(ボルト)”と、変換後単位である単位J(ジュール)についての変換式“(2.8×10-6)単位KW(キロワット)”とが示されている。
The unit conversion information 18 will be described based on FIG.
The unit conversion information 18 indicates a conversion method for converting a unit to another unit. Here, each unit conversion information 18 has a unit after conversion and a conversion formula to the unit after conversion.
FIG. 11 shows a conversion formula “unit A (ampere) × unit V (volt)” for the unit W (watt) that is the unit after conversion and a conversion formula “( 2.8 × 10 −6 ) units KW (kilowatts) ”.
 ***動作の説明***
 図12から図13に基づき、実施の形態2に係るデータベース設計支援装置100の動作を説明する。ここでは、演算部123及び演算定義部124の動作である演算定義処理を説明する。
 実施の形態2に係るデータベース設計支援装置100の動作は、実施の形態2に係るデータベース設計支援方法に相当する。また、実施の形態2に係るデータベース設計支援装置100の動作は、実施の形態2に係るデータベース設計支援プログラムの処理に相当する。
*** Explanation of operation ***
The operation of the database design support apparatus 100 according to the second embodiment will be described with reference to FIGS. Here, the calculation definition process which is the operation of the calculation unit 123 and the calculation definition unit 124 will be described.
The operation of the database design support apparatus 100 according to the second embodiment corresponds to the database design support method according to the second embodiment. The operation of the database design support apparatus 100 according to the second embodiment corresponds to the processing of the database design support program according to the second embodiment.
 S401の情報取得処理では、演算部123が、S105で出力された項目分類情報16と、複数の演算情報17とを取得する。 In the information acquisition process of S401, the calculation unit 123 acquires the item classification information 16 and the plurality of calculation information 17 output in S105.
 S402の表形式データ取得処理では、演算部123が、S401で取得された項目分類情報16から、1つの表形式データ11を対象データとして、対象データについてのデータ項目を全て取得する。
 S403のグループ取得処理では、演算部123が、S402で取得されたデータ項目から、1つのグループを対象グループとして、対象グループについてのデータ項目を全て取得する。
In the tabular data acquisition process of S402, the calculation unit 123 acquires all data items for the target data from the item classification information 16 acquired in S401, with one tabular data 11 as target data.
In the group acquisition process in S403, the calculation unit 123 acquires all the data items for the target group from the data items acquired in S402, with one group as the target group.
 S404の第1演算情報取得処理では、演算部123が、S401で取得された演算情報17から1つの演算情報17を取得する。
 S405の第1演算実行処理では、演算部123が、対象グループにおける分類種別13が個別データであるデータ項目の値を入力として、S404で取得された演算情報17が示す演算方法により演算を実行する。
 S406の第1結果判定処理では、演算部123が、S405で演算された結果が、対象グループにおける分類種別13が集計データであるデータ項目(対象項目)の値と一致するか否かを判定する。演算部123は、一致する場合(S406でYES)、処理をS407へ進め、一致しない場合(S406でNO)、処理をS408へ進める。
In the first calculation information acquisition process of S404, the calculation unit 123 acquires one calculation information 17 from the calculation information 17 acquired in S401.
In the first calculation execution process of S405, the calculation unit 123 receives the value of the data item whose classification type 13 in the target group is individual data, and executes the calculation by the calculation method indicated by the calculation information 17 acquired in S404. .
In the first result determination process of S406, the calculation unit 123 determines whether the result calculated in S405 matches the value of the data item (target item) whose classification type 13 in the target group is aggregated data. . If they match (YES in S406), operation unit 123 advances the process to S407, and if they do not match (NO in S406), advances the process to S408.
 S407の第1演算定義処理では、演算定義部124が、S404で取得された演算情報17を、対象項目についての演算定義情報24として生成する。 In the first calculation definition process of S407, the calculation definition unit 124 generates the calculation information 17 acquired in S404 as the calculation definition information 24 for the target item.
 S408の第1差分計算処理では、演算部123が、S405で演算された結果と対象項目の値との差分を計算し、差分リストに登録する。
 S409の第1演算判定処理では、演算部123が、S404で取得された演算情報17が、S401で取得された最後の演算情報17であるか否かを判定する。演算部123は、最後の演算情報17である場合(S409でYES)、処理を図13のS501へ進め、最後の演算情報17でない場合(S409でNO)、処理をS404へ戻す。
In the first difference calculation process of S408, the calculation unit 123 calculates the difference between the result calculated in S405 and the value of the target item and registers it in the difference list.
In the first calculation determination process of S409, the calculation unit 123 determines whether or not the calculation information 17 acquired in S404 is the last calculation information 17 acquired in S401. If the calculation unit 123 is the last calculation information 17 (YES in S409), the process proceeds to S501 in FIG. 13, and if it is not the last calculation information 17 (NO in S409), the process returns to S404.
 S410のグループ判定処理では、演算部123が、S403で取得された対象グループについてのデータ項目が、S402で取得された表形式データ11における最後のグループについてのデータ項目であるか否かを判定する。演算部123は、最後のグループについてのデータ項目である場合(S410でYES)、処理をS411へ進め、最後のグループについてのデータ項目でない場合(S410でNO)、処理をS403へ戻す。 In the group determination processing in S410, the calculation unit 123 determines whether the data item for the target group acquired in S403 is the data item for the last group in the tabular data 11 acquired in S402. . If it is a data item for the last group (YES in S410), the arithmetic unit 123 advances the process to S411, and if it is not a data item for the last group (NO in S410), returns the process to S403.
 S411の表形式データ判定処理では、演算部123が、S402で取得された対象データについてのデータ項目が、S401で取得された項目分類情報16における最後の表形式データ11についてのデータ項目であるか否かを判定する。演算部123は、最後の表形式データ11についてのデータ項目である場合(S411でYES)、処理を終了し、最後の表形式データ11についてのデータ項目でない場合(S411でNO)、処理をS402へ戻す。 In the tabular data determination process in S411, the calculation unit 123 determines whether the data item for the target data acquired in S402 is the data item for the last tabular data 11 in the item classification information 16 acquired in S401. Determine whether or not. If it is a data item for the last tabular data 11 (YES in S411), the calculation unit 123 ends the process, and if it is not a data item for the last tabular data 11 (NO in S411), the processing is performed in S402. Return to.
 S501の単位取得処理では、演算部123が、対象グループの分類種別13が個別データである1つのデータ項目を、そのデータ項目の値の単位とともに取得する。 In the unit acquisition process of S501, the calculation unit 123 acquires one data item whose classification type 13 of the target group is individual data together with the value unit of the data item.
 S502の単位判定処理では、演算部123が、対象項目の値の単位と、S501で取得されたデータ項目の値の単位とが同一であるか否かを判定する。演算部123は、同一である場合(S502でYES)、処理をS503へ進め、同一でない場合(S502でNO)、処理をS504へ進める。 In the unit determination process in S502, the calculation unit 123 determines whether the value unit of the target item is the same as the value unit of the data item acquired in S501. If they are the same (YES in S502), operation unit 123 advances the process to S503, and if not (NO in S502), advances the process to S504.
 S503の項目追加処理では、演算部123が、S501で取得されたデータ項目を対象リストに追加する。 In the item addition process of S503, the calculation unit 123 adds the data item acquired in S501 to the target list.
 S504の単位変換情報取得処理では、演算部123が、変換後単位が対象項目の単位であり、変換式にS501で取得されたデータ項目の値の単位を含む単位変換情報18を取得する。
 つまり、演算部123は、S501で取得されたデータ項目の値の単位から対象項目の値の単位へ変換するための単位変換情報18を取得する。
In the unit conversion information acquisition process of S504, the calculation unit 123 acquires the unit conversion information 18 including the unit of the target item as the unit after conversion and including the unit of the value of the data item acquired in S501 in the conversion formula.
That is, the calculation unit 123 acquires the unit conversion information 18 for converting from the data item value unit acquired in S501 to the target item value unit.
 S505の変換式生成処理では、演算部123が、S504で取得された単位変換情報18における変換式のS501で取得されたデータ項目の値の単位を、S501で取得されたデータ項目に置き換える。
 また、演算部123は、変換式における残りの単位を有するデータ項目を、対象グループのデータ項目から取得する。そして、変換式における残りの単位を、対応するデータ項目で置き換える。
 これにより、演算部123は、単位変換式を生成する。
In the conversion formula generation process of S505, the calculation unit 123 replaces the unit of the value of the data item acquired in S501 of the conversion formula in the unit conversion information 18 acquired in S504 with the data item acquired in S501.
In addition, the calculation unit 123 acquires a data item having the remaining unit in the conversion formula from the data item of the target group. Then, the remaining units in the conversion formula are replaced with corresponding data items.
Thereby, the calculating part 123 produces | generates a unit conversion type | formula.
 S506の式追加処理では、演算部123が、S505で生成された単位変換式を対象リストに追加する。 In the formula addition process of S506, the calculation unit 123 adds the unit conversion formula generated in S505 to the target list.
 S507の項目判定処理では、演算部123が、S501で取得されたデータ項目が、対象グループにおける分類種別13が個別データである最後のデータ項目であるか否かを判定する。この際、S505で取得されたデータ項目は、取得済として扱う。
 演算部123は、最後のデータ項目である場合(S507でYES)、処理をS508へ進め、最後のデータ項目でない場合(S507でNO)、処理をS501へ戻す。
In the item determination process of S507, the calculation unit 123 determines whether or not the data item acquired in S501 is the last data item whose classification type 13 in the target group is individual data. At this time, the data item acquired in S505 is treated as acquired.
If it is the last data item (YES in S507), the arithmetic unit 123 advances the process to S508, and if it is not the last data item (NO in S507), returns the process to S501.
 S508の第2演算情報取得処理では、演算部123が、S401で取得された演算情報17から1つの演算情報17を取得する。
 S509の集計式生成処理では、演算部123が、S503で対象リストに追加されたデータ項目と、S506で対象リストに追加された単位変換式を構成するデータ項目とを用いて、S508で取得された演算情報17が示す演算方法を構成する集計式を生成する。
 S510の第2演算実行処理では、演算部123が、S509で生成された集計式にデータ項目の値を入力して、S508で取得された演算情報17が示す演算方法により演算を実行する。
 S511の第2結果判定処理では、演算部123が、S510で演算された結果が、対象項目の値と一致するか否かを判定する。演算部123は、一致する場合(S511でYES)、処理をS512へ進め、一致しない場合(S511でNO)、処理をS513へ進める。
In the second calculation information acquisition process of S508, the calculation unit 123 acquires one calculation information 17 from the calculation information 17 acquired in S401.
In the aggregation formula generation process of S509, the calculation unit 123 is acquired in S508 using the data items added to the target list in S503 and the data items constituting the unit conversion formula added to the target list in S506. An aggregation formula that constitutes the calculation method indicated by the calculation information 17 is generated.
In the second calculation execution process of S510, the calculation unit 123 inputs the value of the data item to the aggregation formula generated in S509, and executes the calculation by the calculation method indicated by the calculation information 17 acquired in S508.
In the second result determination process of S511, the calculation unit 123 determines whether the result calculated in S510 matches the value of the target item. If they match (YES in S511), operation unit 123 advances the process to S512, and if they do not match (NO in S511), advances the process to S513.
 S512の第2演算定義処理では、演算定義部124が、S509で生成された集計式を、対象項目についての演算定義情報24として生成する。 In the second calculation definition process of S512, the calculation definition unit 124 generates the aggregation formula generated in S509 as the calculation definition information 24 for the target item.
 S513の第2差分計算処理では、演算部123が、S510で演算された結果と対象項目の値との差分を計算し、差分リストに登録する。
 S514の第2演算判定処理では、演算部123が、S508で取得された演算情報17が、S401で取得された最後の演算情報17であるか否かを判定する。演算部123は、最後の演算情報17である場合(S514でYES)、処理をS515へ進め、最後の演算情報17でない場合(S514でNO)、処理をS508へ戻す。
In the second difference calculation process of S513, the calculation unit 123 calculates the difference between the result calculated in S510 and the value of the target item, and registers it in the difference list.
In the second calculation determination process in S514, the calculation unit 123 determines whether or not the calculation information 17 acquired in S508 is the last calculation information 17 acquired in S401. If the calculation unit 123 is the last calculation information 17 (YES in S514), the process proceeds to S515. If the calculation unit 123 is not the last calculation information 17 (NO in S514), the process returns to S508.
 S515の第3演算定義処理では、演算定義部124が、差分リストに登録された差分のうち、最も差分が小さかった演算情報17又は集計式を、対象項目についての演算定義情報24として生成する。 In the third calculation definition process of S515, the calculation definition unit 124 generates, as the calculation definition information 24 for the target item, the calculation information 17 or the aggregation formula having the smallest difference among the differences registered in the difference list.
 図14及び図15に基づき、図12に示す処理の動作例を説明する。
 まず、S401で項目分類情報16と、複数の演算情報17とが取得される(図14の(1)~(2))。また、S402からS403でファイルAのグループ“BUILD”の全てのデータ項目が取得される(図14の(3))。
 S404で1つの演算情報17として、入力された値の合計値を計算する“合計”が取得される(図14の(4))。そして、S405で、個別データのデータ項目である“1F”,“2F”,“3F”に設定された値“1000”,“500”,“250”を入力として、演算情報17が示す演算方法“合計”により演算が実行される(図14の(5))。S406で、演算結果“1750(=1000+500+250)”と、集計データのデータ項目である“ビル全体”に設定された値“1750”とが一致するか否かが判定される(図14の(6))。
 ここでは一致するため、S407で、集計データのデータ項目である“ビル全体”の演算定義情報24として“合計”が生成される(図14の(7))。つまり、“ビル全体”の値は、“1F”,“2F”,“3F”に設定された値の合計であると定義される。
Based on FIGS. 14 and 15, an example of the operation of the process shown in FIG. 12 will be described.
First, in step S401, item classification information 16 and a plurality of calculation information 17 are acquired ((1) to (2) in FIG. 14). Further, in S402 to S403, all data items of the file “Group” “BUILD” are acquired ((3) in FIG. 14).
In S404, “total” for calculating the total value of the input values is obtained as one piece of calculation information 17 ((4) in FIG. 14). Then, in S405, the calculation method indicated by the calculation information 17 using the values “1000”, “500”, and “250” set in the data items “1F”, “2F”, and “3F” of the individual data as inputs. The calculation is executed by “total” ((5) in FIG. 14). In S406, it is determined whether or not the calculation result “1750 (= 1000 + 500 + 250)” matches the value “1750” set in the “entire building” data item of the total data ((6 in FIG. 14). )).
Since they match here, in S407, “total” is generated as the calculation definition information 24 of “entire building” which is the data item of the total data ((7) in FIG. 14). That is, the value of “entire building” is defined as the sum of the values set in “1F”, “2F”, and “3F”.
 ここでは、演算定義処理により、図15に示すように、分類種別13が集計データであるビル全体に設定された値が、分類種別13が個別データである1Fと2Fと3Fに設定された値の合計であることが定義された演算定義情報24が生成される。なお、ここでは、演算定義情報24が階層定義情報23とともに、データ検索視点定義情報25として生成される。そして、データ検索視点定義情報25がSQL変換される。 Here, as shown in FIG. 15, the values set for the entire building whose classification type 13 is aggregated data are the values set for 1F, 2F and 3F whose classification type 13 is individual data, as shown in FIG. The operation definition information 24 that is defined to be the sum of is generated. Here, the calculation definition information 24 is generated as the data search viewpoint definition information 25 together with the hierarchy definition information 23. Then, the data retrieval viewpoint definition information 25 is subjected to SQL conversion.
 図16及び図17に基づき、図13に示す処理の動作例を説明する。
 まず、S401で項目分類情報16と、複数の演算情報17とが取得される(図16の(1)~(2))。また、S402からS403でファイルBのグループ“BUILD”の全てのデータ項目が取得される(図16の(3))。
 ここでは、いずれの演算情報17で演算しても、S406で演算結果と集計データのデータ項目である“1F”に設定された値とが一致しない。そのため、S409から図13のS501へと遷移する。
 S501で個別データのデータ項目“1F_電圧”がその単位“KV(キロボルト)”とともに取得される(図16の(4))。S502で単位“KV”は、集計データのデータ項目“1F”の値の単位“KW”とは異なると判定され、S504で単位“KV”を含む単位変換情報18が取得される(図16の(5))。S505で、単位変換情報18の変換式における単位“KV”がデータ項目“1F_電圧”に置き換えられ、残りの単位“KA”が対応するデータ項目“1F_電流”で置き換えられ、単位変換式が生成される(図16の(6))。そして、S506で単位変換式が対象リストに追加される(図16の(7))。
 残りの個別データのデータ項目“1F_他”は、単位“KW”が集計データのデータ項目“1F”の値の単位“KW”と同一であるため、S503で対象リストに追加される(図16の(8))。
Based on FIGS. 16 and 17, an example of the operation of the process shown in FIG. 13 will be described.
First, in step S401, item classification information 16 and a plurality of calculation information 17 are acquired ((1) to (2) in FIG. 16). Further, in S402 to S403, all data items of the file “B” group “BUILD” are acquired ((3) in FIG. 16).
Here, no matter what the calculation information 17 is calculated, the calculation result and the value set to “1F” which is the data item of the total data do not match in S406. Therefore, the process proceeds from S409 to S501 in FIG.
In S501, the data item “1F_voltage” of the individual data is acquired together with the unit “KV (kilovolt)” ((4) in FIG. 16). In S502, it is determined that the unit “KV” is different from the unit “KW” of the value of the data item “1F” of the total data, and in S504, the unit conversion information 18 including the unit “KV” is acquired (FIG. 16). (5)). In S505, the unit “KV” in the conversion formula of the unit conversion information 18 is replaced with the data item “1F_voltage”, and the remaining unit “KA” is replaced with the corresponding data item “1F_current” to generate the unit conversion formula. ((6) in FIG. 16). In S506, the unit conversion formula is added to the target list ((7) in FIG. 16).
The data item “1F_other” of the remaining individual data is added to the target list in S503 because the unit “KW” is the same as the unit “KW” of the value of the data item “1F” of the total data (FIG. 16). (8)).
 S508で1つの演算情報17として“合計”が取得される(図16の(9))。S509で対象リストに追加された単位変換式とデータ項目とを用いて演算方法“合計”を構成する集計式が生成される(図16の(10))。
 S510で、個別データのデータ項目である“1F_電圧”,“1F_電流”,“1F_他”に設定された値“50”,“20”,“500”を入力として、集計式により演算が実行される(図16の(11))。S511で、演算結果“1500(=(20×50)+500)”と、集計データのデータ項目である“1F”に設定された値“1500”とが一致するため、S512で、集計式が、集計データのデータ項目である“1F”の演算定義情報24とされる(図16の(12))。つまり、“1F”の値は、“1F_電圧”と“1F_電流”と“1F_他”とに設定された値が集計式によって集計された値であると定義される。
In S508, “total” is acquired as one piece of operation information 17 ((9) in FIG. 16). Using the unit conversion formula and the data items added to the target list in S509, a totaling formula constituting the calculation method “total” is generated ((10) in FIG. 16).
In S510, the values “50”, “20”, “500” set in the data items “1F_voltage”, “1F_current”, and “1F_other”, which are individual data items, are input and the calculation is performed using the aggregation formula. ((11) in FIG. 16). In S511, the calculation result “1500 (= (20 × 50) +500)” and the value “1500” set to “1F” which is the data item of the total data match, so in S512, the total formula is The calculation definition information 24 of “1F” which is a data item of the total data is used ((12) in FIG. 16). That is, the value of “1F” is defined as a value obtained by tabulating the values set in “1F_Voltage”, “1F_Current”, and “1F_Other” by the tabulation formula.
 ここでは、演算定義処理により、図17に示すように、分類種別13が集計データである1Fに設定された値が、分類種別13が個別データである1F_電圧と1F_電流と1F_他に設定された値を集計式で集計した値であることが定義された演算定義情報24が生成される。なお、ここでは、演算定義情報24が階層定義情報23とともに、データ検索視点定義情報25として生成される。そして、データ検索視点定義情報25がSQL変換される。 Here, as shown in FIG. 17, the value in which the classification type 13 is set to 1F, which is total data, is set to 1F_voltage, 1F_current, 1F_, etc., in which the classification type 13 is individual data, as shown in FIG. Operation definition information 24 is generated that is defined to be a value obtained by tabulating the obtained values with a summation formula. Here, the calculation definition information 24 is generated as the data search viewpoint definition information 25 together with the hierarchy definition information 23. Then, the data retrieval viewpoint definition information 25 is subjected to SQL conversion.
 なお、図14及び図15の説明では、1月のデータについて演算が実行され、演算結果と集計データの値とが一致するか否かが判定された。しかし、各月のデータについて演算が実行され、全ての月のデータについて演算結果と集計データの値とが一致するか否かが判定されるようにしてもよい。 In the description of FIG. 14 and FIG. 15, the calculation is performed on the data for January, and it is determined whether the calculation result matches the value of the total data. However, an operation may be performed on the data for each month, and it may be determined whether or not the operation result and the value of the aggregate data match for all the month data.
 以上のように、実施の形態2に係るデータベース設計支援装置100では、表形式データ11で使用される演算情報17に基づき、分類種別13が集計データであるデータ項目の演算方法を定義する。これにより、テーブルの属性として生成しなかったデータ項目の値を、属性として生成したデータ項目の値から計算可能なデータベース定義情報21を生成可能である。その結果、データベース設計時のシステム構築者の負荷を軽減することができる。 As described above, the database design support apparatus 100 according to Embodiment 2 defines a calculation method for data items whose classification type 13 is aggregated data, based on the calculation information 17 used in the tabular data 11. Thereby, it is possible to generate the database definition information 21 that can calculate the value of the data item that is not generated as an attribute of the table from the value of the data item generated as the attribute. As a result, it is possible to reduce the load on the system builder when designing the database.
 また、実施の形態2に係るデータベース設計支援装置100では、単位が異なることに起因して表形式データ11で使用される演算情報17だけでは演算ができない場合に、単位を変換することにより演算方法を定義する。その結果、データベース設計時のシステム構築者の負荷を軽減することができる。 Further, in the database design support apparatus 100 according to the second embodiment, when the calculation is not possible only by the calculation information 17 used in the tabular data 11 due to different units, the calculation method is performed by converting the units. Define As a result, it is possible to reduce the load on the system builder when designing the database.
 図18は、実施の形態1,2に係るデータベース設計支援装置100のハードウェア構成例を示す図である。
 データベース設計支援装置100はコンピュータである。
 データベース設計支援装置100は、プロセッサ901、補助記憶装置902、メモリ903、通信装置904、入力インターフェース905、ディスプレイインターフェース906といったハードウェアを備える。
 プロセッサ901は、信号線910を介して他のハードウェアと接続され、これら他のハードウェアを制御する。
 入力インターフェース905は、ケーブル911により入力装置907に接続されている。
 ディスプレイインターフェース906は、ケーブル912によりディスプレイ908に接続されている。
FIG. 18 is a diagram illustrating a hardware configuration example of the database design support apparatus 100 according to the first and second embodiments.
The database design support apparatus 100 is a computer.
The database design support apparatus 100 includes hardware such as a processor 901, an auxiliary storage device 902, a memory 903, a communication device 904, an input interface 905, and a display interface 906.
The processor 901 is connected to other hardware via the signal line 910, and controls these other hardware.
The input interface 905 is connected to the input device 907 by a cable 911.
The display interface 906 is connected to the display 908 by a cable 912.
 プロセッサ901は、プロセッシングを行うIC(Integrated Circuit)である。プロセッサ901は、例えば、CPU(Central Processing Unit)、DSP(Digital Signal Processor)、GPU(Graphics Processing Unit)である。
 補助記憶装置902は、例えば、ROM(Read Only Memory)、フラッシュメモリ、HDD(Hard Disk Drive)である。
 メモリ903は、例えば、RAM(Random Access Memory)である。
 通信装置904は、データを受信するレシーバー9041及びデータを送信するトランスミッター9042を含む。通信装置904は、例えば、通信チップ又はNIC(Network Interface Card)である。
 入力インターフェース905は、入力装置907のケーブル911が接続されるポートである。入力インターフェース905は、例えば、USB(Universal Serial Bus)端子である。
 ディスプレイインターフェース906は、ディスプレイ908のケーブル912が接続されるポートである。ディスプレイインターフェース906は、例えば、USB端子又はHDMI(登録商標)(High Definition Multimedia Interface)端子である。
 入力装置907は、例えば、マウス、キーボード又はタッチパネルである。
 ディスプレイ908は、例えば、LCD(Liquid Crystal Display)である。
The processor 901 is an IC (Integrated Circuit) that performs processing. The processor 901 is, for example, a CPU (Central Processing Unit), a DSP (Digital Signal Processor), or a GPU (Graphics Processing Unit).
The auxiliary storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or an HDD (Hard Disk Drive).
The memory 903 is, for example, a RAM (Random Access Memory).
The communication device 904 includes a receiver 9041 that receives data and a transmitter 9042 that transmits data. The communication device 904 is, for example, a communication chip or a NIC (Network Interface Card).
The input interface 905 is a port to which the cable 911 of the input device 907 is connected. The input interface 905 is, for example, a USB (Universal Serial Bus) terminal.
The display interface 906 is a port to which the cable 912 of the display 908 is connected. The display interface 906 is, for example, a USB terminal or an HDMI (registered trademark) (High Definition Multimedia Interface) terminal.
The input device 907 is, for example, a mouse, a keyboard, or a touch panel.
The display 908 is, for example, an LCD (Liquid Crystal Display).
 補助記憶装置902には、上述したインターフェース部110、データ表示部111、グループ情報受付部112、種別受付部113、テーブル情報受付部114、生成指示受付部115、演算情報取得部116、単位変換情報取得部117、処理部120、テーブル定義部121、階層定義部122、演算部123、演算定義部124(以下、インターフェース部110、データ表示部111、グループ情報受付部112、種別受付部113、テーブル情報受付部114、生成指示受付部115、演算情報取得部116、単位変換情報取得部117、処理部120、テーブル定義部121、階層定義部122、演算部123、演算定義部124をまとめて「部」と表記する)の機能を実現するプログラムが記憶されている。
 このプログラムは、メモリ903にロードされ、プロセッサ901に読み込まれ、プロセッサ901によって実行される。
 更に、補助記憶装置902には、OS(Operating System)も記憶されている。
 そして、OSの少なくとも一部がメモリ903にロードされ、プロセッサ901はOSを実行しながら、「部」の機能を実現するプログラムを実行する。
 図18では、1つのプロセッサ901が図示されているが、データベース設計支援装置100が複数のプロセッサ901を備えていてもよい。そして、複数のプロセッサ901が「部」の機能を実現するプログラムを連携して実行してもよい。
 また、「部」の処理の結果を示す情報やデータや信号値や変数値が、メモリ903、補助記憶装置902、又は、プロセッサ901内のレジスタ又はキャッシュメモリにファイルとして記憶される。
The auxiliary storage device 902 includes the interface unit 110, the data display unit 111, the group information reception unit 112, the type reception unit 113, the table information reception unit 114, the generation instruction reception unit 115, the calculation information acquisition unit 116, and unit conversion information. Acquisition unit 117, processing unit 120, table definition unit 121, hierarchy definition unit 122, calculation unit 123, calculation definition unit 124 (hereinafter, interface unit 110, data display unit 111, group information reception unit 112, type reception unit 113, table The information reception unit 114, the generation instruction reception unit 115, the calculation information acquisition unit 116, the unit conversion information acquisition unit 117, the processing unit 120, the table definition unit 121, the hierarchy definition unit 122, the calculation unit 123, and the calculation definition unit 124 are collectively referred to as “ A program that realizes the function of “part” is stored.
This program is loaded into the memory 903, read into the processor 901, and executed by the processor 901.
Further, the auxiliary storage device 902 also stores an OS (Operating System).
Then, at least a part of the OS is loaded into the memory 903, and the processor 901 executes a program that realizes the function of “unit” while executing the OS.
In FIG. 18, one processor 901 is illustrated, but the database design support apparatus 100 may include a plurality of processors 901. A plurality of processors 901 may execute a program for realizing the function of “unit” in cooperation with each other.
In addition, information, data, signal values, and variable values indicating the results of the processing of “unit” are stored as files in the memory 903, the auxiliary storage device 902, or a register or cache memory in the processor 901.
 「部」を「サーキットリー」で提供してもよい。また、「部」を「回路」又は「工程」又は「手順」又は「処理」に読み替えてもよい。「回路」及び「サーキットリー」は、プロセッサ901だけでなく、ロジックIC又はGA(Gate Array)又はASIC(Application Specific Integrated Circuit)又はFPGA(Field-Programmable Gate Array)といった他の種類の処理回路をも包含する概念である。 “Parts” may be provided by “Circuitry”. Further, “part” may be read as “circuit”, “process”, “procedure”, or “processing”. “Circuit” and “Circuitry” include not only the processor 901 but also other types of processing circuits such as logic IC, GA (Gate Array), ASIC (Application Specific Integrated Circuit), or FPGA (Field-Programmable Gate Array). It is a concept to include.
 100 データベース設計支援装置、110 インターフェース部、111 データ表示部、112 グループ情報受付部、113 種別受付部、114 テーブル情報受付部、115 生成指示受付部、116 演算情報取得部、117 単位変換情報取得部、120 処理部、121 テーブル定義部、122 階層定義部、123 演算部、124 演算定義部、11 表形式データ、12 グループ情報、13 分類種別、14 テーブル名、15 指示情報、16 項目分類情報、17 演算情報、18 単位変換情報、21 データベース定義情報、22 テーブル定義情報、23 階層定義情報、24 演算定義情報、25 データ検索視点定義情報。 100 database design support device, 110 interface unit, 111 data display unit, 112 group information reception unit, 113 type reception unit, 114 table information reception unit, 115 generation instruction reception unit, 116 calculation information acquisition unit, 117 unit conversion information acquisition unit , 120 processing section, 121 table definition section, 122 hierarchy definition section, 123 calculation section, 124 calculation definition section, 11 tabular data, 12 group information, 13 classification type, 14 table name, 15 instruction information, 16 item classification information, 17 calculation information, 18 unit conversion information, 21 database definition information, 22 table definition information, 23 hierarchy definition information, 24 calculation definition information, 25 data search viewpoint definition information.

Claims (6)

  1.  表形式データが有する複数のデータ項目をグループ分けした各グループを示すグループ情報の入力を受け付けるグループ情報受付部と、
     前記表形式データが有する各データ項目について、個別データであるか、前記個別データを集計した集計データであるかを示す分類種別の入力を受け付ける種別受付部と、
     前記種別受付部が受け付けた分類種別が個別データであるデータ項目を示す属性を持つテーブル定義情報を生成するテーブル定義部と、
     前記グループ情報受付部が受け付けたグループ情報が示す各グループについて、前記分類種別が集計データであるデータ項目を親とし、前記分類種別が個別データであるデータ項目を子とする階層定義情報を生成する階層定義部と
    を備えるデータベース設計支援装置。
    A group information receiving unit that receives input of group information indicating each group obtained by grouping a plurality of data items included in tabular data;
    For each data item that the tabular data has, a type reception unit that receives input of a classification type indicating whether it is individual data or total data obtained by totaling the individual data;
    A table definition unit for generating table definition information having an attribute indicating a data item whose classification type received by the type reception unit is individual data;
    For each group indicated by the group information received by the group information reception unit, hierarchy definition information is generated with a data item whose classification type is aggregated data as a parent and a data item whose classification type is individual data as a child. A database design support apparatus comprising a hierarchy definition unit.
  2.  前記グループ情報は、前記分類種別が個別データであるデータ項目と、前記分類種別が個別データであるデータ項目を集計した、前記分類種別が集計データであるデータ項目とが同じグループになるようにグループ分けした各グループを示し、
     前記データベース設計支援装置は、さらに、
     演算方法を示す複数の演算情報を取得する演算情報取得部と、
     前記分類種別が集計データであるデータ項目を対象項目とし、前記対象項目と同じグループにおける前記分類種別が個別データであるデータ項目の値を入力として、前記演算情報取得部が取得した各演算情報が示す演算方法により演算する演算部と、
     前記演算部が演算した結果が前記対象項目の値と一致した場合における演算方法を示す演算情報を、前記対象項目についての演算定義情報として生成する演算定義部と
    を備える請求項1に記載のデータベース設計支援装置。
    The group information is a group in which a data item whose classification type is individual data and a data item whose classification type is individual data are aggregated into the same group. Show each group divided,
    The database design support device further includes:
    A calculation information acquisition unit for acquiring a plurality of calculation information indicating a calculation method;
    Each calculation information acquired by the calculation information acquisition unit using a data item whose classification type is aggregated data as a target item and a value of a data item whose classification type is individual data in the same group as the target item is input. A calculation unit that calculates using the calculation method shown;
    2. The database according to claim 1, further comprising: an operation definition unit that generates operation information indicating an operation method in a case where a result calculated by the operation unit coincides with a value of the target item, as operation definition information about the target item. Design support device.
  3.  前記データベース設計支援装置は、さらに、
     値の基準を示す単位を他の単位へ変換する変換方法を示す複数の単位変換情報を取得する単位変換情報取得部
    を備え、
     前記演算部は、前記単位変換情報取得部が取得したいずれかの単位変換情報を使用して、前記対象項目と同じグループにおける前記分類種別が個別データであるデータ項目の値の単位を、前記対象項目の値の単位に変換した上で、前記各演算情報が示す演算方法により演算し、
     前記演算定義部は、前記演算部が演算した結果が前記対象項目の値と一致した場合における演算方法を示す演算情報と、使用した前記単位変換情報とを合わせて、前記演算定義情報として生成する
    請求項2に記載のデータベース設計支援装置。
    The database design support device further includes:
    A unit conversion information acquisition unit for acquiring a plurality of unit conversion information indicating a conversion method for converting a unit indicating a value reference into another unit;
    The arithmetic unit uses any of the unit conversion information acquired by the unit conversion information acquisition unit, and sets the unit of the value of the data item whose classification type is individual data in the same group as the target item. After converting to the unit of the value of the item, it is calculated by the calculation method indicated by each calculation information,
    The calculation definition unit generates calculation definition information by combining calculation information indicating a calculation method when the calculation result of the calculation unit matches the value of the target item and the unit conversion information used. The database design support apparatus according to claim 2.
  4.  前記データベース設計支援装置は、さらに、
     前記表形式データを含む入力画面を表示するデータ表示部
    を備え、
     前記グループ情報受付部は、前記データ表示部が表示した入力画面をユーザが操作することにより入力された前記グループ情報を受け付け、
     前記種別受付部は、前記データ表示部が表示した入力画面をユーザが操作することにより入力された前記分類種別を受け付ける
    請求項1から3までのいずれか1項に記載のデータベース設計支援装置。
    The database design support device further includes:
    A data display unit for displaying an input screen including the tabular data;
    The group information receiving unit receives the group information input by a user operating an input screen displayed by the data display unit,
    The database design support apparatus according to any one of claims 1 to 3, wherein the type receiving unit receives the classification type input by a user operating an input screen displayed by the data display unit.
  5.  前記表形式データは、表計算ソフトウェアに対応した形式のデータであり、
     前記演算情報取得部は、前記表計算ソフトウェアで規定された演算情報を前記表計算ソフトウェアから取得する
    請求項2に記載のデータベース設計支援装置。
    The tabular data is data in a format corresponding to spreadsheet software,
    The database design support apparatus according to claim 2, wherein the calculation information acquisition unit acquires calculation information defined by the spreadsheet software from the spreadsheet software.
  6.  表形式データが有する複数のデータ項目をグループ分けした各グループを示すグループ情報の入力を受け付けるグループ情報受付処理と、
     前記表形式データが有する各データ項目について、個別データであるか、前記個別データを集計した集計データであるかの分類種別の入力を受け付ける種別受付処理と、
     前記種別受付処理で受け付けた分類種別が個別データであるデータ項目を示す属性を持つテーブル定義情報を生成するテーブル定義処理と、
     前記グループ情報受付処理で受け付けたグループ情報が示す各グループについて、前記分類種別が集計データであるデータ項目を親とし、前記分類種別が個別データであるデータ項目を子とする階層定義情報を生成する階層定義処理と
    をコンピュータに実行させるデータベース設計支援プログラム。
    A group information receiving process for receiving input of group information indicating each group obtained by grouping a plurality of data items included in the tabular data;
    For each data item included in the tabular data, a type reception process for receiving an input of a classification type, which is individual data or total data obtained by totaling the individual data;
    A table definition process for generating table definition information having an attribute indicating a data item whose classification type received in the type reception process is individual data;
    For each group indicated by the group information received in the group information receiving process, hierarchy definition information is generated with a data item whose classification type is aggregated data as a parent and a data item whose classification type is individual data as a child. A database design support program that causes a computer to execute hierarchy definition processing.
PCT/JP2015/058113 2015-03-18 2015-03-18 Database design assistance device and database design assistance program WO2016147354A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2017505955A JP6289735B2 (en) 2015-03-18 2015-03-18 Database design support apparatus and database design support program
PCT/JP2015/058113 WO2016147354A1 (en) 2015-03-18 2015-03-18 Database design assistance device and database design assistance program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2015/058113 WO2016147354A1 (en) 2015-03-18 2015-03-18 Database design assistance device and database design assistance program

Publications (1)

Publication Number Publication Date
WO2016147354A1 true WO2016147354A1 (en) 2016-09-22

Family

ID=56919792

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2015/058113 WO2016147354A1 (en) 2015-03-18 2015-03-18 Database design assistance device and database design assistance program

Country Status (2)

Country Link
JP (1) JP6289735B2 (en)
WO (1) WO2016147354A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015920A (en) * 2001-06-28 2003-01-17 Shinsei Kaihatsu Kk Database update system and method that use sheet of spreadsheet software as input screen, database update program that uses sheet of spreadsheet software as input screen and computer-readable recording medium with the program recorded thereon
JP2004341770A (en) * 2003-05-15 2004-12-02 Kazuo Kobayashi Data management system and data management method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015920A (en) * 2001-06-28 2003-01-17 Shinsei Kaihatsu Kk Database update system and method that use sheet of spreadsheet software as input screen, database update program that uses sheet of spreadsheet software as input screen and computer-readable recording medium with the program recorded thereon
JP2004341770A (en) * 2003-05-15 2004-12-02 Kazuo Kobayashi Data management system and data management method

Also Published As

Publication number Publication date
JPWO2016147354A1 (en) 2017-05-25
JP6289735B2 (en) 2018-03-07

Similar Documents

Publication Publication Date Title
US20210182721A1 (en) Method and apparatus for constructing quantum machine learning framework, quantum computer and computer storage medium
EP3885963A1 (en) Method and apparatus for determining causality, electronic device and storage medium
JP2021170335A (en) Application construction method, device, electronic facility, storage medium, and program
US8413109B2 (en) Systems and methods for metamodel transformation
CN111259090B (en) Graph generation method and device of relational data, electronic equipment and storage medium
US20130132070A1 (en) Computer-Based Construction of Arbitrarily Complex Formal Grammar Expressions
JP2023026531A (en) Virtual character generating method, apparatus, electronic equipment, storage medium, and computer program
CN114064925A (en) Knowledge graph construction method, data query method, device, equipment and medium
CN105590241A (en) Self-adaptive electronic bill implementation method and system
US20140310248A1 (en) Verification support program, verification support apparatus, and verification support method
JP6289735B2 (en) Database design support apparatus and database design support program
JP2018060421A (en) Information generation system, device, method, and program
JP6646350B2 (en) Model calculation unit for calculating a function model based on data using data of various numerical formats, and control device
JP7176077B1 (en) Information processing device and program
CN112035581B (en) Model-based task processing method, device, equipment and medium
CN110764768A (en) Method and device for mutual conversion between model object and JSON object
US9626231B2 (en) Database dispatcher
JPWO2012101700A1 (en) UI (UserInterface) creation support apparatus, UI creation support method, and program
JP6661500B2 (en) Information generation system, apparatus, method, and program
CN113434820B (en) Method, device and equipment for optimizing Y-axis coordinate of chart and storage medium
CN113377380B (en) User interface component deployment method and device
JP6419275B1 (en) Data conversion system and data conversion program
US20180196907A1 (en) Architecture generating device
CN109344166B (en) Database monitoring method, computer readable storage medium and terminal device
JP6193674B2 (en) CONVERSION CIRCUIT DESIGN DEVICE, CONVERSION CIRCUIT DESIGN PROGRAM, AND CONVERSION CIRCUIT DESIGN METHOD

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15885450

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2017505955

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15885450

Country of ref document: EP

Kind code of ref document: A1