JP2003323427A - Xml information retrieving device and method, program for executing method, and recording medium for recording program for executing method - Google Patents

Xml information retrieving device and method, program for executing method, and recording medium for recording program for executing method

Info

Publication number
JP2003323427A
JP2003323427A JP2002130424A JP2002130424A JP2003323427A JP 2003323427 A JP2003323427 A JP 2003323427A JP 2002130424 A JP2002130424 A JP 2002130424A JP 2002130424 A JP2002130424 A JP 2002130424A JP 2003323427 A JP2003323427 A JP 2003323427A
Authority
JP
Japan
Prior art keywords
xml
search
data
xml data
index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002130424A
Other languages
Japanese (ja)
Inventor
Harushio Hidaka
東潮 日▲高▼
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 JP2002130424A priority Critical patent/JP2003323427A/en
Publication of JP2003323427A publication Critical patent/JP2003323427A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To dispense with the processing unnecessary for retrieval processing, and to increase a speed of the retrieval processing by registering the XML data form necessary for the retrieval request application in advance by a general-purpose method, when the information of the XML data is retrieved. <P>SOLUTION: An XML data registration processing part 1 incorporates the form of XML necessary for the retrieval request AP (application) in the XML data registration processing in advance with the configuration of an XSLT style sheet, an attribute value of the data is registered in a database part 2, and simultaneously the XML data of the form used in AP, is created and simultaneously registered in the database part 2 as a letter string data with the attribute. Upon retrieving, an XML data retrieval processing part 3 retrieves the database part 2 on the basis of the attribute value, and the return of data is performed by receiving the XML data of the form necessary in AP, registered in advance as a result of the retrieval, and immediately returning the same. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ブロードバンドで
のコンテンツ検索等で利用されるMPEG7等の定型的
なXML情報検索装置および方法に関し、XMLのデー
タ構造に基づく格納方法を用いた、高速応答のXML情
報検索装置および方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a standard XML information retrieval apparatus and method such as MPEG7 used for content retrieval in broadband, and a method of high speed response using a storage method based on XML data structure. The present invention relates to an XML information search device and method.

【0002】[0002]

【従来の技術】従来のXMLデータ検索システムでは、
一般的にXML構造をDOMツリー化し、それをRDB
構造、もしくはディレクトリ木などのオブジェクト構造
で格納する。XMLデータを検索する際には、XPAT
Hなどにより属性名と属性値を指定すると、該当するデ
ータを全文検索用インデックスやRDBインデックスを
使用して少ない処理量により格納位置を確定させ、その
格納位置情報をもとにデータ実体をメモリー上へ転送し
DOMツリーの形に構成させ、それに対してXSLTス
タイルシート等で定義された形に整形して出力する手法
などが見られる。
2. Description of the Related Art In a conventional XML data search system,
Generally, the XML structure is converted into a DOM tree, and it is converted into an RDB.
Stored as a structure or an object structure such as a directory tree. When searching XML data, use XPAT
When the attribute name and attribute value are specified by H etc., the storage location of the corresponding data is fixed with a small amount of processing using the full text search index or RDB index, and the data entity is stored in memory based on the storage location information. There is a method in which the data is transferred to the DOM tree and is configured in the form of a DOM tree, and the data is shaped and output in the form defined by the XSLT style sheet or the like.

【0003】このような手法でXMLデータの格納・検
索方式を構成することで、汎用的なデータ検索手段を実
現している。
By constructing the XML data storage / retrieval method by such a method, a general-purpose data retrieval means is realized.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記の
DOMツリー化により分解した構造をRDB構造やオブ
ジェクト構造などで格納し、検索の際に再度XML構造
に構成する方法では、検索を実行した際に出力形式への
整形が必要であり、一般的にこの整形処理の処理量が単
純なデータ検索処理などに比較して大きいため、特に即
応性が要求されるオンライン・アプリケーションなどで
応答性能を阻害する原因になっている(XMLの分野で
は公知である)。また、整形処理をせずにXMLデータ
を格納されたまま転送すると、本来必要でないデータを
含んでネットワーク転送してしまうため、アプリケーシ
ョンで一覧表示などの際に発生する、複数個のデータを
連続的に転送するなどの処理においてネットワーク通信
で大きなデータ転送をすることになり、処理時間を延伸
させてしまう要因になることも考えられる。
However, in the method of storing the structure decomposed by the DOM tree formation as the RDB structure or the object structure and reconstructing it into the XML structure at the time of the search, when the search is executed. Since shaping to the output format is necessary and the processing amount of this shaping processing is generally larger than that of simple data search processing, etc., it hinders response performance especially in online applications that require responsiveness. The cause (known in the XML field). Also, if XML data is transferred without being shaped, it will be transferred over the network including data that is not originally needed. Therefore, multiple data that is generated when a list is displayed by an application can be transferred continuously. It is considered that a large amount of data is transferred by network communication in the processing such as the transfer to the server, which may be a factor of extending the processing time.

【0005】本発明では、検索処理に不要な処理を、検
索要求アプリケーションが必要とするXMLデータ形態
を事前に汎用的な方法で登録処理に与え適応して無くす
ことで、XML情報検索処理を高速化することを実現す
るためのXML情報登録手段および方法を持つXML情
報検索装置および方法を提供する。
According to the present invention, the XML information retrieval processing is performed at high speed by eliminating the processing unnecessary for the retrieval processing by applying the XML data format required by the retrieval request application to the registration processing in advance by a general-purpose method. Provided is an XML information search device and method having an XML information registration means and method for realizing realization.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
め、本発明1によるXML情報検索装置は、固定的な構
造の割合が大きいスキーマを持つ複数のXMLデータの
集まりに対して、XMLデータを分析し、データベース
部に格納するXMLデータ登録処理部と、ユーザが与え
た検索要求を用いてXMLデータの集まりから条件を満
たすXMLデータを選択し、同時にユーザの与えた返却
形態指定に対応した形態のXMLデータを高速に出力す
るXMLデータ検索処理部とを持つXML情報検索シス
テムであって、XMLデータ登録処理部は、XMLデー
タ登録の際に、XMLデータの構造を与えられたスキー
マ情報を元に解析する「XML構造解析手段」と、XM
L構造解析の結果から、検索時におけるデータ格納位置
を高速に特定するために必要となる、XMLの中の固定
的なデータ属性部分を利用したインデックス情報を生成
する「インデックスデータ作成手段」と、検索要求を行
うクライアントアプリケーションで必要とする構成のX
MLデータを高速にサーバからクライアントヘ返却する
ために登録時に返却用XMLデータを構成・登録するた
め必要となる返却形態整形XMLデータを定義ファイル
に応じて生成する「返却用XML形態再構成手段」と、
上記のXMLデータ、インデックスデータ、返却形態整
形XMLデータの登録制御を行う「トランザクション制
御手段」とを持ち、データベース部は、上記のXMLデ
ータ、インデックスデータ、返却形態整形XMLデータ
を蓄積、管理するものであり、XMLデータ検索処理部
は、クライアントから送信される検索要求を解析して、
上記データベース部のどの要素を使用するのかを決定す
る「検索要求解析手段」と、上記検索要求解析手段から
得られる情報から、データベース部を検索するための検
索式を構成する「検索式生成手段」と、上記検索式生成
手段から出力される検索式の実行制御を行い、データベ
ース部を検索する「検索式実行手段」と、検索結果を受
け取り、クライアントヘのXMLデータ返却制御を行う
「XMLデータ返却手段」を持つ事を特徴とする。
In order to achieve the above object, the XML information search device according to the first embodiment of the present invention uses an XML data retrieval unit for a plurality of XML data sets having a schema having a large fixed structure ratio. The XML data registration processing unit that analyzes the data and stores it in the database unit, and selects the XML data satisfying the conditions from the collection of XML data using the search request given by the user, and at the same time responds to the return form designation given by the user. An XML information search system having an XML data search processing unit for outputting XML data in a form at high speed, wherein the XML data registration processing unit, when registering the XML data, outputs the schema information given the structure of the XML data. "XML structure analysis means" for original analysis and XM
“Index data creating means” for generating index information using a fixed data attribute portion in XML, which is necessary for quickly specifying a data storage position at the time of search, from the result of the L structure analysis, X of the configuration required by the client application that makes the search request
"Return XML form reconstructing means" for generating return form shaping XML data required to compose and register return XML data at the time of registration in order to return ML data from the server to the client at high speed When,
It has "transaction control means" for controlling registration of the XML data, index data, and return form shaping XML data, and the database unit stores and manages the XML data, index data, and return form shaping XML data. The XML data search processing unit analyzes the search request transmitted from the client,
"Search request analysis means" for determining which element of the database part to use, and "search expression generation means" for forming a search expression for searching the database part from the information obtained from the search request analysis means. "Search expression executing means" for controlling execution of the search expression output from the search expression generating means and searching the database section, and "XML data return" for receiving search results and controlling XML data return to the client. It is characterized by having "means".

