JP5554731B2 - Information updating apparatus and information updating method - Google Patents

Information updating apparatus and information updating method Download PDF

Info

Publication number
JP5554731B2
JP5554731B2 JP2011019385A JP2011019385A JP5554731B2 JP 5554731 B2 JP5554731 B2 JP 5554731B2 JP 2011019385 A JP2011019385 A JP 2011019385A JP 2011019385 A JP2011019385 A JP 2011019385A JP 5554731 B2 JP5554731 B2 JP 5554731B2
Authority
JP
Japan
Prior art keywords
information
update
procedure
sensor
formula
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2011019385A
Other languages
Japanese (ja)
Other versions
JP2012160030A (en
Inventor
隆幸 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2011019385A priority Critical patent/JP5554731B2/en
Publication of JP2012160030A publication Critical patent/JP2012160030A/en
Application granted granted Critical
Publication of JP5554731B2 publication Critical patent/JP5554731B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、センサ情報データベースの情報をリレーショナルデータベースに反映させる情報更新装置に関する。   The present invention relates to an information updating apparatus that reflects information in a sensor information database in a relational database.

従来、Webブラウザから用いるアプリケーション(Webアプリケーション)を効率よく開発するための技術として、Webフレームワークと呼ばれる技術があった。このようなWebフレームワークの例として、Ruby on Railsがある。Ruby on Railsは、Webアプリケーション開発の効率を飛躍的に高めた技術として、その評価が高い。Webフレームワークにより、RDB(Relational Database)への読み書きを行いつつWebページを動的に生成するWebアプリケーションを効率的に開発することが可能である。   Conventionally, there is a technique called a web framework as a technique for efficiently developing an application (web application) used from a web browser. An example of such a web framework is Ruby on Rails. Ruby on Rails is highly evaluated as a technology that dramatically improves the efficiency of Web application development. With the Web framework, it is possible to efficiently develop a Web application that dynamically generates a Web page while reading from and writing to an RDB (Relational Database).

一方、多様なセンサやアクチュエータを身の回りに配置して動作させるユビキタスコンピューティング分野においては、センサからの情報を履歴として蓄え後から検索取得する機能を提供する、センサ情報DBが研究されている。このようなセンサ情報DB(Database)の例として、uTupleSpace(非特許文献1)がある。uTupleSpaceにおいては、個々のセンサ情報をEA、検索式をEFと呼称している。uTupleSpaceの技術的特徴の一つに、EAの履歴を後からEFにより検索する機能と、EFを事前に登録しておき新たなEAが蓄積されると該EAの新着通知をEF登録元が受け取る機能とを、統合していることが挙げられる。   On the other hand, in the field of ubiquitous computing in which various sensors and actuators are arranged and operated around, a sensor information DB that provides a function of storing information from sensors as a history and then retrieving and acquiring it has been studied. As an example of such a sensor information DB (Database), there is u TupleSpace (Non-Patent Document 1). In uTupleSpace, individual sensor information is called EA, and a search expression is called EF. One of the technical features of uTupleSpace is the ability to search the EA history later by EF, and when an EF is registered in advance and a new EA is accumulated, the EF registration source receives the new arrival notification of the EA. It is mentioned that functions are integrated.

また、uTupleSpaceの技術的特徴の一つに、様々な種類のセンサ情報を一元的に格納して横通しで検索できる、スキーマレスマッチング方式がある。該方式では、個々のセンサ情報を、「キー名=値,キー名=値,……」のようなKey−Valueペアの並びとして表現する。このキー名はデータ登録者が自由に設定することができ、必ずしも各センサ情報で厳密に一律化しなくてよい。検索の際にはこれらのキー名から任意個のキーについて、その値の範囲を検索条件として指定することができる。このため、センサ情報DBとしての汎用性が高いという利点がある。   Also, one of the technical features of uTupleSpace is a schemaless matching method in which various types of sensor information can be stored centrally and searched horizontally. In this method, individual sensor information is expressed as an array of key-value pairs such as “key name = value, key name = value,...”. This key name can be freely set by the data registrant, and does not necessarily have to be strictly uniform for each sensor information. When searching, the range of values of any number of keys from these key names can be specified as a search condition. For this reason, there exists an advantage that the versatility as sensor information DB is high.

このような履歴型のセンサ情報DBに対して、該DBへのセンサ情報の読み書きを行いつつWebページを動的に生成するWebアプリケーションを開発する際の問題点が、非特許文献2で指摘されている。該文献によると、Webアプリケーションを開発する際には、センサ情報を履歴として検索できるだけでは不十分で、各センサ個体に対してそのセンサからの最新状態を効率よく取得できる機能を提供する必要がある。   Non-patent document 2 points out a problem in developing a Web application that dynamically generates a Web page while reading and writing sensor information from and to such a history type sensor information DB. ing. According to this document, when developing a Web application, it is not enough to search for sensor information as a history, and it is necessary to provide each sensor individual with a function that can efficiently acquire the latest state from that sensor. .

このような機能の初歩的な実現方法は、非特許文献2に開示されている。すなわち、「uTupleSpaceを待ち受けモードで利用し、独自に別途RDB等を用いて最新状態を管理」することにより、このようなプログラムを構成することができる。その実施にあたっては、当該プログラムが取り扱う情報が予め分かっているのであれば、uTupleSpaceから待ち受けて取得したEAから、その予め分かっている情報を読み取って、予め分かっているRDBテーブルの予め分かっているカラムを更新するSQL文を発行するプログラムを作成する。また、このようにして構成された該プログラムは、十分高い実行効率で動作する。   Non-patent document 2 discloses an elementary method for realizing such a function. That is, such a program can be configured by “using uTupleSpace in a standby mode and independently managing the latest state using a separate RDB or the like”. In the implementation, if the information handled by the program is known in advance, the previously known information is read from the EA obtained by waiting from u TupleSpace, and the previously known column of the RDB table is known in advance. Create a program that issues a SQL statement that updates. The program configured in this way operates with sufficiently high execution efficiency.

非特許文献2では、このように「当該プログラムが取り扱う情報が予め分かって」いない場合に、どのようなAPI(Application Program Interface)を提供するセンサ情報DBを提供すれば、該Webアプリケーションが容易に開発できるようになるかが示されている。それによると、下記API「Definition 3」があれば、当該プログラムが取り扱う情報が予め分かっていない場合でも、スキーマレスマッチング方式によってセンサ情報DBにもたらされる汎用性の高さという利点を保持しつつ、必要となる情報取得機能が充足できることが開示されている。   In Non-Patent Document 2, if a sensor information DB that provides what kind of API (Application Program Interface) is provided when the information handled by the program is not known in advance, the Web application can be easily obtained. It shows how it can be developed. According to it, if there is the following API “Definition 3”, even if the information handled by the program is not known in advance, while maintaining the advantage of high versatility brought to the sensor information DB by the schemaless matching method, It is disclosed that the necessary information acquisition function can be satisfied.

Definition 3「現時点における個々の対象物の最新状態」を取得する関数Nについて、全uTuple空間をWとし、検索条件A⊂W、検索対象R⊂W、およびSを定義域とする対象物同定関数Fを与え、蓄積中の全uTuple集合U⊂Wに対しS⊃(R∩U)を満たすとき、
Nu(A,R,F)={vi}∩A;where
∃i∈I vi=newest({b∈R∩U|F(b)=i})
のように定義する。これにより、対象物の最新状態について理論的定義を与えることができる。
Definition 3 For a function N that obtains “the latest state of each individual object at the present time”, an object identification function having all u Tuple spaces as W, and a search condition A⊂W, a search object R⊂W, and S as domains of definition When F is satisfied and S⊃ (R∩U) is satisfied for all u Tuple sets U⊂W being accumulated,
Nu (A, R, F) = {vi} ∩A;
∃i∈I vi = newest ({b∈R∩U | F (b) = i})
Define as follows. This gives a theoretical definition for the latest state of the object.

「大量スキーマレスデータの蓄積・検索を実現する新しいuTupleSpaceの設計と実装」、柏木啓一郎ほか著、マルチメディア,分散,協調とモバイル(DICOMO2010)シンポジウム、2010年7月“Design and implementation of a new uTupleSpace that enables storage and retrieval of large amounts of schemaless data”, Keiichiro Kashiwagi et al., Multimedia, Distributed, Collaboration and Mobile (DICOMO2010) Symposium, July 2010 「センサ情報の履歴型蓄積における最新状態」、中村隆幸ほか著、電子情報通信学会ソサイエティ大会、2009年9月“Latest state of sensor information history accumulation”, Takayuki Nakamura et al., IEICE Society Conference, September 2009

非特許文献2 では、アプリケーション開発に必要とされる、高い汎用性を持つAPIは理論的に提案されていたが、その実行効率については触れられていなかった。具体的には、「uTupleSpaceを待ち受けモードで利用し、独自に別途RDB等を用いて最新状態を管理」することにより構成されたプログラムが有する高い実行効率と、同程度に十分高い実行効率を得つつ該高い汎用性を提供できるようなAPIの実現方式については、触れられていないという問題があった。   In Non-Patent Document 2, an API having high versatility required for application development has been theoretically proposed, but its execution efficiency has not been mentioned. Specifically, the high execution efficiency of the program configured by “using the uTupleSpace in the standby mode and managing the latest state separately using RDB etc.” is as high as the execution efficiency. However, there has been a problem that an API implementation method that can provide such high versatility is not mentioned.

該APIの実現方式の一つとして、該式をその式の意味どおりにプログラムとして実装することが考えられる。しかしその場合には、すなわち、情報取得操作のたびにセンサ情報DBが保持する全センサ情報を一度走査しなおして、式の条件に合致する結果を得る処理を行うこととなる。そのため、この実現方式の実行効率はきわめて低くとどまってしまうという問題があった。   As one of methods for realizing the API, it is conceivable to implement the expression as a program according to the meaning of the expression. However, in that case, that is, every time an information acquisition operation is performed, all the sensor information held in the sensor information DB is scanned once, and a process of obtaining a result that satisfies the condition of the formula is performed. Therefore, there has been a problem that the execution efficiency of this implementation method remains extremely low.

一方、「uTupleSpaceを待ち受けモードで利用し、独自に別途RDB等を用いて最新状態を管理」することにより構成されたプログラムを用いることで、上に述べたアプリケーション開発に必要とされる機能を提供する方法が考えられる。しかしこの方法においては、上に述べたように、当該プログラムが取り扱う情報が予め分かっているのでなければ適用できない。従って、別の種類のアプリケーション開発を行う際には、当該プログラムを再度作り直しする必要が生じ、開発効率の著しい低下を招くという問題があった。   On the other hand, the functions required for application development described above are provided by using a program that is configured by “using uTupleSpace in standby mode and independently managing the latest state using RDB etc.” A way to do this is conceivable. However, as described above, this method cannot be applied unless the information handled by the program is known in advance. Accordingly, when developing another type of application, it is necessary to recreate the program again, which causes a problem of significant reduction in development efficiency.

本発明の目的は、以上述べた事情に鑑み、履歴型のセンサ情報DBに対して、スキーマレスマッチング方式に適合する高い汎用性を有し、各センサ個体に対してそのセンサからの最新状態を効率よく取得できる機能を提供することにある。   In view of the circumstances described above, the object of the present invention is to have a high versatility conforming to the schemaless matching method for the history type sensor information DB, and for each sensor individual, the latest state from the sensor is displayed. It is to provide a function that can be acquired efficiently.

上記目的を達成するために、本願発明の情報更新装置及び情報更新方法は、スキーマレススイッチング方式に適合した履歴型のセンサ情報DBを対象とし、uTupleSpaceを待ち受けモードで利用し、別途RDBを用いることによって各々センサの最新情報を取得する装置において、RDBにセンサ情報を取得する際の動作を「Definition3」の理論式に基づいた定義ファイルによりカスタマイズする。   In order to achieve the above object, the information updating apparatus and information updating method of the present invention is directed to a history type sensor information DB conforming to the schemaless switching method, uses uTupleSpace in a standby mode, and uses a separate RDB. In the device that acquires the latest information of each sensor, the operation when acquiring the sensor information in the RDB is customized by the definition file based on the theoretical expression of “Definition 3”.

具体的には、本願発明の情報更新装置は、情報更新装置であって、予め定められた読み取り先から、検索式と対象物同定情報と更新対象表の情報とカラム対応情報を少なくとも含む定義式を読み取る定義式読み取り機能と、それぞれキー名と値からなる組の複数個の並びを少なくとも含むセンサ情報が登録され、該センサ情報が登録されている検索式に合致した場合に、該合致したセンサ情報を当該検索式の登録元へ送信するセンサ情報DBに対し、前記定義式に含まれる検索式を登録する検索式登録機能と、前記センサ情報DBから前記センサ情報を受信すると、該センサ情報の中から前記定義式に含まれる対象物同定情報に一致するキー名に対応する値を抽出し、前記定義式に含まれるカラム対応情報に基づいて前記対象物同定情報に一致するキー名を前記定義式に含まれる前記更新対象表におけるカラム名に変換し、前記更新対象表におけるカラム名で識別される対象行を、抽出した値で更新する更新操作をRDBMS(Relational DataBase Management System)に発行する情報更新機能と、
を有する。
Specifically, the information updating apparatus of the present invention is an information updating apparatus, and includes a definition formula including at least a search formula, target object identification information, information on an update target table, and column correspondence information from a predetermined reading destination. When the sensor information including at least a plurality of combinations of key names and values is registered and the sensor information matches the registered search formula, the matched sensor is read. When the sensor information is transmitted from the sensor information DB to the sensor information DB that transmits information to the registration source of the search formula, the search formula registration function that registers the search formula included in the definition formula, and the sensor information DB receives the sensor information. A value corresponding to the key name that matches the object identification information included in the definition formula is extracted from the list, and the object identification information is identified based on the column correspondence information included in the definition formula. The key name is converted to the column names in the update target table included in the definition formula, the target row identified by the column name definitive to update target table, the update operation that updates at the extracted value RDBMS (Relational DataBase Information update function issued to Management System),
Have

本願発明の情報更新装置では、前記定義式は、さらに更新するカラムを限定する更新限定情報を少なくとも含み、前記情報更新機能はRDBMSに発行する前記更新操作において、前記更新限定情報に含まれるカラムのみへの更新を指示してもよい。 In the information updating apparatus of the present invention, the defining equation includes at least the update limitation information to limit the column to further update the information update function, included in the Oite the update operation, the update restriction information issued to RDBMS an update of the column to only may indicate finger to be.

本願発明の情報更新装置では、指定された処理開始時から現在までのセンサ情報を前記センサ情報DBに問い合わせ、該問い合わせの結果得られたセンサ情報について、前記更新対象表に対して前記対象物同定情報で識別される対象行の更新操作をRDBMSに発行する巻き戻し機能をさらに有してもよい。 In the information updating apparatus of the present invention, queries the sensor information from the time the specified process start up current to the sensor information DB, the resulting sensor information of the query, the object identification to the update target table the update operation of the target row identified by the information may further have a rewind function is issued to the RDBMS.

具体的には、本願発明の情報更新方法は、情報更新方法であって、予め定められた読み取り先から、検索式と対象物同定情報と更新対象表の情報とカラム対応情報を少なくとも含む定義式を読み取る定義式読み取り手順と、該定義式読み取り手順の後に、それぞれキー名と値からなる組の複数個の並びを少なくとも含むセンサ情報が登録され、該センサ情報が登録されている検索式に合致した場合に、該合致したセンサ情報を当該検索式の登録元へ送信するセンサ情報DBに対し、前記定義式に含まれる検索式を登録する検索式登録手順と、該検索式登録手順の後に、前記センサ情報DBから前記センサ情報を受信すると、該センサ情報の中から前記定義式に含まれる対象物同定情報に一致するキー名に対応する値を抽出し、前記定義式に含まれるカラム対応情報に基づいて前記対象物同定情報に一致するキー名を前記定義式に含まれる前記更新対象表におけるカラム名に変換し、前記更新対象表におけるカラム名で識別される対象行を、抽出した値で更新する更新操作をRDBMS(Relational DataBase Management System)に発行する情報更新手順と、を有する。 Specifically, the information update method of the present invention is an information update method, and a definition formula including at least a search formula, object identification information, update target table information, and column correspondence information from a predetermined reading destination. After the definition formula reading procedure , and after the definition formula reading procedure, sensor information including at least a plurality of combinations of key names and values is registered, and the sensor information matches the registered search formula. In this case, a search formula registration procedure for registering a search formula included in the definition formula for the sensor information DB that transmits the matched sensor information to the registration source of the search formula, and after the search formula registration procedure, When the sensor information is received from the sensor information DB, a value corresponding to the key name that matches the object identification information included in the definition formula is extracted from the sensor information and included in the definition formula. It converts the key name that matches the object identification information on the basis of the column corresponding information in the column names in the update target table included in the definition formula, a target row identified by the column name definitive to the update target table And an information update procedure for issuing an update operation for updating with the extracted value to an RDBMS (Relational DataBase Management System) .

本願発明の情報更新方法では、前記定義式は、さらに更新するカラムを限定する更新限定情報を少なくとも含み、前記情報更新手順では、RDBMSに発行する前記更新操作において、前記更新限定情報に含まれるカラムのみへの更新を指示してもよい。 The information updating method of the present invention, the defining equation may further comprise at least an update limitation information to limit the column to be updated, included in the information in the update procedure, Oite the update operation to be issued to the RDBMS, the update restriction information an update of the column to only may indicate finger to be.

本願発明の情報更新方法では、前記定義式読み取り手順と前記検索式登録手順の間、又は前記検索式登録手順と同時、又は前記検索式登録手順と前記情報更新手順の間に指定された処理開始時から現在までのセンサ情報を前記センサ情報DBに問い合わせ、該問い合わせの結果得られたセンサ情報について、前記更新対象表に対して前記対象物同定情報で識別される対象行の更新操作をRDBMSに発行する巻き戻し手順をさらに有してもよいProcessing the information updating method of the present invention, during the defining equation reading procedure and the search expression registration procedure or the search expression registration procedure simultaneously, or during the search expression registration procedure and the information update procedure, designated inquiry from the start sensor information to date on the sensor information DB, the resulting sensor information of the query, RDBMS update operations of the target row identified by the object identification information to the update target table There may be further provided a rewinding procedure to be issued.

本願発明のプログラムは、本願発明の情報更新方法の前記定義式読み取り手順、前記検索式登録手順及び前記情報更新手順、或いは、前記定義式読み取り手順、前記検索式登録手順、前記情報更新手順及び前記巻き戻し手順を、コンピュータに実行させるためのプログラムである。   The program of the present invention includes the definition formula reading procedure, the search formula registration procedure and the information update procedure of the information update method of the present invention, or the definition formula read procedure, the search formula registration procedure, the information update procedure and the A program for causing a computer to execute a rewinding procedure.

なお、上記各発明は、可能な限り組み合わせることができる。   The above inventions can be combined as much as possible.

本発明によれば、履歴型のセンサ情報DBに対して、スキーマレスマッチング方式に適合する高い汎用性を有し、各センサ個体に対してそのセンサからの最新状態を効率よく取得できる機能を実現することができる。   According to the present invention, the history type sensor information DB has a high versatility that conforms to the schemaless matching method, and realizes a function that allows each sensor individual to efficiently acquire the latest state from the sensor. can do.

本実施の形態におけるシステム全体の構成を示す。1 shows a configuration of the entire system in the present embodiment. uTupleSpace(104)に格納されているセンサ情報(221)を示す。The sensor information (221) stored in uTupleSpace (104) is shown. RDBMS(103)が保持するテーブルを示す。A table held by the RDBMS (103) is shown. 情報更新装置(102)が起動時に読み込む定義ファイル(107)を示す。The definition file (107) which an information update apparatus (102) reads at the time of starting is shown. 情報更新装置(102)が起動時に登録する待ち受け検索式を示す。The standby search expression that the information updating apparatus (102) registers at the time of activation is shown. センサ(106)がuTupleSpace(104)に追加登録するセンサ情報(261)を示す。Sensor information (261) that the sensor (106) additionally registers in the uTupleSpace (104) is shown. 情報更新装置(102)の情報更新処理手順を示す。An information update processing procedure of the information update apparatus (102) is shown. 生成されたSQL文の例(281)を示す。An example (281) of the generated SQL sentence is shown. センサ情報(261)に従って情報更新装置(102)が情報更新した結果の、RDBMS(103)が保持するテーブルを示す。The table which RDBMS (103) hold | maintains as a result of the information update apparatus (102) updating information according to sensor information (261) is shown.

添付の図面を参照して本発明の実施形態を説明する。以下に説明する実施形態は本発明の実施の例であり、本発明は、以下の実施形態に制限されるものではない。なお、本明細書及び図面において符号が同じ構成要素は、相互に同一のものを示すものとする。   Embodiments of the present invention will be described with reference to the accompanying drawings. The embodiments described below are examples of the present invention, and the present invention is not limited to the following embodiments. In the present specification and drawings, the same reference numerals denote the same components.

まず、基本的なアイデアについてその概要を述べる。
本発明の基本的なアイデアは、上記「uTupleSpaceを待ち受けモードで利用し、独自に別途RDB等を用いて最新状態を管理」するプログラムについて、その動作を非特許文献2の該「Definition 3」の理論式に基づいて、定義ファイルによりカスタマイズ可能とすることにある。
First, outline the basic ideas.
The basic idea of the present invention is that the operation of the above-mentioned “Definition 3” of Non-Patent Document 2 is described for the above-described program that uses “uTupleSpace in standby mode and independently manages the latest state using RDB or the like”. It is to be customizable by a definition file based on a theoretical formula.

一般に、固定的な機能のプログラムの挙動を、定義ファイルによりカスタマイズ可能にすれば、その分だけ汎用性が高まることは当然である。ただし、そのカスタマイズ可能な箇所が場当たり的に設計されたものである限り、汎用性も場当たり的にしか向上せず、スキーマレスマッチング方式が有する高い汎用性に釣り合うものとは到底なり得ない。本発明では、高い汎用性が提唱されている該理論式を、該カスタマイズ可能な箇所を設計する際の基礎とすることにより、高い汎用性を得るものである。   In general, if the behavior of a program having a fixed function can be customized by a definition file, it is natural that the versatility increases accordingly. However, as long as the part that can be customized is designed on the fly, the versatility can be improved only on the fly, and cannot be balanced with the high versatility of the schemaless matching method. In the present invention, high versatility is obtained by using the theoretical formula, which has been proposed for high versatility, as a basis for designing the customizable portion.

さらに本実施の形態においては、該理論式において理論的APIが要求する3つの引数A,R,Fについて、それらすべてをそのまま該プログラムのカスタマイズ可能箇所とするのではなく、該プログラムを含めた上記のWebアプリケーション全体の構造を踏まえて、3つの引数A,R,Fの機能をちりばめて配置することとする。本実施の形態における具体的な機能配置については以下で示す。これにより、該プログラムのカスタマイズ可能箇所を過剰に増やすことを避けることができ、該プログラムの規模の縮小につながり、該プログラムの開発期間や維持費用等を削減することができる。   Furthermore, in the present embodiment, the three arguments A, R, and F required by the theoretical API in the theoretical formula are not all made as customizable portions of the program as they are, but the above-mentioned including the program is included. Based on the structure of the entire Web application, the functions of the three arguments A, R, and F are arranged and arranged. Specific functional arrangement in the present embodiment will be described below. Thereby, it is possible to avoid an excessive increase in the number of customizable portions of the program, which leads to a reduction in the scale of the program, and it is possible to reduce the development period and maintenance cost of the program.

さらに本発明では、該プログラムが起動している間に得られたセンサ情報しか処理対象とならず、それ以外の期間の情報はアプリケーションからのセンサ情報取得対象から漏れてしまい、汎用性が損なわれるという問題に対処するため、該プログラムに過去のセンサ情報を巻き戻して処理対象とする機能を具備することとする。これにより、上記対象漏れの問題を回避することが可能となる。   Furthermore, in the present invention, only the sensor information obtained while the program is running is processed, and information in other periods is leaked from the sensor information acquisition target from the application, and versatility is impaired. In order to deal with this problem, it is assumed that the program has a function for rewinding past sensor information to be processed. Thereby, it becomes possible to avoid the problem of the target leakage.

本実施の形態では、以上の基本的な考え方に基づいた装置の構成法を以下に示す。これにより、上記述べた公知の2つの方式を単に組み合わせたものに留まらない、顕著な効果を奏するものである。   In the present embodiment, an apparatus configuration method based on the above basic concept is shown below. As a result, the above-described known two methods are not simply combined, and a remarkable effect is achieved.

第1図は、本実施の形態におけるシステム全体の構成を示す。ネットワーク(105)にWebサーバ装置(101)、情報更新装置(102)、RDBMS(103)、uTupleSpace(104)、およびセンサ(106)が接続される。これらのネットワーク接続された各装置は通信機能を有するが、本実施形態においては当該通信機能の詳細は省略する。   FIG. 1 shows the configuration of the entire system in the present embodiment. A Web server apparatus (101), an information update apparatus (102), an RDBMS (103), an uTupleSpace (104), and a sensor (106) are connected to the network (105). Each of these apparatuses connected to the network has a communication function, but details of the communication function are omitted in this embodiment.

本実施形態に係る情報更新装置(102)は、定義式読み取り機能と、検索式登録機能と、情報更新機能と、巻き戻し機能と、を備える。本実施形態に係る情報更新方法は、定義式読み取り手順と、検索式登録手順と、情報更新手順と、を順に有する。   The information update apparatus (102) according to the present embodiment includes a definition formula reading function, a search formula registration function, an information update function, and a rewind function. The information update method according to this embodiment includes a definition formula reading procedure, a search formula registration procedure, and an information update procedure in this order.

また、情報更新装置(102)が読み込む定義ファイル(107)を予め定められた読み取り先に配置する。ここで、予め定められた読み取り先は限定しない。予め定められた読み取り先は、例えば、外部からアクセス可能な情報更新装置(102)の任意のフォルダであってもよいし、情報更新装置(102)からアクセス可能な任意のサーバであってもよいし、レジストリデータベースなどの任意のデータベースであってもよい。本実施形態では定義式が定義ファイル(107)である場合について説明するが、予め定められた読み取り先が任意のデータベースの場合は定義式は当該任意のデータベースに格納されている行や値とすることも可能である。   Further, the definition file (107) read by the information updating apparatus (102) is arranged at a predetermined reading destination. Here, the predetermined reading destination is not limited. The predetermined reading destination may be, for example, an arbitrary folder of the information update device (102) accessible from the outside, or an arbitrary server accessible from the information update device (102). Any database such as a registry database may be used. In this embodiment, the case where the definition formula is the definition file (107) will be described. However, when the predetermined reading destination is an arbitrary database, the definition formula is a row or value stored in the arbitrary database. It is also possible.

Webサーバ装置(101)は、Webブラウザからの要求を受け取り、RDBMS(103)とのデータのやりとりを行いつつ、HTMLの生成処理を行って、Webブラウザに返却する。このようなシステムは広く製造されており、例えばRuby on RailsのようなWebフレームワーク技術を用いるなどして、当業者にとって容易に実現できる。   The Web server apparatus (101) receives a request from the Web browser, performs an HTML generation process while exchanging data with the RDBMS (103), and returns it to the Web browser. Such systems are widely manufactured and can be easily implemented by those skilled in the art using, for example, a web framework technology such as Ruby on Rails.

センサ(106)は識別子として「A」を持ち、温度と湿度のセンサを具備する。   The sensor (106) has “A” as an identifier and includes temperature and humidity sensors.

第2図は、uTupleSpace(104)に格納されているセンサ情報(221)を示す。uTupleSpaceでの個々のセンサ情報は本図が示すように「キー=値」からなる組の並びで表され、それが時系列に沿って蓄積される。uTupleSpaceの用語では、これら個々のセンサ情報をEAと呼ぶ。   FIG. 2 shows sensor information (221) stored in uTupleSpace (104). Individual sensor information in uTupleSpace is represented by a set of “key = value” as shown in the figure, and is stored in time series. In the uTupleSpace terminology, each piece of sensor information is referred to as EA.

図中、例えば222の行は、Aという識別子のセンサ(106)からの情報で、検針日時が2010年12月24日14時0分、登録日時が2010年12月24日14時3分、データタイプはセンサ、メッセージ種類は複合(ハイブリッド)、値1すなわち温度は21.3度、値2すなわち湿度は60%であることを示している。検針日時と登録日時に数分のずれがあるのは、無線ネットワーク等を介したサーバへの通信遅延が発生していた様子を示す。   In the figure, for example, line 222 is information from the sensor (106) with the identifier A, the meter reading date and time is 14:00:00 on December 24, 2010, the registration date and time is 14:03 on December 24, 2010, The data type is sensor, the message type is composite (hybrid), the value 1 or temperature is 21.3 degrees, and the value 2 or humidity is 60%. A difference of several minutes between the meter reading date and time and the registration date and time indicates that a communication delay to the server via the wireless network or the like has occurred.

また例えば223の行は、Aという識別子のセンサからの情報で、検針日時が2010年12月24日16時10分、登録日時が2010年12月24日16時13分、データタイプはセンサ、メッセージ種類は温度のみ、値1すなわち温度は21.8度であることを示している。この例では、16時台にはセンサ(106)の何らかの不調により、16時0分には温度センサが機能せず湿度の情報のみがまずuTupleSpace(104)へと格納され、その10分後に再計測を行って、今度は温度の情報のみがuTupleSpace(104)へと格納された様子を示す。このように温度と湿度が揃って登録されていない場合、例えば温度と湿度の相関を分析するようなアプリケーションにとっては、16時台のデータは分析には不向きであり無視すべきであることが想定される。   For example, line 223 is information from the sensor with the identifier A, the meter reading date and time is 16:10 on December 24, 2010, the registration date and time is 16:13 on December 24, 2010, the data type is sensor, The message type is temperature only, indicating that the value is 1, that is, the temperature is 21.8 degrees. In this example, due to some malfunction of the sensor (106) at 16:00, the temperature sensor does not function at 16:00 and only the humidity information is first stored in the uTupleSpace (104). Measurement is performed and only the temperature information is stored in the uTupleSpace (104) this time. In this way, when temperature and humidity are not registered at the same time, for example, for an application that analyzes the correlation between temperature and humidity, it is assumed that data at 16:00 is unsuitable for analysis and should be ignored. Is done.

第3図は、RDBMS(103)が保持するテーブルを示す。該RDBMSは表「current_sensors」(231)を保持する。表「current_sensors」(231)は、カラム「address」、「sensor_date」、「temperature」、および「humidity」で示されるデータを格納する。   FIG. 3 shows a table held by the RDBMS (103). The RDBMS maintains a table “current_sensors” (231). The table “current_sensors” (231) stores data indicated by columns “address”, “sensor_date”, “temperature”, and “humidity”.

以下、本システムの動作を順を追って説明する。
まず、システム起動時の動作を示す。システム起動時に、定義式読み取り手順を行う。定義式読み取り手順では、例えば、情報更新装置(102)は、定義式読み取り機能を用いて定義ファイル(107)を読み込む。
Hereinafter, the operation of this system will be described step by step.
First, the operation when the system is started will be described. The definition formula reading procedure is performed at system startup. In the definition formula reading procedure, for example, the information updating apparatus (102) reads the definition file (107) using the definition formula reading function.

第4図は、情報更新装置(102)が起動時に読み込む定義ファイル(107)を示す。最初の行「query1」は、一続きの定義ブロック(まとまり)を宣言開始することを示す。本実施の形態においては、情報更新装置(102)の動作をただ一つだけ、定義ファイル(107)によって定義する例を示す。本発明の範囲はこれに限るものではなく、定義ファイル(107)内に複数の定義ブロックを列挙することとし、情報更新装置(102)は複数の定義ブロックで規定される複数の動作について、それらを同時並行的に行うこととしてもよい。   FIG. 4 shows a definition file (107) that is read by the information updating device (102) at startup. The first line “query1” indicates that a declaration of a series of definition blocks (groups) is to be started. In the present embodiment, an example in which only one operation of the information updating apparatus (102) is defined by the definition file (107) is shown. The scope of the present invention is not limited to this, and a plurality of definition blocks are listed in the definition file (107), and the information update device (102) performs a plurality of operations defined by the plurality of definition blocks. May be performed in parallel.

定義ファイル(107)の2行目「EF:」は、待ち受け検索式を示す。
定義ファイル(107)の3行目「IDENT:」は、対象物同定情報を示す。
定義ファイル(107)の4行目「TABLE:」は、更新対象表情報を示す。
定義ファイル(107)の5行目「COLMAP:」は、カラム対応情報を示す。
定義ファイル(107)の6行目「UPDATE:」は、更新限定情報を示す。
これらの情報の使用方法は、以下に順を追って示す。
The second line “EF:” in the definition file (107) indicates a standby search expression.
The third line “IDENT:” in the definition file (107) indicates object identification information.
The fourth line “TABLE:” in the definition file (107) indicates update target table information.
The fifth line “COLMAP:” in the definition file (107) indicates column correspondence information.
“UPDATE:” on the sixth line of the definition file (107) indicates update limitation information.
The method of using these pieces of information will be shown below in order.

第5図は、情報更新装置(102)が起動時に登録する待ち受け検索式を示す。システムが起動する際、定義式読み取り手順の後の検索式登録手順において、情報更新装置(102)は251で示されるEFを、待ち受け検索式としてuTupleSpace(104)に登録する。ここで(現在日時)の部分には、登録処理を行った時点での日時を数値として埋め込む。またその他の部分は、定義ファイル(107)の待ち受け検索式定義に記載された内容を用いる。式251は、キー「msg_kind」を含み、かつその値が「hybrid」であり、かつ、キー「type」を含み、かつその値が「sensor」であり、かつ、キー「date」を含み、かつその値が「(現在日時)」と同じかそれ以降であるような条件に合致するEAを検索することを意味する。uTupleSpace(104)は、EF(251)を受け取ると、以降、待ち受け状態に入る。   FIG. 5 shows a standby search expression that the information updating apparatus (102) registers at the time of activation. When the system is activated, in the retrieval formula registration procedure after the definition formula reading procedure, the information updating apparatus (102) registers the EF indicated by 251 in the uTupleSpace (104) as a standby retrieval formula. Here, in the (current date and time) portion, the date and time at the time of performing the registration process is embedded as a numerical value. For the other parts, the contents described in the standby search expression definition of the definition file (107) are used. Expression 251 includes the key “msg_kind”, its value is “hybrid”, includes the key “type”, its value is “sensor”, includes the key “date”, and This means that an EA that matches a condition whose value is equal to or later than “(current date and time)” is searched. When the uTupleSpace (104) receives the EF (251), it enters a standby state thereafter.

次に、新たなセンサ情報が発生した場合の動作を示す。
第6図は、センサ(106)がuTupleSpace(104)に追加登録するEA(261)を示す。この例は、Aという識別子を持つセンサ(106)が、2010年12月24日18時0分の検針日時に、データタイプがセンサで、メッセージ種類は複合(ハイブリッド)、値1すなわち温度は22.2度、値2すなわち湿度は65%であり、それがサーバに2010年12月24日18時3分に登録されたことを示している。センサ情報はEAとしてuTupleSpace(104)に登録される。
Next, an operation when new sensor information is generated will be described.
FIG. 6 shows an EA (261) that the sensor (106) additionally registers in the uTupleSpace (104). In this example, a sensor (106) having an identifier of A is a meter reading date and time at 18:00:00 on December 24, 2010, a data type is a sensor, a message type is composite (hybrid), a value of 1, that is, a temperature is 22 .2 degrees, value 2 or humidity is 65%, indicating that it was registered with the server at 18:03 on December 24, 2010. The sensor information is registered in uTupleSpace (104) as EA.

uTupleSpace(104)は内部に保持するセンサ情報の一覧に当該EAを追記するとともに、待ち受けているEFの中で条件に合致するものがないかを調べ、合致しているものがあれば、当該EAをEFの登録元へと送信する。本例であれば、EA(261)はEF(251)に合致しているため、EA(261)が情報更新装置(102)へと送信される。   The uTupleSpace (104) adds the EA to the list of sensor information held inside, and checks whether there is a matching EF among the waiting EFs. If there is a match, the EA To the EF registration source. In this example, since EA (261) matches EF (251), EA (261) is transmitted to the information update device (102).

第7図は、情報更新装置(102)の情報更新手順を示す。EA(261)をuTupleSpace(104)から受け取ると(手順271)、まず、該EAの中からセンサを同定する情報を抽出する(手順272)。本実施の形態においては、定義ファイル(107)の対象物同定情報に「address」と記載されているので、EA(261)のキー「address」に対応する値「A」を抽出する。   FIG. 7 shows an information update procedure of the information update device (102). When the EA (261) is received from the u TupleSpace (104) (procedure 271), first, information for identifying the sensor is extracted from the EA (procedure 272). In the present embodiment, since “address” is described in the object identification information of the definition file (107), a value “A” corresponding to the key “address” of EA (261) is extracted.

次に、EA(261)のキー名を、RDBのカラム名へと変換する(手順273)。本実施の形態においては、定義ファイル(107)のカラム対応情報に「temperature=value01,humidity=value02」と記載されているので、キー「value01」はカラム名「temperature」と読み替え、また、キー「value02」はカラム名「humidity」と読み替える。なお、該カラム対応情報に記載されていないキー、EA(261)の例ではaddress、date、msg_kind、sensor_date、およびtypeについては、キー名をそのままカラム名として利用する。   Next, the key name of EA (261) is converted into the column name of RDB (procedure 273). In the present embodiment, since “temperature = value01, humidity = value02” is described in the column correspondence information of the definition file (107), the key “value01” is replaced with the column name “temperature”, and the key “ “value02” is read as the column name “humidity”. In addition, in the example of EA (261), which is not described in the column correspondence information, for the address, date, msg_kind, sensor_date, and type, the key name is used as it is as the column name.

次に、RDBに更新しようとするカラムのデータのみを抽出する(手順274)。本実施の形態においては、定義ファイル(107)の更新限定情報に「sensor_date,temperature,humidity」と記載されているので、カラム名「sensor_date」とそれに対応する値「201012241800」、カラム名「temperature」とそのカラムの変換前のキー「value01」に対応する値「22.2」、カラム名「humidity」とそのカラムの変換前のキー「value02」に対応する値「65」の3つのデータを抽出する。   Next, only column data to be updated to the RDB is extracted (procedure 274). In the present embodiment, “sensor_date, temperature, humidity” is described in the update limitation information of the definition file (107), so the column name “sensor_date”, the corresponding value “2010122241800”, and the column name “temperature”. And the value “22.2” corresponding to the key “value01” before conversion of the column, the column name “humidity”, and the value “65” corresponding to the key “value02” before conversion of the column are extracted. To do.

次に、データベースの更新操作を行うためのSQL文を生成する(手順275)。本実施の形態においては、定義ファイル(107)の更新対象表情報に「current_sensors」と記載されているので、更新先のテーブル名はcurrent_sensorsとして、上記対象物同定情報に従った行を更新対象とし、上記抽出されたデータの書き換えを行うSQL文の生成を行う。   Next, an SQL statement for performing a database update operation is generated (procedure 275). In the present embodiment, since “current_sensors” is described in the update target table information of the definition file (107), the update target table name is current_sensors, and the row according to the target object identification information is the update target. Then, an SQL statement for rewriting the extracted data is generated.

第8図は、生成されたSQL文の例(281)を示す。なお、本例では理解容易性のために日本語(疑似プログラム言語)での説明記述とした。これを本来の英字表記のSQL文に読み替えることは、当業者にとって容易である。   FIG. 8 shows an example (281) of the generated SQL sentence. In this example, the description is written in Japanese (pseudo programming language) for ease of understanding. It is easy for those skilled in the art to replace this with an original English SQL statement.

最後に、該SQL文をRDBMS(103)に発行することで、データベースの更新操作を行う(手順276)。
以上で情報更新手順を終了する。
Finally, a database update operation is performed by issuing the SQL statement to the RDBMS (103) (procedure 276).
This completes the information update procedure.

第9図は、EA(261)に従って情報更新装置(102)が情報更新した結果の、RDBMS(103)が保持するテーブルを示す。行292が、情報更新されたレコードを示している。   FIG. 9 shows a table held by the RDBMS (103) as a result of information updating by the information updating device (102) according to the EA (261). A line 292 indicates a record whose information has been updated.

以上述べた手順により更新されたRDBの表「current_sensors」(291)は、Webサーバ装置(101)で容易に読み出して、WebブラウザへのHTML作成にデータを活用することができる。例えばRuby on RailsのようなWebフレームワーク技術を用いると、RDBMSへのSQLによる問い合わせを容易に記述できるので、Webサーバ装置(101)内のプログラムは容易に作成することができる。   The RDB table “current_sensors” (291) updated by the above-described procedure can be easily read by the Web server device (101), and the data can be used for HTML creation in the Web browser. For example, when a Web framework technology such as Ruby on Rails is used, an inquiry to the RDBMS by SQL can be easily described, so that a program in the Web server device (101) can be easily created.

なお、情報更新装置(102)は上記に加え、起動時のオプション指定により、処理開始時の指定を受け付ける巻き戻し機能を持つ。処理開始時は、処理を開始する時点であり、例えば日時又は時刻である。以下、巻き戻し機能を用いた巻き戻し手順について説明する。   In addition to the above, the information updating apparatus (102) has a rewind function that accepts a designation at the start of processing by an option designation at the time of activation. The process start time is a time point when the process starts, for example, a date and time. Hereinafter, the rewinding procedure using the rewinding function will be described.

この処理開始時が指定されると、情報更新装置(102)は、起動時にuTupleSpace(104)に登録するEF(251)の「(現在日時)」の部分に、代わりに該指定された処理開始時を埋め込む。これにより、指定された処理開始時から現在までのEAをuTupleSpace(104)に問い合わせる。ここで、処理開始時は、情報更新装置(102)に予め指定されていてもよいし、情報更新装置(102)の起動時に取得してもよい。情報更新装置(102)の起動時に取得する場合は、例えば、処理開始時を引数として読み込むプログラムを実行する。   When this processing start time is designated, the information updating device (102) starts the designated processing instead of the “(current date and time)” portion of the EF (251) registered in the uTupleSpace (104) at the time of activation. Embed time. As a result, the TU from the designated process start time to the present time is inquired of the uTupleSpace (104). Here, at the start of processing, the information update device (102) may be designated in advance, or may be acquired when the information update device (102) is activated. When acquiring at the time of starting of an information update apparatus (102), the program which reads the process start time as an argument is executed, for example.

uTupleSpace(104)は、EFのdateキーとして現在以前の処理開始時が指定されたEFを受け取ると、その処理開始時以降現在までのdateを持つEAであって該EFに合致するEAを全て返却した後、新たなEAの待ち受けに入るという動作を行う。これにより、情報更新装置(102)は、該情報更新装置を起動していなかった間のEAについても後から巻き戻して受け取ることができるので、前述の情報更新機能において説明した第7図に示した手順271〜手順276までの処理手順を該EAにも適用でき、そのような期間のセンサ情報も処理対象とすることが可能となる。   When the uTupleSpace (104) receives an EF with the current process start time specified as the EF date key, it returns all EAs that have a date from the start of the process to the present and that match the EF. After that, an operation of entering a new EA standby is performed. As a result, the information updating apparatus (102) can rewind and receive EA while the information updating apparatus has not been activated, so that it is shown in FIG. 7 described in the information updating function described above. The processing procedure from the procedure 271 to the procedure 276 can also be applied to the EA, and sensor information in such a period can be processed.

以上で巻き戻し手順を終了する。
なお、巻き戻し手順を実行するタイミングは任意である。例えば、定義式読み取り手順の後に巻き戻し手順を開始し、検索式登録手順の後に巻き戻し手順を終了してもよい。
This completes the rewinding procedure.
In addition, the timing which performs a rewinding procedure is arbitrary. For example, the rewinding procedure may be started after the definition formula reading procedure, and the rewinding procedure may be terminated after the search formula registration procedure.

以上で示した本実施の形態において、各センサ個体に対してそのセンサからの最新状態を効率よく取得できる機能を、スキーマレスマッチング方式に適合する高い汎用性を持ちつつ実現するために、非特許文献2で示されるAPI「Definition 3」の3つの引数A、R、およびFが、どのように配置されているかを以下に示す。   In the present embodiment described above, in order to realize a function that can efficiently acquire the latest state from the sensor for each sensor individual while having a high versatility conforming to the schemaless matching method, it is not patented. The following describes how the three arguments A, R, and F of the API “Definition 3” shown in Document 2 are arranged.

該APIの引数のうち、Fは対象物同定関数であることが該文献に示されている。上記示したように、本実施の形態において、対象物同定は対象物同定情報すなわち定義ファイル(107)内の「IDENT:」で示されるキーの値を使ってなされる。つまり、引数Fは、相当する情報を定義ファイル(107)に記載する。   Of the arguments of the API, it is shown in the literature that F is an object identification function. As described above, in the present embodiment, the object identification is performed using the object identification information, that is, the value of the key indicated by “IDENT:” in the definition file (107). That is, the argument F describes corresponding information in the definition file (107).

該APIの引数のうち、Aは検索条件、またRは検索対象であることが非特許文献2に示されている。この2つの引数は、検索範囲を絞るという意味では類似の機能を有するが、Definition 3の式定義から、Rはセンサ情報DB内の全データに対して、最新状態算出の前処理として検索操作を行うことが読み取れる。   Non-patent document 2 shows that A is a search condition and R is a search target among arguments of the API. These two arguments have a similar function in the sense that the search range is narrowed down, but from the definition definition of Definition 3, R performs a search operation as preprocessing for the latest state calculation for all data in the sensor information DB. I can read what to do.

上記示したように、本実施の形態において、最新状態算出の前処理としての検索操作は待ち受け検索式すなわち定義ファイル(107)内の「EF:」で示される検索式の値を使ってなされる。つまり、引数Rは、相当する情報を定義ファイル(107)に記載する。   As described above, in the present embodiment, the search operation as the pre-processing for the latest state calculation is performed using the standby search formula, that is, the value of the search formula indicated by “EF:” in the definition file (107). . That is, the argument R describes corresponding information in the definition file (107).

該APIの引数のうち、Aは、最新状態算出後に、目的とするデータをふるいにかける検索操作であることがDefinition 3の式定義から読み取れる。上記示したように、本実施の形態において、最新状態算出の結果は直接、RDBのテーブルの書き換えとして全て反映される。   Among the arguments of the API, A can be read from the definition definition of Definition 3 as a search operation that sifts the target data after the latest state is calculated. As described above, in the present embodiment, the latest result calculation result is directly reflected as rewriting of the RDB table.

つまり、最新状態算出後のふるい操作に相当する処理は、そのテーブルを読み出すプログラム部分、すなわち上記例では例えばWebサーバ装置(101)内のプログラムで例えばRuby on Railsを用いてRDBMS(103)へのSQLによる問い合わせを行う部分で記述することができる。つまり、引数Aは、相当する情報をWebサーバ装置(101)内のプログラムとして記述する。   In other words, the process corresponding to the sieve operation after the latest state calculation is performed by the program part that reads the table, that is, in the above example, for example, the program in the Web server apparatus (101), for example, using Ruby on Rails to the RDBMS (103) It can be described in the part that makes an inquiry by SQL. That is, the argument A describes the corresponding information as a program in the Web server device (101).

以上示したように、本実施の形態では、非特許文献2で示されるAPI「Definition 3」に沿いつつ、その3つの引数A、R、およびFを定義ファイル(107)ならびにWebサーバ装置(101)内のプログラムとしてちりばめて配置する。これにより、情報更新装置(102)のカスタマイズ可能箇所を過剰に増やすことを避けることができ、該装置を動作させるプログラムの規模の縮小につながり、該プログラムの開発期間や維持費用等を削減することができる。   As described above, in the present embodiment, along with the API “Definition 3” shown in Non-Patent Document 2, the three arguments A, R, and F are transferred to the definition file (107) and the Web server device (101). ) Place them as a program in (). As a result, it is possible to avoid an excessive increase in customizable locations of the information updating device (102), leading to a reduction in the scale of a program for operating the device, and reducing the development period and maintenance cost of the program. Can do.

参考のために、該APIの3つの引数のうち、検索範囲を絞る引数A及びRが、単一の引数ではなく2つの引数として指定できることによる効果を、具体例を用いて以下に説明する。ここでは、第2図のセンサ情報(221)に対して、第6図のEA(261)が追加された場合を例として取り上げる。   For reference, an effect obtained by specifying the arguments A and R for narrowing down the search range as two arguments instead of a single argument among the three arguments of the API will be described below using a specific example. Here, the case where EA (261) in FIG. 6 is added to the sensor information (221) in FIG. 2 is taken as an example.

ここではアプリケーションの仮定として、湿度が40%〜60%の範囲にあるセンサの一覧を表示するものとする。この場合、address=Cなるセンサは最新の情報でvalue02=40であるから、条件に適合する。一方、address=Bなるセンサは最新の情報でvalue02=35であるから、条件に適合せず、該アプリケーションの表示対象から外れる。   Here, it is assumed that a list of sensors whose humidity is in the range of 40% to 60% is displayed as an assumption of the application. In this case, since the sensor with address = C is the latest information and value02 = 40, it satisfies the condition. On the other hand, since the sensor with address = B is the latest information and value02 = 35, it does not meet the condition and is excluded from the display target of the application.

そしてaddress=Aなるセンサは、msg_kind=humionlyの情報も含めるとすれば、第2図の状態では最新の情報でvalue02=50であるから、条件に適合する。しかし、EA(261)が追加された段階で、最新の情報でvalue02=65となるので、条件に適合せず、該アプリケーションの表示対象から外れる。   If the sensor of address = A includes information of msg_kind = humally, the latest information is value02 = 50 in the state of FIG. However, when EA (261) is added, value02 = 65 with the latest information, so the condition is not met and the application is not displayed.

上記動作を実現しようとした際、まず、検索範囲を絞る引数としてAが指定できず、Rのみ指定可能だったと仮定する。ここで、Rの検索条件に、湿度=40%〜60%を意味するキーワードを含めたとする。   When attempting to realize the above operation, first, it is assumed that A cannot be specified as an argument for narrowing the search range, and only R can be specified. Here, it is assumed that a keyword meaning humidity = 40% to 60% is included in the search condition for R.

既に説明したように、該条件がEFとしてuTupleSpace(104)に登録される。すると、EA(261)が追加される前の段階では、RDBMS(103)の表「current_sensors」には、上記例ではmsg_kind=humionlyも含める前提での議論であるため、address=Aの行のhumidityは50が最新の値として保持されているはずである。   As described above, the condition is registered as EF in uTupleSpace (104). Then, before the EA (261) is added, since the table “current_sensors” of the RDBMS (103) is an argument on the assumption that msg_kind = humationally is included in the above example, the humidity of the row where address = A is included. Should hold 50 as the latest value.

このとき、EA(261)がセンサ(106)より登録されたとする。該EAは、湿度が65%という値を持つため、該EFには合致しないので、情報更新装置(102)に送信されることがない。このため情報更新装置(102)は、RDBMS(103)の表「current_sensors」を書き換えることができず、該表のaddress=Aの行は古い情報のまま維持されることとなる。   At this time, it is assumed that the EA (261) is registered by the sensor (106). Since the EA has a value of 65% in humidity, it does not match the EF, and therefore is not transmitted to the information update device (102). For this reason, the information updating device (102) cannot rewrite the table “current_sensors” of the RDBMS (103), and the address = A row of the table is maintained as the old information.

