JP2017054387A - Query creation support method and information processor - Google Patents
Query creation support method and information processor Download PDFInfo
- Publication number
- JP2017054387A JP2017054387A JP2015178961A JP2015178961A JP2017054387A JP 2017054387 A JP2017054387 A JP 2017054387A JP 2015178961 A JP2015178961 A JP 2015178961A JP 2015178961 A JP2015178961 A JP 2015178961A JP 2017054387 A JP2017054387 A JP 2017054387A
- Authority
- JP
- Japan
- Prior art keywords
- property
- query
- additional
- additional property
- literal
- 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.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、クエリの作成を支援する技術に関する。 The present invention relates to a technique for supporting creation of a query.
近年、政府や地方自治体等の公共機関が蓄積しているデータの一部を、ネットワークを介して公開している場合がある。公開されているデータはオープンデータと呼ばれる。オープンデータは、CSV(comma−separated values)やXML(Extensible Markup Language)等の形式だけでなく、グラフ構造のRDF(Resource Description Framework)形式でも公開されている。グラフ構造のデータは、様々な組織でそれぞれ公開されているデータ間の関係をリンクとして定義できる。このため、組織を超えてデータを利用しやすくなる、という利点を持つ。 In recent years, some data accumulated by public institutions such as governments and local governments may be disclosed via a network. Public data is called open data. Open data is disclosed not only in CSV (comma-separated values) and XML (Extensible Markup Language) formats, but also in an RDF (Resource Description Framework) format with a graph structure. The data of the graph structure can define the relationship between the data published in various organizations as a link. For this reason, it has the advantage that it becomes easy to use data across organizations.
しかし、グラフ構造のデータに対するクエリを作成する際、予めクエリ対象データの構造を知らなければ、どのようなプロパティを利用して所望の情報を取得すれば良いかわからない。 However, when creating a query for graph-structured data, if the structure of the query target data is not known in advance, it is not known what property should be used to obtain the desired information.
そこで、データ構造がわからなくても、クエリを作成できることが望ましい。これに関連して、クエリ対象の表形式のデータから、クエリに利用可能な条件の候補を提示する方法が知られている(例えば、特許文献1参照)。 Therefore, it is desirable that a query can be created without knowing the data structure. In relation to this, a method of presenting candidate conditions that can be used for a query from tabular data to be queried is known (see, for example, Patent Document 1).
これにより、予め、クエリ対象の表形式のデータから、クエリに利用可能な条件の候補となるデータ項目を抽出し、抽出したデータ項目を選択することでクエリを作成可能になる、という効果が期待できる。 As a result, it is expected that a query can be created by extracting data items that are candidates for conditions that can be used in the query from the tabular data to be queried in advance and selecting the extracted data items. it can.
しかしながら、従来の技術では、クエリ対象のデータに含まれていないプロパティを抽出して、クエリに利用可能な候補として提示することはできない。このため、データに含まれている複数のプロパティを組み合わせたり、条件を補ったりして所望の結果を得るためのクエリを作成しなければならない。 However, in the conventional technique, it is not possible to extract a property that is not included in the data to be queried and present it as a candidate that can be used for the query. Therefore, it is necessary to create a query for obtaining a desired result by combining a plurality of properties included in the data or supplementing the conditions.
本発明は、このような事情に鑑みてなされたものであり、クエリ対象のデータに含まれていないプロパティであっても、利用可能なプロパティとすることを課題とする。 This invention is made | formed in view of such a situation, and makes it a subject to make it a property which can be used even if it is a property which is not contained in the data of query object.
上記課題を解決する本発明の一側面は、グラフ構造のデータからなるデータベース(以降「グラフデータベース」という)に対するクエリを実行する機能を備えた情報処理装置において、プロパティを追加し、追加したプロパティを追加プロパティとしてクエリに利用可能とするクエリ作成支援方法である。この方法では、ユーザが作成したクエリに基づいて、プロパティおよびリテラルの条件の少なくともひとつを候補として表示する第1のステップと、第1のステップで表示した候補から、所望の候補をユーザに選択させる第2のステップと、第2のステップで選択された候補に基づいて、前記追加プロパティを登録する第3のステップとを備える。 One aspect of the present invention that solves the above problems is to add a property in an information processing apparatus having a function of executing a query to a database (hereinafter referred to as “graph database”) composed of graph-structured data. This is a query creation support method that can be used for a query as an additional property. In this method, based on a query created by the user, the user selects a desired candidate from the first step of displaying at least one of the property and literal conditions as a candidate and the candidate displayed in the first step. A second step and a third step of registering the additional property based on the candidate selected in the second step.
好ましい具体例では、ユーザが作成したクエリに記述されたプロパティの数およびリテラルの条件の数の少なくとも一つが、所定閾値を超えた場合、前記第1のステップを実行して、追加プロパティの追加を行う。 In a preferred embodiment, when at least one of the number of properties described in the user-created query and the number of literal conditions exceeds a predetermined threshold, the first step is executed to add an additional property. Do.
本発明の他の一側面は、入力装置、出力装置、処理装置、及び記憶装置を備える情報処理装置である。この装置では、記憶したグラフデータを入力されたクエリで検索するクエリ実行モジュールと、ユーザが入力したクエリのプロパティ数および条件数の少なくとも一つに基づいて、追加プロパティの登録処理を行うかどうかを判定する、クエリ検証モジュールと、追加プロパティの登録処理を行うために、ユーザに選択されたプロパティに基づいて追加プロパティを定義する、追加プロパティ登録モジュールと、追加プロパティを含めて、クエリに利用可能なプロパティを検索する、利用可能プロパティ検索モジュールと、を備える。 本発明の好ましい具体例では、この情報処理装置は、追加プロパティを設定するために必要な画面をユーザに表示する。表示される画面は、典型的な例では、ネットワークを介して接続されたユーザ端末の表示装置に表示される。 Another aspect of the present invention is an information processing apparatus including an input device, an output device, a processing device, and a storage device. In this device, whether to perform additional property registration processing based on at least one of the number of query properties and the number of conditions of the query entered by the user, and a query execution module that searches the stored graph data with the entered query. Available to query, including additional property registration modules and additional properties that define additional properties based on the properties selected by the user to perform the query validation module and additional property registration process to determine And an available property search module for searching for properties. In a preferred embodiment of the present invention, the information processing apparatus displays a screen necessary for setting additional properties to the user. In a typical example, the displayed screen is displayed on a display device of a user terminal connected via a network.
本発明の他の一側面は、グラフデータベースに対して実行されるクエリの内容を検証し、クエリに含まれるプロパティ数やリテラルの条件数などからプロパティを追加するか否かを判断し、追加されたプロパティを含めて利用可能なプロパティを検索して提示することが出来るクエリ作成支援装置である。 Another aspect of the present invention is added by verifying the contents of a query executed on the graph database and determining whether or not to add a property from the number of properties included in the query or the number of literal conditions. It is a query creation support device that can search and present available properties including the property.
このクエリ作成支援装置は、グラフデータを記憶する機能、グラフデータベースに対しクエリを実行する機能、クエリの内容を検証する機能、プロパティを追加する機能、利用可能なプロパティを検索する機能、を備えた装置において、グラフデータを記憶するグラフデータベースに対して実行されるクエリの内容を、クエリの内容を検証する機能により検証し、クエリに含まれるプロパティ数やリテラルの条件数などからプロパティを追加するか否かを判断しする。そして、新しいプロパティを、プロパティを追加する機能により追加し、グラフデータベースに対するクエリを作成する際に、利用可能なプロパティを検索する機能が、追加したプロパティを含めて利用可能なプロパティを検索し、追加したプロパティを含めて利用可能なプロパティとして提示することを特徴とする。 This query creation support device has a function for storing graph data, a function for executing a query on a graph database, a function for verifying the contents of a query, a function for adding properties, and a function for searching for available properties. Whether the content of a query executed on the graph database that stores graph data in the device is verified by the function for verifying the content of the query, and the property is added from the number of properties included in the query, the number of literal conditions, etc. Judge whether or not. Then, add a new property with the function to add a property, and when creating a query against the graph database, the function to search for an available property searches for an available property including the added property and adds it. It is characterized by presenting it as a usable property including the selected property.
本発明によれば、実際に利用されるプロパティやリテラルの条件を追加でき、追加されたプロパティを含めて利用可能なプロパティを検索して提示することで、より簡単にクエリを記述できる、という効果が期待できる。 According to the present invention, it is possible to add properties and literal conditions that are actually used, and it is possible to describe a query more easily by searching and presenting available properties including the added properties. Can be expected.
以下、図面を参照して、本発明の実施の形態について説明する。本実施例では、グラフデータベースに対して実行されるクエリの内容を検証し、クエリに記述されたプロパティ数やリテラルの条件数などからプロパティを追加するか否かを判断し、追加されたプロパティを含めて利用可能なプロパティを検索して提示するシステムを説明する。 Embodiments of the present invention will be described below with reference to the drawings. In this example, the contents of the query executed on the graph database are verified, it is determined whether or not to add a property from the number of properties described in the query, the number of literal conditions, etc., and the added property is determined. A system that searches and presents the properties that can be used, including, will be described.
ただし、本発明は以下に示す実施の形態の記載内容に限定して解釈されるものではない。本発明の思想ないし趣旨から逸脱しない範囲で、その具体的構成を変更し得ることは当業者であれば容易に理解される。 However, the present invention is not construed as being limited to the description of the embodiments below. Those skilled in the art will readily understand that the specific configuration can be changed without departing from the spirit or the spirit of the present invention.
以下に説明する発明の構成において、同一部分又は同様な機能を有する部分には同一の符号を異なる図面間で共通して用い、重複する説明は省略することがある。 In the structures of the invention described below, the same portions or portions having similar functions are denoted by the same reference numerals in different drawings, and redundant description may be omitted.
本明細書等における「第1」、「第2」、「第3」などの表記は、構成要素を識別するために付するものであり、必ずしも、数または順序を限定するものではない。また、構成要素の識別のための番号は文脈毎に用いられ、一つの文脈で用いた番号が、他の文脈で必ずしも同一の構成を示すとは限らない。また、ある番号で識別された構成要素が、他の番号で識別された構成要素の機能を兼ねることを妨げるものではない。 In the present specification and the like, notations such as “first”, “second”, and “third” are attached to identify the components, and do not necessarily limit the number or order. In addition, a number for identifying a component is used for each context, and a number used in one context does not necessarily indicate the same configuration in another context. Further, it does not preclude that a component identified by a certain number also functions as a component identified by another number.
図面等において示す各構成の位置、大きさ、形状、範囲などは、発明の理解を容易にするため、実際の位置、大きさ、形状、範囲などを表していない場合がある。このため、本発明は、必ずしも、図面等に開示された位置、大きさ、形状、範囲などに限定されない。 The position, size, shape, range, and the like of each component illustrated in the drawings and the like may not represent the actual position, size, shape, range, or the like in order to facilitate understanding of the invention. For this reason, the present invention is not necessarily limited to the position, size, shape, range, and the like disclosed in the drawings and the like.
図1は、本発明を適用するデータ問い合わせサービスシステム1の全体構成例を示す図である。
FIG. 1 is a diagram showing an example of the overall configuration of a data
データ問い合わせサービスシステム1は、インターネット等のネットワーク103に接続されたデータリポジトリサーバ102、インターネット等のネットワーク103に接続された複数のユーザ端末102、から構成されるサービスシステムである。
The data
図2は、データリポジトリサーバ101のハードウェア構成例を示す図である。データリポジトリサーバ101は、一般的なサーバ装置により実現でき、制御部201、ネットワークインタフェース部202、ウェブサービス提供部203、利用可能プロパティ検索部204、クエリ検証部205、追加プロパティ登録部206、クエリ実行部207、非重要プロパティ記憶部208、追加プロパティ記憶部209、グラフデータ記憶部210、グラフデータ更新部211、を具備する。各部はBUS(バス)212等により接続されている。
FIG. 2 is a diagram illustrating a hardware configuration example of the
ネットワークインタフェース部202は、制御部201により転送されたIPパケットを、インターネット等のネットワーク103を介してユーザ端末102に送信する。また、ネットワークインタフェース部202は、インターネット等のネットワーク103を介してデータリポジトリサーバ101が受信したIPパケットを、制御部201に転送する。ネットワークインタフェース部202は、例えばネットワークカード等で構成される。
The
ウェブサービス提供部203は、インターネット等のネットワーク103を介してユーザ端末102に、ウェブブラウザ上で表示可能なフォーマット、例えばhtml、で記述されたデータを送信する。また、ウェブサービス提供部203は、ユーザ端末102のウェブブラウザ上での操作内容等の情報をインターネット等のネットワーク103を介して受信し、受信した情報を基に利用可能プロパティ検索部204、クエリ検証部205、追加プロパティ登録部206、クエリ実行部207、等での処理を実行する。ウェブサービス提供部203は、例えば上記のウェブサービス機能を有するプログラムである。
The web
なお、処理部で実行される各種のプログラム、またはその一部を、「部」「ユニット」「手段」「機能」「モジュール」等と呼称する場合がある。また、本実施例の構成は、単体のコンピュータで構成してもよいし、あるいは、入力装置、出力装置、処理装置、記憶装置の任意の部分が、ネットワークで接続された他のコンピュータで構成されてもよい。また、本実施例中、ソフトウエアで構成した機能と同等の機能は、FPGA(Field Programmable Gate Array)、ASIC(Application Specific Integrated Circuit)などのハードウエアでも実現できる。 Various programs executed by the processing unit, or a part thereof, may be referred to as “unit”, “unit”, “means”, “function”, “module”, or the like. In addition, the configuration of the present embodiment may be configured by a single computer, or any part of the input device, output device, processing device, and storage device may be configured by another computer connected by a network. May be. In the present embodiment, functions equivalent to those configured by software can also be realized by hardware such as FPGA (Field Programmable Gate Array) and ASIC (Application Specific Integrated Circuit).
利用可能プロパティ検索部204は、ユーザ端末102のウェブブラウザ上での操作内容等の情報をインターネット等のネットワーク103を介して受信し、受信した情報を基に、グラフデータ記憶部210に記憶されたデータに対し、利用可能なプロパティを検索する機能を有するプログラムである。
The available
クエリ検証部205は、ユーザ端末102のウェブブラウザ上での操作内容等の情報をインターネット等のネットワーク103を介して受信し、受信した情報を基にクエリに記述されたプロパティ数、リテラルの条件数、追加プロパティの有無、などを検索し、追加プロパティを作成するか否か、クエリに追加プロパティが含まれているか否か、を検証する機能を有するプログラムである。
The
追加プロパティ登録部206は、ユーザ端末102のウェブブラウザ上での操作内容等の情報をインターネット等のネットワーク103を介して受信し、受信した情報を基に、プロパティを追加プロパティ記憶部209に登録したり、非重要プロパティ記憶部208に非重要プロパティ情報を追加したりする機能を有するプログラムである。
The additional
クエリ実行部207は、ユーザ端末102のウェブブラウザ上での操作内容等の情報をインターネット等のネットワーク103を介して受信し、受信した情報を基に、グラフデータ記憶部210に記憶されたデータに対し、クエリを実行する機能を有するプログラムである。
The
非重要プロパティ記憶部208は、クエリ検証部205が実行する処理の対象となるデータの一部または全部、及び追加プロパティ登録部206が実行する処理の結果の一部または全部、を記憶するものである。非重要プロパティ記憶部208は、記憶するデータの大きさやフォーマット等に応じてRDB(Relational Database)、ファイルサーバ、KVS(Key−Value Store)等、それぞれ異なる記憶方式を備えた複数の記憶部により構成されていてもよい。
The non-important
追加プロパティ記憶部209は、クエリ検証部205が実行する処理の対象となるデータの一部または全部、及び追加プロパティ登録部206が実行する処理の結果の一部または全部を記憶するものである。追加プロパティ記憶部209は、記憶するデータの大きさやフォーマット等に応じてRDBやファイルサーバ、KVS等、それぞれ異なる記憶方式を備えた複数の記憶部により構成されていてもよい。
The additional
グラフデータ記憶部210は、利用可能プロパティ検索部204や、クエリ実行部207、が実行する処理の対象となるデータの一部または全部を記憶するものである。グラフデータ記憶部210は、記憶するデータの大きさやフォーマット等に応じてRDBやファイルサーバ、KVS等、それぞれ異なる記憶方式を備えた複数の記憶部により構成されていてもよい。グラフデータ記憶部210に記憶されているデータと同等のデータの一部または全部は、インターネット等のネットワーク103に接続されたその他の複数のサーバにより提供されていてもよい。
The graph
グラフデータ更新部211は、グラフデータ記憶部210に記憶されているデータを更新する機能を有するプログラムである。
The graph
制御部201は、CPU等で構成され、上記各プログラムを実行する。制御部201は、ウェブサービスを提供する。制御部201はグラフデータ記憶部210に記憶されたデータに対し、利用可能なプロパティを検索する。制御部201はクエリを検証する。制御部201は、プロパティを追加プロパティ記憶部209に登録したり、非重要プロパティ記憶部208にプロパティ情報を追加したりする。
The
制御部201は、グラフデータ記憶部210に記憶されたデータに対し、クエリを実行する。制御部201は、クエリ検証部205が実行する処理の対象となるデータの一部または全部、及び追加プロパティ登録部206が実行する処理の結果の一部または全部、を記憶する。
The
制御部201は、クエリ検証部205が実行する処理の対象となるデータの一部または全部、及び追加プロパティ登録部206が実行する処理の結果の一部または全部を記憶する。制御部201は、利用可能プロパティ検索部204や、クエリ実行部207、が実行する処理の対象となるデータの一部または全部を記憶する。制御部201は、グラフデータ記憶部210に記憶されているデータを更新する。
The
尚、上記各プログラムの機能は、LSI等のハードウェアにより実現してもよい。また、図2に示す各要素は、物理的に分離している必要はなく、一つの要素が他を兼ねてもよい。また、一般的なサーバが備える、入力装置、出力装置等は特に図2には示していない。 The function of each program may be realized by hardware such as LSI. Further, the elements shown in FIG. 2 do not have to be physically separated, and one element may also serve as the other. Further, an input device, an output device, and the like included in a general server are not particularly shown in FIG.
図3は、ユーザ端末102のハードウェア構成例を示す図である。
FIG. 3 is a diagram illustrating a hardware configuration example of the
ユーザ端末102は、一般的なコンピュータにより実現でき、制御部301、ネットワークインタフェース部302、入力部303、出力部304、を具備する。各部はBUS(バス)305等により接続されている。
The
ネットワークインタフェース部302は、制御部301により転送されたIPパケットを、インターネット等のネットワーク103を介してデータリポジトリサーバ101に送信するとともに、インターネット等のネットワーク103を介してユーザ端末102が受信したIPパケットを制御部301に転送するものであり、ネットワークカード等で構成される。
The
入力部303は、外部からの入力を制御部301に伝えるものであり、キーボードやマウス等で構成される。
The
出力部304は、制御部301からの情報を外部に出力するものであり、ディスプレイやプリンタ等で構成される。
The
制御部301はCPU等で構成され、上記各プログラムを実行する。制御部301は入力部303からの入力情報を受け付ける。制御部301は出力部304へ出力情報を送出する。尚、上記各プログラムの機能は、LSI等のハードウェアにより実現してもよい。
The
図4は、データリポジトリサーバ101のグラフデータ記憶部210に記憶されるグラフ形式のデータ例(人間)401の内容例を示す図である。
FIG. 4 is a diagram showing an example of the contents of an example graph data (human) 401 stored in the graph
データ例(人間)401には、Personというtypeを持つhttp://example.com/example1.1というリソースと、http://example.com/example1.2というリソースと、http://example.com/example1.3というリソースと、http://example.com/example1.4というリソースがある。 In the data example (human) 401, a resource called http://example.com/example1.1 having a type of Person, a resource called http://example.com/example1.2, and http: // example. There is a resource called com / example1.3 and a resource called http://example.com/example1.4.
http://example.com/example1.1というリソース(主語)は、http://example.com/example1.2というリソース(目的語)を持つ(親)というプロパティ(述語)と、http://example.com/example1.3というリソース(目的語)を持つ(祖父)というプロパティ(述語)と、「田中三郎」というリテラル(目的語)を持つ(氏名)というプロパティ(述語)を持っている。 A resource (subject) of http://example.com/example1.1 has a property (predicate) called (parent) that has a resource (object) of http://example.com/example1.2, and http: / Has a property (predicate) called (grandfather) that has a resource (object) of /example.com/example1.3, and a property (predicate) called (name) that has a literal (object) called "Saburo Tanaka" .
http://example.com/example1.2というリソースは、http://example.com/example1.3というリソースを持つ(親)というプロパティと、「田中二郎」というリテラルを持つ(氏名)というプロパティを持っている。 A resource called http://example.com/example1.2 has a property called (parent) that has a resource called http://example.com/example1.3 and a property called (name) that has a literal "Jiro Tanaka" have.
http://example.com/example1.3というリソースは、http://example.com/example1.4というリソースを持つ(兄)というプロパティと、「田中一郎」というリテラルを持つ(氏名)というプロパティを持っている。 The resource http://example.com/example1.3 has the property (brother) with the resource http://example.com/example1.4 and the property (name) with the literal "Ichiro Tanaka" have.
http://example.com/example1.4というリソースは、「田中太郎」というリテラルを持つ(氏名)というプロパティを持っている。 The resource http://example.com/example1.4 has a property (name) that has the literal "Taro Tanaka".
図5は、データリポジトリサーバ101のグラフデータ記憶部210に記憶されるグラフ形式のデータ例(会社)501の内容例を示す図である。
FIG. 5 is a diagram showing an example of the contents of graph example data (company) 501 stored in the graph
データ例(会社)501には、Companyというtypeを持つhttp://example.com/example2というリソースがある。 The data example (company) 501 has a resource called http://example.com/example2 having a type of Company.
http://example.com/example2というリソース(主語)は、「株式会社」exampleというリテラル(目的語)を持つ企業名というプロパティ(述語)と、「神奈川県横浜市」というリテラルを持つ所在地というプロパティと、「3」というリテラルを持つ従業員というプロパティを持っている。 The resource (subject) of http://example.com/example2 is a property (predicate) that has a literal (object) with the literal (object) “example” and a location with the literal “Yokohama, Kanagawa” It has a property and a property called employee with a literal of "3".
図6は、データリポジトリサーバ101からユーザ端末102へインターネット等のネットワーク103を介して送信される情報を、出力部304においてユーザ端末102のユーザに提示したクエリ作成画面601の構成例を示す図である。
FIG. 6 is a diagram showing a configuration example of a
クエリ作成画面601は、ウェブブラウザ等のウインドウ上に表示される。クエリ作成画面601は、利用可能プロパティ検索対象リソース入力ボックス602、利用可能プロパティ検索ボタン603、利用可能プロパティ検索結果604、クエリ作成エリア605、クエリ実行ボタン606、が配置される。
The
利用可能プロパティ検索対象リソース入力ボックス602には、利用可能プロパティ検索の対象となるリソースのURIを入力する。
In the available property search target
利用可能プロパティ検索ボタン603を押下すると、利用可能プロパティ検索対象リソース入力ボックス602に入力された内容が、インターネット等のネットワーク103を介してデータリポジトリサーバ101に送信され、データリポジトリサーバ101の利用可能プロパティ検索部204が、利用可能プロパティ検索対象リソース入力ボックス602に入力されたリソースが利用可能なプロパティを、グラフデータ記憶部210に記憶されたデータを対象に検索する。利用可能なプロパティの検索は、プロパティやリテラル等をワイルドカードとして実施する。
When the available
例えば、データ例(人間)401のhttp://example.com/example1.1というリソースを対象に利用可能なプロパティを検索すると、(親)、(祖父)、(氏名)というプロパティが利用可能であるという検索結果を得ることができ、利用可能プロパティ検索結果604のように例示される。また、http://example.com/example1.3というリソースを対象に利用可能なプロパティを検索すると、(兄)、(氏名)というプロパティが利用可能であるという検索結果を得ることができる。
For example, if you search for available properties for the resource http://example.com/example1.1 in the data example (human) 401, you can use the properties (parent), (grandfather), and (name) A search result that is present can be obtained, and is exemplified as an available
利用可能プロパティ検索結果604には、利用可能プロパティ検索ボタン603を押下した結果得られた利用可能プロパティが表示される。
The available
クエリ作成エリア605には、利用可能プロパティ検索結果604に表示された利用可能プロパティ等を利用して作成したクエリを入力する。
In the
例えば、データ例(人間)401の、(氏名)というプロパティに「田中三郎」というリテラルを持つリソースの、(祖父)というプロパティの目的語となるリソースの、(兄)というプロパティの目的語となるリソースの、(氏名)というプロパティの目的語となるリテラルを取得するクエリは、クエリ作成エリア605に例示されるように入力される。
For example, in the data example (human) 401, the resource that has the literal name "Saburo Tanaka" in the property (name), the resource that is the object of the property (grandfather), the object of the property (brother) A query for obtaining a literal that is the object of the property (name) of the resource is input as exemplified in the
クエリ実行ボタン606を押下すると、クエリ作成エリア605に入力されたクエリが、インターネット等のネットワーク103を介してデータリポジトリサーバ101に送信され、クエリ実行部207が、グラフデータ記憶部210に記憶されたデータに対し、クエリを実行する。
When the
図7は、クエリ作成画面601のクエリ作成エリア605に入力されたクエリの実行結果を表示するクエリ実行結果画面701の構成例を示す図である。
FIG. 7 is a diagram showing a configuration example of the query
クエリ実行結果画面701は、ウェブブラウザ等のウインドウ上に表示される。クエリ実行結果画面701は、実行したクエリ表示エリア702、クエリ実行結果テーブル703、が配置される。
The query
実行したクエリ表示エリア702には、クエリ作成画面601のクエリ作成エリア605に入力されたクエリが表示される。
In the executed
例えば、図6のクエリ作成画面601のクエリ作成エリア605に例示されているクエリが入力された場合は、作成したクエリ表示エリア702に例示されるように表示される。
For example, when the query illustrated in the
クエリ実行結果テーブル703には、クエリ作成画面601のクエリ作成エリア605で作成されたクエリが実行された結果が表示される。例えば、データ例(人間)401に対し、クエリ作成画面601のクエリ作成エリア605に例示されているクエリを実行した場合は、クエリ実行結果703に例示されるように表示される。
In the query execution result table 703, the results of executing the query created in the
図8は、データリポジトリサーバ101のグラフデータ記憶部210に記憶されるグラフ形式のデータ例(人間)401に追加プロパティを記述したデータ例(人間)(追加プロパティ)801の内容例を示す図である。
FIG. 8 is a diagram illustrating a content example of a data example (human) (additional property) 801 in which additional properties are described in a graph format data example (human) 401 stored in the graph
データ例(人間)(追加プロパティ)801には、追加プロパティ(大伯父)802、が記述されている。 In the data example (human) (additional property) 801, an additional property (great uncle) 802 is described.
データ例(人間)(追加プロパティ)801には、http://example.com/example1.1というリソースがある。 The data example (human) (additional property) 801 has a resource of http://example.com/example1.1.
http://example.com/example1.1というリソース(主語)は、http://example.com/example1.4というリソース(目的語)を持つ(大伯父)というプロパティ(述語)を持っている。 The resource (subject) http://example.com/example1.1 has a property (predicate) called (great uncle) that has a resource (object) http://example.com/example1.4 .
図9は、データリポジトリサーバ101のグラフデータ記憶部210に記憶されるグラフ形式のデータ例(会社)501に追加プロパティを記述したデータ例(会社)(追加プロパティ)901の内容例を示す図である。
FIG. 9 is a diagram showing a content example of a data example (company) (additional property) 901 in which an additional property is described in a graph format data example (company) 501 stored in the graph
データ例(会社)(追加プロパティ)901には、追加プロパティ(企業規模)902、が記述されている。 In the data example (company) (additional property) 901, an additional property (company scale) 902 is described.
データ例(会社)(追加プロパティ)901には、http://example.com/example2というリソースがある。 Data example (company) (additional property) 901 has a resource of http://example.com/example2.
http://example.com/example2というリソース(主語)は、「小規模」というリテラル(目的語)を持つ(企業規模)というプロパティ(述語)を持っている。 A resource (subject) of http://example.com/example2 has a property (predicate) called “enterprise scale” having a literal “object” of “small”.
図10は、データリポジトリサーバ101からユーザ端末102へインターネット等のネットワーク103を介して送信される情報を、出力部304においてユーザ端末102のユーザに提示した追加プロパティ・リテラル登録画面1001の構成例及びプロパティ追加タブ1002の構成例を示す図である。
FIG. 10 is a configuration example of an additional property /
追加プロパティ・リテラル登録画面1001は、ウェブブラウザ等のウインドウ上に表示される。追加プロパティ・リテラル登録画面1001は、プロパティ追加タブ1002、プロパティとリテラル追加タブ1003、が配置される。
The additional property /
プロパティ追加タブ1002及びプロパティとリテラル追加タブ1003は、タブとしてではなく、画面としてそれぞれ独立していてもよい。また、プロパティ追加タブ1002及びプロパティとリテラル追加タブ1003に配置される各部品が同一のタブやページに配置されていてもよい。
The
プロパティ追加タブ1002は、追加プロパティ名入力ボックス1004、スキーマ選択ボックス1005、作成したクエリ表示エリア1006、利用プロパティ・リテラル条件選択エリア1007、利用プロパティ・リテラル条件選択チェックボックス1008、利用プロパティ・リテラル条件表示テキストボックス1009、終端リソース指定ラジオボタン1010、追加プロパティ登録ボタン1011、が配置される。
追加プロパティ名入力ボックス1004には、追加プロパティ名を入力する。例えば、クエリ作成画面601のクエリ作成エリア605に例示されているクエリでは、http://example.com/example1.1というリソースからみて大伯父の関係にあたるhttp://example.com/example1.4というリソースの氏名を取得するクエリを記述している。
In an additional property
そこで、http://example.com/example1.1というリソースを主語とし、http://example.com/example1.4というリソースを目的語にした場合の述語を大伯父とし、追加プロパティ名入力ボックス1004に、新しく追加するプロパティ名として「大伯父」と入力する。 Therefore, if the resource http://example.com/example1.1 is the subject and the resource http://example.com/example1.4 is the object, the predicate is the great uncle, and an additional property name input box In “1004”, enter “Great Uncle” as the property name to be newly added.
スキーマ選択ボックス1005には、クエリに利用したスキーマが候補として表示され、新しく追加するプロパティを追加するスキーマを選択する。新しく追加するプロパティをクエリに利用したスキーマ以外に追加する場合は、スキーマ選択ボックス1005に、直接スキーマのURLを入力する。
In the
作成したクエリ表示エリア1006には、クエリ作成画面601のクエリ作成エリア605で作成されたクエリが表示される。
In the created
例えば、クエリ作成画面601のクエリ作成エリア605に例示されているクエリを作成した場合は、作成したクエリ表示エリア1006に例示されるように表示される。
For example, when a query exemplified in the
利用プロパティ・リテラル条件選択エリア1007には、追加プロパティに必要なプロパティやリテラル条件の候補等が表示される。これらは、作成したクエリ1006から、その要素を抽出し、プロパティやリテラル条件の候補として表示することにより、ユーザが必要なものを選択することを容易にしている。
In the use property / literal
追加プロパティに必要なプロパティやリテラル条件の候補は利用プロパティ・リテラル条件表示テキストボックス1009に表示される。追加プロパティに必要なプロパティやリテラル条件の選択には利用プロパティ・リテラル条件選択チェックボックス1008を利用する。追加プロパティの目的語となるリソースの選択には終端リソース指定ラジオボタン1010を利用する。
Properties and literal condition candidates necessary for the additional properties are displayed in the use property / literal condition
利用プロパティ・リテラル条件選択エリア1007には、作成したクエリ1006に含まれるプロパティやリテラル条件を全て表示してもよい。ただし、必要性の低いものは予め表示から除くようにしてもよい。例えば、図6のクエリ作成画面601のクエリ作成エリア605に例示されているクエリを入力した場合は、利用プロパティ・リテラル条件選択エリア1007に例示されるように表示される。
In the use property / literal
クエリ作成画面601のクエリ作成エリア605に例示されているクエリでは、WHERE句に、4つの条件が記述されているが、(?x)を取得するクエリであるため、(?c p1:氏名 ?x)という条件は追加プロパティに必要ではなく、利用プロパティ・リテラル条件選択エリア1007には必要なプロパティやリテラル条件の候補として表示されない。
In the query illustrated in the
クエリ作成画面601のクエリ作成エリア605に例示されているクエリにおいて、大伯父という関係に必要なプロパティは、(祖父)と(兄)であり、氏名が「田中三郎」であるという条件(?a p1:氏名 田中三郎)は必要ではない。そこで、祖父という関係(?a p1:祖父 ?b)と兄という関係(?b p1:兄 ?c)が表示されている利用プロパティ・リテラル条件表示テキストボックス1009に対応する、利用プロパティ・リテラル条件選択チェックボックス1008をチェックする。
In the query illustrated in the
クエリ作成画面601のクエリ作成エリア605に例示されているクエリにおいて、大伯父という関係は祖父の兄であり、追加プロパティの目的語は(兄)というプロパティの目的語である(?c)である。そこで、(?c)を目的語に持つ(兄)というプロパティが表示されている、利用プロパティ・リテラル条件テキストボックス1009に対応する終端リソース指定ラジオボタン1010を選択する。
In the query illustrated in the
なお、作成したクエリ1006から、クエリ作成エリア605に示すクエリを抽出する際に、後述の非重要プロパティ情報1401を用いて、非重要でない(重要な)プロパティのみを表示するように構成することもできる。
In addition, when extracting the query shown in the
追加プロパティ登録ボタン1011を押下すると、追加プロパティ名入力ボックス1004に入力した内容や、利用プロパティ・リテラル条件選択エリア1007に入力した内容などが、インターネット等のネットワーク103を介してデータリポジトリサーバ101に送信される。データリポジトリサーバ101では、追加プロパティ登録部206が、追加プロパティを追加プロパティ記憶部209に登録したり、非重要プロパティ記憶部208にプロパティ情報を追加したりする。
When the additional
追加プロパティは、図8のデータ例(人間)(追加プロパティ)801の追加プロパティ(大伯父)802のように、データリポジトリサーバ101のグラフデータ記憶部210に記憶されるグラフ形式のデータに直接記述することができる。また、図13の追加プロパティ情報1301の追加プロパティ(大伯父)1302のように、データリポジトリサーバ101の追加プロパティ記憶部209に記憶されてもいい。
The additional property is described directly in the data in the graph format stored in the graph
非重要プロパティは、図14の非重要プロパティ情報1401のように、データリポジトリサーバ101の非重要プロパティ記憶部208に記憶される。
The non-important property is stored in the non-important
図11は、追加プロパティ・リテラル登録画面1001を構成する、プロパティとリテラル追加タブ1003の構成例を示す図である。
FIG. 11 is a diagram showing a configuration example of a property and
プロパティとリテラル追加タブ1003は、追加プロパティ名入力ボックス1101、スキーマ選択ボックス1102、追加リテラル入力ボックス1103、作成したクエリ表示エリア1104、利用プロパティ・リテラル条件選択エリア1105、利用プロパティ・リテラル条件選択チェックボックス1106、利用プロパティ・リテラル条件表示テキストボックス1107、追加プロパティとリテラル登録ボタン1108、が配置される。
Property and
プロパティとリテラル追加タブ1003に例示されている内容は、クエリ作成画面601のクエリ作成エリア605に、データ例(社会)501に対し、所在地が神奈川県横浜市で、従業員数が5名以下の企業規模が小規模の企業名を検索するためのクエリを入力したことを想定する。
The property and
追加プロパティ名入力ボックス1101には、追加プロパティ名を入力する。そこで、追加プロパティ名入力ボックス1101に、新しく追加するプロパティ名として「企業規模」と入力する。
In an additional property
さらに、従業員数が5名以下の企業規模が小規模の企業の(企業規模)というプロパティの目的語として、追加リテラル入力ボックス1103に、新しく追加するリテラルとして「小規模」と入力する。
Furthermore, “small” is input as a new literal to be added to the additional
スキーマ選択ボックス1102には、クエリに利用したスキーマが候補として表示され、新しく追加するプロパティを追加するスキーマを選択する。新しく追加するプロパティをクエリに利用したスキーマ以外に追加する場合は、スキーマ選択ボックス1102に、直接スキーマのURLを入力する。
In the
作成したクエリ表示エリア1104には、クエリ作成画面601のクエリ作成エリア605で作成されたクエリが表示される。
In the created
利用プロパティ・リテラル条件選択エリア1105には、追加プロパティに必要なプロパティやリテラル条件の候補等が表示される。
In the use property / literal
追加プロパティに必要なプロパティやリテラル条件の候補は利用プロパティ・リテラル条件表示テキストボックス1107に表示される。追加プロパティに必要なプロパティやリテラル条件の選択には利用プロパティ・リテラル条件選択チェックボックス1106を利用する。
Properties and literal condition candidates necessary for the additional property are displayed in a use property / literal condition
作成したクエリ表示エリア1104に例示されているクエリでは、WHERE句に、3つの条件が記述されているが、(?x)を取得するクエリであるため、(?a p2:企業名 ?x)という条件は追加プロパティに必要ではなく、利用プロパティ・リテラル条件選択エリア1105には必要なプロパティやリテラル条件の候補として表示されない。
In the query illustrated in the created
作成したクエリ表示エリア1104に例示されているクエリにおいて、企業規模という関係に必要なプロパティは、従業員数であり、所在地が神奈川県横浜市であるという条件(?a p2:所在地 神奈川県横浜市)は必要ではない。そこで、従業員数という関係(?a p2:従業員数 <= 5)が表示されている利用プロパティ・リテラル条件表示テキストボックス1107に対応する利用プロパティ・リテラル条件選択チェックボックス1106をチェックする。
In the query illustrated in the created
また、図10と同様に、後述の非重要プロパティ情報1401を用いて、非重要でない(重要な)プロパティのみを利用プロパティ・リテラル条件選択エリア1105に表示するように構成することもできる。
Similarly to FIG. 10, it is also possible to display only non-important (important) properties in the use property / literal
追加プロパティとリテラル登録ボタン1108を押下すると、追加プロパティ名入力ボックス1101や追加リテラル1103に入力した内容、利用プロパティ・リテラル条件選択エリア1105に入力した内容などが、インターネット等のネットワーク103を介してデータリポジトリサーバ101に送信され、追加プロパティ登録部206が、追加プロパティを追加プロパティ記憶部209に登録したり、非重要プロパティ記憶部208にプロパティ情報を追加したりする。
When the additional property and
追加プロパティは、データ例(会社)(追加プロパティ)901の追加プロパティ(企業規模)902のように、データリポジトリサーバ101のグラフデータ記憶部210に記憶されるグラフ形式のデータに直接記述されてもいいし、追加プロパティ情報1301の追加プロパティ(企業規模)1303ように、データリポジトリサーバ101の追加プロパティ記憶部209に記憶されてもいい。
The additional property can be described directly in the graph format data stored in the graph
非重要プロパティは、非重要プロパティ情報1401のように、データリポジトリサーバ101の非重要プロパティ記憶部208に記憶される
図12は、クエリ作成画面601にて追加プロパティを利用したクエリを作成する際の作成例を示す図である。
The non-important property is stored in the non-important
クエリ作成画面601の利用可能プロパティ表示エリア604には、追加プロパティを含む利用可能プロパティ例1201が表示されている。
In the available
例えば、データ例(人間)(追加プロパティ)801のhttp://example.com/example1.1というリソースを対象に利用可能なプロパティを検索すると、(親)、(祖父)、(氏名)だけではなく、(大伯父)というプロパティも利用可能であるという検索結果を得ることが出来る。 For example, if you search for a property that can be used for the resource http://example.com/example1.1 in the data example (human) (additional property) 801, only (parent), (grandfather), (name) And you can get a search result that the property (Dae Uncle) is also available.
クエリ作成エリア605には、利用可能プロパティ検索結果604に表示された追加プロパティを含む利用可能プロパティ例1201等を利用して作成したクエリ作成例1202が表示されている。
In the
例えば、データ例(人間)(追加プロパティ)801の、(氏名)というプロパティに「田中三郎」というリテラルを持つリソースの、(大伯父)というプロパティの目的語となるリソースの、(氏名)というプロパティの目的語となるリテラルを取得するクエリを、追加プロパティを利用してクエリ作成例1202のように作成することが出来る。 For example, in the data example (human) (additional property) 801, the property (name) of the resource that has the literal name "Saburo Tanaka" in the property (name) and the resource that is the object of the property (Daihaku) A query that obtains a literal that is the object of can be created as shown in query creation example 1202 using additional properties.
図13は、データリポジトリサーバ101の追加プロパティ記憶部209に記憶される追加プロパティ情報1301の内容例を示す図である。追加したプロパティは、例えば図8の(大伯父)のように、直接グラフデータベースに追加することもできる。しかし、グラフデータベース本体を改変せずに、別の追加プロパティ情報として保存することもできる。
FIG. 13 is a diagram showing a content example of the
追加プロパティ情報1301は、追加されたプロパティの主語や目的語となるリソースやリテラルが記述されている。
The
例えば、図10のプロパティ追加タブ1002に例示されている内容を登録した場合、追加プロパティ情報は追加プロパティ(大伯父)1302に例示されているように記述される。図11のプロパティとリテラル追加タブ1003に例示されている内容を登録した場合、追加プロパティ情報は追加プロパティ(企業規模)1303に例示されているように記述される。
For example, when the contents illustrated in the
追加プロパティ(大伯父)1302では、追加プロパティの主語となるリソースをrootというプロパティにて指定する。そして、主語となるリソースの祖父の兄の関係にあたるリソースが、主語となるリソースの大伯父という関係であることを表している。 In the additional property (Daiki) 1302, the resource that is the subject of the additional property is specified by the property root. This indicates that the resource corresponding to the grandfather of the grandfather of the subject resource is the relationship of the great uncle of the subject resource.
以上のように、追加プロパティ情報には、例えば、追加されたプロパティ(述語)、追加プロパティの主語となるリソース、および追加プロパティの目的語となるリソースが記述されている。 As described above, in the additional property information, for example, the added property (predicate), the resource that is the subject of the additional property, and the resource that is the object of the additional property are described.
追加プロパティ(企業規模)1303では、追加プロパティの主語となるリソースをrootというプロパティにて指定する。そして、従業員数が5名以下であれば、(企業規模)という述語(プロパティ)があり、企業規模という述語の目的語として「小規模」というリテラルがあることを表している。 In the additional property (enterprise scale) 1303, the resource that is the subject of the additional property is specified by the property root. If the number of employees is 5 or less, there is a predicate (property) called (company size), and the literal of “small” is the object of the predicate called company size.
以上のように、追加プロパティ情報の他の例には、リテラルの条件、追加されたプロパティ(述語)、追加プロパティの主語となるリソース、および追加プロパティの目的語となるリテラルが記述されている。目的語となるリテラル(例えば「小規模」)は、リテラルの条件(例えば「従業員数が5名以下」)で定義される。 As described above, in another example of additional property information, a literal condition, an added property (predicate), a resource that is the subject of the additional property, and a literal that is the object of the additional property are described. A literal (for example, “small”) as an object is defined by a literal condition (for example, “the number of employees is 5 or less”).
追加プロパティを使用する場合には、上記の追加プロパティ情報を検索し、当該追加プロパティを構成しているプロパティやリテラルを知ることができる。 In the case of using an additional property, it is possible to retrieve the above additional property information and know the properties and literals constituting the additional property.
上記の追加プロパティ情報1301のフォーマットは、追加されたプロパティの主語や目的語となるリソースやリテラルが理解できればよく、種々変更可能である。
The format of the
図14は、データリポジトリサーバ101の非重要プロパティ記憶部208に記憶される非重要プロパティ情報1401の内容例を示す図である。
FIG. 14 is a diagram showing a content example of the
非重要プロパティ情報1401は、プロパティURI1402、プロパティのPREFIX1403、プロパティの名称1404、プロパティの表示回数1405、非重要回数1406、非重要度1407により構成される。
The
クエリ作成画面601のクエリ実行ボタン606が押下された際、データリポジトリサーバ101のクエリ検証部205は、クエリ作成エリア605に入力されたプロパティの情報が非重要プロパティ情報1401に登録されているかどうか確認し、登録されていない場合、新しくプロパティ情報(レコード)としてプロパティURI1402、PREFIX1403、名称1404を非重要プロパティ情報1401に登録する。
When the
プロパティ追加タブ1002の追加プロパティ登録ボタン1011、もしくはプロパティとリテラル追加タブ1003の追加プロパティとリテラル登録ボタン1108が押下された際、データリポジトリサーバ101のクエリ検証部205は、利用プロパティ・リテラル条件選択エリア1007の利用プロパティ・リテラル条件表示テキストボックス1009、もしくは利用プロパティ・リテラル条件選択エリア1105の利用プロパティ・リテラル条件表示テキストボックス1107に表示されているプロパティと同じ名称を持つプロパティ情報の表示回数1405を1増加させる。
When the additional
プロパティ追加タブ1002の追加プロパティ登録ボタン1011(もしくはプロパティとリテラル追加タブ1003の追加プロパティとリテラル登録ボタン1108)が押下された際、データリポジトリサーバ101のクエリ検証部205は、利用プロパティ・リテラル条件選択エリア1007の利用プロパティ・リテラル条件表示テキストボックス1009(もしくは利用プロパティ・リテラル条件選択エリア1105の利用プロパティ・リテラル条件表示テキストボックス1107)に表示され、かつ対応する利用プロパティ・リテラル条件選択チェックボックス1008(もしくは利用プロパティ・リテラル条件選択チェックボックス1106)がチェックされていないプロパティと同じ名称を持つプロパティ情報の非重要回数1406を1増加させる。さらに、非重要回数1406を表示回数1405で割り、非重要度1407を算出する。
When the additional
非重要プロパティ情報1401の非重要度1407は、各プロパティ1402が追加プロパティ登録時に利用されなかった割合を示している。非重要度1407が大きなプロパティは、追加プロパティを定義する際に、不要な関係や条件であることを示している。非重要度1407は、クエリ検証部205の検証制度を向上するために利用する。なお、重要か非重要かは相対的な尺度であるから、非重要度1407の代わりに、追加プロパティ登録時に利用されたプロパティの重み付けを大きくする、重要度のフラグを用いてもよいことはいうまでもない。
The
上記の非重要プロパティ情報1401のフォーマットは、追加されたプロパティの主語や目的語となるリソースやリテラルが判別できる範囲で、種々変更可能である。
The format of the above-mentioned
図15は、クエリ作成画面601、及び追加プロパティ・リテラル登録画面1001、を利用して追加プロパティを登録する際の追加プロパティ登録フロー1501を示す図である。
FIG. 15 is a diagram showing an additional
ユーザ端末102のユーザは、利用可能プロパティ検索対象リソース入力ボックス602に、利用可能プロパティ検索の対象となるリソースのURIを入力し、利用可能プロパティ検索ボタン603を押下する(s1502)。
The user of the
データリポジトリサーバ101は、利用可能プロパティ検索対象リソース入力ボックス602に入力された内容を、インターネット等のネットワーク103を介して受信する。そして、利用可能プロパティ検索部204が、利用可能プロパティ検索対象リソース入力ボックス602に入力されたリソースが利用可能なプロパティを、グラフデータ記憶部210に記憶されたデータを対象に検索する。利用可能プロパティ検索ボタン603を押下した結果、検索で得られた利用可能プロパティを、利用可能プロパティ検索結果604に表示する(s1503)。
The
ユーザ端末102のユーザは、利用可能プロパティ検索結果604に表示された利用可能プロパティ等を利用してクエリを作成する。クエリ作成エリア605に作成したクエリを入力し、クエリ実行ボタン606を押下する(s1504)。
The user of the
データリポジトリサーバ101は、クエリ作成エリア605に入力された内容を、インターネット等のネットワーク103を介して受信する。そして、クエリ検証部205が、クエリ作成エリア605に入力されたクエリから、プロパティ数や条件数を取得する。
The
例えば、図6のクエリ作成画面601のクエリ作成エリア605に例示されているクエリでは、プロパティ数は、(氏名)、(兄)、(祖父)の3つとなり、条件数は氏名が「田中三郎」であるという1つである(s1505)。
For example, in the query illustrated in the
ここで、クエリ検証(s1505)の精度は、非重要プロパティ情報1401を利用して向上を図ることができる。例えば、図14に示す非重要度1407は、プロパティ名称1404(氏名)で高く、(兄)、(祖父)で低い。これは、例えば(大伯父)という関係を定義しようとした場合、(氏名)というプロパティは意味がなく、(兄)、(祖父)というプロパティが重要であることを意味する。非重要プロパティ情報1401には、このような追加プロパティ生成時に取得した過去データが蓄積されている。そこで、クエリ検証(s1505)では、例えば、非重要度1407に所定閾値を設け、閾値より非重要度1407が高いプロパティについては、除外してカウントする。例えば図14の例で、非重要度1407が0.8以上を除外するとすれば、図6の例では、プロパティ数は、(兄)、(祖父)の2つとなる。
Here, the accuracy of the query verification (s1505) can be improved by using the
なお、上記のように閾値より非重要度1407が高いプロパティについて、除外してカウントした場合、除外したプロパティについては、図10で説明した利用プロパティ・リテラル条件選択エリア1007に表示する候補からは、除くように構成することができる。
In addition, when the property having the non-importance 1407 higher than the threshold is excluded and counted as described above, the excluded property is selected from the candidates displayed in the use property / literal
クエリ検証部205が、プロパティ数や条件数が閾値を超えたと判定した場合、追加プロパティ登録部206はユーザ端末102に指示を送り、追加プロパティ・リテラル登録画面1001を表示する。閾値は、事前に決定してもいいし、都度計算等により変更してもいい(s1506)。なお、プロパティ数としては、検索のホップ数を用いてもよい。
When the
このようにクエリ検証(s1505)で閾値を用いることにより、複雑なクエリが発生した際に、新規にプロパティやリテラルを追加する機会を設けることができる。また、閾値を満たさない場合は、新規にプロパティやリテラルを追加する必要性が小さいので、(s1507)〜(s1509)をスキップしてクエリを実行する(s1510)。 As described above, by using the threshold value in the query verification (s1505), when a complicated query is generated, an opportunity to newly add a property or a literal can be provided. When the threshold value is not satisfied, the necessity of adding a new property or literal is small, so the query is executed by skipping (s1507) to (s1509) (s1510).
追加プロパティ・リテラル登録画面1001上で、ユーザ端末102のユーザは、プロパティを追加する場合はプロパティ追加タブ1002を追加し、プロパティとリテラルを追加する場合はプロパティとリテラル追加タブ1003を選択する(s1507)。なお、追加プロパティ・リテラル登録画面1001を表示する前に、ユーザに、プロパティなどの追加を行うかどうかを選択させる入力画面を表示してもよい。
On the additional property /
プロパティ追加タブ1002を選択した場合は、追加プロパティ名1004、利用プロパティ・リテラル条件選択エリア1007の利用プロパティ・リテラル条件選択チェックボックス1008、終端リソース指定ラジオボタン1010、を選択し、追加プロパティ登録ボタン1011を押下する。終端リソースを指定することにより、プロパティの構造を明確に定義することができる。
If the
プロパティとリテラル追加タブ1003を選択した場合は、追加プロパティ名1101、追加リテラル1103、利用プロパティ・リテラル条件選択エリア1105の利用プロパティ・リテラル条件選択チェックボックス1106を選択し、追加プロパティとリテラル登録ボタン1108を押下する(s1507)。
When the property and
データリポジトリサーバ101は、追加プロパティ名入力ボックス1004、利用プロパティ・リテラル条件選択チェックボックス1008、終端リソース指定ラジオボタン1010、追加プロパティ名入力ボックス1101、追加リテラル入力ボックス1103、利用プロパティ・リテラル条件選択チェックボックス1008、などに入力・選択された内容を、インターネット等のネットワーク103を介して受信する。受信した内容に基づいて、追加プロパティ登録部206が、追加プロパティを定義し、追加プロパティ情報1301として追加プロパティ記憶部209に登録する。あるいは、グラフデータ記憶部210のデータに、直接追加プロパティを記述する(s1508)。また、非重要プロパティ記憶部208にプロパティ情報を追加する(s1509)。
データリポジトリサーバ101は、クエリ作成画面601のクエリ作成エリア605に入力されたクエリを、グラフデータ記憶部210に記憶されたデータに対し実行する。そして、クエリの実行結果をクエリ実行結果画面701のクエリ実行結果703に表示する(s1510)。
The
ユーザ端末102のユーザは、クエリ実行結果画面701のクエリ実行結果703に表示されたクエリ実行結果を確認する(s1511)。
The user of the
図16は、クエリ作成画面601を利用して追加プロパティを含むクエリを作成する際のクエリ作成フロー1601を示す図である。
FIG. 16 is a diagram showing a
ユーザ端末102のユーザは、利用可能プロパティ検索対象リソース入力ボックス602に、利用可能プロパティ検索の対象となるリソースのURIを入力し、利用可能プロパティ検索ボタン603を押下する(s1602)。
The user of the
データリポジトリサーバ101は、利用可能プロパティ検索対象リソース入力ボックス602に入力された内容を、インターネット等のネットワーク103を介して受信しする。そして、利用可能プロパティ検索部204が、利用可能プロパティ検索対象リソース入力ボックス602に入力されたリソースが利用可能なプロパティを、グラフデータ記憶部210に記憶されたデータを対象に検索する。
The
追加プロパティがグラフデータ記憶部210のデータに直接記述されていない場合は、追加プロパティ記憶部209に記憶された追加プロパティ情報(図13参照)を利用し、利用可能プロパティ検索対象リソース入力ボックス602に入力されたリソースが利用可能なプロパティから利用可能な追加プロパティも検索する。
If the additional property is not directly described in the data of the graph
利用可能プロパティ検索ボタン603を押下した結果得られた利用可能プロパティを、利用可能プロパティ検索結果604に表示する(s1603)。
The available properties obtained as a result of pressing the available
ユーザ端末102のユーザは、利用可能プロパティ検索結果604に表示された利用可能プロパティ等を利用してクエリを作成し、クエリ作成エリア605に作成したクエリを入力し、クエリ実行ボタン606を押下する(s1604)。
The user of the
データリポジトリサーバ101は、クエリ作成エリア605に入力された内容を、インターネット等のネットワーク103を介して受信し、クエリ検証部205が、クエリ作成エリア605に入力されたクエリから、データリポジトリサーバ101の追加プロパティ記憶部209に登録された追加プロパティが利用されていないかどうか確認する(s1605)。
The
クエリ作成エリア605に入力されたクエリに、データリポジトリサーバ101の追加プロパティ記憶部209に登録された追加プロパティが利用されている場合、追加プロパティを、クエリを実行可能なプロパティに変換する(s1606)。すなわち、データリポジトリサーバ101は、追加プロパティを、データリポジトリサーバ101の追加プロパティ記憶部209に登録された追加プロパティ情報を基に、追加プロパティを構成する複数のプロパティに変換する。
When an additional property registered in the additional
追加プロパティが、データリポジトリサーバ101のグラフデータ記憶部210に記憶されるグラフ形式のデータに直接記述されている場合は、追加プロパティ情報を基に、追加プロパティを構成する複数のプロパティに変換する必要はない(s1607)。
When the additional property is directly described in the graph format data stored in the graph
データリポジトリサーバ101は、変換された複数のプロパティを含むクエリを、グラフデータ記憶部210に記憶されたデータに対し実行する。クエリの実行結果は、クエリ実行結果画面701のクエリ実行結果703に表示する(s1608)。
The
ユーザ端末102のユーザは、クエリ実行結果画面701のクエリ実行結果703に表示されたクエリ実行結果を確認する(s1609)。
The user of the
以上、本発明の実施例を、グラフデータのうちRDF形式のデータを例にとり説明したが、本発明の適用先がRDF形式のデータもしくはRDF形式のデータに類するものに限定されるわけではなく、その要旨を逸脱しない範囲で種々変更可能である。例えば、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることが可能である。また、各実施例の構成の一部について、他の実施例の構成の追加・削除・置換をすることが可能である。 As described above, the embodiment of the present invention has been described by taking the RDF format data as an example of the graph data, but the application destination of the present invention is not limited to the RDF format data or the RDF format data, Various changes can be made without departing from the scope of the invention. For example, a part of the configuration of one embodiment can be replaced with the configuration of another embodiment, and the configuration of another embodiment can be added to the configuration of one embodiment. Further, it is possible to add, delete, and replace the configurations of other embodiments with respect to a part of the configurations of the embodiments.
また、データリポジトリサーバ101の機能の全部または一部をユーザ端末102が含んでもよく、ユーザ端末102の機能の全部または一部をデータリポジトリサーバ101に含んでもよい。
Further, the
本発明は、グラフデータベースに対して、クエリの作成を支援する技術に利用することができる。 INDUSTRIAL APPLICABILITY The present invention can be used for a technique that supports creation of a query for a graph database.
1・・・データ問い合わせサービス、101・・・データリポジトリサーバ、102・・・ユーザ端末、103・・・インターネット等のネットワーク、201・・・制御部、202・・・ネットワークインタフェース部、203・・・ウェブサービス提供記憶部、204・・・利用可能プロパティ検索部、205・・・クエリ検証部、206・・・追加プロパティ登録部、207・・・クエリ実行部、208・・・非重要プロパティ記憶部、209・・・追加プロパティ記憶部、210・・・グラフデータ記憶部、211・・・グラフデータ更新部、212・・・BUS、301・・・制御部、302・・・ネットワークインタフェース部、303・・・入力部、304・・・出力部、305・・・BUS、401・・・データ例(人間)、501・・・データ例(会社)、601・・・クエリ作成画面、602・・・利用可能プロパティ検索対象リソース入力ボックス、603・・・利用可能プロパティ検索ボタン、604・・・利用可能プロパティ表示エリア、605・・・クエリ作成エリア、606・・・クエリ実行ボタン、701・・・クエリ実行結果画面、702・・・作成したクエリ表示エリア、703・・・クエリ実行結果テーブル、801・・・データ例(人間)(追加プロパティ)、802・・・追加プロパティ(大伯父)、901・・・データ例(会社)(追加プロパティ)、802・・・追加プロパティ(企業規模)、1001・・・追加プロパティ・リテラル登録画面、1002・・・プロパティ追加タブ、1003・・・プロパティとリテラル追加タブ、1004・・・追加プロパティ名入力ボックス、1006・・・作成したクエリ表示エリア、1007・・・利用プロパティ・リテラル条件選択エリア、1008・・・利用プロパティ・リテラル条件選択チェックボックス、1009・・・利用プロパティ・リテラル表示テキストボックス、1010・・・終端リソース選択ラジオボタン、1011・・・追加プロパティ登録ボタン、1101・・・追加プロパティ名入力ボックス、1103・・・追加リテラル入力ボックス、1104・・・作成したクエリ入力ボックス、1105・・・利用プロパティ・リテラル条件選択エリア、1106・・・利用プロパティ・リテラル条件選択チェックボックス、1107・・・利用プロパティ・リテラル条件表示テキストボックス、1108・・・追加プロパティとリテラル登録ボタン、1201・・・利用可能プロパティ例、1202・・・クエリ作成例、1301・・・追加プロパティ情報、1302・・・追加プロパティ(大伯父)、1303・・・追加プロパティ(企業規模)、1401・・・非重要プロパティ情報、1402・・・プロパティURI、1403・・・PREFIX、1404・・・名称、1405・・・表示回数、1406・・・非重要回数、1407・・・非重要度、1501・・・追加プロパティ登録フロー、1601・・・クエリ作成フロー。
DESCRIPTION OF
Claims (15)
ユーザが作成したクエリに基づいて、プロパティおよびリテラルの条件の少なくともひとつを候補として表示する第1のステップと、
前記第1のステップで表示した候補から、所望の候補をユーザに選択させる第2のステップと、
前記第2のステップで選択された候補に基づいて、前記追加プロパティを登録する第3のステップと、
を備えるクエリ作成支援方法。 In an information processing apparatus having a function of executing a query to a graph database, a property is added, and the added property is a query creation support method that can be used as an additional property for a query.
A first step of displaying at least one of property and literal conditions as candidates based on a user-created query;
A second step for allowing the user to select a desired candidate from the candidates displayed in the first step;
A third step of registering the additional property based on the candidate selected in the second step;
A query creation support method comprising:
前記所望の候補として複数のプロパティをユーザが選択した際に、
選択した複数のプロパティのうち、前記追加プロパティの目的語を持つプロパティに対して、終端リソースの指定を可能とする、請求項1に記載のクエリ作成支援方法。 In the second step,
When a user selects a plurality of properties as the desired candidate,
The query creation support method according to claim 1, wherein a terminal resource can be specified for a property having an object of the additional property among a plurality of selected properties.
ユーザの入力に基づいて、
前記追加プロパティのプロパティ名の設定を行うとともに、当該追加プロパティを追加するスキーマの設定を行う、請求項3に記載のクエリ作成支援方法。 In the second step,
Based on user input
The query creation support method according to claim 3, wherein a property name of the additional property is set and a schema for adding the additional property is set.
前記所望の候補としてリテラルの条件をユーザが選択した際に、
ユーザの入力に基づいて、
前記追加プロパティのプロパティ名の設定を行うとともに、当該追加プロパティを追加するスキーマ、および、当該追加プロパティの目的語として追加するリテラルの設定を行う、請求項1に記載のクエリ作成支援方法。 In the second step,
When the user selects a literal condition as the desired candidate,
Based on user input
The query creation support method according to claim 1, wherein a property name of the additional property is set, and a schema for adding the additional property and a literal to be added as an object of the additional property are set.
前記追加プロパティを、前記グラフデータベースのグラフ形式のデータに直接記述する、請求項1に記載のクエリ作成支援方法。 In the third step,
The query creation support method according to claim 1, wherein the additional property is directly described in graph format data of the graph database.
前記追加プロパティを、前記グラフデータベースのグラフ形式のデータとは別に、追加プロパティ情報として定義し、
前記追加プロパティ情報は、
前記第2のステップで選択されたプロパティ、前記追加プロパティの主語となるリソース、および追加プロパティの目的語となるリソースを記述することにより、追加プロパティを定義した情報である、請求項3に記載のクエリ作成支援方法。 In the third step,
The additional property is defined as additional property information separately from the graph data in the graph database,
The additional property information is
4. The information defining the additional property by describing the property selected in the second step, the resource that is the subject of the additional property, and the resource that is the object of the additional property. Query creation support method.
前記追加プロパティを、前記グラフデータベースのグラフ形式のデータとは別に、追加プロパティ情報として定義し、
前記追加プロパティ情報は、
前記第2のステップで選択されたリテラルの条件、前記追加プロパティの主語となるリソース、および前記追加プロパティの目的語となるリテラルを記述することにより、追加プロパティを定義した情報である、請求項5に記載のクエリ作成支援方法。 In the third step,
The additional property is defined as additional property information separately from the graph data in the graph database,
The additional property information is
6. The information defining the additional property by describing the literal condition selected in the second step, the resource that is the subject of the additional property, and the literal that is the object of the additional property. Query creation support method described in.
前記第3のステップにおいて、
前記第2のステップで選択されなかったプロパティに対する、前記重み付けを変更する、請求項2に記載のクエリ作成支援方法。 Stores non-important property information weighted for each property,
In the third step,
The query creation support method according to claim 2, wherein the weighting is changed with respect to the property not selected in the second step.
前記重み付けに基づいて所定のプロパティを除外してカウントする、請求項9に記載のクエリ作成支援方法。 When determining whether at least one of the number of properties described in the query created by the user and the number of literal conditions exceeds a predetermined threshold,
The query creation support method according to claim 9, wherein counting is performed by excluding a predetermined property based on the weighting.
記憶したグラフデータを入力されたクエリで検索するクエリ実行モジュールと、
ユーザが入力したクエリのプロパティ数および条件数の少なくとも一つに基づいて、追加プロパティの登録処理を行うかどうかを判定する、クエリ検証モジュールと、
前記追加プロパティの登録処理を行うために、ユーザに選択されたプロパティに基づいて追加プロパティを定義する、追加プロパティ登録モジュールと、
前記追加プロパティを含めて、クエリに利用可能なプロパティを検索する、利用可能プロパティ検索モジュールと、
を備える情報処理装置。 An information processing apparatus comprising an input device, an output device, a processing device, and a storage device,
A query execution module that searches stored graph data with the input query;
A query validation module that determines whether to perform additional property registration processing based on at least one of the number of query properties and the number of conditions entered by the user;
An additional property registration module for defining an additional property based on a property selected by the user in order to perform the registration process of the additional property;
An available property search module that searches for properties that can be used in a query, including the additional properties;
An information processing apparatus comprising:
前記追加プロパティの登録処理を行うために、ユーザに選択されたか否かにより、各プロパティの重み付けを変更し、
前記クエリ検証モジュールは、
前記重み付けを用いて、前記判定を行う、
請求項11記載の情報処理装置。 The additional property registration module
In order to perform the registration process of the additional property, the weight of each property is changed depending on whether or not the user has selected,
The query validation module
The determination is performed using the weighting.
The information processing apparatus according to claim 11.
前記追加プロパティを前記グラフデータに追加する機能、および、前記追加プロパティを追加プロパティ記憶部に記憶させる機能の少なくともひとつを持ち、
前記利用可能プロパティ検索モジュールは、
前記グラフデータ、および、前記追加プロパティ記憶部の少なくともひとつを検索する、
請求項11に記載の情報処理装置。 The additional property registration module
Having at least one of a function of adding the additional property to the graph data and a function of storing the additional property in an additional property storage unit;
The available property search module includes:
Searching for at least one of the graph data and the additional property storage unit;
The information processing apparatus according to claim 11.
前記追加プロパティの登録処理を行うために、ユーザにプロパティを選択させ、前記追加プロパティのプロパティ名と、当該追加プロパティを追加するスキーマの設定を行う設定画面を表示させる、
請求項11に記載の情報処理装置。 The additional property registration module
In order to perform registration processing of the additional property, the user selects a property, and a setting screen for setting a property name of the additional property and a schema for adding the additional property is displayed.
The information processing apparatus according to claim 11.
ユーザにプロパティを選択させる際に、ユーザが選択したプロパティのうち、前記追加プロパティの目的語を持つプロパティに対して、終端リソースの指定を可能とする、
請求項14に記載の情報処理装置。 The additional property registration module
When the user selects a property, it is possible to specify a terminal resource for a property having the object of the additional property among the properties selected by the user.
The information processing apparatus according to claim 14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015178961A JP6463240B2 (en) | 2015-09-10 | 2015-09-10 | Query creation support method and information processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015178961A JP6463240B2 (en) | 2015-09-10 | 2015-09-10 | Query creation support method and information processing apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017054387A true JP2017054387A (en) | 2017-03-16 |
JP6463240B2 JP6463240B2 (en) | 2019-01-30 |
Family
ID=58316775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015178961A Active JP6463240B2 (en) | 2015-09-10 | 2015-09-10 | Query creation support method and information processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6463240B2 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005141691A (en) * | 2003-11-10 | 2005-06-02 | Nippon Telegr & Teleph Corp <Ntt> | Schema extension system |
JP2006313499A (en) * | 2005-05-09 | 2006-11-16 | Nippon Telegr & Teleph Corp <Ntt> | Extended query graph pattern generation device and method, program for generation and extended subgraph retrieval device and method using the same and program for retrieval |
JP2009087339A (en) * | 2007-09-27 | 2009-04-23 | Nec (China) Co Ltd | Method and device for importing/exporting ontology data |
US20100153412A1 (en) * | 2008-12-15 | 2010-06-17 | Robert Mavrov | User Interface and Methods for Building Structural Queries |
JP2012027685A (en) * | 2010-07-23 | 2012-02-09 | Internatl Business Mach Corp <Ibm> | Information management system, method, and program |
JP2013069136A (en) * | 2011-09-22 | 2013-04-18 | Fuji Xerox Co Ltd | Searching apparatus and program |
WO2013111287A1 (en) * | 2012-01-25 | 2013-08-01 | 株式会社日立製作所 | Sparql query optimization method |
-
2015
- 2015-09-10 JP JP2015178961A patent/JP6463240B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005141691A (en) * | 2003-11-10 | 2005-06-02 | Nippon Telegr & Teleph Corp <Ntt> | Schema extension system |
JP2006313499A (en) * | 2005-05-09 | 2006-11-16 | Nippon Telegr & Teleph Corp <Ntt> | Extended query graph pattern generation device and method, program for generation and extended subgraph retrieval device and method using the same and program for retrieval |
JP2009087339A (en) * | 2007-09-27 | 2009-04-23 | Nec (China) Co Ltd | Method and device for importing/exporting ontology data |
US20100153412A1 (en) * | 2008-12-15 | 2010-06-17 | Robert Mavrov | User Interface and Methods for Building Structural Queries |
JP2012027685A (en) * | 2010-07-23 | 2012-02-09 | Internatl Business Mach Corp <Ibm> | Information management system, method, and program |
JP2013069136A (en) * | 2011-09-22 | 2013-04-18 | Fuji Xerox Co Ltd | Searching apparatus and program |
WO2013111287A1 (en) * | 2012-01-25 | 2013-08-01 | 株式会社日立製作所 | Sparql query optimization method |
Non-Patent Citations (1)
Title |
---|
朴 斌、外1名: "セマンティック・ウェブ上のリソースの探索的検索・可視化フレームワーク", 電子情報通信学会論文誌D, vol. 第J98−D巻,第1号, JPN6018048831, 19 February 2015 (2015-02-19), JP, pages 193 - 205, ISSN: 0003937068 * |
Also Published As
Publication number | Publication date |
---|---|
JP6463240B2 (en) | 2019-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108292323B (en) | Database operations using metadata of data sources | |
US10915233B2 (en) | Automated entity correlation and classification across heterogeneous datasets | |
US10891272B2 (en) | Declarative language and visualization system for recommended data transformations and repairs | |
WO2014010082A1 (en) | Retrieval device, method for controlling retrieval device, and recording medium | |
US8615526B2 (en) | Markup language based query and file generation | |
JP6411800B2 (en) | Information management apparatus, information management system, and information management program | |
US11151112B2 (en) | Correlating multiple tables in a non-relational database environment | |
KR20170073693A (en) | Extracting similar group elements | |
JP2019153271A5 (en) | ||
JP2018504686A (en) | Method and apparatus for processing search data | |
US11693859B2 (en) | Systems and methods for data retrieval from a database indexed by an external search engine | |
US20220156245A1 (en) | System and method for managing custom fields | |
US20150199399A1 (en) | Query generator | |
JP6463240B2 (en) | Query creation support method and information processing apparatus | |
JP6634938B2 (en) | Analysis support method, analysis support program, and analysis support device | |
US10331715B2 (en) | Metadata enrichment with a keyword definition editor | |
JP6708253B2 (en) | Evaluation program, evaluation device, and evaluation method | |
US11327994B2 (en) | Arranging converted operation history information | |
US10204106B2 (en) | Management method, management device, and management system | |
US10360243B2 (en) | Storage medium, information presentation method, and information presentation apparatus | |
JP2016053919A (en) | Server device and program | |
JP6339932B2 (en) | Data management apparatus, data management method, and data management program | |
JP6256079B2 (en) | Search program, search method, and search device | |
JP2014149613A (en) | Inter-item relation analysis device | |
WO2020162174A1 (en) | Analysis device, analysis method, and analysis program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20171222 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20181106 |
|
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: 20181211 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20181228 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6463240 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |