Data generation device, data generation method, and program
阅读说明:本技术 数据生成装置、数据生成方法以及程序 (Data generation device, data generation method, and program ) 是由 大和哲二 于 2018-06-20 设计创作,主要内容包括:数据生成装置构成为生成作为与虚拟传感器相关联的元数据的第1元数据,其中,该数据生成装置具有:取得部,其构成为取得作为实际传感器的元数据的第2元数据;受理部,其构成为受理第1元数据的临时输入;判定部,其构成为判定经由受理部临时输入的第1元数据与取得部所取得的第2元数据的匹配性;以及生成部,其构成为根据判定部的判定结果来生成最终的第1元数据。(The data generation device is configured to generate 1 st metadata as metadata associated with a virtual sensor, and includes: an acquisition unit configured to acquire 2 nd metadata that is metadata of an actual sensor; a reception unit configured to receive a temporary input of the 1 st metadata; a determination unit configured to determine the matching between the 1 st metadata temporarily input via the reception unit and the 2 nd metadata acquired by the acquisition unit; and a generation unit configured to generate final 1 st metadata based on the determination result of the determination unit.)
1. A data generation device configured to generate 1 st metadata as metadata associated with a virtual sensor,
the virtual sensor is configured to output new sensing data using sensing data obtained by observing an object with an actual sensor as an input,
the data generation device has:
an acquisition unit configured to acquire 2 nd metadata that is metadata of the actual sensor;
a reception unit configured to receive a temporary input of the 1 st metadata;
a determination unit configured to determine a matching property between the 1 st metadata temporarily input via the reception unit and the 2 nd metadata acquired by the acquisition unit; and
and a generation unit configured to generate the 1 st metadata finally based on a determination result of the determination unit.
2. The data generation apparatus of claim 1,
the receiving unit is configured to receive an information input for a predetermined input item, thereby receiving a temporary input of the 1 st metadata.
3. The data generation apparatus of claim 2,
the data generation device further includes an output unit configured to output a screen for performing temporary input of the 1 st metadata,
the screen includes the input item.
4. The data generation apparatus according to any one of claims 1 to 3,
the data generating device further includes a transmitting unit configured to transmit data to an external device provided outside the data generating device,
the external device is configured to store the 2 nd metadata,
the transmitting part transmits the 1 st metadata generated by the generating part to the external device,
the external device is configured to store the received 1 st metadata.
5. The data generation apparatus of claim 4,
adding identification information indicating that the 1 st metadata is metadata of the virtual sensor to the 1 st metadata transmitted by the transmission unit.
6. The data generation apparatus of claim 4,
adding, to the 1 st metadata transmitted by the transmitting unit, identification information indicating that the 1 st metadata is metadata of sensing data output by the virtual sensor.
7. A data generation method that generates 1 st metadata as metadata associated with a virtual sensor,
the virtual sensor is configured to output new sensing data using sensing data obtained by observing an object with an actual sensor as an input,
the data generation method comprises the following steps:
an acquisition step of acquiring 2 nd metadata that is metadata of the actual sensor;
an acceptance step of accepting a temporary input of the 1 st metadata;
a determination step of determining the matching between the temporarily input 1 st metadata and the acquired 2 nd metadata; and
and generating the final 1 st metadata according to the judgment result of the judging step.
8. A program that causes a computer to generate 1 st metadata as metadata associated with a virtual sensor, wherein,
the virtual sensor is configured to output new sensing data using sensing data obtained by observing an object with an actual sensor as an input,
the program causes the computer to execute the steps of:
an acquisition step of acquiring 2 nd metadata that is metadata of the actual sensor;
an acceptance step of accepting a temporary input of the 1 st metadata;
a determination step of determining the matching between the temporarily input 1 st metadata and the acquired 2 nd metadata; and
and generating the final 1 st metadata according to the judgment result of the judging step.
Technical Field
The invention relates to a data generation device, a data generation method and a program.
Background
Japanese patent laid-open No. 2014-153797 (patent document 1) discloses a sensor network including a virtual sensor. Here, the virtual sensor is a sensor that analyzes and processes sensed data obtained from another sensor (e.g., an actual sensor) and outputs the analyzed data as new sensed data. In this sensor network, metadata of a virtual sensor (attribute information for identifying the virtual sensor) is registered in a virtual sensor host DB (database) (see patent document 1).
Disclosure of Invention
Problems to be solved by the invention
Since the virtual sensor takes the sensing data of the real sensor as an input, the metadata of the virtual sensor is affected by the metadata of the real sensor outputting the sensing data to the virtual sensor. That is, the metadata of the virtual sensor cannot contradict the metadata of the actual sensor. Therefore, in the case of generating metadata of a virtual sensor, metadata of an actual sensor needs to be considered.
The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a data generation device, a data generation method, and a program that can generate appropriate metadata as metadata associated with a virtual sensor.
Means for solving the problems
In order to solve the above problem, the present invention adopts the following configuration.
That is, a data generating device according to an aspect of the present invention is configured to generate 1 st metadata as metadata associated with a virtual sensor configured to output new sensing data with sensing data obtained by observing an object with an actual sensor as an input, and the data generating device includes: an acquisition unit configured to acquire 2 nd metadata that is metadata of an actual sensor; a reception unit configured to receive a temporary input of the 1 st metadata; a determination unit configured to determine the matching between the 1 st metadata temporarily input via the reception unit and the 2 nd metadata acquired by the acquisition unit; and a generation unit configured to generate final 1 st metadata based on the determination result of the determination unit.
In this data generation device, the matching between the 1 st metadata (metadata of the virtual sensor) temporarily input and the 2 nd metadata (metadata of the actual sensor) is determined, and the final 1 st metadata is generated based on the determination result. According to the data generating apparatus, in the case of generating the 1 st metadata, since the matching between the 1 st metadata and the 2 nd metadata is judged, the 1 st metadata matching with the 2 nd metadata can be generated.
In the data generating device according to the above aspect, the receiving unit may be configured to receive the temporary input of the 1 st metadata by receiving an information input for a predetermined input item.
According to this data generation apparatus, since the input items for temporarily inputting the 1 st metadata are predetermined, the user can easily perform temporary input of the 1 st metadata.
The data generating apparatus according to the above aspect may further include an output unit configured to output a screen for temporarily inputting the 1 st metadata, and the screen may include the input item.
According to this data generating apparatus, since the input item is included in the screen output by the output unit, the user can easily perform temporary input of the 1 st metadata while visually confirming the input item.
The data generating device according to the above aspect may further include a transmitting unit configured to transmit data to an external device provided outside the data generating device, the external device may be configured to store the 2 nd metadata, the transmitting unit may transmit the 1 st metadata generated by the generating unit to the external device, and the external device may be configured to store the received 1 st metadata.
According to the data generation apparatus, since the 1 st metadata (metadata of the virtual sensor) is stored in the external apparatus, by using the 1 st metadata generated at one time, the virtual sensor associated with the 1 st metadata can be easily specified next time thereafter.
In the data generating device according to the above aspect, the 1 st metadata transmitted by the transmitting unit may be added with identification information indicating that the 1 st metadata is metadata of the virtual sensor.
According to this data generation device, since identification information (identification information indicating that the 1 st metadata is metadata of a virtual sensor) is added to the 1 st metadata, the 1 st metadata and the 2 nd metadata can be distinguished.
In the data generating device according to the above aspect, the identification information indicating that the 1 st metadata is the metadata of the sensing data output by the virtual sensor may be added to the 1 st metadata transmitted by the transmitting unit.
According to this data generation apparatus, since identification information (identification information indicating that the 1 st metadata is metadata of the sensing data output by the virtual sensor) is attached to the 1 st metadata, the 1 st metadata and the 2 nd metadata can be distinguished.
Further, a data generation method according to an aspect of the present invention generates 1 st metadata as metadata associated with a virtual sensor configured to output new sensing data with sensing data obtained by observing an object with an actual sensor as an input, the data generation method including the steps of: an acquisition step of acquiring 2 nd metadata that is metadata of an actual sensor; an acceptance step of accepting a temporary input of the 1 st metadata; a determination step of determining the matching between the temporarily input 1 st metadata and the acquired 2 nd metadata; and a step of generating final 1 st metadata according to a determination result of the determining step.
In this data generation method, the matching between the 1 st metadata and the 2 nd metadata that are temporarily input is determined, and the final 1 st metadata is generated based on the determination result. According to this data generation method, when the 1 st metadata is generated, since the 1 st metadata and the 2 nd metadata are judged to be compatible with each other, the 1 st metadata that matches the 2 nd metadata can be generated.
In addition, a program according to an aspect of the present invention is a program for causing a computer to generate 1 st metadata as metadata associated with a virtual sensor configured to output new sensing data using sensing data obtained by observing an object with an actual sensor as an input, the program causing the computer to execute the steps of: an acquisition step of acquiring 2 nd metadata that is metadata of an actual sensor; an acceptance step of accepting a temporary input of the 1 st metadata; a determination step of determining the matching between the temporarily input 1 st metadata and the acquired 2 nd metadata; and a step of generating final 1 st metadata according to a determination result of the determining step.
In this program, the matching between the 1 st metadata and the 2 nd metadata that are temporarily input is determined, and the 1 st metadata is finally generated based on the determination result. According to this program, in the case of generating the 1 st metadata, since the matching between the 1 st metadata and the 2 nd metadata is determined, the 1 st metadata matching with the 2 nd metadata can be generated.
Effects of the invention
According to the present invention, it is possible to provide a data generation device, a data generation method, and a program that can generate appropriate metadata as metadata associated with a virtual sensor.
Drawings
Fig. 1 is a diagram showing a sensor network system.
Fig. 2A is a diagram showing an example of items of the attribute of the virtual sensor implemented by the 2 nd server.
Fig. 2B is a diagram showing an example of the contents of the attributes of the virtual sensor implemented by the 2 nd server.
Fig. 3 is a diagram showing an example of the hardware configuration of the 2 nd server.
Fig. 4 is a diagram showing an example of the virtual sensor classification library.
Fig. 5 is a diagram showing an example of a functional configuration of the control unit.
Fig. 6 is a diagram showing an example of a detailed functional configuration of the virtual sensor metadata generation simulation unit.
Fig. 7 is an example of a screen displayed on the monitor of the user terminal after the "classification" of the virtual sensor is selected.
Fig. 8 is a diagram showing an example of the data mapping of the actual sensor-side metadata DB.
Fig. 9 is a diagram showing an example of a screen when an actual sensor that outputs sensed data to a virtual sensor is selected.
Fig. 10 is an example of a screen displayed on the monitor of the user terminal after the input sensor is selected.
Fig. 11 is a diagram showing an example of a screen displayed on a monitor of the user terminal after the operation start button is pressed.
Fig. 12 is a diagram showing an example of a virtual sensor example table.
FIG. 13 is a flow chart showing specific processing steps for simulating metadata for a virtual sensor.
Fig. 14 is a flowchart showing a specific processing procedure of step S9 of fig. 13.
Detailed Description
[1. application example ]
Hereinafter, an embodiment (hereinafter, also referred to as "the present embodiment") according to one aspect of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding portions are denoted by the same reference numerals, and description thereof will not be repeated. The embodiments described below are merely illustrative in all aspects of the present invention. The present embodiment can be modified and changed variously within the scope of the present invention. That is, when the present invention is implemented, a specific configuration can be adopted as appropriate depending on the embodiment.
Fig. 1 is a diagram showing an example (sensor network system 100) of a scenario to which the present invention is applied. In the
As shown in fig. 1, the
In the
The
The
In the
Each
The
The 1
The utilization-side DC is a directory representing attributes of sensors required by the data utilization side (for example, the application server 2). On the other hand, the providing-side DC is a directory representing attributes of a data providing side (e.g., the actual sensor 10) capable of providing sensed data to an external device (e.g., the application server 2). For example, a providing-side DC indicating an attribute of the
Fig. 2A is a diagram showing an example of items of the attribute of the virtual sensor realized by the 2
Referring again to fig. 1, the
On the other hand, when the providing-side DC that satisfies the requirement of the using-side DC is not registered in the real sensor-
The 2
The virtual
Since the virtual sensor inputs the sensing data of the
In the present embodiment, the virtual
According to the 2
[2. structural example ]
< 2-1. hardware architecture of 2 nd server
Fig. 3 is a diagram showing an example of the hardware configuration of the 2
As shown in fig. 3, the 2
The
The communication I/F510 is configured to communicate with external devices (for example, the 1
The
The virtual
The virtual sensor DB5 is a database storing information required for implementing a virtual sensor. Virtual sensor DB5 contains virtual
Fig. 4 is a diagram showing an example of the virtual
< 2-2. functional architecture of 2 nd server
Fig. 5 is a diagram showing an example of the functional configuration of the
The data input/
The virtual
The virtual
The virtual sensor
As described above, in the present embodiment, when a virtual sensor is simulated, a definer of the virtual sensor temporarily inputs metadata of the virtual sensor. The virtual sensor metadata
The virtual sensor
Fig. 6 is a diagram showing an example of a detailed functional configuration of the virtual sensor metadata
The
[3. operation example ]
< 3-1. operation of definer of virtual sensor >
In order to create a new virtual sensor, a definer of the virtual sensor accesses the 2
For example, a screen for selecting "classification" of the virtual sensor is displayed on a monitor of the user terminal. For example, a GUI (Graphical User Interface) shown in FIG. 4 is displayed on a monitor of the User terminal. A plurality of
Fig. 7 is an example of a screen displayed on the monitor of the user terminal after the "classification" of the virtual sensor is selected. In this example, "average air temperature sensor" is selected as "classification" of the virtual sensor. The "average air temperature sensor" is a virtual sensor that outputs, as sensing data, an average value of a plurality of "air temperatures" detected by a plurality of
As shown in fig. 7, the
Fig. 8 is a diagram showing an example of the data map of the actual sensor-side metadata DB 41 (fig. 1). As shown in fig. 8, the metadata of each actual sensor 10 ("sensor ID", "sensor classification", "sensor type", "actual sensor classification No.", "position/orientation of sensor", "sensor owner ID", "operation history", "data reliability", and "IP address" and the like) registered is managed in the actual sensor-
Referring again to fig. 7, the
Fig. 9 is a diagram showing an example of a screen when an input sensor is selected. As shown in fig. 9, for example, in this example, 4 actual sensors 10 ("temperature sensors" (R010, R011, R012, R013)) included in a
The 4
Fig. 10 is an example of a screen displayed on the monitor of the user terminal after the input sensor is selected. As shown in fig. 10, when the input sensors are selected,
In addition, a
In this example, the setting
The items included in the "virtual sensor metadata setting unit" and the "options" are prepared in advance for each "category", for example, and the items corresponding to the "category" selected by the definer of the virtual sensor are displayed on the screen.
For example, at this stage, the definer of the virtual sensor can perform temporary input of each metadata included in the "virtual sensor metadata setting unit". When the temporary input of the metadata is completed, the definer of the virtual sensor can press the
Fig. 11 is a diagram showing an example of a screen displayed on the monitor of the user terminal after the
As shown in fig. 11, the sensing data of the virtual sensor is calculated, and the calculation result (representative data 226) is displayed near the
In addition, a
In this example, all of R010, R011, R012, and R013 are "2017/3/1410: since the temperature of "outside air" was measured around "kyoto station" at 00 ", it was indicated as" OK "in each item. For example, in the measurement site, since a common keyword of "kyoto station" is added to both "eight mouths at kyoto station" and "before kyoto station", it is determined that there is no problem even if "kyoto station" is set as the metadata. For example, in this example (the measurement locations of the input sensors are "eight mouths at kyoto station" and "before kyoto station"), when "osaka station" is temporarily input as the measurement location (metadata) of the virtual sensor, the metadata of the input sensor and the metadata of the virtual sensor are contradictory, and therefore the
When the simulation of the virtual sensor is completed, for example, a definer of the virtual sensor can perform option setting of the virtual sensor. The definer can select a unit of the sensing data, for example. In addition, such option setting is not necessary.
Thereafter, when the
Fig. 12 is a diagram showing an example of the virtual sensor example table 44. As shown in fig. 12, the virtual sensor instance table 44 is a table for managing information related to instances (entities, instances) of virtual sensors. The virtual sensor instance table 44 manages, for example, "virtual sensor instance No.", "virtual sensor classification No.", "use actual sensor No.", "position information", "definer ID", and "definition day" of each instance.
As described above, in the present embodiment, when simulating the metadata of the virtual sensor, the 2
< 3-2. concrete processing step >
Fig. 13 is a flowchart showing a specific processing step of modeling metadata. The processing shown in this flowchart is executed by the control unit 300 (virtual sensor simulation apparatus 6) in accordance with the instruction of the virtual sensor definer.
Referring to fig. 13, when the definer selects the classification of the virtual sensor (fig. 4), the
After that, the
When the simulation in step S9 is completed or it is determined that there is no simulation instruction (no in step S7), the
Thereafter, when the definer presses the metadata generation button 220 (fig. 11), the
In this way, in the present embodiment, the metadata of the virtual sensor generated at one time is registered in the virtual sensor-
Further, identification information (identification information indicating metadata of a virtual sensor instead of metadata of an actual sensor) is added to the metadata registered in the virtual sensor-
Fig. 14 is a flowchart showing a specific processing procedure of step S9 of fig. 13. Referring to fig. 14, the
After that, the
[4. characteristics ]
As described above, in the present embodiment, when simulating metadata of a virtual sensor, the 2
[5. modification ]
<5-1>
In the above embodiment, after the metadata of the virtual sensor is simulated, the
<5-2>
In the above embodiment, even if the determination result in the simulation of the metadata of the virtual sensor is "NG", the metadata is generated when the definer presses the
<5-3>
In the above embodiment, the 1
<5-4>
In the above embodiment, the simulation of the virtual sensor is performed in the 2
<5-5>
In the above embodiment, when the 2
Description of the reference symbols
1: a sensor network unit; 2: an application server; 3: a management system; 4: 1, a server; 5: a virtual sensor DB; 6: a virtual sensor simulation device; 7: a 2 nd server; 10: an actual sensor; 11: a sensor network adapter; 40: a metadata matching section; 41: an actual sensor-side metadata DB; 42: an application-side metadata DB; 43: a virtual sensor-side metadata DB; 44: a virtual sensor instance table; 51: a data input/output unit; 52: a virtual sensor function; 53: a virtual sensor calculation unit; 54: a virtual sensor classification library; 56: a selection button; 61: a virtual sensor simulation API unit; 62: a virtual sensor metadata generation simulation unit; 63: a virtual sensor metadata generation unit; 90: an internet; 100: a sensor network system; 101: framing; 201: a label bar; 202. 205: a display bar; 203: an input field; 204: setting a column; 210: an operation start button; 220: a metadata generation button; 225. 226: representing data; 227: a decision result icon; 300: a control unit; 310: a CPU; 320: a RAM; 330: a ROM; 350: a bus; 400: a storage unit; 510: a communication I/F; 621: an acquisition unit; 622: a reception unit; 623: a determination unit.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:用于识别装置的壳体