【0007】あるいは、本発明2によるXML情報検索
装置は、上記のXML情報検索装置おいて、XMLデー
タ登録処理部は、「インデックスデータ作成手段」に加
えて、XMLの中の固定的なデータ属性部分以外に対す
る検索にも対応する、全文検索用インデックス情報を生
成する「全文検索用インデックスデータ作成手段」を持
ち、XMLデータ検索処理部は、「検索要求解析手段」
が、検索要求を受け付けた際に、上記「インデックスデ
ータ作成手段」と「全文検索用インデックスデータ作成
手段」のどちらの生成したインデックスを使用するのか
をスキーマ定義情報から判断し、処理を振り分けるもの
とし、「検索式実行手段」によるインデックス検索とは
別途、「全文検索用インデックスデータ作成手段」の生
成したインデックスを使用するとされた場合に、全文検
索用インデックスを使用した検索を行う「全文検索手
段」を持つ事を特徴とする。
Alternatively, in the XML information search device according to the second aspect of the present invention, in the above XML information search device, the XML data registration processing unit has a fixed data attribute in the XML in addition to the “index data creation means”. It has "full-text search index data creating means" for generating full-text search index information, which corresponds to searches for parts other than parts, and the XML data search processing section has "search request analysis means".
However, when a search request is accepted, it is determined which of the above-mentioned "index data creation means" and "index data creation means for full-text search" to be used from the schema definition information, and the processing is to be distributed. , "Full-text search means" that performs a search using the full-text search index when the index generated by "Full-text search index data creation means" is used separately from the "search expression execution means" It is characterized by having.

【0008】あるいは、本発明1によるXML情報検索
方法は、固定的な構造の割合が大きいスキーマを持つ複
数のXMLデータの集まりに対して、XMLデータを分
析し、データベース部に格納するXMLデータ登録処理
と、ユーザが与えた検索要求を用いてXMLデータの集
まりから条件を満たすXMLデータを選択し、同時にユ
ーザの与えた返却形態指定に対応した形態のXMLデー
タを高速に出力するXMLデータ検索処理とを有するX
ML情報検索システムであって、XMLデータ登録処理
では、XMLデータ登録の際に、XMLデータの構造を
与えられたスキーマ情報を元に解析する「XML構造解
析手順」と、XML構造解析の結果から、検索時におけ
るデータ格納位置を高速に特定するために必要となる、
XMLの中の固定的なデータ属性部分を利用したインデ
ックス情報を生成する「インデックスデータ作成手順」
と、検索要求を行うクライアントアプリケーションで必
要とする構成のXMLデータを高速にサーバからクライ
アントヘ返却するために登録時に返却用XMLデータを
構成・登録するため必要となるデータを定義ファイルに
応じて生成する「返却用XML形態再構成手順」と、上
記のXMLデータ、インデックスデータ、返却形態整形
XMLデータのデータベース部への登録制御を行う「ト
ランザクション制御手順」とを有し、XMLデータ検索
処理では、クライアントから送信される検索要求を解析
して、上記データベース部のどの要素を使用するのかを
決定する「検索要求解析手順」と、上記検索要求解析手
順で得られた情報から、データベース部を検索するため
の検索式を構成する「検索式生成手順」と、上記検索式
生成手順で出力された検索式の実行制御を行い、データ
ベース部を検索する「検索式実行手順」と、検索結果を
受け取り、クライアントヘのXMLデータ返却制御を行
う「XMLデータ返却手順」を有する事を特徴とする。
Alternatively, the XML information search method according to the present invention 1 analyzes XML data for a collection of a plurality of XML data having a schema having a large fixed structure ratio, and registers the XML data to be stored in a database unit. Processing and XML data search processing for selecting XML data satisfying a condition from a collection of XML data using a search request given by the user, and at the same time outputting XML data in a form corresponding to the return form designation given by the user at high speed. X with and
An ML information retrieval system, wherein in XML data registration processing, an XML structure analysis procedure for analyzing the structure of XML data based on given schema information at the time of XML data registration and the result of XML structure analysis. , It is necessary to specify the data storage position at the time of retrieval at high speed.
"Index data creation procedure" for creating index information using a fixed data attribute part in XML
And, in order to quickly return the XML data of the configuration required by the client application that makes the search request from the server to the client at the time of registration, the data required for configuring and registering the return XML data is generated according to the definition file. And a “transaction control procedure” for controlling registration of the above XML data, index data, and return form shaping XML data in the database unit. The search request sent from the client is analyzed, and the database section is searched from the "search request analysis procedure" for determining which element of the database section to use and the information obtained in the search request analysis procedure. The search expression generation procedure that configures the search expression for And perform a search expression execution control, searches the database unit as "search expression execution procedure", receives a search result, performs the XML data return control of the client f, characterized in that it has a "XML data return procedure".

【0009】あるいは、本発明2によるXML情報検索
方法は、上記のXML情報検索方法おいて、XMLデー
タ登録処理では、「インデックスデータ作成手順」に加
えて、XMLの中の固定的なデータ属性部分以外に対す
る検索にも対応する、全文検索用インデックス情報を生
成する「全文検索用インデックスデータ作成手順」を有
し、XMLデータ検索処理では、「検索要求解析手順」
で、検索要求を受け付けた際に、上記「インデックスデ
ータ作成手順」と「全文検索用インデックスデータ作成
手順」のどちらの生成したインデックスを使用するのか
をスキーマ定義情報から判断し、処理を振り分けし、
「検索式実行手順」によるインデックス検索とは別途、
「全文検索用インデックスデータ作成手順」の生成した
インデックスを使用するとされた場合に、全文検索用イ
ンデックスを使用した検索を行う「全文検索手順」を有
する事を特徴とする。
Alternatively, in the XML information search method according to the present invention 2, in the XML information search method described above, in the XML data registration process, in addition to the "index data creation procedure", a fixed data attribute part in XML is included. It has a "full-text search index data creation procedure" that generates full-text search index information that also supports searches for other than "search request analysis procedure" in XML data search processing.
Then, when a search request is accepted, it is determined from the schema definition information which of the above-mentioned "index data creation procedure" or "full-text search index data creation procedure" to be used, and the processing is sorted,
Separately from the index search by "Search formula execution procedure",
It is characterized by having a "full-text search procedure" for performing a search using the full-text search index when the index generated by the "full-text search index data creation procedure" is used.

【0010】あるいは、上記のXML情報検索方法にお
ける手順を、コンピュータに実行させるためのXML情
報検索方法の実行プログラムとしたことを特徴とする。
Alternatively, the procedure in the above XML information retrieval method is a program for executing the XML information retrieval method for causing a computer to execute.

【0011】あるいは、上記のXML情報検索方法に記
載の方法における手順を、コンピュータに実行させるた
めのXML情報検索方法の実行プログラムを、該コンピ
ュータが読み取りできる記録媒体に記録したことを特徴
とする。
Alternatively, an execution program of the XML information search method for causing a computer to execute the procedure in the method described in the XML information search method is recorded in a recording medium readable by the computer.