従って、該アプリケーションが情報表示のためにRDBMS(103)の表「current_sensors」を読み出した際、古い情報のまま読み出されるため、あたかも該センサは未だ湿度が50%であるかのような誤った情報が表示されてしまうこととなる。以上述べたように、検索範囲を絞る引数としてAが指定できず、Rのみ指定可能だったと仮定すると、アプリケーションで必要となる機能を実現できない。   Therefore, when the application reads the table “current_sensors” of the RDBMS (103) for information display, the old information is read out as it is, so that the sensor is erroneous information as if the humidity is still 50%. Will be displayed. As described above, assuming that A cannot be specified as an argument for narrowing the search range and only R can be specified, a function required by the application cannot be realized.

一方、上記動作を実現しようとした際、検索範囲を絞る引数としてRが指定できず、Aのみ指定可能だったと仮定する。この場合、Rが指定できないとは、情報更新装置(102)が登録するEFに対して条件を絞る記載ができないということを意味しているので、uTupleSpace(104)に登録されたあらゆるEAが全て情報更新装置(102)へと送信されることとなる。uTupleSpace(104)には、本アプリケーションで着目するセンサの情報のみならず、多様なセンサを接続し情報を蓄積していくため、それら多様なセンサの情報を全て情報更新装置(102)が受け取ることとなり、処理負荷が膨大なものとなる。   On the other hand, when trying to realize the above operation, it is assumed that R cannot be specified as an argument for narrowing the search range, and only A can be specified. In this case, if R cannot be specified, it means that it is not possible to narrow down the conditions for the EF registered by the information updating apparatus (102), so all EAs registered in the uTupleSpace (104) It is transmitted to the information update device (102). In uTupleSpace (104), not only the information of the sensor focused on in this application but also various sensors are connected to accumulate information, so that the information update device (102) receives all the information of these various sensors. Thus, the processing load becomes enormous.

これらの場合とは異なり、本実施の形態においては、検索範囲を絞る引数としてAとRをそれぞれ別に指定可能であるため、上記述べた問題が解決でき、アプリケーションで必要となる機能を実現しつつ処理負荷を低減できるという効果が得られる。   Unlike these cases, in the present embodiment, A and R can be specified separately as arguments for narrowing the search range, so that the above-described problems can be solved and functions required by the application can be realized. The effect that the processing load can be reduced is obtained.

なお、本実施の形態では、センサ情報DBとしてuTupleSpaceを用いることとした。本発明の範囲はこれに限定されるものではなく、情報の履歴を蓄積しておき後で取得する機能を提供するその他のストレージ装置あるいはDB装置を用いて該センサ情報DBを構成してもよい。   In the present embodiment, uTupleSpace is used as the sensor information DB. The scope of the present invention is not limited to this, and the sensor information DB may be configured by using another storage device or DB device that provides a function of accumulating information history and obtaining it later. .

また、本実施の形態における情報更新装置の各機能は、センサ情報DBがuTupleSpaceである場合についての一例であり、本実施の形態の機能に限定されるものではない。すなわち、本発明の情報更新装置は、センサ情報DBの仕様に応じて各機能を実行する。例えば、巻き戻し機能のセンサ情報の問い合わせの説明において、検索式登録機能で用いたEFの現在日時を処理開始時に書き換えたが、これに限定されない。蓄積されているセンサ情報を問い合わせるAPIと、未来のセンサ情報の通知の受け取りを依頼するAPIとを別途個別に提供するセンサ情報DBであれば、巻き戻し機能において検索式登録機能とは異なるAPIを用いる。この場合、この2つのAPIを順次または同時に呼び出し、巻き戻し手順において過去のセンサ情報を問い合わせる手順を行い、当該手順と同時又は当該手順の後に、未来のセンサ情報を受け取るための検索式登録手順を行ってもよい。   Moreover, each function of the information update device in the present embodiment is an example when the sensor information DB is u TupleSpace, and is not limited to the function of the present embodiment. That is, the information updating apparatus of the present invention executes each function according to the specification of the sensor information DB. For example, in the explanation of the sensor information inquiry of the rewind function, the current date and time of the EF used in the search expression registration function is rewritten at the start of processing, but the present invention is not limited to this. If it is a sensor information DB that separately provides an API that inquires about accumulated sensor information and an API that requests reception of future sensor information notifications, an API different from the search expression registration function is used in the rewind function. Use. In this case, the two APIs are called sequentially or simultaneously, a procedure for inquiring past sensor information in the rewinding procedure is performed, and a retrieval formula registration procedure for receiving future sensor information is performed simultaneously with the procedure or after the procedure. You may go.