【0012】本発明では、検索要求AP(アプリケーシ
ョン)で必要とするXMLの形態を、事前に例えばXS
LTスタイルシートの形等でXMLデータ登録処理に組
み込み、データの属性値をRDB構造に登録するのと同
時に、APで使用する形態のXMLデータを生成して文
字列データとしてRDB上に属性とともに同時登録して
おき、検索の際には属性値をベースに検索を行い、デー
タ返却は事前に登録されているAPで必要とする形態の
XMLデータを即時に返却する。これにより、従来、検
索時に検索対象のデータをアプリケーション側で必要と
する形態に変換する処理が不要となり、検索速度として
は単純なRDBを使用した場合と同等の性能を得る事が
可能となる。
In the present invention, the XML format required by the search request AP (application) is set in advance, for example, XS.
Incorporate it in the XML data registration process in the form of LT stylesheet, etc., and register the attribute value of the data in the RDB structure, and at the same time generate the XML data in the form used in AP and simultaneously generate the character string data with the attribute in the RDB. It is registered, and when the search is performed, the search is performed based on the attribute value, and for the data return, the XML data in the form required by the AP registered in advance is immediately returned. As a result, conventionally, the process of converting the data to be searched into the form required by the application at the time of searching is unnecessary, and it is possible to obtain the same performance as the case of using a simple RDB as the search speed.

【0013】[0013]

【発明の実施の形態】以下、本発明の実施の形態につい
て図を用いて詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.

【0014】本発明1の実施形態例1を示すシステム構
成図を図1に、本発明2の実施形態例2を示すシステム
構成図を図2に示す。いずれのシステム構成も、登録系
は外部よりXMLデータを受け取り(図中の左矢印よ
り)、必要なデータ分解、再構成を行ったものをデータ
ベース部2に登録する。また、検索系は外部からの検索
要求を受け取り、検索条件と返却形態要求に応じて対象
XMLデータを特定し、指定された形態のXMLデータ
を返却する。
FIG. 1 is a system configuration diagram showing Embodiment 1 of the present invention 1, and FIG. 2 is a system configuration diagram showing Embodiment 2 of the present invention 2. In any system configuration, the registration system receives XML data from the outside (from the left arrow in the figure) and performs necessary data decomposition and reconfiguration to register the data in the database unit 2. Further, the search system receives a search request from the outside, specifies the target XML data according to the search condition and the return form request, and returns the XML data of the specified form.

【0015】MPEG7を使用した場合の実施の形態を
以下に示す。
An embodiment in which MPEG7 is used is shown below.

【0016】図1は実施形態例1におけるXMLデータ
の登録・検索システムの構成を示し、図2は実施形態例
2におけるXMLデータの登録・検索システムの構成を
示す。いずれの登録・検索システムも、RDBおよびX
MLデータ登録処理部1、XMLデータ検索処理部3を
有するサーバシステムとなる。XMLデータ登録処理部
1は複数のクライアントシステムがコンピュータネット
ワークを介して本サーバシステムに接続し、それぞれが
トランザクション制御下でXMLデータ単位でのデータ
登録を行う。また、XMLデータ検索処理部3は複数の
クライアントシステムがコンピュータネットワークを介
して本サーバシステムに接続し、それぞれのクライアン
トから出される検索条件に応じてクライアントのアプリ
ケーションで必要とするXMLデータを高速に送信する
ことができる。
FIG. 1 shows the configuration of the XML data registration / retrieval system in the first embodiment, and FIG. 2 shows the configuration of the XML data registration / retrieval system in the second embodiment. Both registration and search systems are RDB and X
The server system has the ML data registration processing unit 1 and the XML data search processing unit 3. The XML data registration processing unit 1 connects a plurality of client systems to this server system via a computer network, and each performs data registration in XML data units under transaction control. In addition, the XML data search processing unit 3 connects a plurality of client systems to the server system via a computer network, and transmits the XML data required by the client application at high speed according to the search conditions issued from each client. can do.

【0017】実施形態例1のサーバシステムは、XML
データ登録処理部1、データベース部2、XMLデータ
検索処理部3から構成される。ここで、XMLデータ登
録処理部1は、「XML構造解析部」11、「インデッ
クスデータ作成部」12、「返却用XML形態再構成
部」13、「トランザクション制御部」14から構成さ
れ、データベース部2は、「属性インデックス部」2
1、「データ実体部」22から構成され、XMLデータ
検索処理部3は、「検索要求解析部」31、「検索式生
成部」32、「検索式実行部」33、「XMLデータ返
却部」34から構成される。
The server system of the first embodiment is XML
It is composed of a data registration processing unit 1, a database unit 2, and an XML data search processing unit 3. Here, the XML data registration processing unit 1 includes an “XML structure analysis unit” 11, an “index data creation unit” 12, a “return XML form reconfiguration unit” 13, and a “transaction control unit” 14, and a database unit. 2 is the "attribute index section" 2
1. The XML data search processing unit 3 includes a "data entity unit" 22, a "search request analysis unit" 31, a "search expression generation unit" 32, a "search expression execution unit" 33, and an "XML data return unit". It is composed of 34.

【0018】XMLデータ登録処理部1は、固定的な構
造の割合が大きいスキーマを持つ複数のXMLデータの
集まりに対して、XMLデータを分析し、データベース
部2に格納する。XMLデータ検索処理部2は、ユーザ
が与えた検索要求を用いてXMLデータの集まりから条
件を満たすXMLデータを選択し、同時にユーザの与え
た返却形態指定に対応した形態のXMLデータを高速に
出力する。
The XML data registration processing unit 1 analyzes XML data for a set of a plurality of XML data having a schema having a large fixed structure ratio and stores the XML data in the database unit 2. The XML data search processing unit 2 selects XML data satisfying a condition from a collection of XML data using a search request given by the user, and at the same time outputs the XML data in a form corresponding to the return form designation given by the user at high speed. To do.

【0019】XMLデータ登録処理部1において、「X
ML構造解析部」11は、XMLデータ登録の際に、X
MLデータの構造を与えられたスキーマ情報を元に解析
する。「インデックスデータ作成部」12は、XML構
造解析の結果から、検索時におけるデータ格納位置を高
速に特定するために必要となる、XMLの中の固定的な
データ属性部分を利用したインデックス情報を生成す
る。「返却用XML形態再構成部」13は、検索要求を
行うクライアントアプリケーションで必要とする構成の
XMLデータを高速にサーバからクライアントヘ返却す
るために登録時に返却用XMLデータを構成・登録する
ため必要となる返却形態整形XMLデータを定義ファイ
ルに応じて柔軟に生成する。「トランザクション制御
部」14は、上記のXMLデータ、インデックスデー
タ、返却形態整形XMLデータの登録制御を行う。
In the XML data registration processing unit 1, "X
The "ML structure analysis unit" 11 performs the X process when the XML data is registered.
The structure of the ML data is analyzed based on the given schema information. The “index data creation unit” 12 generates index information, which uses a fixed data attribute portion in XML, which is necessary to specify a data storage position at the time of search, from the result of the XML structure analysis. To do. The "return XML form reconfiguration unit" 13 is required to configure and register the return XML data at the time of registration in order to quickly return the XML data of the configuration required by the client application that makes the search request from the server to the client. Flexibly generate return form shaping XML data according to the definition file. The “transaction control unit” 14 controls registration of the above XML data, index data, and return form shaping XML data.

【0020】データベース部2は、上記のXMLデー
タ、インデックスデータ、返却形態整形XMLデータを
蓄積、管理する。
The database unit 2 stores and manages the above XML data, index data, and return form shaping XML data.

【0021】XMLデータ検索処理部3において、「検
索要求解析部」31は、クライアントから送信される検
索要求を解析して、上記データベース部2のどの要素を
使用するのかを決定する。「検索式生成部」32は、上
記検索要求解析部31から得られる情報から、データベ
ース部2を検索するための検索式を構成する。「検索式
実行部」33は、上記検索式生成部32から出力される
検索式の実行制御を行い、データベース部2を検索す
る。「データ返却部」34は、検索結果を受け取り、ク
ライアントヘのXMLデータ返却制御を行う。
In the XML data search processing unit 3, the "search request analysis unit" 31 analyzes the search request transmitted from the client and determines which element of the database unit 2 to use. The “search formula generation unit” 32 constitutes a search formula for searching the database unit 2 from the information obtained from the search request analysis unit 31. The “search formula execution unit” 33 controls the execution of the search formula output from the search formula generation unit 32 and searches the database unit 2. The “data return unit” 34 receives the search result and controls the XML data return to the client.