また、本発明のいうセンサ情報とは、センサデバイスが計測した値に限るものではなく、上記センサ情報DBが扱う情報であればよい。特に、センサの特性や状態を示すメタデータや、あるいはセンサ以外の例えばWebやインターネットを経由して取得した情報であってもよい。   The sensor information referred to in the present invention is not limited to the value measured by the sensor device, but may be information handled by the sensor information DB. In particular, it may be metadata indicating the characteristics and state of the sensor, or information acquired via, for example, the Web or the Internet other than the sensor.

また、本実施の形態では、WebブラウザからアクセスされるWebサーバ機能の実現例を示した。本発明の範囲はこれに限定されるものではなく、上記センサ情報を読み書きするアプリケーションの開発に広汎に適用できる。   In the present embodiment, an example of realizing a Web server function accessed from a Web browser is shown. The scope of the present invention is not limited to this, and can be widely applied to the development of applications that read and write the sensor information.

本発明の情報更新装置は、コンピュータとプログラムによっても実現でき、プログラムを記録媒体に記録することも、ネットワークを通して提供することも可能である。   The information updating apparatus of the present invention can be realized by a computer and a program, and can be recorded on a recording medium or provided through a network.

本発明は、情報通信産業に利用することができる。   The present invention can be used in the information communication industry.

101:Webサーバ装置
102:情報更新装置
103:RDBMS
104:uTupleSpace
105:ネットワーク
106:センサ
107:定義ファイル
101: Web server apparatus 102: Information update apparatus 103: RDBMS
104: u TupleSpace
105: Network 106: Sensor 107: Definition file

Claims (7)

情報更新装置であって、
予め定められた読み取り先から、検索式と対象物同定情報と更新対象表の情報とカラム対応情報を少なくとも含む定義式を読み取る定義式読み取り機能と、
それぞれキー名と値からなる組の複数個の並びを少なくとも含むセンサ情報が登録され、該センサ情報が登録されている検索式に合致した場合に、該合致したセンサ情報を当該検索式の登録元へ送信するセンサ情報DBに対し、前記定義式に含まれる検索式を登録する検索式登録機能と、
前記センサ情報DBから前記センサ情報を受信すると、該センサ情報の中から前記定義式に含まれる対象物同定情報に一致するキー名に対応する値を抽出し、前記定義式に含まれるカラム対応情報に基づいて前記対象物同定情報に一致するキー名を前記定義式に含まれる前記更新対象表におけるカラム名に変換し、前記更新対象表におけるカラム名で識別される対象行を、抽出した値で更新する更新操作をRDBMS(Relational DataBase Management System)に発行する情報更新機能と、
を有する
ことを特徴とする情報更新装置。
An information update device,
A definition expression reading function for reading a definition expression including at least a search expression, object identification information, information of an update target table, and column correspondence information from a predetermined reading destination ;
When sensor information including at least a plurality of combinations of key names and values is registered and the search information matches the search formula in which the sensor information is registered, the matching sensor information is registered in the search formula registration source. A search expression registration function for registering a search expression included in the definition expression for the sensor information DB to be transmitted to
When the sensor information is received from the sensor information DB, a value corresponding to the key name matching the object identification information included in the definition formula is extracted from the sensor information, and the column correspondence information included in the definition formula is extracted. the converted to the column name in the update target table, the target row identified by the column name definitive to the update target table, extracted values contained a key name that matches the object identification information to the definition formula, based on An information update function for issuing an update operation to be updated to RDBMS (Relational DataBase Management System);
An information updating apparatus characterized by comprising:
請求項に記載の情報更新装置であって、
前記定義式は、さらに更新するカラムを限定する更新限定情報を少なくとも含み、
前記情報更新機能はRDBMSに発行する前記更新操作において、前記更新限定情報に含まれるカラムのみへの更新を指示する
ことを特徴とする情報更新装置。
The information update device according to claim 1 ,
The defining equation includes at least the update limitation information to limit the column for further updates,
The information update function, information updating apparatus according to the Oite the update operation, wherein the fingers view the updating of the column only to that contained in the update-limiting information to be issued to the RDBMS.
請求項1または2に記載の情報更新装置であって
指定された処理開始時から現在までのセンサ情報を前記センサ情報DBに問い合わせ、該問い合わせの結果得られたセンサ情報について、前記更新対象表に対して前記対象物同定情報で識別される対象行の更新操作をRDBMSに発行する巻き戻し機能をさらに有する
ことを特徴とする情報更新装置。
The information update device according to claim 1 or 2 ,
Inquiry from the time of the specified processing start sensor information to date on the sensor information DB, the resulting sensor information of the query, the target row identified by the object identification information to the update target table An information update apparatus further comprising a rewind function for issuing an update operation to the RDBMS.
情報更新方法であって、
予め定められた読み取り先から、検索式と対象物同定情報と更新対象表の情報とカラム対応情報を少なくとも含む定義式を読み取る定義式読み取り手順と、
該定義式読み取り手順の後に、それぞれキー名と値からなる組の複数個の並びを少なくとも含むセンサ情報が登録され、該センサ情報が登録されている検索式に合致した場合に、該合致したセンサ情報を当該検索式の登録元へ送信するセンサ情報DBに対し、前記定義式に含まれる検索式を登録する検索式登録手順と、
該検索式登録手順の後に、前記センサ情報DBから前記センサ情報を受信すると、該センサ情報の中から前記定義式に含まれる対象物同定情報に一致するキー名に対応する値を抽出し、前記定義式に含まれるカラム対応情報に基づいて前記対象物同定情報に一致するキー名を前記定義式に含まれる前記更新対象表におけるカラム名に変換し、前記更新対象表におけるカラム名で識別される対象行を、抽出した値で更新する更新操作をRDBMS(Relational DataBase Management System)に発行する情報更新手順と、
を有することを特徴とする情報更新方法。
An information update method,
A definition formula reading procedure for reading a definition formula including at least a search formula, target object identification information, update target table information, and column correspondence information from a predetermined reading destination ,
After the definition formula reading procedure, when sensor information including at least a plurality of combinations of key names and values is registered, and the sensor information matches the registered search formula, the matched sensor A search formula registration procedure for registering a search formula included in the definition formula with respect to the sensor information DB that transmits information to the registration source of the search formula;
When the sensor information is received from the sensor information DB after the search formula registration procedure, a value corresponding to the key name matching the object identification information included in the definition formula is extracted from the sensor information, converts the key name that matches the object identification information on the basis of the column corresponding information contained in the definition formula column names in the update target table included in the definition formula are identified in column names definitive in the update target table An information update procedure for issuing an update operation for updating a target row with an extracted value to an RDBMS (Relational DataBase Management System) ;
An information updating method characterized by comprising:
請求項に記載の情報更新方法であって、
前記定義式は、さらに更新するカラムを限定する更新限定情報を少なくとも含み、
前記情報更新手順では、RDBMSに発行する前記更新操作において、前記更新限定情報に含まれるカラムのみへの更新を指示する
ことを特徴とする情報更新方法。
The information update method according to claim 4 ,
The defining equation includes at least the update limitation information to limit the column for further updates,
In the information updating procedure, the Oite the update operation, the information updating method updates the column only to that contained in the update limit information and wherein the finger Shimesuru issuing the RDBMS.
請求項4または5に記載の情報更新方法であって、
前記定義式読み取り手順と前記検索式登録手順の間、又は前記検索式登録手順と同時、又は前記検索式登録手順と前記情報更新手順の間に
指定された処理開始時から現在までのセンサ情報を前記センサ情報DBに問い合わせ、該問い合わせの結果得られたセンサ情報について、前記更新対象表に対して前記対象物同定情報で識別される対象行の更新操作をRDBMSに発行する巻き戻し手順をさらに有する
ことを特徴とする情報更新方法。
An information updating method according to claim 4 or 5 ,
Between the definition formula reading procedure and the search formula registration procedure, or simultaneously with the search formula registration procedure, or between the search formula registration procedure and the information update procedure ,
Inquiry from the time of the specified processing start sensor information to date on the sensor information DB, the resulting sensor information of the query, the target row identified by the object identification information to the update target table An information update method , further comprising a rewind procedure for issuing an update operation to the RDBMS.
請求項ないしのいずれか1項に記載の情報更新方法の前記定義式読み取り手順、前記検索式登録手順及び前記情報更新手順、或いは前記定義式読み取り手順、前記検索式登録手順、前記情報更新手順及び前記巻き戻し手順を、
コンピュータに実行させるためのプログラム。
The defining equation read instructions on how to update information according to any one of claims 4 to 6, wherein the search expression registration procedure and the information update procedure, or the defining equation reading procedure, the search expression registration procedure, the information update Procedure and rewind procedure
A program that causes a computer to execute.
JP2011019385A 2011-02-01 2011-02-01 Information updating apparatus and information updating method Expired - Fee Related JP5554731B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011019385A JP5554731B2 (en) 2011-02-01 2011-02-01 Information updating apparatus and information updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011019385A JP5554731B2 (en) 2011-02-01 2011-02-01 Information updating apparatus and information updating method