【0022】実施形態例2のサーバシステムも、XML
データ登録処理部1、データベース部2、XMLデータ
検索処理部3から構成される。ここで、XMLデータ登
録処理部1は、「XML構造解析部」11、「インデッ
クスデータ作成部」12、「返却用XML形態再構成
部」13、「トランザクション制御部」14、「全文検
索用インデックス生成部」15から構成され、データベ
ース部2は、「属性インデックス部」21、「データ実
体部」22、「全文検索用インデックス部」23から構
成され、XMLデータ検索処理部3は、「検索要求解析
部」31、「検索式生成部」32、「検索式実行部」3
3、「XMLデータ返却部」34、「全文検索実行部」
35から構成される。
The server system of the second embodiment is also XML.
It is composed of a data registration processing unit 1, a database unit 2, and an XML data search processing unit 3. Here, the XML data registration processing unit 1 includes an “XML structure analysis unit” 11, an “index data creation unit” 12, a “return XML form reconfiguration unit” 13, a “transaction control unit” 14, and a “full text search index”. The database unit 2 includes an “attribute index unit” 21, a “data entity unit” 22, and a “full-text search index unit” 23. The XML data search processing unit 3 includes a “search request”. "Analysis unit" 31, "Search formula generation unit" 32, "Search formula execution unit" 3
3, "XML data return unit" 34, "Full text search execution unit"
It consists of 35.

【0023】実施形態例2のサーバシステムにおいて、
実施形態例1との差異を述べると、XMLデータ登録処
理部1は、「インデックスデータ作成部」12に加え
て、XMLの中の固定的なデータ属性部分以外に対する
検索にも柔軟に対応する、全文検索用インデックス情報
を生成する「全文検索用インデックスデータ作成部」1
5を持ち、XMLデータ検索処理部3は、「検索要求解
析部」31が、検索要求を受け付けた際に、上記「イン
デックスデータ作成部」12と「全文検索用インデック
スデータ作成部」15のどちらの生成したインデックス
を使用するのかをスキーマ定義情報から判断し、処理を
振り分けるものとし、「検索式実行部」33によるイン
デックス検索とは別途、「全文検索用インデックスデー
タ作成部」15の生成したインデックスを使用するとさ
れた場合に、全文検索用インデックスを使用した検索を
行う「全文検索実行部」35を持つ。
In the server system of the second embodiment,
Explaining the difference from the first embodiment, the XML data registration processing unit 1 flexibly supports not only the “index data creation unit” 12 but also a search other than the fixed data attribute part in XML. "Full-text search index data creation unit" that generates full-text search index information 1
5, the XML data search processing unit 3 has either the “index data creation unit” 12 or the “full-text search index data creation unit” 15 when the “search request analysis unit” 31 receives a search request. Whether to use the generated index of the schema is determined from the schema definition information, and the processing is distributed. In addition to the index search by the "search expression execution unit" 33, the index generated by the "full-text search index data creation unit" 15 Has a "full-text search execution unit" 35 for performing a search using the full-text search index.

【0024】また、クライアントシステムは、通信可能
なコンピュータ上からAPIを経由してアクセスされ
る。
The client system is accessed from a communicable computer via the API.

【0025】上記の構成によるシステムの処理は、XM
Lデータの登録処理と検索処理に大きく分けられる。
The processing of the system having the above-mentioned configuration is performed by the XM.
It is roughly divided into L data registration processing and search processing.

【0026】<実施形態例1に対応するXMLデータの
登録処理> 1.XMLデータを、所定のAPIを経由して、「XM
L構造解析部」11へ送る。 2.「XML構造解析部」11はXSLTスタイルシー
トに基づいてXMLデータの構造を解析し、各属性と属
性値とに分解する。また、この時点でXMLデータの構
造が不正で無いかの検証も行い、不正である場合はエラ
ーを返却する。 3.「トランザクション制御部」14は、この時点で
「データベース部」2に対する更新トランザクションの
開始を宣言する。 4.「データベース部」2に、入力されたXMLデータ
を1レコードとして「データ実体部」22のXMLデー
タ格納テーブルに登録する。 5.「インデックスデータ作成部」12は「XML構造
解析部」11よりXMLの各属性と属性値とを受け取
り、予め与えられているルールに基づき検索時に使用さ
れるインデックスデータを作成し、「属性インデックス
部」21の属性値格納テーブルに登録する。 6.「返却用XML形態再構成部」13は「XML構造
解析部」11よりXMLの各属性と属性値とを受け取
り、予め与えられているルールに基づき、検索時に返却
形態要求に応じて必要となる複数のXML形態に整形し
直し、それぞれを「データ実体部」22のAP返却用形
態XMLデータ格納テーブル群に登録する。 7.「トランザクション制御部」14は、この時点で
「データベース部」2への更新処理をコミットする。 8.未登録の入力XMLデータが存在する場合は、上記
1に戻り、再度登録処理を行う。未登録のデータが存在
しない場合は、登録処理を終了する。
<Registration Processing of XML Data Corresponding to First Embodiment> 1. The XML data is sent to the “XML
L structure analysis unit ”11. 2. The “XML structure analysis unit” 11 analyzes the structure of XML data based on the XSLT style sheet and decomposes it into each attribute and attribute value. At this point, it also verifies whether the structure of the XML data is invalid, and if it is invalid, returns an error. 3. The “transaction control unit” 14 declares the start of an update transaction for the “database unit” 2 at this point. 4. The input XML data is registered in the “database part” 2 as one record in the XML data storage table of the “data substance part” 22. 5. The “index data creation unit” 12 receives each XML attribute and attribute value from the “XML structure analysis unit” 11 and creates index data to be used at the time of search based on a rule given in advance. 21 in the attribute value storage table. 6. The "returning XML form reconstructing unit" 13 receives each XML attribute and attribute value from the "XML structure analyzing unit" 11 and is required in response to a return form request at the time of retrieval based on a rule given in advance. The data is reformed into a plurality of XML forms, and each is registered in the AP return form XML data storage table group of the “data substance part” 22. 7. The “transaction control unit” 14 commits the update processing to the “database unit” 2 at this point. 8. If there is unregistered input XML data, the process returns to 1 above and the registration process is performed again. If there is no unregistered data, the registration process ends.

【0027】以上のXMLデータ登録処理の流れをフロ
ーチャートにして図3に記載する。
A flow chart of the above XML data registration processing is shown in FIG.

【0028】<実施形態例1に対応するXMLデータの
検索処理> 1.XMLデータ検索用のクライアントから、データの
属性名と属性値の対応による検索条件を指定し、「検索
要求解析部」31へ送信する。 2.「検索要求解析部」31では、属性名から「属性イ
ンデックス部」21の属性値格納テーブルのどのテーブ
ル・カラムに対する検索要求かを判断し、それを「検索
式生成部」32へ送出する。 3.「検索式生成部」32では、入力された属性名に対
応するテーブル名・カラム名と、属性値をもとに、「デ
ータベース部」2に対する検索式(SQL文)を生成
し、「検索式実行部」33へ送出する。 4.「検索式実行部」33では、入力された検索式を
「データベース部」2に対して実行する。「データベー
ス部」2では、「属性インデックス部」21の属性値格
納テーブルより返却対象となるXMLデータのID群が
確定され、入力より指定された返却形式に対応する「デ
ータ実体部」22のテーブルより、このID群に該当す
るレコードが検索される。 5.「XMLデータ返却部」34では、「検索式実行
部」33で実行された「データベース部」2からの検索
結果を受け取り、クライアントにXMLデータを返却す
る。
<XML Data Search Processing Corresponding to Embodiment 1> A client for XML data search specifies a search condition based on the correspondence between the attribute name and the attribute value of the data and sends it to the “search request analysis unit” 31. 2. The “search request analysis unit” 31 determines from the attribute name which table / column of the attribute value storage table of the “attribute index unit” 21 the search request is sent to the “search expression generation unit” 32. 3. The "search formula generation unit" 32 generates a search formula (SQL sentence) for the "database unit" 2 based on the table name / column name corresponding to the input attribute name and the attribute value, and To the "execution unit" 33. 4. The “search formula execution unit” 33 executes the input search formula to the “database unit” 2. In the “database part” 2, the ID group of the XML data to be returned is determined from the attribute value storage table of the “attribute index part” 21 and the table of the “data substance part” 22 corresponding to the return format designated by the input Thus, the record corresponding to this ID group is searched. 5. The “XML data return unit” 34 receives the search result from the “database unit” 2 executed by the “search expression execution unit” 33, and returns the XML data to the client.

【0029】以上のXMLデータ検索処理の流れをフロ
ーチャートにして図4に記載する。
A flow chart of the above XML data search processing is shown in FIG.

【0030】<実施形態例2に対応するXMLデータの
登録処理> 1.XMLデータを、所定のAPIを経由して、「XM
L構造解析部」11へ送る。 2.「XML構造解析部」11はXSLTスタイルシー
トに基づいてXMLデータの構造を解析し、各属性と属
性値とに分解する。また、この時点でXMLデータの構
造が不正で無いかの検証も行い、不正である場合はエラ
ーを返却する。 3.「トランザクション制御部」14は、この時点で
「データベース部」2に対する更新トランザクションの
開始を宣言する。 4.「全文検索用インデックス生成部」15はXMLデ
ータから全文検索用のインデックスを生成し、「全文検
索用インデックス部」23に格納する。 5.「データベース部」2に、入力されたXMLデータ
を1レコードとして「データ実体部」22のXMLデー
タ格納テーブルに登録する。 6.「インデックスデータ作成部」12は「XML構造
解析部」11よりXMLの各属性と属性値とを受け取
り、予め与えられているルールに基づき検索時に使用さ
れるインデックスデータを作成し、「属性インデックス
部」21の属性値格納テーブルに登録する。 7.「返却用XML形態再構成部」13は「XML構造
解析部」11よりXMLの各属性と属性値とを受け取
り、予め与えられているルールに基づき、検索時に返却
形態要求に応じて必要となる複数のXML形態に整形し
直し、それぞれを「データ実体部」22のAP返却用形
態XMLデータ格納テーブル群に登録する。 8.「トランザクション制御部」14は、この時点で
「データベース部」2への更新処理をコミットする。 9.未登録の入力XMLデータが存在する場合は、上記
1に戻り、再度登録処理を行う。未登録のデータが存在
しない場合は、登録処理を終了する。
<Registration Processing of XML Data Corresponding to Second Embodiment> 1. The XML data is sent to the “XML
L structure analysis unit ”11. 2. The “XML structure analysis unit” 11 analyzes the structure of XML data based on the XSLT style sheet and decomposes it into each attribute and attribute value. At this point, it also verifies whether the structure of the XML data is invalid, and if it is invalid, returns an error. 3. The “transaction control unit” 14 declares the start of an update transaction for the “database unit” 2 at this point. 4. The "full-text search index generation unit" 15 generates an index for full-text search from the XML data and stores it in the "full-text search index unit" 23. 5. The input XML data is registered in the “database part” 2 as one record in the XML data storage table of the “data substance part” 22. 6. The “index data creation unit” 12 receives each XML attribute and attribute value from the “XML structure analysis unit” 11 and creates index data to be used at the time of search based on a rule given in advance. 21 in the attribute value storage table. 7. The "returning XML form reconstructing unit" 13 receives each XML attribute and attribute value from the "XML structure analyzing unit" 11 and is required in response to a return form request at the time of retrieval based on a rule given in advance. The data is reformed into a plurality of XML forms, and each is registered in the AP return form XML data storage table group of the “data substance part” 22. 8. The “transaction control unit” 14 commits the update processing to the “database unit” 2 at this point. 9. If there is unregistered input XML data, the process returns to 1 above and the registration process is performed again. If there is no unregistered data, the registration process ends.

【0031】以上のXMLデータ登録処理の流れをフロ
ーチャートにして図5に記載する。
The flow of the above XML data registration processing is shown in FIG. 5 as a flowchart.

【0032】<実施形態例2に対応するXMLデータの
検索処理> 1.XMLデータ検索用のクライアントから、データの
属性名と属性値の対応による検索条件を指定し、「検索
要求解析部」31へ送信する。 2.「検索要求解析部」31では、指定された属性名か
ら、それを対象とするのが属性名インデックスである
か、全文検索用インデックスであるかを判断し、属性名
インデックスの場合は属性名から「属性インデックス
部」21の属性値格納テーブルのどのテーブル・カラム
に対する検索要求かを判断し、それを「検索式生成部」
へ送出する。また、全文検索用インデックスである場合
は、条件式を「全文検索実行部」35へ送出する。 3.「検索式生成部」32では、入力された属性名に対
応するテーブル名・カラム名と、属性値をもとに、「デ
ータベース部」2に対する検索式(SQL文)を生成
し、「検索式実行部」33へ送出する。 4.「検索式実行部」33では、入力された検索式を
「データベース」2に対して実行する。「データベース
部」2では、「属性インデックス部」21の属性値格納
テーブルより返却対象となるXMLデータのID群が確
定され、入力より指定された返却形式に対応する「デー
タ実体部」22のテーブルより、検索結果としてこのI
D群に該当するレコードが検索される。 5.「全文検索実行部」35では、入力された条件を元
に「全文検索用インデックス部」23を経由して、「デ
ータ実体部」22を検索し、検索結果として検索対象の
XMLデータ群を確定させる。 6.「XMLデータ返却部」34では、「検索式実行
部」33で実行された「データベース部」2からの検索
結果を受け取り、クライアントにXMLデータを返却す
る。
<XML Data Retrieval Processing Corresponding to Second Embodiment> 1. A client for XML data search specifies a search condition based on the correspondence between the attribute name and the attribute value of the data and sends it to the “search request analysis unit” 31. 2. The "search request analysis unit" 31 determines from the specified attribute name whether the target is the attribute name index or the full-text search index, and in the case of the attribute name index, the attribute name is used. It is determined which table / column of the attribute value storage table of the “attribute index section” 21 is the search request, and it is determined by the “search expression generation section”
Send to. If the index is a full-text search index, the conditional expression is sent to the “full-text search execution unit” 35. 3. The "search formula generation unit" 32 generates a search formula (SQL sentence) for the "database unit" 2 based on the table name / column name corresponding to the input attribute name and the attribute value, and To the "execution unit" 33. 4. The “search expression execution unit” 33 executes the input search expression on the “database” 2. In the “database part” 2, the ID group of the XML data to be returned is determined from the attribute value storage table of the “attribute index part” 21 and the table of the “data substance part” 22 corresponding to the return format designated by the input As a result, I
Records corresponding to the D group are searched. 5. The "full-text search execution unit" 35 searches the "data entity part" 22 via the "full-text search index part" 23 based on the input conditions, and determines the XML data group to be searched as a search result. Let 6. The “XML data return unit” 34 receives the search result from the “database unit” 2 executed by the “search expression execution unit” 33, and returns the XML data to the client.

【0033】以上のXMLデータ検索処理の流れをフロ
ーチャートにして図6に記載する。
A flow chart of the above XML data retrieval processing is shown in FIG.

【0034】<本サーバシステムを使用した場合のアプ
リケーションイメージ>XMLデータとして、映像コン
テンツ記述XMLとして標準仕様であるMPEG7デー
タに対する適用例を示す。
<Application image when this server system is used> As XML data, an application example of MPEG7 data which is a standard specification as video content description XML will be shown.

【0035】MPEG7で規定されているスキーマ仕様
は木構造で表現される。このスキーマをXSLTで記述
したものを使用し、入力XMLデータの構造解析を行
う。この段階で、必須のデータ項目(例えば映像のタイ
トルなど)が存在しない場合には、異常なデータとして
認識され、エラーとなる。それ以外にも、必須データ値
が入っていない(タイトル項目はあっても、属性値が無
い)、繰り返し数などで許可されていないところに繰り
返しが存在するなどの異常なスキーマを検出した場合
も、同様にエラーとして扱われる。
The schema specification defined by MPEG7 is represented by a tree structure. Using this schema described in XSLT, the structural analysis of the input XML data is performed. At this stage, if a required data item (for example, a video title) does not exist, it is recognized as abnormal data and an error occurs. In addition, if an abnormal schema is detected, such as a mandatory data value is not entered (there is no attribute value even if there is a title item), or a repeat exists in a place where it is not permitted by the number of repeats, etc. , Is treated as an error as well.

【0036】なお、MPEG7データは、スキーマが詳
細に規定されている箇所以外に、拡張可能なスキーマ部
分を保持することができる。本発明においては、このよ
うに事前に詳細が規定できない箇所については属性分解
は行わず、図1、図2の構成図におけるXMLデータ格
納テーブルにのみデータは格納される。
The MPEG7 data can hold an extensible schema part in addition to the part where the schema is specified in detail. In the present invention, attribute decomposition is not performed for such a portion where details cannot be specified in advance, and data is stored only in the XML data storage table in the configuration diagrams of FIGS. 1 and 2.

【0037】また、MPEG7データを使用した映像検
索アプリケーションから使用することを考えた場合に
は、一般的にすべての属性を使用するのは1つのデータ
に絞り込みを終了した後であり、アプリケーション例と
しては、次のような例が考えられる。
When considering use from a video search application using MPEG7 data, generally, all attributes are used after narrowing down to one data, and as an application example, The following examples can be considered.

【0038】<実施形態例1の範囲> (1)本発明のサーバシステムを用いた、クライアント
システムからの映像コンテンツ検索システムを考える。
この例では、1つの本発明サーバシステムと、別途映像
コンテンツを配信するサーバシステム、並びにクライア
ント端末から構成される。クライアントシステムは、ま
ず本発明のサーバシステムにアクセスすることで、多数
の映像コンテンツから視聴・購入したいコンテンツをさ
まざまな観点で検索し、そこで決定したコンテンツの実
体データを映像コンテンツ配信サーバにアクセスするこ
とで視聴・購入を行うという流れになる。
<Scope of Embodiment 1> (1) Consider a video content search system from a client system using the server system of the present invention.
This example includes one server system of the present invention, a server system that separately distributes video contents, and a client terminal. The client system first accesses the server system of the present invention to search from a large number of video contents for contents to be viewed / purchased from various viewpoints, and accesses the video content distribution server for the substance data of the contents determined there. The flow is to watch and purchase at.

【0039】(2)ジャンルを検索するため、ジャンル
の一覧だけを検索する。その際には、事前に登録してお
いたジャンルだけからなるXMLデータ格納テーブルを
XSLTスタイルシートで定義してデータを用意し、こ
れに対する検索によって実現する。この場合、1つのデ
ータの量が少ないため、1000件程度のデータ返却を
要求しても、データ総量としてはさほど大きくならない
ため、データ転送遅延などに対する影響は小さくなる。
(2) In order to search the genre, only the list of genres is searched. At that time, an XML data storage table consisting of only genres registered in advance is defined by an XSLT style sheet, data is prepared, and a search is performed for this. In this case, since the amount of one data is small, even if it is requested to return about 1000 data, the total amount of data does not increase so much, so that the influence on the data transfer delay is small.

【0040】(3)次にジャンルを一つ指定し、タイト
ル名と監督名の一覧を出力させる。前述のジャンル一覧
の検索と同様に、事前にXSLTスタイルシートを定義
してデータを用意する。ジャンル一覧の場合と比べ、1
件あたりのデータ量としては今度は大きくなるが、逆
に、出力すべきデータ件数としては少なくできるため、
データ総量としては大きくならず、応答性能面での性能
劣化を抑えることができる。
(3) Next, one genre is designated and a list of title names and director names is output. Similar to the search of the genre list described above, an XSLT style sheet is defined in advance and data is prepared. 1 compared to the genre list
The amount of data per item will increase this time, but conversely, the number of data items to be output can be reduced, so
The total amount of data does not increase, and performance deterioration in response performance can be suppressed.

【0041】(4)最後にコンテンツが一つ決まれば、
それに対するフルセットのXMLデータを、図1の構成
図のXMLデータ格納テーブルより検索する。この場合
は、データ1件のサイズとしてはかなり大きいが、アプ
リケーション側で詳細に表示することを考えた場合には
必要とする件数は1件〜数件程度しか必要無く、そのた
めデータの転送速度上は問題無い。
(4) Finally, if one content is decided,
A full set of XML data corresponding thereto is searched from the XML data storage table in the configuration diagram of FIG. In this case, the size of one piece of data is quite large, but when considering detailed display on the application side, the number of cases required is only one to a few, so the data transfer rate is high. Is no problem.

【0042】また、他にも使い方としてはキーワード検
索として、下記のような使用方法も可能である。
In addition to the above, as a keyword search, the following usage methods are also possible.

【0043】<実施形態例2の範囲> (5)規定されてないスキーマ上のキーワードについて
は、別途全文検索のロジックを併用し、登録の際に全文
検索用インデックスを用意し、「検索要求解析部」31
で入力条件に応じて固定スキーマ対象のインデックスを
使用するか、拡張部に対応する全文検索用インデックス
を使用するかの切り分けをすることで、前述のMPEG
7拡張スキーマ部分に対しても検索を行うことができ
る。
<Scope of Embodiment 2> (5) For a keyword on a schema that is not defined, a full-text search logic is separately used, and a full-text search index is prepared at the time of registration. Section "31
According to the input condition, whether to use the fixed schema target index or the full-text search index corresponding to the extension part is discriminated.
It is also possible to search the 7 extended schema part.

【0044】なお、図1、図2で示したサーバシステム
における各処理部の一部もしくは全部の機能をコンピュ
ータのプログラムで構成し、そのプログラムをコンピュ
ータを用いて実行して本発明を実現することができるこ
と、あるいは、図3乃至図6で示した処理の手順をコン
ピュータのプログラムで構成し、そのプログラムをコン
ピュータに実行させることができることは言うまでもな
く、コンピュータでその機能を実現するためのプログラ
ム、あるいは、コンピュータにその処理の手順を実行さ
せるためのプログラムを、そのコンピュータが読み取り
可能な記録媒体、例えば、FD(フロッピーディスク
(登録商標))や、MO、ROM、メモリカード、C
D、DVD、リムーバブルディスクなどに記録して、保
存したり、配布したりすることが可能である。また、上
記のプログラムをインターネットや電子メールなど、ネ
ットワークを通して提供することも可能である。
It should be noted that some or all of the functions of each processing unit in the server system shown in FIGS. 1 and 2 are configured by a computer program, and the program is executed by the computer to implement the present invention. Needless to say, or it is possible to configure the processing procedure shown in FIG. 3 to FIG. 6 by a computer program and have the computer execute the program, or , A computer-readable recording medium such as an FD (floppy disk (registered trademark)), an MO, a ROM, a memory card, or a C for executing a program for causing the computer to execute the processing procedure.
It can be recorded on a D, DVD, removable disk, etc., and can be saved or distributed. It is also possible to provide the above program through a network such as the Internet or electronic mail.

【0045】[0045]

【発明の効果】本発明によれば、従来のXMLデータ検
索システムにおいて、データ返却時のデータ通信量を必
要最小限に抑えながら、なおかつ必要なデータ形態に整
形するのに必要な処理時間が不要になるので、高速なX
MLデータ検索を実現することができる。また、サーバ
からクライアントに対して、不要なデータを送信しない
ため、一般的にデータ量が肥大化する傾向にあるXML
データのネットワーク送信で、ネットワークの使用効率
という点でも有効である。これによって、個人もしくは
ユーザ全体に対してよりよいXMLアプリケーションサ
ービスを提供することができる。
According to the present invention, in the conventional XML data retrieval system, the processing time required for shaping the data into the required data format while minimizing the data communication amount at the time of returning the data is unnecessary. So it's a fast X
ML data search can be realized. In addition, since the server does not send unnecessary data to the client, the amount of data generally tends to become large.
It is also effective in terms of network usage efficiency in data transmission over the network. With this, it is possible to provide a better XML application service to an individual or the whole user.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施形態例1におけるシステム構成図
である。
FIG. 1 is a system configuration diagram in a first embodiment of the present invention.

【図2】本発明の実施形態例2におけるシステム構成図
である。
FIG. 2 is a system configuration diagram in a second embodiment of the present invention.

【図3】本発明の実施形態例1における、登録系処理の
フローチャートである。
FIG. 3 is a flowchart of registration-related processing according to the first embodiment of the present invention.

【図4】本発明の実施形態例1における、検索系処理の
フローチャートである。
FIG. 4 is a flowchart of a search system process according to the first embodiment of the present invention.

【図5】本発明の実施形態例2における、登録系処理の
フローチャートである。
FIG. 5 is a flowchart of registration-related processing according to the second exemplary embodiment of the present invention.

【図6】本発明の実施形態例2における、検索系処理の
フローチャートである。
FIG. 6 is a flowchart of a search system process according to the second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1…XMLデータ登録処理部 11…XML構造解析部 12…インデックスデータ作成部 13…返却用XML形態再構成部 14…トランザクション制御部 15…全文検索用インデックス生成部 2…データベース部 21…属性インデックス部 22…データ実体部 23…全文検索用インデックス部 3…XMLデータ検索処理部 31…検索要求解析部 32…検索式生成部 33…検索式実行部 34…XMLデータ返却部 35…全文検索実行部 1 ... XML data registration processing unit 11 ... XML structural analysis unit 12 ... Index data creation unit 13 ... XML form reconstruction unit for return 14 ... Transaction control unit 15 ... Full-text search index generator 2 ... Database section 21 ... Attribute index section 22 ... Data substance part 23 ... Index part for full text search 3 ... XML data search processing unit 31 ... Search request analysis unit 32 ... Search expression generation unit 33 ... Search expression execution unit 34 ... XML data return section 35 ... Full-text search execution unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 固定的な構造の割合が大きいスキーマを
持つ複数のXMLデータの集まりに対して、XMLデー
タを分析し、データベース部に格納するXMLデータ登
録処理部と、 ユーザが与えた検索要求を用いてXMLデータの集まり
から条件を満たすXMLデータを選択し、同時にユーザ
の与えた返却形態指定に対応した形態のXMLデータを
高速に出力するXMLデータ検索処理部とを持つXML
情報検索システムであって、 XMLデータ登録処理部は、 XMLデータ登録の際に、XMLデータの構造を与えら
れたスキーマ情報を元に解析する「XML構造解析手
段」と、 XML構造解析の結果から、検索時におけるデータ格納
位置を高速に特定するために必要となる、XMLの中の
固定的なデータ属性部分を利用したインデックス情報を
生成する「インデックスデータ作成手段」と、 検索要求を行うクライアントアプリケーションで必要と
する構成のXMLデータを高速にサーバからクライアン
トヘ返却するために登録時に返却用XMLデータを構成
・登録するため必要となる返却形態整形XMLデータを
定義ファイルに応じて生成する「返却用XML形態再構
成手段」と、 上記のXMLデータ、インデックスデータ、返却形態整
形XMLデータの登録制御を行う「トランザクション制
御手段」とを持ち、 データベース部は、 上記のXMLデータ、インデックスデータ、返却形態整
形XMLデータを蓄積、管理するものであり、 XMLデータ検索処理部は、 クライアントから送信される検索要求を解析して、上記
データベース部のどの要素を使用するのかを決定する
「検索要求解析手段」と、 上記検索要求解析手段から得られる情報から、データベ
ース部を検索するための検索式を構成する「検索式生成
手段」と、 上記検索式生成手段から出力される検索式の実行制御を
行い、データベース部を検索する「検索式実行手段」
と、 検索結果を受け取り、クライアントヘのXMLデータ返
却制御を行う「XMLデータ返却手段」を持つ事を特徴
とするXML情報検索装置。
1. An XML data registration processing unit that analyzes XML data for a collection of a plurality of XML data having a schema with a large fixed structure ratio and stores the XML data in a database unit, and a search request provided by a user. XML having a XML data search processing unit that selects XML data satisfying a condition from a collection of XML data using, and at the same time outputs XML data in a form corresponding to a return form designation given by a user at high speed.
An information retrieval system, wherein the XML data registration processing unit analyzes the XML data structure based on the given schema information at the time of XML data registration, and an XML structure analysis result. , "Index data creating means" for creating index information using a fixed data attribute portion in XML, which is necessary to specify a data storage position at the time of search, and a client application for making a search request In order to quickly return the XML data of the configuration required by the server from the server to the client, the return form shaping XML data required for configuring and registering the return XML data at the time of registration is generated according to the definition file. XML form reconstructing means ", and the above XML data, index data, and return form adjustment It has a "transaction control means" for controlling registration of XML data, and the database unit stores and manages the above XML data, index data, and return form shaping XML data. The XML data search processing unit is a client. A search request analysis means for analyzing which search request is transmitted from the database part to determine which element of the database part is to be used; and for searching the database part from the information obtained from the search request analysis means. "Search expression generating means" that constitutes the search expression, and "search expression executing means" that controls the execution of the search expression output from the search expression generating means and searches the database section.
And an XML information retrieval device having "XML data return means" for receiving the retrieval result and controlling the XML data return to the client.
【請求項2】 請求項1に記載のXML情報検索装置お
いて、 XMLデータ登録処理部は、 「インデックスデータ作成手段」に加えて、XMLの中
の固定的なデータ属性部分以外に対する検索にも対応す
る、全文検索用インデックス情報を生成する「全文検索
用インデックスデータ作成手段」を持ち、 XMLデータ検索処理部は、 「検索要求解析手段」が、検索要求を受け付けた際に、
上記「インデックスデータ作成手段」と「全文検索用イ
ンデックスデータ作成手段」のどちらの生成したインデ
ックスを使用するのかをスキーマ定義情報から判断し、
処理を振り分けるものとし、 「検索式実行手段」によるインデックス検索とは別途、
「全文検索用インデックスデータ作成手段」の生成した
インデックスを使用するとされた場合に、全文検索用イ
ンデックスを使用した検索を行う「全文検索手段」を持
つ事を特徴とするXML情報検索装置。
2. The XML information retrieving apparatus according to claim 1, wherein the XML data registration processing unit is capable of performing, in addition to the "index data creating means", retrieval for a portion other than a fixed data attribute portion in XML. The corresponding XML data search processing unit has a "full-text search index data creating means" for generating corresponding full-text search index information, and when the "search request analysis means" receives the search request,
From the schema definition information, determine which of the above-mentioned "index data creation means" or "index data creation means for full text search" to be used,
It is assumed that the processing is distributed, separately from the index search by "search formula execution means"
An XML information search device having "full text search means" for performing a search using the full text search index when the index generated by the "full text search index data creating means" is used.
【請求項3】 固定的な構造の割合が大きいスキーマを
持つ複数のXMLデータの集まりに対して、XMLデー
タを分析し、データベース部に格納するXMLデータ登
録処理と、 ユーザが与えた検索要求を用いてXMLデータの集まり
から条件を満たすXMLデータを選択し、同時にユーザ
の与えた返却形態指定に対応した形態のXMLデータを
高速に出力するXMLデータ検索処理とを有するXML
情報検索システムであって、 XMLデータ登録処理では、 XMLデータ登録の際に、XMLデータの構造を与えら
れたスキーマ情報を元に解析する「XML構造解析手
順」と、 XML構造解析の結果から、検索時におけるデータ格納
位置を高速に特定するために必要となる、XMLの中の
固定的なデータ属性部分を利用したインデックス情報を
生成する「インデックスデータ作成手順」と、 検索要求を行うクライアントアプリケーションで必要と
する構成のXMLデータを高速にサーバからクライアン
トヘ返却するために登録時に返却用XMLデータを構成
・登録するため必要となるデータを定義ファイルに応じ
て生成する「返却用XML形態再構成手順」と、 上記のXMLデータ、インデックスデータ、返却形態整
形XMLデータのデータベース部への登録制御を行う
「トランザクション制御手順」とを有し、 XMLデータ検索処理では、 クライアントから送信される検索要求を解析して、上記
データベース部のどの要素を使用するのかを決定する
「検索要求解析手順」と、 上記検索要求解析手順で得られた情報から、データベー
ス部を検索するための検索式を構成する「検索式生成手
順」と、 上記検索式生成手順で出力された検索式の実行制御を行
い、データベース部を検索する「検索式実行手順」と、 検索結果を受け取り、クライアントヘのXMLデータ返
却制御を行う「XMLデータ返却手順」を有する事を特
徴とするXML情報検索方法。
3. An XML data registration process of analyzing XML data and storing it in a database unit and a search request given by a user for a collection of a plurality of XML data having a schema with a large fixed structure ratio. An XML data search process for selecting XML data satisfying a condition from a collection of XML data using the same and at the same time outputting the XML data in a form corresponding to the return form designation given by the user at high speed.
In the XML data registration process, in the XML data registration process, when the XML data is registered, the structure of the XML data is analyzed based on the given schema information, and “XML structure analysis procedure” and the result of the XML structure analysis. The "index data creation procedure" that creates the index information that uses the fixed data attribute part in XML that is required to specify the data storage location at the time of search, and the client application that makes the search request In order to quickly return the XML data of the required structure from the server to the client, at the time of registration, the XML data for return is created / generated according to the definition file to create the data required for registration. ], The above XML data, index data, and return form shaping XML data In the XML data search processing, a search request sent from a client is analyzed to determine which element of the database section to use. "Search request analysis procedure", "Search expression generation procedure" that configures the search expression for searching the database part from the information obtained in the search request analysis procedure, and the search expression output in the above search expression generation procedure An XML information retrieval method characterized by having a "retrieval expression execution procedure" for performing execution control of the database section and for searching the database section, and an "XML data return procedure" for receiving a search result and controlling XML data return to the client. .
【請求項4】 請求項3に記載のXML情報検索方法お
いて、 XMLデータ登録処理では、 「インデックスデータ作成手順」に加えて、XMLの中
の固定的なデータ属性部分以外に対する検索にも対応す
る、全文検索用インデックス情報を生成する「全文検索
用インデックスデータ作成手順」を有し、 XMLデータ検索処理では、 「検索要求解析手順」で、検索要求を受け付けた際に、
上記「インデックスデータ作成手順」と「全文検索用イ
ンデックスデータ作成手順」のどちらの生成したインデ
ックスを使用するのかをスキーマ定義情報から判断し、
処理を振り分けし、 「検索式実行手順」によるインデックス検索とは別途、
「全文検索用インデックスデータ作成手順」の生成した
インデックスを使用するとされた場合に、全文検索用イ
ンデックスを使用した検索を行う「全文検索手順」を有
する事を特徴とするXML情報検索方法。
4. The XML information retrieval method according to claim 3, wherein in the XML data registration process, in addition to the “index data creation procedure”, retrieval is also possible for parts other than the fixed data attribute part in XML. In the XML data search process, when the search request is accepted in the “search request analysis procedure”, the “full text search index data creation procedure” for generating the full text search index information is provided.
Determine from the schema definition information which of the above-mentioned "index data creation procedure" or "full text search index data creation procedure" is to be used,
Allocate the processing separately from the index search by "Search formula execution procedure",
An XML information search method characterized by having a "full-text search procedure" for performing a search using the full-text search index when the index generated by the "full-text search index data creation procedure" is used.
【請求項5】 請求項3または請求項4に記載のXML
情報検索方法における手順を、コンピュータに実行させ
るためのプログラムとしたことを特徴とするXML情報
検索方法の実行プログラム。
5. The XML according to claim 3 or 4.
An execution program for an XML information search method, characterized in that a program for causing a computer to execute the procedure in the information search method.
【請求項6】 請求項3または請求項4に記載のXML
情報検索方法に記載の方法における手順を、コンピュー
タに実行させるためのプログラムとし、 該プログラムを、該コンピュータが読み取りできる記録
媒体に記録したことを特徴とするXML情報検索方法の
実行プログラムを記録した記録媒体。
6. The XML according to claim 3 or 4.
Recording the execution program of the XML information retrieval method, characterized in that the procedure in the method described in the information retrieval method is a program for causing a computer to execute, and the program is recorded in a computer-readable recording medium. Medium.
JP2002130424A 2002-05-02 2002-05-02 Xml information retrieving device and method, program for executing method, and recording medium for recording program for executing method Pending JP2003323427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002130424A JP2003323427A (en) 2002-05-02 2002-05-02 Xml information retrieving device and method, program for executing method, and recording medium for recording program for executing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002130424A JP2003323427A (en) 2002-05-02 2002-05-02 Xml information retrieving device and method, program for executing method, and recording medium for recording program for executing method

Publications (1)

Publication Number Publication Date
JP2003323427A true JP2003323427A (en) 2003-11-14

Family

ID=29543485

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002130424A Pending JP2003323427A (en) 2002-05-02 2002-05-02 Xml information retrieving device and method, program for executing method, and recording medium for recording program for executing method

Country Status (1)

Country Link
JP (1) JP2003323427A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007265384A (en) * 2006-01-31 2007-10-11 Victor Co Of Japan Ltd Structured data storage device, structured data storage program, and structured data storage method
JP2007265383A (en) * 2006-01-31 2007-10-11 Victor Co Of Japan Ltd Structured data storage device, structured data storage program, and structured data storage method
JP2007265387A (en) * 2006-01-31 2007-10-11 Victor Co Of Japan Ltd Structured data storage device, structured data storage program, and structured data storage method
JP2009129202A (en) * 2007-11-22 2009-06-11 Ntt Data Corp Data processor, data processing method, and program
JP2011039855A (en) * 2009-08-13 2011-02-24 Nippon Telegr & Teleph Corp <Ntt> Metadata server system, metadata retrieval program and recording medium with the program recorded thereon
WO2011033734A1 (en) * 2009-09-18 2011-03-24 Hitachi Solutions, Ltd. File search system and program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007265384A (en) * 2006-01-31 2007-10-11 Victor Co Of Japan Ltd Structured data storage device, structured data storage program, and structured data storage method
JP2007265383A (en) * 2006-01-31 2007-10-11 Victor Co Of Japan Ltd Structured data storage device, structured data storage program, and structured data storage method
JP2007265387A (en) * 2006-01-31 2007-10-11 Victor Co Of Japan Ltd Structured data storage device, structured data storage program, and structured data storage method
JP2009129202A (en) * 2007-11-22 2009-06-11 Ntt Data Corp Data processor, data processing method, and program
JP2011039855A (en) * 2009-08-13 2011-02-24 Nippon Telegr & Teleph Corp <Ntt> Metadata server system, metadata retrieval program and recording medium with the program recorded thereon
WO2011033734A1 (en) * 2009-09-18 2011-03-24 Hitachi Solutions, Ltd. File search system and program

Similar Documents

Publication Publication Date Title
CN110032604B (en) Data storage device, translation device and database access method
CN100498686C (en) Method for establishing and dispensing customized search and inquiry and the search engine system
US7836460B2 (en) Service broker realizing structuring of portlet services
US7343549B2 (en) Layout system, layout program, and layout method
US7765464B2 (en) Method and system for dynamically assembling presentations of web pages
US20030195873A1 (en) Identifier vocabulary data access method and system
US20060047648A1 (en) Comprehensive query processing and data access system and user interface
JP2009020901A (en) Database system, method of database retrieval and recording medium
Binding et al. KOS at your service: Programmatic access to knowledge organisation systems
KR20090005097A (en) Systems and methods of transforming data for web communities and web applications
JP2002175207A (en) Method of allowing browsing to multimedia database accessible electronically, and allowing access for retrieval thereto
US20120072826A1 (en) Methods and systems of outputting content of interest
US20080147672A1 (en) System and method for providing platform-independent content services for users for content from content applications leveraging atom, xlink, xml query content management systems
JP2009289092A (en) Information processor, recommendation method, program and recording medium
JPWO2003067470A1 (en) Document distribution device, document reception device, document distribution method, document distribution program, document distribution system
JP5010624B2 (en) Search device
US20120072824A1 (en) Content acquisition documents, methods, and systems
JP2001325290A (en) System for retrieving document file
JP2003323427A (en) Xml information retrieving device and method, program for executing method, and recording medium for recording program for executing method
JP3671765B2 (en) Heterogeneous information source query conversion method and apparatus, and storage medium storing heterogeneous information source query conversion program
JP4333184B2 (en) Electronic data management system
EP2690563A1 (en) Method and device for reporting on data of documents generated from templates
WO2005096175A1 (en) Data processing system, method and computer program product
JP2004102818A (en) Retrieval support method and retrieval support device
US20050289185A1 (en) Apparatus and methods for accessing information in database trees

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040302

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070306

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070717