Publications (2)

Publication Number Publication Date
JP2012160030A JP2012160030A (en) 2012-08-23
JP5554731B2 true JP5554731B2 (en) 2014-07-23

Family

ID=46840507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011019385A Expired - Fee Related JP5554731B2 (en) 2011-02-01 2011-02-01 Information updating apparatus and information updating method

Country Status (1)

Country Link
JP (1) JP5554731B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4808409B2 (en) * 2005-01-14 2011-11-02 株式会社日立製作所 Sensor network system, sensor data search method and program
JP2008293229A (en) * 2007-05-24 2008-12-04 Hitachi Ltd History data processor and history data processing method

Also Published As

Publication number Publication date
JP2012160030A (en) 2012-08-23

Similar Documents

Publication Publication Date Title
US8732127B1 (en) Method and system for managing versioned structured documents in a database
KR102311032B1 (en) Database Synchronization
CN105279213A (en) Retrieval device and retrieval method for log database
WO2017166815A1 (en) Data updating method and device for a distributed database system
CN106255962B (en) System and method for improved data structure storage
CN104423982A (en) Request processing method and device
US11681696B2 (en) Finding services in a service registry system of a service-oriented architecture
US11481493B2 (en) Systems and methods for generating an inventory of software applications for optimized analysis
CN107391528B (en) Front-end component dependent information searching method and equipment
CN102193988A (en) Method and system for retrieving node data in graphic database
JP2014186719A (en) System for providing mobile url in mobile retrieval environment and method for the same
JP5554731B2 (en) Information updating apparatus and information updating method
US10417439B2 (en) Post-hoc management of datasets
US11782921B2 (en) Columnar cache query using hybrid query execution plan
US9870404B2 (en) Computer system, data management method, and recording medium storing program
US20130218928A1 (en) Information processing device
CN114510582B (en) Knowledge graph-based information processing method and device
JP5546909B2 (en) Data processing system, method and program
US11153408B1 (en) Dependency management for shared data objects in a database system
KR20110072113A (en) Platform with api information db and method for calling for an api using api information db
Jaiswal et al. Spatial query handling in semantic web application: An experience report
JP2007156844A (en) Data registration/retrieval system and data registration/retrieval method
JP5668146B2 (en) Object management apparatus and object management method
CN117891794A (en) Log generation method and device, terminal equipment and storage medium
CN109783444A (en) Multichannel file index method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130117

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131217

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140213

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140527

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140529

R150 Certificate of patent or registration of utility model

Ref document number: 5554731

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees