JP2003216626A - Structured document processing apparatus, method and program - Google Patents

Structured document processing apparatus, method and program

Info

Publication number
JP2003216626A
JP2003216626A JP2002011830A JP2002011830A JP2003216626A JP 2003216626 A JP2003216626 A JP 2003216626A JP 2002011830 A JP2002011830 A JP 2002011830A JP 2002011830 A JP2002011830 A JP 2002011830A JP 2003216626 A JP2003216626 A JP 2003216626A
Authority
JP
Japan
Prior art keywords
structured document
document
database
constraint
input
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.)
Abandoned
Application number
JP2002011830A
Other languages
Japanese (ja)
Inventor
Makoto Imamura
誠 今村
Katsushi Suzuki
克志 鈴木
Osamu Moriguchi
修 森口
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2002011830A priority Critical patent/JP2003216626A/en
Publication of JP2003216626A publication Critical patent/JP2003216626A/en
Abandoned legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To simplify a program in the development of a structured document processing function. <P>SOLUTION: The structured document processing apparatus includes a database 3 for storing the relationship between data; a database operation processing part 4 for executing such operation as retrieving data from the database 3; a database/structured document converting process part 6 for converting the data from the database 3 into an intermediate structured document 6; a document rule file 1 for specifying limitations on the relationship between element contents in an input structured document or documents; and a limitation canceling process part 7 which, upon the input of the input structured document 2 and the intermediate structured document 6, verifies whether or not the input structured document 2 satisfies the relationship limitations specified in the document rule file 1. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、電子商取引(E
C:Electronic Commerce)やCA
LS(Commerce At Light Spee
d)において、XML(eXtensible Mar
kup Language)やSGML(Standa
rd Generalized Markup Lan
guage)等の構造化文書を企業間や企業内の組織間
で円滑に流通させるために必要とされる構造化文書処理
装置、構造化文書処理方法及び構造化文書処理プログラ
ムに関するものである。
TECHNICAL FIELD The present invention relates to electronic commerce (E
C: Electronic Commerce) and CA
LS (Commerce At Light Speed)
In d), XML (eXtensible Mar)
kup Language) and SGML (Standard)
rd Generalized Markup Lan
The present invention relates to a structured document processing device, a structured document processing method, and a structured document processing program required for smoothly distributing a structured document such as a document) between companies or organizations within a company.

【0002】[0002]

【従来の技術】ECやCALSの進展に伴って、情報シ
ステムで処理できる文書データを企業間で交換したいと
いう要求が高まっており、この要求に応える構造化文書
標準フォーマットとして、ISO(Internati
onal StandardOrganizatio
n)規格8879のSGMLやW3C(World W
ide Web Consortium)が制定するX
ML(http://www.w3.org/TR/2
000/REC−xml−20001006)がある。
2. Description of the Related Art With the progress of EC and CALS, there is an increasing demand for exchanging document data that can be processed by information systems among companies. As a structured document standard format to meet this demand, ISO (Internati)
onal Standard Organizatio
n) Standard 8879 SGML and W3C (World W)
X established by the idea Web Consortium)
ML (http://www.w3.org/TR/2
000 / REC-xml-20001006).

【0003】そして、企業間電子商取引の分野では、発
注書や見積回答書を表現する構造化文書の内容と、勘定
システムや在庫管理システムのデータベース(DB)の
内容との整合性を検証する等の複数の構造化文書とデー
タベースにまたがる文書処理機能を開発したいという要
求がある。この要求に応えるための関連技術として、構
造化文書とデータベース間のデータ交換処理方式があ
る。これは、構造化文書の内容をデータベースに登録し
たり、データベースの内容を構造化文書に出力したりす
る方式である。
In the field of electronic commerce between companies, the consistency between the contents of the structured document expressing the purchase order and the quotation reply and the contents of the database (DB) of the accounting system and the inventory management system is verified. There is a need to develop a document processing function that spans multiple structured documents and databases in. As a related technology to meet this demand, there is a data exchange processing method between a structured document and a database. This is a method of registering the contents of a structured document in a database and outputting the contents of the database to a structured document.

【0004】図17は例えば特開2001−92695
公報の「構造化文書とデータベースのデータ交換処理方
法及びそのプログラムを記録した媒体」に開示された従
来の構造化文書処理装置の構成を示すブロック図であ
る。図において、101は構造化文書104からデータ
を受け入れたり、構造化文書104にデータを提供する
データベース、102はデータマッピング支援機能プロ
グラム部品103を利用するアプリケーションプログラ
ム、103はデータ交換処理方式を実装するデータマッ
ピング支援機能プログラム部品、104はデータの抽出
及び埋め込みの客体となる構造化文書、105はデータ
交換の方法を定義したデータマッピング支援ファイルで
ある。
FIG. 17 shows, for example, Japanese Patent Laid-Open No. 2001-92695.
FIG. 1 is a block diagram showing a configuration of a conventional structured document processing device disclosed in “a structured document / database data exchange processing method and a medium in which a program thereof is recorded” of the publication. In the figure, 101 is a database that receives data from the structured document 104 and provides data to the structured document 104, 102 is an application program that uses the data mapping support function program component 103, and 103 is a data exchange processing method. A data mapping support function program component, 104 is a structured document that is an object for data extraction and embedding, and 105 is a data mapping support file that defines a data exchange method.

【0005】また、図17において、106はアプリケ
ーションプログラム102の指示により、データマッピ
ング支援ファイル105の内容がデータマッピング支援
機能プログラム部品103内に読み込まれたテンプレー
トデータ、107はテンプレートデータ106の中から
選択されたデータベース101にアクセスするためのコ
マンド文字列、108はデータベース101をアクセス
することで得た検索結果データである。
In FIG. 17, reference numeral 106 is template data in which the contents of the data mapping support file 105 are read into the data mapping support function program component 103 according to an instruction from the application program 102, and 107 is selected from the template data 106. A command character string for accessing the created database 101, and 108 is search result data obtained by accessing the database 101.

【0006】次に動作について説明する。データマッピ
ング支援機能プログラム部品103は、テンプレートデ
ータ106を参照して、データベース101を検索する
ためのコマンド文字列107を生成し、データベース1
01に対する検索処理を実行して検索結果データ108
を得る。次いで、データマッピング支援機能プログラム
部品103は、構造化文書104へのデータ取込方法を
記述したデータマッピング支援ファイル105を参照し
ながら、検索結果データ108を構造化文書104に埋
め込む。
Next, the operation will be described. The data mapping support function program component 103 refers to the template data 106 to generate a command character string 107 for searching the database 101, and
The search result data 108 is executed by executing the search process for 01.
To get Next, the data mapping support function program component 103 embeds the search result data 108 in the structured document 104 with reference to the data mapping support file 105 that describes the method of importing data into the structured document 104.

【0007】上記の方法によれば、データマッピング支
援ファイル105を外部ファイルとすることにより、J
ava(R)等のプログラミング言語を用いた開発が不
要となり、プログラムシステム開発におけるプログラミ
ングを簡潔にすることで、データベース101の内容を
構造化文書104に出力する機能の開発と保守を効率化
することができる。
According to the above method, the data mapping support file 105 is set as an external file so that J
Development using a programming language such as ava (R) is not required, and programming in program system development is simplified to streamline the development and maintenance of the function of outputting the contents of the database 101 to the structured document 104. You can

【0008】しかし、以下に示すような複数の構造化文
書とデータベースにわたる応用機能を実現するには、J
ava(R)等のプログラミング言語を用いて、応用機
能に依存した別途のプログラム開発が必要となる。 (1)複数の構造化文書とデータベースとの整合性検証
機能 例えば、構造化文書である発注仕様書中で申請されてい
る部品の番号が、全てデータベースに登録されているか
どうか、また、データベースに登録されている部品番号
が全て発注仕様書に含まれているかどうかを検証する機
能である。 (2)複数の構造化文書とデータベースの内容を参照し
た構造化文書生成機能 例えば、発注先会社の電話番号が変更になった場合に、
発注先の会社名をキーとしてデータベースの内容を参照
することにより、構造化文書である発注仕様書中の発注
先会社の電話番号を変更後のものに自動修正する機能で
ある。 (3)複数の構造化文書とデータベースの内容を統合し
たデータベース登録機能 例えば、海外への発注を想定した場合に、為替レートを
記載した構造化文書を参照しながら、外貨金額の円建費
用を代入した結果得られた他の構造化文書である発注仕
様書の内容をデータベースに登録する機能である。
However, in order to realize the application function across a plurality of structured documents and databases as described below, J
It is necessary to develop a separate program depending on the application function using a programming language such as ava (R). (1) Consistency verification function between a plurality of structured documents and a database For example, whether all the component numbers applied for in the ordering specifications, which are structured documents, are registered in the database, It is a function to verify whether all the registered part numbers are included in the order specifications. (2) Structured document generation function that refers to the contents of a plurality of structured documents and database For example, when the telephone number of the ordering company is changed,
This is a function for automatically correcting the telephone number of the ordering company in the ordering specification, which is a structured document, by referring to the contents of the database using the company name of the ordering party as a key. (3) Database registration function that integrates a plurality of structured documents and database contents For example, when ordering to an overseas country, refer to the structured document that describes the exchange rate and calculate the yen-denominated cost of the foreign currency amount. This is a function of registering the contents of the ordering specification, which is another structured document obtained as a result of the substitution, in the database.

【0009】[0009]

【発明が解決しようとする課題】従来の構造化文書処理
装置は以上のように構成されているので、データベース
の内容からの構造化文書生成機能の開発におけるプログ
ラミングを簡潔にすることができるが、複数の構造化文
書とデータベースにまたがる整合性検証機能、構造化文
書生成機能、及びデータベース登録機能等の構造化文書
処理機能については、Java(R)等のプログラミン
グ言語による別途の開発が必要となり、開発と保守の効
率が改善されないという課題があった。
Since the conventional structured document processing apparatus is configured as described above, programming in developing a structured document generation function from the contents of the database can be simplified. Structured document processing functions such as a consistency verification function across a plurality of structured documents and databases, a structured document generation function, and a database registration function require separate development in a programming language such as Java (R). There was a problem that the efficiency of development and maintenance was not improved.

【0010】この発明は上記のような課題を解決するた
めになされたもので、構造化文書処理の仕様を規定する
文書規約を外部ファイルとして実現することにより、複
数の構造化文書とデータベースにまたがる構造化文書処
理機能の開発において、Java(R)等のプログラミ
ング言語による別途の開発が不要となり、プログラミン
グを簡潔にすることができる構造化文書処理装置、構造
化文書処理方法及び構造化文書処理プログラムを得るこ
とを目的とする。
The present invention has been made in order to solve the above-mentioned problems, and by implementing a document rule that defines the specifications of structured document processing as an external file, it spans a plurality of structured documents and databases. A structured document processing device, a structured document processing method, and a structured document processing program, which do not require a separate development in a programming language such as Java (R) in the development of the structured document processing function and can simplify programming. Aim to get.

【0011】[0011]

【課題を解決するための手段】この発明に係る構造化文
書処理装置は、数値、テキスト、バイナリ等のデータと
それらのデータ間の関係を格納するデータベースと、こ
のデータベースに対してデータの検索、登録、更新、削
除等の操作を実行するデータベース操作処理部と、この
データベース操作処理部に上記データベースに対する操
作を依頼し、上記データベース操作処理部により上記デ
ータベースから得られたデータを中間構造化文書に変換
するデータベース/構造化文書変換処理部と、1つある
いは複数の入力構造化文書又は上記中間構造化文書にお
ける要素内容間の関係制約を規定する文書規約ファイル
と、上記入力構造化文書及び上記中間構造化文書、又は
上記入力構造化文書若しくは上記中間構造化文書を入力
し、上記入力構造化文書若しくは上記中間構造化文書が
上記文書規約ファイルに規定されている関係制約を満足
するか否かを検証するか、又は上記関係制約を満足する
ように上記入力構造化文書若しくは上記中間構造化文書
を変換する制約解消処理部とを備えたものである。
A structured document processing device according to the present invention includes a database for storing data such as numerical values, texts, and binary data and a relationship between the data, and a data search for the database. A database operation processing unit that executes operations such as registration, update, and deletion, and requests the database operation processing unit to operate the database, and the data obtained from the database by the database operation processing unit is converted into an intermediate structured document. A database / structured document conversion processing unit for conversion, a document rule file that defines a relational constraint between element contents in one or more input structured documents or the intermediate structured document, the input structured document, and the intermediate Input the structured document, the input structured document or the intermediate structured document, and It is verified whether the document or the intermediate structured document satisfies the relationship constraint defined in the document rule file, or the input structured document or the intermediate structured document is satisfied so as to satisfy the relationship constraint. And a constraint resolution processing unit for converting

【0012】この発明に係る構造化文書処理装置は、文
書規約ファイルに規定されている関係制約中に、データ
ベースに対してデータの検索、登録、更新、削除等の命
令を規定する質問言語記述を備え、制約解消処理部が、
上記文書規約ファイルに備えられている質問言語記述を
使用して、データベース/構造化文書変換処理部による
操作を実行させるものである。
In the structured document processing device according to the present invention, a query language description that prescribes commands for data retrieval, registration, update, deletion, etc. to the database is included in the relational constraints prescribed in the document rule file. Prepared, the constraint resolution processing unit,
The question language description provided in the document rule file is used to execute the operation by the database / structured document conversion processing unit.

【0013】この発明に係る構造化文書処理装置は、文
書規約ファイルに規定されている関係制約中に、データ
ベースに対する質問言語記述におけるテーブル名、タプ
ル名、カラム名と、入力構造化文書又は中間構造化文書
の要素名や属性名との対応関係を規定するデータベース
/文書関係制約記述を備え、データベース/構造化文書
変換処理部が、上記文書規約ファイルに備えられている
データベース/文書関係制約記述を参照して、上記デー
タベースから得られたデータを中間構造化文書に変換す
るものである。
In the structured document processing device according to the present invention, the table name, the tuple name, the column name in the query language description for the database and the input structured document or the intermediate structure are included in the relation constraint defined in the document rule file. The database / structured document conversion processing unit is provided with a database / document relation constraint description that defines the correspondence relationship between the element name and the attribute name of the structured document. With reference, the data obtained from the database is converted into an intermediate structured document.

【0014】この発明に係る構造化文書処理装置は、文
書規約ファイルに規定されている関係制約中に、この関
係制約が対象とする要素や属性がどの入力構造化文書又
は中間構造化文書に含まれているものかを指定する文書
文脈記述を備え、制約解消処理部が、上記文書規約ファ
イルに備えられている文書文脈記述を参照して、上記入
力構造化文書若しくは上記中間構造化文書における要素
内容間の関係制約を満足するか否かを検証するか、又は
上記関係制約を満足するように上記入力構造化文書若し
くは上記中間構造化文書を変換するものである。
In the structured document processing device according to the present invention, in the input constraint document or the intermediate structured document, the element or attribute targeted by the relational constraint is included in the relational constraint defined in the document rule file. The document in the input structured document or the intermediate structured document is referred to by the constraint resolution processing unit by referring to the document context description provided in the document rule file. It verifies whether or not the relationship constraint between contents is satisfied, or transforms the input structured document or the intermediate structured document so as to satisfy the relationship constraint.

【0015】この発明に係る構造化文書処理装置は、文
書規約ファイルに規定されている関係制約中に、入力構
造化文書中又は中間構造化文書中に複数個繰り返し出現
する要素の各々に対する関係制約を記述するための全称
限量子記述を備え、制約解消処理部が、上記文書規約フ
ァイルに備えられている全称限量子記述を参照して、上
記入力構造化文書若しくは上記中間構造化文書における
要素内容間の関係制約を満足するか否かを検証するか、
又は上記関係制約を満足するように上記入力構造化文書
若しくは上記中間構造化文書を変換するものである。
In the structured document processing device according to the present invention, the relational constraint for each of a plurality of elements repeatedly appearing in the input structured document or the intermediate structured document in the relational constraint defined in the document rule file. A universal quantification description for describing the above, and the constraint resolution processing section refers to the universal quantification description provided in the document rule file to refer to the element contents in the input structured document or the intermediate structured document. Whether to verify whether the relationship constraint between
Alternatively, the input structured document or the intermediate structured document is converted so as to satisfy the relationship constraint.

【0016】この発明に係る構造化文書処理装置は、制
約解消処理部が、文書規約ファイルに規定されている関
係制約を満足するか否かを検証して検証情報として出力
するものである。
In the structured document processing device according to the present invention, the constraint resolution processing section verifies whether or not the relational constraint defined in the document rule file is satisfied and outputs it as verification information.

【0017】この発明に係る構造化文書処理装置は、制
約解消処理部が、データベースの内容を入力構造化文書
に代入した結果得られる出力構造化文書を出力するもの
である。
In the structured document processing device according to the present invention, the constraint resolution processing section outputs the output structured document obtained as a result of substituting the contents of the database into the input structured document.

【0018】この発明に係る構造化文書処理装置は、文
書規約ファイルに規定されている関係制約中に、データ
ベースに対してデータの検索、登録、更新、削除等の命
令を規定する質問言語記述と、この質問言語記述におけ
るテーブル名、タプル名、カラム名と、入力構造化文書
の要素名や属性名との対応関係を規定するデータベース
/文書関係制約記述とを備え、制約解消処理部が、上記
文書規約ファイルに備えられている質問言語記述とデー
タベース/文書関係制約記述に基づいて、入力構造化文
書の内容をデータベースに登録するものである。
The structured document processing device according to the present invention includes a query language description that defines commands for searching, registering, updating, deleting, etc., of data in the database in the relational constraint defined in the document rule file. , A table / tuple name / column name in this question language description, and a database / document relation constraint description that defines the correspondence relation between the element name and the attribute name of the input structured document. The contents of the input structured document are registered in the database based on the question language description and the database / document relation constraint description provided in the document rule file.

【0019】この発明に係る構造化文書処理方法は、数
値、テキスト、バイナリ等のデータとそれらのデータ間
の関係を格納するデータベースに対してデータの検索、
登録、更新、削除等の操作を実行するデータベース操作
ステップと、上記データベースから得られたデータを中
間構造化文書に変換するデータベース/構造化文書変換
ステップと、1つあるいは複数の入力構造化文書及び上
記中間構造化文書、又は上記入力構造化文書若しくは上
記中間構造化文書を入力し、上記入力構造化文書若しく
は上記中間構造化文書が文書規約ファイルに規定されて
いる上記入力構造化文書若しくは上記中間構造化文書に
おける要素内容間の関係制約を満足するか否かを検証す
るか、又は上記関係制約を満足するように上記入力構造
化文書若しくは上記中間構造化文書を変換する制約解消
ステップとを備えたものである。
According to the structured document processing method of the present invention, data retrieval is performed with respect to a database that stores data such as numerical values, texts, and binary data and the relationship between these data.
A database operation step for executing operations such as registration, update, deletion, etc., a database / structured document conversion step for converting data obtained from the database into an intermediate structured document, and one or more input structured documents and The intermediate structured document, or the input structured document or the intermediate structured document is input, and the input structured document or the intermediate structured document is defined in the document rule file. A constraint resolution step of verifying whether or not a relational constraint between element contents in the structured document is satisfied, or converting the input structured document or the intermediate structured document so as to satisfy the relational constraint. It is a thing.

【0020】この発明に係る構造化文書処理プログラム
は、数値、テキスト、バイナリ等のデータとそれらのデ
ータ間の関係を格納するデータベースに対してデータの
検索、登録、更新、削除等の操作を実行するデータベー
ス操作手順と、上記データベースから得られたデータを
中間構造化文書に変換するデータベース/構造化文書変
換手順と、1つあるいは複数の入力構造化文書及び上記
中間構造化文書、又は上記入力構造化文書若しくは上記
中間構造化文書を入力し、上記入力構造化文書若しくは
上記中間構造化文書が文書規約ファイルに規定されてい
る上記入力構造化文書若しくは上記中間構造化文書にお
ける要素内容間の関係制約を満足するか否かを検証する
か、又は上記関係制約を満足するように上記入力構造化
文書若しくは上記中間構造化文書を変換する制約解消手
順とをコンピュータに実行させるものである。
A structured document processing program according to the present invention executes operations such as data search, registration, update, and deletion with respect to a database that stores data such as numerical values, texts, and binary data and the relationship between these data. Database operation procedure, database / structured document conversion procedure for converting data obtained from the database into an intermediate structured document, one or more input structured documents and the intermediate structured document, or the input structure The structured document or the intermediate structured document is input, and the input structured document or the intermediate structured document is specified in the document rule file. The input structured document or the relational constraint between the element contents in the intermediate structured document. Whether the input structured document or the above input structured document is satisfied so that the relational constraint is satisfied. A constraint releasing procedure to convert between structured document is intended to be executed by a computer.

【0021】[0021]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。なお、この発明による構造化文書処理装置は
構造化文書処理プログラムに従って動作するコンピュー
タシステムで構成されている。 実施の形態1.図1はこの発明の実施の形態1による構
造化文書処理装置の構成を示すブロック図である。この
実施の形態1は、入力構造化文書である発注仕様書中で
申請されている部品の番号が、全てデータベースに登録
されているかどうか、また、データベースに登録されて
いる部品番号が全て発注仕様書に含まれているかどうか
を検証する機能の実現例を示すものである。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below. The structured document processing device according to the present invention comprises a computer system that operates according to a structured document processing program. Embodiment 1. 1 is a block diagram showing the structure of a structured document processing device according to a first embodiment of the present invention. In the first embodiment, whether or not all the numbers of the parts applied in the order specification which is the input structured document are registered in the database, and the part numbers registered in the database are all the order specifications. It shows an implementation example of the function of verifying whether the document is included.

【0022】図1において、実線矢印はデータの流れを
示し、点線矢印は制御の流れを示している。1は1つあ
るいは複数の入力構造化文書又は中間構造化文書におけ
る要素内容間の関係制約を規定する文書規約を格納する
文書規約ファイルである。文書規約ファイル1中の文書
規約は、特開2001−75958公報の「構造化文書
処理装置及び構造化文書処理方法」に開示された既知の
技術である文書規約記述言語の関係制約の記述におい
て、質問言語記述11、データベース/文書関係制約記
述12、文書文脈記述13及び全称限量子記述14を加
えて拡張したものである。
In FIG. 1, solid arrows show the flow of data, and dotted arrows show the flow of control. Reference numeral 1 is a document rule file that stores a document rule that defines relational constraints between element contents in one or a plurality of input structured documents or intermediate structured documents. The document rule in the document rule file 1 is the known technique disclosed in “Structured Document Processing Apparatus and Structured Document Processing Method” of Japanese Patent Laid-Open No. 2001-75958, The query language description 11, the database / document relation constraint description 12, the document context description 13, and the universal quantum description 14 are expanded and added.

【0023】また、図1において、2は制約解消処理部
7の入力となる構造化文書である入力構造化文書で、こ
の入力構造化文書2は複数であっても良い。3は数値、
テキスト及びバイナリ等のデータとそれらのデータ間の
関係を格納するデータベースであり、関係形式データベ
ース、オブジェクト指向データベース、及びXML文書
データベース等の既存技術で実現されているものとす
る。4はデータベース3に対してデータの検索、登録、
更新及び削除等の操作を実行するデータベース操作処理
部であり、データベース3と同様に既存技術で実現され
ている。
Further, in FIG. 1, reference numeral 2 denotes an input structured document which is a structured document which is an input to the constraint resolution processing section 7, and there may be a plurality of input structured documents 2. 3 is a numerical value,
It is a database that stores data such as text and binary and the relationship between these data, and is realized by existing technologies such as a relational format database, an object-oriented database, and an XML document database. 4 is data search, registration,
It is a database operation processing unit that executes operations such as updating and deleting, and is realized by existing technology, like the database 3.

【0024】さらに、図1において、5はデータベース
操作処理部4に対して、データベース3への質問言語等
によりデータベース3に対する操作を依頼し、その操作
により得られたデータを中間構造化文書に変換し、変換
した中間構造化文書を、コンピュータのメモリ上に生成
するか、又は外部ファイルとして出力するデータベース
/構造化文書変換処理部であり、6はデータベース/構
造化文書変換処理部5が生成又は出力する中間構造化文
書である。
Further, in FIG. 1, reference numeral 5 requests the database operation processing section 4 to operate the database 3 by using a query language for the database 3 and converts the data obtained by the operation into an intermediate structured document. Then, 6 is a database / structured document conversion processing unit 5 for generating the converted intermediate structured document on the memory of the computer or outputting it as an external file. This is an intermediate structured document to be output.

【0025】ここで、データベース/構造化文書変換処
理部5が生成又は出力する中間構造化文書6は、W3C
規格であるXML1.0を満たすような構造化文書だけ
でなく、XML文書内の一部分を指し示すための言語で
あるW3C規格Xpath(XML Path Lan
guage:http://www.w3.org/T
R/1999/REC−xpath−1999111
6)を評価した結果得られるオブジェクトであるノード
集合、ブール値、数値及び文字列であっても良いものと
する。
The intermediate structured document 6 generated or output by the database / structured document conversion processing unit 5 is the W3C.
The W3C standard Xpath (XML Path Lan), which is a language for indicating not only a structured document that satisfies the standard XML 1.0 but also a part in the XML document
Guage: http: // www. w3. org / T
R / 1999 / REC-xpath-1999111
A node set, a Boolean value, a numerical value, and a character string, which are objects obtained as a result of evaluating 6), may be used.

【0026】さらに、図1において、7は外部プログラ
ムからのAPI(Application Progr
amming Interface)呼び出しや、コマ
ンドインタフェースから起動され、入力構造化文書2及
び中間構造化文書6、又は入力構造化文書2若しくは中
間構造化文書6を読み込んで、入力構造化文書2の内容
若しくは中間構造化文書6の内容が、文書規約ファイル
1に規定されている関係制約を満足するか否かを検証す
るか、又は関係制約を満足するように入力構造化文書若
しくは中間構造化文書6を変換して出力する制約解消処
理部である。8は制約解消処理部7が出力する出力構造
化文書で、9は制約解消処理部7が出力する検証結果を
示す検証情報である。
Further, in FIG. 1, 7 is an API (Application Program) from an external program.
The input structured document 2 and the intermediate structured document 6, or the input structured document 2 or the intermediate structured document 6 is read, and the content or the intermediate structure of the input structured document 2 is read. Whether the contents of the structured document 6 satisfy the relational constraint defined in the document rule file 1 or convert the input structured document or the intermediate structured document 6 so as to satisfy the relational constraint. It is a constraint resolution processing unit that outputs as a result. Reference numeral 8 is an output structured document output by the constraint resolution processing unit 7, and reference numeral 9 is verification information indicating the verification result output by the constraint resolution processing unit 7.

【0027】さらに、図1において、質問言語記述11
はデータベース3への検索、登録、削除及び更新等の命
令を規定する記述であり、データベース/文書関係制約
記述12はデータベース3への質問言語記述11中のテ
ーブル名、タプル名(テーブル中の1行分)及びカラム
名と、入力構造化文書2又は中間構造化文書6の要素名
や属性名との対応関係を規定する記述であり、文書文脈
記述13は関係制約が対象とする要素や属性がどの入力
構造化文書2又は中間構造化文書6に含まれているもの
かを指定する記述であり、全称限量子記述14は入力構
造化文書2中又は中間構造化文書6中に複数個繰り返し
出現する要素の各々に対する関係制約の記述である。
Further, referring to FIG. 1, the question language description 11
Is a description that prescribes commands such as search, registration, deletion, and update to the database 3, and the database / document relation constraint description 12 is a table name and tuple name (1 in the table) in the query language description 11 to the database 3. (Line portion) and column names, and the element names and attribute names of the input structured document 2 or the intermediate structured document 6 are defined, and the document context description 13 is an element or attribute targeted by the relationship constraint. Is a description that specifies which input structured document 2 or intermediate structured document 6 is included. A plurality of universal quantized quantum descriptions 14 are repeated in the input structured document 2 or the intermediate structured document 6. It is a description of relational constraints for each of the appearing elements.

【0028】図2は制約解消処理部7を起動するための
コマンドの例を示す図であり、これらのコマンドは、A
PIやコマンドインタフェースから呼び出される。図2
(a)に示すコマンドは実施の形態1で使用するコマン
ドであり、『文書規約ファイル「発注仕様書規約a.d
rdl」中の文書規約を構成する関係制約を満たすよう
に、checkオプションで、制約解消処理を実行せ
よ』という意味である。図2(b)、図2(c)に示す
コマンドについては、それぞれ後述の実施の形態2、実
施の形態3で説明する。
FIG. 2 is a diagram showing an example of commands for activating the constraint resolution processing unit 7. These commands are A
It is called from the PI or command interface. Figure 2
The command shown in (a) is a command used in the first embodiment, and the "document rule file" order specification rule rule a.d.
“Rdl”, execute constraint elimination processing with the check option so as to satisfy the relational constraint that constitutes the document convention ”. The commands shown in FIGS. 2B and 2C will be described in Embodiments 2 and 3 described later, respectively.

【0029】図3は文書規約ファイル1に記載された文
書規約の例を示す図であり、図2(a)のコマンド中で
参照されている発注仕様書規約a.drdlの例を示し
ている。この文書規約は1つあるいは複数の構造化文書
2における要素内容間の関係制約を表現する制約式から
構成されている。
FIG. 3 is a diagram showing an example of the document rule described in the document rule file 1. The order specification document rule a. Referred to in the command of FIG. An example of drdl is shown. This document convention is composed of constraint expressions that express relational constraints between element contents in one or a plurality of structured documents 2.

【0030】図3に示す文書規約の意味は、制約解消処
理部7をcheckオプションで起動した場合には、
『構造化文書「発注仕様書.xml」の要素「部品番
号」の内容と、5行目から7行目にあるデータベース3
への質問言語記述11による検索結果として得られる内
容とが等しいかどうかをチェックせよ。そして、等しく
ない場合には、検証結果として、「データベースと発注
仕様書.xmlの内容に整合性がとれていません。」を
出力せよ』である。
The meaning of the document convention shown in FIG. 3 is that, when the constraint resolution processing unit 7 is activated with the check option,
"Contents of the element" part number "of the structured document" order specification.xml "and the database 3 on the 5th to 7th lines
Check whether the contents obtained as a search result by the question language description 11 are equal to each other. If they are not equal, output "the database and order specification.xml are inconsistent." As the verification result. "

【0031】図3の5行目から7行目の質問言語記述1
1の意味は、関係形式データベースの質問言語の標準で
あるSQL(Structured Query La
nguage)に従うものとする。ただし、7行目の
「#PathContext(仕様書ID)」は文書文
脈記述13の例であり、データベース3の質問言語記述
11中で、XML文書中の要素内容を参照するために用
いられる。「#PathContext(仕様書I
D)」は、構造化文書「発注仕様書.xml」中の要素
「仕様書ID」の内容を指している。
Question language description 1 on lines 5 to 7 in FIG.
1 means SQL (Structured Query La), which is the standard of the query language of relational format databases.
nguage). However, “#PathContext (specification ID)” on the 7th line is an example of the document context description 13, and is used in the question language description 11 of the database 3 to refer to the element content in the XML document. "#PathContext (Specification I
“D)” indicates the content of the element “specification ID” in the structured document “order specification.xml”.

【0032】図4は「発注仕様書.xml」というファ
イル名で参照される入力構造化文書2の例を示す図であ
る。従って、「発注仕様書.xml」が図4に示す入力
構造化文書の場合には、「#PathContext
(仕様書ID)」は、「S0001」を指している。
FIG. 4 is a diagram showing an example of the input structured document 2 referred to by the file name "order specification.xml". Therefore, in the case where the “order specification.xml” is the input structured document shown in FIG. 4, “#PathContext”
"(Specification ID)" indicates "S0001".

【0033】図5は図4の入力構造化文書2に対応した
構造を持つデータベース3に格納されているテーブルの
例を示す図である。図5(a)は発注仕様書テーブル、
図5(b)は発注部品テーブル、図5(c)は部品管理
テーブル、図5(d)は発注先会社管理テーブルを示す
図である。関係形式データベースの既知技術である正規
化手続きによって、図4の入力構造化文書2中の「仕様
書ID」に相当する部分は「図5(a)発注仕様書テー
ブル」に対応しており、また、図4の入力構造化文書2
中で繰り返し出現する要素「発注部品」に相当する部分
は「図5(b)発注部品テーブル」に対応している。さ
らに、「図5(c)部品管理テーブル」と「図5(d)
発注先会社管理テーブル」は、管理情報変更時のデータ
修正処理を簡単にするために、「図5(b)発注部品テ
ーブル」とは別テーブルとして構成されている。
FIG. 5 is a diagram showing an example of a table stored in the database 3 having a structure corresponding to the input structured document 2 of FIG. Fig. 5 (a) is an order specification table,
5B is a diagram showing an order parts table, FIG. 5C is a parts management table, and FIG. 5D is a view showing an ordering company management table. By the normalization procedure which is a known technique of the relational format database, the part corresponding to the “specification ID” in the input structured document 2 in FIG. 4 corresponds to the “FIG. 5 (a) order specification table”. In addition, the input structured document 2 of FIG.
The part corresponding to the element "ordered parts" that appears repeatedly in the table corresponds to "FIG. 5 (b) ordered parts table". Furthermore, “FIG. 5 (c) parts management table” and “FIG. 5 (d)
The “ordered company management table” is configured as a separate table from the “FIG. 5 (b) ordered parts table” in order to simplify the data correction process when the management information is changed.

【0034】図6はデータベース操作処理部4に対する
操作命令を記述した質問言語の例を示す図である。この
質問言語は文書規約ファイル1に格納された質問言語記
述11に基づいて作成される。図6(a)は実施の形態
1の動作説明中で引用する質問言語を示し、「図5
(b)の発注部品テーブルを読んで、発注仕様書IDが
S0001であるタプルから部品番号の値を取り出す」
という意味である。
FIG. 6 is a diagram showing an example of a query language in which an operation command for the database operation processing unit 4 is described. This question language is created based on the question language description 11 stored in the document rule file 1. FIG. 6A shows the question language quoted in the explanation of the operation of the first embodiment.
Read the ordered parts table in (b), and extract the value of the part number from the tuple whose order specification ID is S0001. "
It means that.

【0035】また、図6(b),(c),(d)は、実
施の形態2の動作説明中で引用する質問言語を示し、図
6(b)は「図5(d)の発注先会社管理テーブルを読
んで、会社名がA社であるタプルから電話番号の値を取
り出す」という意味で、図6(c)は「図5(d)の発
注先会社管理テーブルを読んで、会社名がD社であるタ
プルから電話番号の値を取り出す」という意味である。
また、図6(d)は「図5(d)の発注先会社管理テー
ブルを読んで、会社名がA社とD社であるタプルから会
社名と電話番号の対を取り出す」という意味である。
6 (b), (c), and (d) show the question language quoted in the explanation of the operation of the second embodiment, and FIG. 6 (b) shows "the order of FIG. 5 (d). In order to read the value of the telephone number from the tuple whose company name is Company A by reading the destination company management table, FIG. 6C reads “the ordering company management table of FIG. 5D, The value of the telephone number is extracted from the tuple whose company name is Company D. "
Further, FIG. 6 (d) means "read the ordering company management table of FIG. 5 (d) and retrieve the company name / telephone number pair from the tuples of company A and company D". .

【0036】さらに、図6(e),(f),(g)は、
実施の形態3の動作説明中で引用する質問言語を示し、
図6(e)は「図5(a)の発注仕様書テーブルに、S
0001,製品名1,2001−08−01をタプルと
して登録せよ」という意味で、図6(f)は「図5
(b)の発注部品テーブルに、S0001,P1,1
0,A社,2001−10−01をタプルとして登録せ
よ」という意味で、図6(g)は「図5(b)の発注部
品テーブルに、S0001,P2,20,D社,200
1−10−02をタプルとして登録せよ」という意味で
ある。
Further, FIGS. 6 (e), 6 (f) and 6 (g) are as follows.
The question language quoted in the explanation of the operation of the third embodiment is shown.
FIG. 6 (e) shows "S in the order specification table of FIG. 5 (a),
0001, product name 1, 2001-08-01 should be registered as a tuple. "
In the ordering parts table of (b), S0001, P1, 1
6 (g) in the ordering part table of FIG. 5 (b), S0001, P2, 20, D company, 200 in the sense of "register 0, A company, 2001-10-01 as a tuple".
"1-10-02 should be registered as a tuple".

【0037】図7はデータベース/構造化文書変換処理
部5が生成又は出力する中間構造化文書6の例を示す図
である。図7(a)は図6(a)の質問言語による検索
結果であり、図5(b)の発注部品テーブルのカラム
「d_部品番号」を集めた中間構造化文書6である。X
pathの評価結果のオブジェクトの型としてはテキス
トからなるノード集合に相当する。
FIG. 7 is a diagram showing an example of the intermediate structured document 6 generated or output by the database / structured document conversion processing unit 5. FIG. 7A is a search result in the query language of FIG. 6A, and is an intermediate structured document 6 in which the column “d_part number” of the ordered parts table of FIG. 5B is collected. X
The type of the object of the path evaluation result corresponds to a node set made of text.

【0038】図7(b)は図6(b)の質問言語による
検索結果で、図7(c)は図6(c)の質問言語による
検索結果であり、それぞれ図5(d)の発注先会社管理
テーブルのカラム「d_電話番号」を取り出した中間構
造化文書6である。Xpathの評価結果のオブジェク
トの型としてはテキストに相当する。
FIG. 7B shows the search result in the question language of FIG. 6B, and FIG. 7C shows the search result in the question language of FIG. 6C. It is the intermediate structured document 6 in which the column “d_phone number” of the destination company management table is taken out. The object type of the Xpath evaluation result corresponds to text.

【0039】図7(d)は図6(d)の質問言語による
検索結果であり、図5(d)の発注先会社管理テーブル
中のカラム「d_会社名」とカラム「d_電話番号」の
対を取り出した中間構造化文書6である。
FIG. 7D is a search result in the query language of FIG. 6D, and the column “d_company name” and the column “d_phone number” in the orderee company management table of FIG. 5D are displayed. It is an intermediate structured document 6 in which a pair is taken out.

【0040】図8は制約解消処理部7が出力する検証情
報9の例を示す図である。制約解消処理部7が文書規約
ファイル1に規定されている関係制約を満足するか否か
を検証し、検証結果として出力するものである。
FIG. 8 is a diagram showing an example of the verification information 9 output by the constraint resolution processing section 7. The constraint elimination processing unit 7 verifies whether or not the relational constraint defined in the document regulation file 1 is satisfied, and outputs it as a verification result.

【0041】次に動作について説明する。図9は制約解
消処理部7の全体の動作を示すフローチャートである。
ステップST11において、APIやコマンドインタフ
ェースから図2(a)に示す制約解消処理部7の呼び出
しコマンドを読み込む。ステップST12において、図
2(a)のコマンド中に記載された文書規約ファイル
「発注仕様書規約a.drdl」を読み込む。ここで、
「発注仕様書規約a.drdl」は、図3に示す文書規
約ファイル1とする。
Next, the operation will be described. FIG. 9 is a flowchart showing the overall operation of the constraint resolution processing unit 7.
In step ST11, the call command of the constraint resolution processing unit 7 shown in FIG. 2A is read from the API or command interface. In step ST12, the document rule file “order specification document rule a.drdl” described in the command of FIG. here,
The "order specification document a. Drdl" is the document document file 1 shown in FIG.

【0042】ステップST13において、図3の「発注
仕様書規約a.drdl」中のpath−contex
t−file属性の値である「発注仕様書.xml」を
入力構造化文書2として読み込む。ここで、「発注仕様
書.xml」は、図4に示す入力構造化文書2とする。
また、読み込む入力構造化文書2は、制約解消処理部7
の呼び出しコマンドから直接指定しても良い。この場合
は、制約解消処理部7の呼び出しコマンドの引数として
指定し、すなわち、図2(a)に示す「a.drdl」
の後に引数を記述して、文書規約中の変数を用いてpa
th−context−file属性の値として引き渡
せば良い。
In step ST13, the path-contex in the "order specification document a. Drdl" in FIG.
“Order specification.xml”, which is the value of the t-file attribute, is read as the input structured document 2. Here, "order specification.xml" is the input structured document 2 shown in FIG.
Further, the input structured document 2 to be read is the constraint resolution processing unit 7
It may be specified directly from the call command of. In this case, it is specified as an argument of the call command of the constraint resolution processing unit 7, that is, “a.drdl” shown in FIG.
Argument after ", and pa using the variable in the document convention
It may be passed as the value of the th-context-file attribute.

【0043】ステップST14において、図3の文書規
約ファイル「発注仕様書規約a.drdl」中の文書規
約に基づいて、読み込んだ入力構造化文書2を評価す
る。文書規約に基づく評価の動作は、文書規約を構成す
る関係制約式毎に定めた手順に従うものとする。
In step ST14, the read input structured document 2 is evaluated based on the document rule in the document rule file "order specification document rule a.drdl" in FIG. The evaluation operation based on the document rules shall follow the procedure defined for each relational constraint expression that constitutes the document rules.

【0044】図3の文書規約を構成する関係制約式をP
ath制約式と呼ぶ。図10は図9のステップST14
におけるPath制約式の評価の処理手順を示すフロー
チャートである。ステップST21において、制約解消
処理部7の呼び出しコマンドのオプションが「chec
k」であるか否かを判定する。図2に示すコマンドのオ
プションは「check」なので、ステップST22に
進む。
P is a relational constraint expression forming the document convention of FIG.
It is called an ath constraint formula. FIG. 10 shows step ST14 of FIG.
5 is a flowchart showing a processing procedure for evaluating a Path constraint expression in FIG. In step ST21, the option of the call command of the constraint resolution processing unit 7 is "chec".
k ”is determined. Since the command option shown in FIG. 2 is "check", the process proceeds to step ST22.

【0045】ステップST22において、Path属性
中のXpath式を評価した結果得られるノード集合
と、Value要素中の式(Value式)を評価した
結果得られるノード集合が等しいかどうかを検証し、等
しくないときには、f−msg属性の文字列を検証情報
9として出力する。Path属性の値であるXpath
式「部品番号」を評価した結果は、図4の入力構造化文
書2中の要素「部品番号」の値の集合「{P1,P
2}」であり、Value要素中の式(Value式)
を評価した結果得られるノード集合は、図5(b)の発
注部品テーブルの発注仕様書IDが「S0001」であ
る部品番号から得た図7(a)の中間構造化文書6に示
す集合{P1,P2,P3}である。両者は等しくない
ので、図3の「発注仕様書規約a.drdl」のPat
h制約式のf−msg属性の文字列「データベースと発
注仕様書.xmlの内容に整合性が取れていません。」
が、図8に示す検証情報9として出力される。
In step ST22, it is verified whether or not the node set obtained as a result of evaluating the Xpath expression in the Path attribute and the node set obtained as a result of evaluating the expression (Value expression) in the Value element are not equal. Sometimes, the character string of the f-msg attribute is output as the verification information 9. Xpath that is the value of the Path attribute
The result of evaluating the expression “part number” is the set “{P1, P of the values of the element“ part number ”in the input structured document 2 in FIG.
2} ”, and is an expression (Value expression) in the Value element.
The node set obtained as a result of evaluating is the set {shown in the intermediate structured document 6 in FIG. 7A obtained from the part number whose ordering specification ID is "S0001" in the ordering part table in FIG. 5B. P1, P2, P3}. Since the two are not the same, the Pat of the "order specification document a. Drdl" in FIG.
Character string of f-msg attribute of h constraint expression "The contents of the database and order specifications.xml are not consistent."
Is output as the verification information 9 shown in FIG.

【0046】ここで、上記Value式の評価について
説明する。図11は図3の「発注仕様書規約a.drd
l」の3行名から9行目に示すValue式の評価の処
理手順を示すフローチャートであり、図10のステップ
ST22におけるValue要素中の式(Value
式)の評価の処理手順を示している。図3の4行目から
8行目までは質問言語記述11なので、Value式が
Xpath式でなくSQL文であり、ステップST31
からステップST33に進み、さらにステップST34
に進む。ただし、図3の4行名から8行目までの質問言
語記述11は、関係形式データベースの標準の質問言語
であるSQLで記述している。以下では、SQLで記述
されたデータベース3への操作命令をSQL文と呼ぶ。
Here, the evaluation of the Value expression will be described. Fig. 11 shows "order specification document a. Drd" in Fig. 3.
11 is a flowchart showing a processing procedure for evaluating a Value expression shown from the 3rd line name to the 9th line of "l", which is an expression (Value in the Value element in step ST22 of FIG.
The processing procedure of evaluation of (expression) is shown. Since the fourth to the eighth lines in FIG. 3 are the question language description 11, the Value expression is an SQL statement, not an Xpath expression, and step ST31
To step ST33, and then step ST34
Proceed to. However, the question language description 11 from the fourth line name to the eighth line in FIG. 3 is described in SQL which is the standard question language of the relational database. Below, the operation command to the database 3 described in SQL is called an SQL sentence.

【0047】ステップST34において、SQL文中の
文書文脈記述(#PathContextで囲まれる部
分)13を、その評価結果と置換することにより得られ
るSQL文を実行する。ここで、図3の7行目の文書文
脈記述13「#PathContext(仕様書I
D)」の評価結果は「S0001」なので、評価結果と
置換することにより得られるSQL文は、図6(a)に
示す質問言語となる。図6(a)のSQL文を用いて図
5(b)の発注部品テーブルを検索することにより、図
7(a)の中間構造化文書6に示す集合{P1,P2,
P3}を得る。
In step ST34, the SQL sentence obtained by replacing the document context description (the portion surrounded by #PathContext) 13 in the SQL sentence with the evaluation result is executed. Here, the document context description 13 “#PathContext (specification I
Since the evaluation result of “D)” is “S0001”, the SQL sentence obtained by replacing the evaluation result with the evaluation result becomes the question language shown in FIG. By searching the ordered parts table of FIG. 5B using the SQL statement of FIG. 6A, the set {P1, P2, shown in the intermediate structured document 6 of FIG.
P3} is obtained.

【0048】なお、この実施の形態1では処理されない
が、図11のステップST31で、Value式がXp
ath式である場合には、ステップST32において、
Xpath式を評価する。
Although not processed in the first embodiment, the value expression is Xp in step ST31 of FIG.
If it is the ath type, in step ST32,
Evaluate the Xpath expression.

【0049】この実施の形態1では、入力構造化文書2
は1つであったが、文書規約を構成する関係制約式に論
理和、論理積、否定、及び含意等の論理演算子等を導入
し、複数文書の要素間の関係を記述することができるの
で、入力構造化文書2が複数になった場合でも同様の処
理が実現できる。
In the first embodiment, the input structured document 2
Although there was one, it is possible to describe the relation between elements of multiple documents by introducing logical operators such as logical sum, logical product, negation, and implication in the relational constraint expressions that compose the document conventions. Therefore, even when there are a plurality of input structured documents 2, similar processing can be realized.

【0050】また、この実施の形態1では、制約解消処
理部7が入力構造化文書2及び中間構造化文書6を読み
込んで、入力構造化文書2の内容が文書規約ファイル1
に規定されている関係制約を満足するか否かを検証して
いるが、入力構造化文書2又は中間構造化文書6を読み
込んで、入力構造化文書2の内容又は中間構造化文書6
の内容が、文書規約ファイル1に規定されている関係制
約を満足するか否かを検証するようにしても良い。
Further, in the first embodiment, the constraint elimination processing section 7 reads the input structured document 2 and the intermediate structured document 6, and the contents of the input structured document 2 are the document rule file 1
It is verified whether or not the relational constraint defined in 1. is read, but the input structured document 2 or the intermediate structured document 6 is read, and the contents of the input structured document 2 or the intermediate structured document 6 are read.
It may be possible to verify whether or not the contents of (1) satisfy the relational constraint defined in the document regulation file 1.

【0051】以上のように、この実施の形態1によれ
ば、入力構造化文書2又は中間構造化文書6における要
素内容間の関係制約を規定する文書規約ファイル1を外
部ファイルとし、入力構造化文書2及び中間構造化文書
6、又は入力構造化文書2若しくは中間構造化文書6を
入力し、入力構造化文書2又は中間構造化文書6が文書
規約ファイル1に規定されている関係制約を満足するか
否かを検証する制約解消処理部7を備えたことにより、
入力構造化文書2とデータベース3との整合性検証機能
の開発におけるプログラミングを簡潔にすることができ
るという効果が得られる。
As described above, according to the first embodiment, the document rule file 1 which defines the relational constraint between the element contents in the input structured document 2 or the intermediate structured document 6 is used as an external file, and the input structured The document 2 and the intermediate structured document 6, or the input structured document 2 or the intermediate structured document 6 are input, and the input structured document 2 or the intermediate structured document 6 satisfies the relation constraint defined in the document rule file 1. Since the constraint resolution processing unit 7 for verifying whether or not to perform is provided,
This has the effect of simplifying programming in the development of the consistency verification function between the input structured document 2 and the database 3.

【0052】また、この実施の形態1によれば、文書規
約ファイル1にデータベース3への質問言語記述11を
備えて、外部ファイルとして実現された文書規約を構成
する関係制約に基づいて整合性を検証することにより、
入力構造化文書2の内容とデータベース3の内容とを比
較する処理を実現することができるという効果が得られ
る。
Further, according to the first embodiment, the document rule file 1 is provided with the question language description 11 for the database 3, and the consistency is established on the basis of the relational constraint constituting the document rule realized as an external file. By verifying,
The effect that the process of comparing the contents of the input structured document 2 and the contents of the database 3 can be realized is obtained.

【0053】さらに、この実施の形態1によれば、文書
規約ファイル1が文書文脈記述13を備えることで、入
力構造化文書2の要素や属性の内容を含む質問言語記述
11を生成することができるようになり、入力構造化文
書2とデータベース3にまたがる関係制約の記述能力を
向上させることができるという効果が得られる。
Furthermore, according to the first embodiment, since the document rule file 1 includes the document context description 13, the question language description 11 including the contents of the elements and attributes of the input structured document 2 can be generated. As a result, the effect of being able to improve the description of the relational constraint across the input structured document 2 and the database 3 can be obtained.

【0054】そして、この実施の形態1によれば、上記
の結果、ECやCALS分野における複数の入力構造化
文書2とデータベース3にまたがる文書処理機能の開発
と保守を効率化できるという効果が得られる。
According to the first embodiment, as a result of the above, the effect that the development and maintenance of the document processing function across the plurality of input structured documents 2 and the database 3 in the EC and CALS fields can be made efficient can be obtained. To be

【0055】実施の形態2.この発明の実施の形態2に
よる構造化文書処理装置の構成を示すブロック図は、実
施の形態1の図1に示す構成と同等である。この実施の
形態2は、発注先会社の電話番号が変更になった場合
に、発注先の会社名をキーとしてデータベース3の内容
を参照することにより、入力構造化文書2である発注仕
様書中の発注先会社の電話番号を変更後のものに自動修
正する機能の実現例を示すものである。
Embodiment 2. The block diagram showing the configuration of the structured document processing device according to the second embodiment of the present invention is equivalent to the configuration shown in FIG. 1 of the first embodiment. In the second embodiment, when the telephone number of the ordering company is changed, the contents of the database 3 are referred to by using the company name of the ordering party as a key, and the ordering specification document which is the input structured document 2 This is an example of realizing the function of automatically correcting the telephone number of the ordering company to the changed one.

【0056】図2(b)は制約解消処理部7を起動する
ためのコマンドの例を示す図である。このコマンドは、
『文書規約ファイル「発注仕様書規約b.drdl」中
の文書規約を構成する関係制約を満たすように、sub
stituteオプションで制約解消処理を実行せよ』
という意味である。
FIG. 2B is a diagram showing an example of a command for activating the constraint resolution processing section 7. This command
In order to satisfy the relational constraints forming the document rules in the “document rule file“ order specification document rule b. Drdl ”,
Execute the constraint resolution process with the status option ”
It means that.

【0057】図12は文書規約ファイル1に記載された
文書規約の例を示す図であり、図2(b)のコマンド中
で参照されている「発注仕様書規約b.drdl」の例
を示している。文書規約は、1つあるいは複数の入力構
造化文書2における要素内容間の関係制約を表現する制
約式から構成されている。
FIG. 12 is a diagram showing an example of the document rule described in the document rule file 1, and shows an example of the "order specification document rule b.drdl" referred to in the command of FIG. 2 (b). ing. The document convention is composed of constraint expressions expressing relational constraints between element contents in one or a plurality of input structured documents 2.

【0058】図12(a)に示す文書規約は、全称限量
子記述14を含む関係制約式であるAll−Path制
約式の例である。この文書規約の意味は、制約解消処理
部7をsubstituteオプションで起動した場合
には、『構造化文書「発注仕様書.xml」の要素「発
注先電話番号」に、図5(d)の発注先会社管理テーブ
ルのカラム「d_会社名」の値が、要素「発注先電話番
号」の兄弟の関係にある要素「発注先会社名」の内容と
等しいようなカラム「d_電話番号」の値を代入せよ』
である。
The document convention shown in FIG. 12A is an example of the All-Path constraint equation which is a relation constraint equation including the universal quantized quantum description 14. The meaning of this document convention is that when the constraint resolution processing unit 7 is started with the substate option, the order of the ordering telephone number in FIG. 5D is added to the "ordering party telephone number" of the "structured document" ordering specification. The value of the column "d_phone number" in which the value of the column "d_company name" of the destination company management table is equal to the content of the element "order destination company name" that is a sibling of the element "order destination phone number" Substitute ”
Is.

【0059】図12(b)に示す文書規約の1行目から
11行目までは、create−view−xmlfi
le制約式である。create−view−xmlf
ile制約式では、データベース/構造化文書変換処理
部5が、データベース/文書関係制約記述12を参照し
ながら、中間構造化文書6に変換した検索結果を、コン
ピュータのメモリ上に生成するか、又は外部ファイルと
して出力する処理を規定している。
From the first line to the 11th line of the document convention shown in FIG. 12B, create-view-xmlfi
This is a le constraint expression. create-view-xmlf
In the ile constraint expression, the database / structured document conversion processing unit 5 refers to the database / document relation constraint description 12 to generate the search result converted into the intermediate structured document 6 in the memory of the computer, or It defines the process to output as an external file.

【0060】また、図12(b)に示す文書規約の2行
目から5行目までは、データベース/文書関係制約記述
12の例であり、『データベース検索の結果のテーブル
に対しては要素「会社名−電話番号リスト」が対応し、
そのテーブルのタプルに対しては要素「会社名−電話番
号」が対応し、データのカラム「d_会社名」に対して
は要素「v_会社名」が対応し、そして、データのカラ
ム「d_電話番号」に対しては要素「v_電話番号」が
対応する』という意味である。
Further, the second to fifth lines of the document rule shown in FIG. 12B are examples of the database / document relation constraint description 12, and "the element" for the table of the result of the database search " Company name-phone number list "corresponds,
The element "company name-phone number" corresponds to the tuple of the table, the element "v_company name" corresponds to the data column "d_company name", and the data column "d_phone". The element "v_telephone number" corresponds to "number".

【0061】図12(b)の1行目から11行目までの
create−view−xmlfile制約式の意味
は、『7行目から9行目の質問言語記述11を用いてデ
ータベース3を検索した結果得られるデータから、2行
目から5行目までのデータベース/文書関係制約記述1
2に従って構成される中間構造化文書6を「view
1.xml」と呼ぶ』である。「発注仕様書.xml」
が図4に示す入力構造化文書2であり、かつ、発注先会
社管理テーブルが図5(d)の場合は、「view1.
xml」は、図7(d)に示す中間構造化文書6とな
る。
The meaning of the create-view-xmlfile constraint expression from the 1st line to the 11th line in FIG. 12B is "the database 3 is searched using the question language description 11 from the 7th line to the 9th line. From the resulting data, the second / fifth line database / document relation constraint description 1
The intermediate structured document 6 configured according to
1. xml ".""Orderspecification.xml"
Is the input structured document 2 shown in FIG. 4 and the ordering company management table is as shown in FIG. 5D, “view1.
xml ”becomes the intermediate structured document 6 shown in FIG.

【0062】図13は出力構造化文書8の例を示す図で
ある。図4の入力構造化文書2である発注仕様書におい
て、発注先会社の電話番号を自動修正した結果得られる
出力構造化文書8であり、図4の入力構造化文書2との
差異は、11行目と19行目の発注先電話番号の内容が
修正されている点である。
FIG. 13 is a diagram showing an example of the output structured document 8. In the ordering specification which is the input structured document 2 in FIG. 4, the output structured document 8 is obtained as a result of automatically correcting the telephone number of the ordering company, and the difference from the input structured document 2 in FIG. The point is that the contents of the orderee telephone numbers on lines 19 and 19 have been corrected.

【0063】次に動作について説明する。制約解消処理
部7の全体の動作を示すフローチャートは、実施の形態
1の図9と同様である。図9のステップST11におい
て、図2(b)に示す制約解消処理部7の呼び出しコマ
ンドを読み込む。ステップST12において、図2
(b)のコマンド中に記載された文書規約ファイル「発
注仕様書規約b.drdl」を読み込む。以下では、
「発注仕様書規約b.drdl」が、図12(a)の場
合と、図12(b)の場合の二つの例で動作を説明す
る。
Next, the operation will be described. A flowchart showing the overall operation of the constraint resolution processing unit 7 is similar to that of FIG. 9 of the first embodiment. In step ST11 of FIG. 9, the call command of the constraint resolution processing section 7 shown in FIG. 2B is read. In step ST12, FIG.
The document rule file "order specification document rule b. Drdl" described in the command (b) is read. Below,
The operation will be described with reference to two examples of “order specification document rule b. Drdl” in FIG. 12A and FIG. 12B.

【0064】最初に、「発注仕様書規約b.drdl」
が、図12(a)の場合について説明する。ステップS
T13において、「発注仕様書規約b.drdl」中の
path−context−file属性の値である
「発注仕様書.xml」を入力構造化文書2として読み
込む。ここで、「発注仕様書.xml」は、図4に示す
入力構造化文書2とする。ステップST14において、
文書規約ファイル「発注仕様書規約b.drdl」中の
文書規約に基づいて入力構造化文書2を評価する。文書
規約に基づく評価は、文書規約を構成する関係制約式毎
に定めた手順に従うものとする。
First, "order specification document rule b. Drdl"
However, the case of FIG. 12A will be described. Step S
At T13, “order specification.xml”, which is the value of the path-context-file attribute in “order specification document b. Drdl”, is read as the input structured document 2. Here, "order specification.xml" is the input structured document 2 shown in FIG. In step ST14,
The input structured document 2 is evaluated based on the document rule in the document rule file "order specification document rule b. Drdl". The evaluation based on the document rules shall follow the procedure defined for each relational constraint formula that constitutes the document rules.

【0065】図12(a)の文書規約を構成する関係制
約式は、All−Path制約式である。図14は図9
のステップST14の文書規約(制御式)に基づく評価
におけるAll−Path制約式の評価の処理手順を示
すフローチャートである。ステップST41において、
図12(a)のAll−Path式はrdb−stor
e要素をもたないので、ステップST43に進み、図1
2(a)のAll−Path式はValue要素をもつ
ので、ステップST44に進む。
The relational constraint equation forming the document convention of FIG. 12A is an All-Path constraint equation. FIG. 14 shows FIG.
5 is a flowchart showing a processing procedure for evaluation of an All-Path constraint expression in the evaluation based on the document regulation (control expression) in step ST14. In step ST41,
The All-Path expression in FIG. 12A is rdb-stor.
Since it has no e element, the process proceeds to step ST43, and FIG.
Since the All-Path expression of 2 (a) has a Value element, it proceeds to step ST44.

【0066】ステップST44において、Path属性
中のXpath式を評価した結果得られるノード集合中
のノードに対応する要素毎に、Value要素を評価し
た結果を代入する。具体的には、図4の入力構造化文書
2の要素「発注先電話番号」に、図12(a)の4行目
から6行目のSQL文を実行して得られた結果を代入す
る処理がなされる。
In step ST44, the result of evaluating the Value element is substituted for each element corresponding to the node in the node set obtained as a result of evaluating the Xpath expression in the Path attribute. Specifically, the result obtained by executing the SQL statement in the 4th to 6th lines in FIG. 12A is substituted into the element "ordered telephone number" of the input structured document 2 in FIG. Processing is done.

【0067】すなわち、図4の11行目の要素「発注先
電話番号」に対しては、図6(b)のSQL文が実行し
て得た結果である図7(b)の「03−1111−22
22」を図4の11行目の要素「発注先電話番号」の内
容に代入する。また、図4の19行目の要素「発注先電
話番号」に対しては、図6(c)のSQL文が実行して
得た結果である図7(c)の「078−8888−00
00」を図4の19行目の要素「発注先電話番号」の内
容に代入する。上記の結果によって、図13に示す出力
構造化文書8が出力される。
That is, for the element "ordered telephone number" on the 11th line in FIG. 4, the result obtained by executing the SQL statement in FIG. 6 (b) is "03-" in FIG. 7 (b). 1111-22
22 ”is substituted for the content of the element“ ordered party telephone number ”on the 11th line in FIG. Further, for the element "ordered telephone number" on the 19th line in FIG. 4, the result obtained by executing the SQL statement in FIG. 6C is "078-8888-00" in FIG. 7C.
"00" is substituted for the content of the element "ordered party telephone number" on the 19th line in FIG. Based on the above result, the output structured document 8 shown in FIG. 13 is output.

【0068】次に「発注仕様書規約b.drdl」が、
図12(b)の場合について説明する。図12(b)の
文書規約は、1行目から11行目までがcreate−
view−xmlfile制約式であり、13行目から
15行目までがAll.path制約式である。文書規
約の制約解消は、create−view−xmlfi
le制約式とAll.path制約式をこの順番に評価
していく。
Next, the "order specification document b. Drdl"
The case of FIG. 12B will be described. In the document convention of FIG. 12B, the first to 11th lines are create-
This is a view-xmlfile constraint expression, and the 13th to 15th lines are All. It is a path constraint equation. To remove restrictions on document rules, create-view-xmlfi
le constraint and All. The path constraint expression is evaluated in this order.

【0069】図15は図9のステップST14の文書規
約(制御式)に基づく評価におけるcreate−vi
ew−xmlfile制約式の評価の処理手順を示すフ
ローチャートである。ステップST51において、SQ
L文中の文書文脈記述13(#PathContext
で囲まれる部分)を、その評価結果と置換することによ
り得られるSQL文を実行する。具体的には、実施の形
態1で説明した文書文脈記述13の評価と同様の動作に
より、図12(b)の7行目から9行目のSQL文から
図6(d)のSQL文(質問言語)を生成して、そのS
QL文を実行する。
FIG. 15 shows create-vi in the evaluation based on the document convention (control expression) in step ST14 of FIG.
It is a flow chart which shows the processing procedure of evaluation of an ew-xmlfile constraint expression. In step ST51, SQ
Document context description 13 (#PathContext in L sentence)
The SQL statement obtained by replacing (the part surrounded by) with the evaluation result is executed. Specifically, by the same operation as the evaluation of the document context description 13 described in the first embodiment, from the SQL statement on the 7th line to the 9th line of FIG. 12B to the SQL statement of FIG. Question language) and generate S
Execute a QL statement.

【0070】ステップST52において、要素rdb−
xml−rel(データベース/文書関係制約記述1
2)に記述されている「データベース3のテーブル中の
カラム名と、XML文書中の要素名との対応関係」を読
み込む。そして、上記ステップST51で得た検索結果
データのタプルにtupleTagName属性の要素
名を付与し、かつ、検索結果データのカラム毎にcol
umnTagName属性の要素名を付与することによ
り、中間構造化文書6を生成する。具体的には、図12
(b)で説明した対応関係を用いて、図7(d)に示す
中間構造化文書6を生成する。
At step ST52, the element rdb-
xml-rel (database / document relation constraint description 1
The "correspondence relationship between the column name in the table of the database 3 and the element name in the XML document" described in 2) is read. Then, the tuple of the search result data obtained in step ST51 is given the element name of the tupleTagName attribute, and col is set for each column of the search result data.
The intermediate structured document 6 is generated by adding the element name of the umnTagName attribute. Specifically, FIG.
The intermediate structured document 6 shown in FIG. 7D is generated using the correspondence relationship described in (b).

【0071】次に図12(b)のAll−Path制約
式の評価の動作について図14を用いて説明する。ま
ず、図12(b)のAll−Path制約式はrdb−
store要素をもたず、かつ、Value属性をもつ
ので、図14のステップST41からステップST43
を経てステップST44に進む。ステップST44にお
いて、Path属性中のXpath式を評価した結果得
られるノード集合中のノードに対応する要素毎に、Va
lue要素を評価した結果を代入する。
Next, the operation of evaluating the All-Path constraint equation of FIG. 12B will be described with reference to FIG. First, the All-Path constraint equation of FIG. 12B is rdb-
Since it does not have a store element and has a Value attribute, steps ST41 to ST43 in FIG.
After that, the process proceeds to step ST44. In step ST44, Va is calculated for each element corresponding to the node in the node set obtained as a result of evaluating the Xpath expression in the Path attribute.
The result of evaluating the lue element is substituted.

【0072】具体的には、図4の入力構造化文書2の1
1行目の要素「発注先電話番号」に対しては、中間構造
化文書6「view1.xml」に対するXpath式
である「v_電話番号[../v_会社名=`A社
`]」を評価した結果得られるデータ「03−1111
−2222」を代入する。ただし、文書文脈記述13
「#PathContext(../発注先会社名)」
の評価結果が「A社」であることを用いている。また、
同様に、図4の入力構造化文書2の19行目の要素「発
注先電話番号」に対しては、「078−8888−00
00」が代入され、その結果、「発注仕様書規約b.d
rdl」が、図12(a)の場合と同様に、図13に示
す出力構造化文書8が出力される。
Specifically, 1 of the input structured document 2 in FIG.
For the element "telephone number of the ordering party" in the first line, the Xpath expression "v_telephone number [... Data obtained as a result of evaluation "03-1111
Substitute "-2222". However, the document context description 13
"#PathContext (... / Ordering company name)"
The evaluation result of “Company A” is used. Also,
Similarly, for the element "ordered telephone number" on the 19th line of the input structured document 2 in FIG. 4, "078-8888-00"
00 "is substituted, and as a result," order specification document rules b.d. "
As in the case of FIG. 12A, the output structured document 8 shown in FIG. 13 is output.

【0073】この実施の形態2では、制約解消処理部7
が入力構造化文書2及び中間構造化文書6を読み込ん
で、入力構造化文書2の内容が文書規約ファイル1に規
定されている関係制約を満足するように変換している
が、入力構造化文書2又は中間構造化文書6を読み込ん
で、入力構造化文書2の内容又は中間構造化文書6の内
容が、文書規約ファイル1に規定されている関係制約を
満足するように変換するようにしても良い。
In the second embodiment, the constraint elimination processing unit 7
Reads the input structured document 2 and the intermediate structured document 6 and converts the contents of the input structured document 2 so as to satisfy the relational constraint defined in the document contract file 1. 2 or the intermediate structured document 6 is read, and the contents of the input structured document 2 or the contents of the intermediate structured document 6 are converted so as to satisfy the relationship constraint defined in the document convention file 1. good.

【0074】以上のように、この実施の形態2によれ
ば、入力構造化文書2又は中間構造化文書6における要
素内容間の関係制約を規定する文書規約ファイル1を外
部ファイルとし、入力構造化文書2及び中間構造化文書
6、又は入力構造化文書2若しくは中間構造化文書6を
入力し、入力構造化文書2又は中間構造化文書6が文書
規約ファイル1に規定されている関係制約を満足するよ
うに変換する制約解消処理部7を備えたことにより、入
力構造化文書2とデータベース3の内容を参照した構造
化文書生成機能の開発におけるプログラミングを簡潔に
することができるという効果が得られる。
As described above, according to the second embodiment, the document rule file 1 which defines the relational constraint between the element contents in the input structured document 2 or the intermediate structured document 6 is used as the external file, and the input structured The document 2 and the intermediate structured document 6, or the input structured document 2 or the intermediate structured document 6 are input, and the input structured document 2 or the intermediate structured document 6 satisfies the relation constraint defined in the document rule file 1. By providing the constraint resolution processing unit 7 for performing the conversion as described above, it is possible to simplify programming in the development of the structured document generation function that refers to the contents of the input structured document 2 and the database 3. .

【0075】また、この実施の形態2によれば、文書規
約ファイル1に全称限量子記述14を備えることで、入
力構造化文書2中に複数個繰り返し出現する要素の各々
に対する文書処理が実現できるようになり、入力構造化
文書2とデータベース3にまたがる関係制約の記述能力
を向上させることができるという効果が得られる。
Further, according to the second embodiment, by providing the universal quantized quantum description 14 in the document rule file 1, it is possible to realize the document processing for each of the elements that appear repeatedly in the input structured document 2. As a result, the effect of being able to improve the description capability of the relational constraint that spans the input structured document 2 and the database 3 is obtained.

【0076】さらに、この実施の形態2によれば、文書
規約ファイル1にデータベース/文書関係制約記述12
を備えることで、入力構造化文書2の要素内容間の関係
制約式を用いて、入力構造化文書2の内容とデータベー
ス3の内容間の関係制約を表現できるようになり、入力
構造化文書2とデータベース3にまたがる関係制約の記
述能力を向上させることができるという効果が得られ
る。
Further, according to the second embodiment, the database / document relation constraint description 12 is added to the document rule file 1.
With the above, it becomes possible to express the relation constraint between the contents of the input structured document 2 and the contents of the database 3 by using the relation constraint expression between the element contents of the input structured document 2. With this, it is possible to obtain an effect that the description ability of the relational constraint across the database 3 can be improved.

【0077】そして、この実施の形態2によれば、上記
の結果、ECやCALS分野における複数の入力構造化
文書2とデータベース3にまたがる文書処理機能の開発
と保守を効率化できるという効果が得られる。
According to the second embodiment, as a result of the above, the effect that the development and maintenance of the document processing function across the plurality of input structured documents 2 and the database 3 in the EC and CALS fields can be made efficient can be obtained. To be

【0078】実施の形態3.この発明の実施の形態2に
よる構造化文書処理装置の構成を示すブロック図は、実
施の形態1の図1に示す構成と同等である。この実施の
形態では、図4の入力構造化文書2を、図5のテーブル
構成をもつデータベース3に登録する機能の実現例を示
す。
Embodiment 3. The block diagram showing the configuration of the structured document processing device according to the second embodiment of the present invention is equivalent to the configuration shown in FIG. 1 of the first embodiment. In this embodiment, an implementation example of the function of registering the input structured document 2 of FIG. 4 in the database 3 having the table structure of FIG. 5 is shown.

【0079】図2(c)は制約解消処理部7を起動する
ためのコマンドの例を示す図である。このコマンドは、
『文書規約ファイル「発注仕様書規約c.drdl」中
の文書規約を構成する関係制約を満たすように、sub
stituteオプションで制約解消処理を実行せよ』
という意味である。
FIG. 2C is a diagram showing an example of a command for activating the constraint resolution processing section 7. This command
In order to satisfy the relational constraints that compose the document rules in the “document rule file“ order specification document rule c. Drdl ”,
Execute the constraint resolution process with the status option ”
It means that.

【0080】図16は文書規約ファイル1に記載された
文書規約の例を示す図であり、図2(c)のコマンド中
で参照されている「発注仕様書規約c.drdl」の例
を示している。文書規約は、1つあるいは複数の入力構
造化文書2における要素内容間の関係制約を表現する制
約式から構成されている。図16に示す文書規約は、1
行目から12行目のAll−Path制約式と、14行
目から27行目のAll−Path式から構成されてお
り、この二つのAll−Path制約式をこの順に評価
していけば良い。
16 is a diagram showing an example of the document rule described in the document rule file 1, showing an example of the "order specification document rule c.drdl" referred to in the command of FIG. 2 (c). ing. The document convention is composed of constraint expressions expressing relational constraints between element contents in one or a plurality of input structured documents 2. The document convention shown in FIG. 16 is 1
It is composed of an All-Path constraint equation on the 12th to 12th rows and an All-Path equation on the 14th to 27th rows, and these two All-Path constraint equations may be evaluated in this order.

【0081】次に動作について説明する。制約解消処理
部7の全体の動作を示すフローチャートは、実施の形態
1の図9と同様であり、図9のステップST11〜ST
14までの処理を同様に行う。
Next, the operation will be described. A flowchart showing the overall operation of the constraint resolution processing unit 7 is similar to that of FIG. 9 of the first embodiment, and steps ST11 to ST of FIG.
The processes up to 14 are similarly performed.

【0082】そして、ステップST14における文書規
約(制約式)に基づく入力構造化文書2の評価の中で、
図16の1行目から12行目のAll−Path制約式
の評価を図14に示すフローチャートに従って行う。図
14のステップST41において、All−Path制
約式がrdb−store要素をもつので、ステップS
T42に進む。
Then, in the evaluation of the input structured document 2 based on the document convention (constraint expression) in step ST14,
The evaluation of the All-Path constraint expression on the first to twelfth lines in FIG. 16 is performed according to the flowchart shown in FIG. In step ST41 of FIG. 14, since the All-Path constraint expression has the rdb-store element, step S41 is performed.
Proceed to T42.

【0083】ステップ42において、xml−rdb−
rel要素(データベース/文書関係制約記述12)に
記述されている「データベース3のテーブル中のカラム
名と、XML文書中の要素名との対応関係」を読み込
む。そして、SQL要素中のSQL文中のカラム名を、
Xpath属性を評価した値に置換することによって得
られるSQL文を実行する。具体的には、図16の9行
目のSQL文(質問言語記述11)に基づき、図4の入
力構造化文書2の2行目から4行目までの要素「仕様書
ID」、「対象製品名」、「発注日」を、それぞれ「S
0001」、「製品名1」、「2001−08−01」
に置換した図6(e)に示すSQL文(質問言語)を実
行する。
In step 42, xml-rdb-
The "correspondence between column name in table of database 3 and element name in XML document" described in the rel element (database / document relation constraint description 12) is read. Then, the column name in the SQL statement in the SQL element is
The SQL statement obtained by replacing the Xpath attribute with the evaluated value is executed. Specifically, based on the SQL sentence (question language description 11) on the ninth line in FIG. 16, the elements “specification ID” and “target” from the second line to the fourth line of the input structured document 2 in FIG. "Product name" and "Order date" are specified in "S"
"0001", "Product name 1", "2001-08-01"
The SQL sentence (question language) shown in FIG.

【0084】同様に、図16の14行目から27行目の
All−Path制約式の評価を図14に示すフローチ
ャートに従って行う。1行目から12行目のAll−P
ath制約式の評価の動作と同様に、図14のステップ
ST42に進む。ステップST42において、図4の入
力構造化文書2の6行目から13行目までの要素「発注
部品」に対しては、図16の24行目のSQL文(質問
言語記述11)に基づいて、「発注仕様書ID」、「部
品番号」、「数量」、「発注先会社名」、[納期」を、
それぞれ「S0001」、「P1」、「10」、「A
社」、「2001−10−01」に置換した図6(f)
に示すSQL文(質問言語)を実行する。また、図4の
14行目から21行目までの要素「発注部品」に対して
は、同様にして置換した図6(g)に示すSQL文(質
問言語)を実行する。
Similarly, the evaluation of the All-Path constraint expression on the 14th to 27th lines in FIG. 16 is performed according to the flowchart shown in FIG. All-P from 1st to 12th lines
Similar to the operation of evaluating the ath constraint expression, the process proceeds to step ST42 in FIG. In step ST42, for the element "ordered part" from the 6th line to the 13th line of the input structured document 2 of FIG. 4, based on the SQL sentence (question language description 11) of the 24th line of FIG. , "Order specification ID", "Part number", "Quantity", "Ordering company name", "Delivery date",
"S0001", "P1", "10", and "A" respectively
6 (f) replaced with "Company" and "2001-10-01"
The SQL sentence (question language) shown in is executed. Further, for the element "ordered part" from the 14th line to the 21st line of FIG. 4, the SQL sentence (question language) shown in FIG.

【0085】この動作でのポイントは、All−Pat
h制約式中の要素「rel」の属性「Xpath」中
で、要素「発注部品」毎に、「./部品番号」のように
相対的なXML文書中の要素位置を指定できるので、X
ML文書中に繰り返し出現する要素の内容をデータベー
ス3に登録できる点にある。この工夫により、図4の入
力構造化文書2の内容を、図5のような複数のテーブル
から構成されるデータベース3に登録することができ
る。
The point of this operation is All-Pat
h In the attribute "Xpath" of the element "rel" in the constraint expression, a relative element position in the XML document such as "./part number" can be specified for each element "ordered part".
The point is that the contents of elements that repeatedly appear in the ML document can be registered in the database 3. By this device, the contents of the input structured document 2 shown in FIG. 4 can be registered in the database 3 composed of a plurality of tables as shown in FIG.

【0086】また、文書規約ファイル1では、All−
Path制約式を入れ子にすることができるので、繰り
返し要素中に繰り返し要素を含む入力構造化文書2の内
容をデータベース3に登録する処理も同様の動作で実現
することができる。
In the document rule file 1, All-
Since the Path constraint expression can be nested, the process of registering the content of the input structured document 2 including the repeating element in the repeating element in the database 3 can be realized by the same operation.

【0087】このようにして、図16の二つのAll−
Path式を評価することにより、図4の入力構造化文
書2の内容を図5(a)の発注仕様書テーブルの2行目
のタプルと、図5(b)の発注部品テーブルの2行目と
3行目のタプルを登録することができる。
In this way, the two All-
By evaluating the Path expression, the contents of the input structured document 2 of FIG. 4 are tuples in the second line of the order specification table of FIG. 5A and the second line of the order parts table of FIG. 5B. And the tuple on the third line can be registered.

【0088】この実施の形態3では、図4の入力構造化
文書2を、図5のテーブル構成をもつデータベース3に
登録する場合を説明したが、複数の入力構造化文書2と
データベース3の内容を統合したデータベース登録機能
を実現するためには、実施の形態2のように「複数の入
力構造化文書2とデータベース3の内容を参照した出力
構造化文書8の生成機能」を実行した後で、「生成した
出力構造化文書8をデータベース3に登録する機能」を
実行すれば良い。
In the third embodiment, the case has been described in which the input structured document 2 of FIG. 4 is registered in the database 3 having the table structure of FIG. 5, but the contents of the plurality of input structured documents 2 and the database 3 are described. In order to realize the integrated database registration function, the "generation function of the output structured document 8 referring to the contents of the plurality of input structured documents 2 and the database 3" is executed as in the second embodiment. , "Function of registering generated output structured document 8 in database 3" may be executed.

【0089】また、この実施の形態3では、中間構造化
文書6を読み込んで、中間構造化文書6の内容が、文書
規約ファイル1に規定されている関係制約を満足するよ
うに変換して、データベース3に登録するようにしても
良い。
Further, in the third embodiment, the intermediate structured document 6 is read, the contents of the intermediate structured document 6 are converted so as to satisfy the relational constraint defined in the document rule file 1, It may be registered in the database 3.

【0090】以上のように、この実施の形態3によれ
ば、入力構造化文書2又は中間構造化文書6における要
素内容間の関係制約を規定する文書規約ファイル1を外
部ファイルとし、入力構造化文書2及び中間構造化文書
6、又は入力構造化文書2若しくは中間構造化文書6を
入力し、入力構造化文書2又は中間構造化文書6が文書
規約ファイル1に規定されている関係制約を満足するよ
うに変換してデータベース3に登録する制約解消処理部
7を備えたことにより、入力構造化文書2とデータベー
ス3の内容を統合したデータベース登録機能の開発にお
けるプログラミングを簡潔にすることができるという効
果が得られる。
As described above, according to the third embodiment, the document rule file 1 for defining the relational constraint between the element contents in the input structured document 2 or the intermediate structured document 6 is used as the external file, and the input structured The document 2 and the intermediate structured document 6, or the input structured document 2 or the intermediate structured document 6 are input, and the input structured document 2 or the intermediate structured document 6 satisfies the relation constraint defined in the document rule file 1. By including the constraint resolution processing unit 7 that converts the information to be registered in the database 3 as described above, programming in the development of the database registration function that integrates the contents of the input structured document 2 and the database 3 can be simplified. The effect is obtained.

【0091】また、この実施の形態3によれば、文書規
約ファイル1に全称限量子記述14とデータベース/文
書関係制約記述12を備えることで、入力構造化文書2
中に複数個繰り返し出現する要素の各々の内容をデータ
ベース3へ登録できるようになり、入力構造化文書2と
データベース3にまたがる関係制約の記述能力を向上さ
せることができるという効果が得られる。
Further, according to the third embodiment, since the document rule file 1 is provided with the universal quantized quantum description 14 and the database / document relation constraint description 12, the input structured document 2
The contents of each of a plurality of elements that appear repeatedly can be registered in the database 3, and the effect of being able to improve the description ability of the relational constraint that spans the input structured document 2 and the database 3 can be obtained.

【0092】そして、この実施の形態3によれば、以上
の結果、ECやCALS分野における複数の入力構造化
文書2とデータベース3にまたがる文書処理機能の開発
と保守を効率化できるという効果が得られる。
As a result of the above, according to the third embodiment, the effect that the development and maintenance of the document processing function across the plurality of input structured documents 2 and the database 3 in the EC and CALS fields can be made efficient can be obtained. To be

【0093】[0093]

【発明の効果】以上のように、この発明によれば、デー
タベースと、データベース操作処理部と、データベース
/構造化文書変換処理部と、文書規約ファイルと、制約
解消処理部とを備えたことにより、入力構造化文書とデ
ータベースとの整合性検証機能と、入力構造化文書とデ
ータベースの内容を参照した構造化文書生成機能の開発
におけるプログラミングを簡潔にすることができ、入力
構造化文書とデータベースにまたがる文書処理機能の開
発と保守を効率化できるという効果がある。
As described above, according to the present invention, the database, the database operation processing unit, the database / structured document conversion processing unit, the document rule file, and the constraint resolution processing unit are provided. , It is possible to simplify the programming in the development of the consistency verification function between the input structured document and the database, and the structured document generation function that refers to the contents of the input structured document and the database. There is an effect that the development and maintenance of the spanning document processing function can be made efficient.

【0094】この発明によれば、文書規約ファイルに質
問言語記述を備え、制約解消処理部が質問言語記述を使
用して、データベース/構造化文書変換処理部による操
作を実行させることにより、入力構造化文書の内容とデ
ータベースの内容とを比較する処理を実現することがで
きるという効果がある。
According to the present invention, the document rule file is provided with the question language description, and the constraint resolution processing section uses the question language description to execute the operation by the database / structured document conversion processing section, thereby the input structure There is an effect that it is possible to realize a process of comparing the content of the computerized document with the content of the database.

【0095】この発明によれば、文書規約ファイルにデ
ータベース/文書関係制約記述を備え、データベース/
構造化文書変換処理部が、データベース/文書関係制約
記述を参照して、データベースから得られたデータを中
間構造化文書に変換することにより、入力構造化文書の
内容とデータベースの内容間の関係制約を表現できるよ
うになり、入力構造化文書とデータベースにまたがる関
係制約の記述能力を向上させることができるという効果
がある。
According to the present invention, the document / convention file is provided with the database / document relation constraint description,
The structured document conversion processing unit refers to the database / document relation constraint description and converts the data obtained from the database into an intermediate structured document, thereby limiting the relation between the contents of the input structured document and the contents of the database. Can be expressed, and it is possible to improve the ability to describe relational constraints that span the input structured document and the database.

【0096】この発明によれば、文書規約ファイルに文
書文脈記述を備え、制約解消処理部が、文書文脈記述を
参照して、入力構造化文書若しくは中間構造化文書にお
ける要素内容間の関係制約を満足するか否かを検証する
か、又は関係制約を満足するように入力構造化文書若し
くは中間構造化文書を変換することにより、入力構造化
文書の要素や属性の内容を含む質問言語記述を生成する
ことができるようになり、入力構造化文書とデータベー
スにまたがる関係制約の記述能力を向上させることがで
きるという効果がある。
According to the present invention, the document rule file is provided with the document context description, and the constraint resolution processing section refers to the document context description to apply the relation constraint between the element contents in the input structured document or the intermediate structured document. Generate a question language description that includes the contents of the elements and attributes of the input structured document by verifying whether they are satisfied or by converting the input structured document or the intermediate structured document so as to satisfy the relationship constraint. Therefore, there is an effect that it is possible to improve the description ability of the relational constraint that spans the input structured document and the database.

【0097】この発明によれば、文書規約ファイルに全
称限量子記述を備え、制約解消処理部が、全称限量子記
述を参照して、入力構造化文書若しくは中間構造化文書
における要素内容間の関係制約を満足するか否かを検証
するか、又は関係制約を満足するように入力構造化文書
若しくは中間構造化文書を変換することにより、入力構
造化文書中に複数個繰り返し出現する要素の各々に対す
る文書処理が実現できるようになり、入力構造化文書と
データベースにまたがる関係制約の記述能力を向上させ
ることができるという効果がある。
According to the present invention, the document rule file is provided with the universal quantized quantum description, and the constraint resolution processing section refers to the universal quantized quantum description to refer to the relationship between the element contents in the input structured document or the intermediate structured document. By verifying whether or not the constraint is satisfied, or by converting the input structured document or the intermediate structured document so as to satisfy the relational constraint, each of the elements repeatedly appearing in the input structured document Document processing can be realized, and there is an effect that the ability to describe relational constraints that span an input structured document and a database can be improved.

【0098】この発明によれば、文書規約ファイルに質
問言語記述とデータベース/文書関係制約記述とを備
え、制約解消処理部が質問言語記述とデータベース/文
書関係制約記述に基づいて、入力構造化文書の内容をデ
ータベースに登録することにより、入力構造化文書とデ
ータベースの内容を統合したデータベース登録機能の開
発におけるプログラミングを簡潔にすることができると
いう効果がある。
According to the present invention, the document rule file is provided with the question language description and the database / document relation constraint description, and the constraint resolution processing section based on the question language description and the database / document relation constraint description, the input structured document. By registering the contents of the above in the database, it is possible to simplify the programming in the development of the database registration function that integrates the input structured document and the contents of the database.

【0099】この発明によれば、データベース操作ステ
ップと、データベース/構造化文書変換ステップと、制
約解消ステップとを備えたことにより、入力構造化文書
とデータベースとの整合性検証機能と、入力構造化文書
とデータベースの内容を参照した構造化文書生成機能の
開発におけるプログラミングを簡潔にすることができ、
入力構造化文書とデータベースにまたがる文書処理機能
の開発と保守を効率化できるという効果がある。
According to the present invention, since the database operation step, the database / structured document conversion step, and the constraint resolution step are provided, the function of verifying the consistency between the input structured document and the database and the input structured Can simplify programming in the development of structured document generation function that refers to the contents of documents and databases,
This has the effect of streamlining the development and maintenance of the document processing function that spans the input structured document and the database.

【0100】この発明によれば、データベース操作手順
と、データベース/構造化文書変換手順と、制約解消手
順とをコンピュータに実行させる構造化文書処理プログ
ラムとすることにより、入力構造化文書とデータベース
との整合性検証機能と、入力構造化文書とデータベース
の内容を参照した構造化文書生成機能の開発におけるプ
ログラミングを簡潔にすることができ、入力構造化文書
とデータベースにまたがる文書処理機能の開発と保守を
効率化できるという効果がある。
According to the present invention, a structured document processing program that causes a computer to execute a database operation procedure, a database / structured document conversion procedure, and a constraint resolution procedure is used. It can simplify programming in the development of the integrity verification function and the structured document generation function that refers to the contents of the input structured document and the database, and the development and maintenance of the document processing function that spans the input structured document and the database. This has the effect of improving efficiency.

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

【図1】 この発明の実施の形態1から実施の形態3に
よる構造化文書処理装置の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of a structured document processing device according to first to third embodiments of the present invention.

【図2】 この発明の実施の形態1から実施の形態3に
よる構造化文書処理装置の制約解消処理部を起動するた
めのコマンドの例を示す図である。
FIG. 2 is a diagram showing an example of a command for activating a constraint resolution processing unit of the structured document processing device according to the first to third embodiments of the present invention.

【図3】 この発明の実施の形態1において文書規約フ
ァイルに記載された文書規約の例を示す図である。
FIG. 3 is a diagram showing an example of document rules written in a document rule file according to the first embodiment of the present invention.

【図4】 この発明の実施の形態1から実施の形態3に
おける入力構造化文書の例を示す図である。
FIG. 4 is a diagram showing an example of an input structured document according to the first to third embodiments of the present invention.

【図5】 この発明の実施の形態1から実施の形態3に
おいて図4の入力構造化文書に対応した構造を持つデー
タベースに格納されたテーブルの例を示す図である。
FIG. 5 is a diagram showing an example of a table stored in a database having a structure corresponding to the input structured document of FIG. 4 in the first to third embodiments of the present invention.

【図6】 この発明の実施の形態1から実施の形態3に
よる構造化文書処理装置のデータベース操作処理部に対
する操作命令を記述した質問言語記述の例を示す図であ
る。
FIG. 6 is a diagram showing an example of a question language description in which an operation command for a database operation processing unit of the structured document processing device according to the first to third embodiments of the present invention is described.

【図7】 この発明の実施の形態1と実施の形態2によ
る構造化文書処理装置のデータベース/構造化文書変換
処理部が生成又は出力する中間構造化文書の例を示す図
である。
FIG. 7 is a diagram showing an example of an intermediate structured document generated or output by the database / structured document conversion processing unit of the structured document processing device according to the first and second embodiments of the present invention.

【図8】 この発明の実施の形態1による構造化文書処
理装置の制約解消処理部が出力する検証情報の例を示す
図である。
FIG. 8 is a diagram showing an example of verification information output by a constraint resolution processing unit of the structured document processing device according to the first embodiment of the present invention.

【図9】 この発明の実施の形態1から実施の形態3に
よる構造化文書処理装置の制約解消処理部の全体の動作
を示すフローチャートである。
FIG. 9 is a flowchart showing the overall operation of the constraint resolution processing unit of the structured document processing device according to the first to third embodiments of the present invention.

【図10】 この発明の実施の形態1におけるPath
制約式の評価の処理手順を示すフローチャートである。
FIG. 10 is a Path according to the first embodiment of the present invention.
It is a flowchart which shows the process sequence of evaluation of a constraint expression.

【図11】 この発明の実施の形態1におけるValu
e式の評価の処理手順を示すフローチャートである。
FIG. 11 is a Valu according to the first embodiment of the present invention.
It is a flow chart which shows the processing procedure of e type evaluation.

【図12】 この発明の実施の形態2において文書規約
ファイルに記載された文書規約の例を示す図である。
FIG. 12 is a diagram showing an example of document rules written in a document rule file according to the second embodiment of the present invention.

【図13】 この発明の実施の形態2による構造化文書
処理装置の制約解消処理部7が出力する出力構造化文書
の例を示す図である。
FIG. 13 is a diagram showing an example of an output structured document output by the constraint resolution processing unit 7 of the structured document processing device according to the second embodiment of the present invention.

【図14】 この発明の実施の形態2と実施の形態3に
おけるAll−Path制約式の評価の処理手順を示す
フローチャートである。
FIG. 14 is a flowchart showing a processing procedure for evaluation of an All-Path constraint expression in the second and third embodiments of the present invention.

【図15】 この発明の実施の形態2におけるcrea
te−view−xmlfile制約式の評価の処理手
順を示すフローチャートである。
FIG. 15 is a screen diagram according to the second embodiment of the present invention.
It is a flow chart which shows a processing procedure of evaluation of a te-view-xmlfile constraint expression.

【図16】 この発明の実施の形態3において文書規約
ファイルに記載された文書規約の例を示す図である。
FIG. 16 is a diagram showing an example of a document rule described in a document rule file according to the third embodiment of the present invention.

【図17】 従来の構造化文書処理装置の構成を示すブ
ロック図である。
FIG. 17 is a block diagram showing a configuration of a conventional structured document processing device.

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

1 文書規約ファイル、2 入力構造化文書、3 デー
タベース、4 データベース操作処理部、5 データベ
ース/構造化文書変換処理部、6 中間構造化文書、7
制約解消処理部、8 出力構造化文書、9 検証情
報、11質問言語記述、12 データベース/文書関係
制約記述、13 文書文脈記述、14 全称限量子記
述。
1 document rule file, 2 input structured document, 3 database, 4 database operation processing unit, 5 database / structured document conversion processing unit, 6 intermediate structured document, 7
Constraint resolution processing unit, 8 output structured document, 9 verification information, 11 question language description, 12 database / document relation constraint description, 13 document context description, 14 universal quantification description.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G06F 12/00 G06F 12/00 547Z 17/21 501 17/21 501T 570 570L (72)発明者 森口 修 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 Fターム(参考) 5B009 NA05 SA13 VA09 5B075 ND03 ND34 NR05 QP10 UU05 5B082 GA02 GA06 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 Identification code FI theme code (reference) G06F 12/00 G06F 12/00 547Z 17/21 501 17/21 501T 570 570L (72) Inventor Osamu Moriguchi Tokyo 2-3, Marunouchi, Chiyoda-ku, Sanritsu Electric Co., Ltd. F-term (reference) 5B009 NA05 SA13 VA09 5B075 ND03 ND34 NR05 QP10 UU05 5B082 GA02 GA06

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 数値、テキスト、バイナリ等のデータと
それらのデータ間の関係を格納するデータベースと、 このデータベースに対してデータの検索、登録、更新、
削除等の操作を実行するデータベース操作処理部と、 このデータベース操作処理部に上記データベースに対す
る操作を依頼し、上記データベース操作処理部により上
記データベースから得られたデータを中間構造化文書に
変換するデータベース/構造化文書変換処理部と、 1つあるいは複数の入力構造化文書又は上記中間構造化
文書における要素内容間の関係制約を規定する文書規約
ファイルと、 上記入力構造化文書及び上記中間構造化文書、又は上記
入力構造化文書若しくは上記中間構造化文書を入力し、
上記入力構造化文書若しくは上記中間構造化文書が上記
文書規約ファイルに規定されている関係制約を満足する
か否かを検証するか、又は上記関係制約を満足するよう
に上記入力構造化文書若しくは上記中間構造化文書を変
換する制約解消処理部とを備えたことを特徴とする構造
化文書処理装置。
1. A database for storing data such as numerical values, texts, binary data, etc. and a relationship between the data, and searching, registration, updating of data for the database.
A database operation processing unit that executes an operation such as deletion, and a database that requests the database operation processing unit to operate the database and converts the data obtained from the database by the database operation processing unit into an intermediate structured document. A structured document conversion processing unit, a document rule file defining one or a plurality of input structured documents or relational restrictions between element contents in the intermediate structured document, the input structured document and the intermediate structured document, Or input the above input structured document or the above intermediate structured document,
It is verified whether or not the input structured document or the intermediate structured document satisfies the relational constraint defined in the document rule file, or the input structured document or the above is satisfied so as to satisfy the relational constraint. A structured document processing device, comprising: a constraint resolution processing unit for converting an intermediate structured document.
【請求項2】 文書規約ファイルに規定されている関係
制約中に、データベースに対してデータの検索、登録、
更新、削除等の命令を規定する質問言語記述を備え、 制約解消処理部が、上記文書規約ファイルに備えられて
いる質問言語記述を使用して、データベース/構造化文
書変換処理部による操作を実行させることを特徴とする
請求項1記載の構造化文書処理装置。
2. The data search, registration, and data registration to the database during the relational constraints defined in the document rule file.
Equipped with a question language description that defines commands such as update and delete, the constraint resolution processing unit uses the question language description provided in the document rule file to execute the operation by the database / structured document conversion processing unit. The structured document processing device according to claim 1, wherein
【請求項3】 文書規約ファイルに規定されている関係
制約中に、データベースに対する質問言語記述における
テーブル名、タプル名、カラム名と、入力構造化文書又
は中間構造化文書の要素名や属性名との対応関係を規定
するデータベース/文書関係制約記述を備え、 データベース/構造化文書変換処理部が、上記文書規約
ファイルに備えられているデータベース/文書関係制約
記述を参照して、上記データベースから得られたデータ
を中間構造化文書に変換することを特徴とする請求項2
記載の構造化文書処理装置。
3. A table name, a tuple name, a column name in a query language description for a database, and an element name or an attribute name of an input structured document or an intermediate structured document in a relational constraint defined in a document rule file. The database / structured document conversion processing unit refers to the database / document relation constraint description provided in the document rule file, and obtains from the database. The converted data is converted into an intermediate structured document.
The structured document processing device described.
【請求項4】 文書規約ファイルに規定されている関係
制約中に、この関係制約が対象とする要素や属性がどの
入力構造化文書又は中間構造化文書に含まれているもの
かを指定する文書文脈記述を備え、 制約解消処理部が、上記文書規約ファイルに備えられて
いる文書文脈記述を参照して、上記入力構造化文書若し
くは上記中間構造化文書における要素内容間の関係制約
を満足するか否かを検証するか、又は上記関係制約を満
足するように上記入力構造化文書若しくは上記中間構造
化文書を変換することを特徴とする請求項1記載の構造
化文書処理装置。
4. A document that specifies in the input structured document or the intermediate structured document the element or attribute targeted by this relational constraint is included in the relational constraint specified in the document rule file. Whether the constraint resolution processing unit has a context description and refers to the document context description provided in the document rule file to satisfy the relation constraint between element contents in the input structured document or the intermediate structured document. 2. The structured document processing device according to claim 1, wherein the input structured document or the intermediate structured document is converted so as to verify whether or not the relational constraint is satisfied.
【請求項5】 文書規約ファイルに規定されている関係
制約中に、入力構造化文書中又は中間構造化文書中に複
数個繰り返し出現する要素の各々に対する関係制約を記
述するための全称限量子記述を備え、 制約解消処理部が、上記文書規約ファイルに備えられて
いる全称限量子記述を参照して、上記入力構造化文書若
しくは上記中間構造化文書における要素内容間の関係制
約を満足するか否かを検証するか、又は上記関係制約を
満足するように上記入力構造化文書若しくは上記中間構
造化文書を変換することを特徴とする請求項1記載の構
造化文書処理装置。
5. A universal quantification description for describing a relational constraint for each of a plurality of elements appearing repeatedly in an input structured document or an intermediate structured document in a relational constraint defined in a document rule file. Whether the constraint resolution processing unit satisfies the relational constraint between the element contents in the input structured document or the intermediate structured document by referring to the universal quantized quantum description provided in the document rule file. 2. The structured document processing device according to claim 1, wherein the input structured document or the intermediate structured document is converted so as to verify whether or not the relational constraint is satisfied.
【請求項6】 制約解消処理部が、文書規約ファイルに
規定されている関係制約を満足するか否かを検証して検
証情報として出力することを特徴とする請求項1記載の
構造化文書処理装置。
6. The structured document processing according to claim 1, wherein the constraint resolution processing unit verifies whether the relational constraint defined in the document rule file is satisfied and outputs it as verification information. apparatus.
【請求項7】 制約解消処理部が、データベースの内容
を入力構造化文書に代入した結果得られる出力構造化文
書を出力することを特徴とする請求項1記載の構造化文
書処理装置。
7. The structured document processing device according to claim 1, wherein the constraint resolution processing section outputs an output structured document obtained as a result of substituting the contents of the database into the input structured document.
【請求項8】 文書規約ファイルに規定されている関係
制約中に、データベースに対してデータの検索、登録、
更新、削除等の命令を規定する質問言語記述と、この質
問言語記述におけるテーブル名、タプル名、カラム名
と、入力構造化文書の要素名や属性名との対応関係を規
定するデータベース/文書関係制約記述とを備え、 制約解消処理部が、上記文書規約ファイルに備えられて
いる質問言語記述とデータベース/文書関係制約記述に
基づいて、入力構造化文書の内容をデータベースに登録
することを特徴とする請求項1記載の構造化文書処理装
置。
8. The data retrieval, registration, and data registration to the database during the relational constraint defined in the document rule file.
A query language description that defines commands such as update and delete, and a database / document relationship that defines the correspondence between the table name, tuple name, and column name in this query language description and the element name and attribute name of the input structured document. The constraint resolution processing unit registers the content of the input structured document in the database based on the question language description and the database / document relation constraint description provided in the document rule file. The structured document processing device according to claim 1.
【請求項9】 数値、テキスト、バイナリ等のデータと
それらのデータ間の関係を格納するデータベースに対し
てデータの検索、登録、更新、削除等の操作を実行する
データベース操作ステップと、 上記データベースから得られたデータを中間構造化文書
に変換するデータベース/構造化文書変換ステップと、 1つあるいは複数の入力構造化文書及び上記中間構造化
文書、又は上記入力構造化文書若しくは上記中間構造化
文書を入力し、上記入力構造化文書若しくは上記中間構
造化文書が文書規約ファイルに規定されている上記入力
構造化文書若しくは上記中間構造化文書における要素内
容間の関係制約を満足するか否かを検証するか、又は上
記関係制約を満足するように上記入力構造化文書若しく
は上記中間構造化文書を変換する制約解消ステップとを
備えたことを特徴とする構造化文書処理方法。
9. A database operation step for executing operations such as data search, registration, update, and deletion with respect to a database that stores data such as numerical values, texts, and binary data and the relationship between the data, and from the database. A database / structured document conversion step of converting the obtained data into an intermediate structured document, and one or more input structured documents and the intermediate structured document, or the input structured document or the intermediate structured document. Input and verify whether the input structured document or the intermediate structured document satisfies the relational constraint between the element contents in the input structured document or the intermediate structured document specified in the document rule file. Or, the constraint is solved by converting the input structured document or the intermediate structured document so as to satisfy the relational constraint. Structured document processing method characterized by comprising the steps.
【請求項10】 数値、テキスト、バイナリ等のデータ
とそれらのデータ間の関係を格納するデータベースに対
してデータの検索、登録、更新、削除等の操作を実行す
るデータベース操作手順と、 上記データベースから得られたデータを中間構造化文書
に変換するデータベース/構造化文書変換手順と、 1つあるいは複数の入力構造化文書及び上記中間構造化
文書、又は上記入力構造化文書若しくは上記中間構造化
文書を入力し、上記入力構造化文書若しくは上記中間構
造化文書が文書規約ファイルに規定されている上記入力
構造化文書若しくは上記中間構造化文書における要素内
容間の関係制約を満足するか否かを検証するか、又は上
記関係制約を満足するように上記入力構造化文書若しく
は上記中間構造化文書を変換する制約解消手順とをコン
ピュータに実行させる構造化文書処理プログラム。
10. A database operation procedure for executing operations such as data search, registration, update, and deletion with respect to a database that stores data such as numerical values, text, and binary, and the relationship between the data, and from the database A database / structured document conversion procedure for converting the obtained data into an intermediate structured document, and one or more input structured documents and the intermediate structured document, or the input structured document or the intermediate structured document. Input and verify whether the input structured document or the intermediate structured document satisfies the relation constraint between the element contents in the input structured document or the intermediate structured document specified in the document rule file. Or a constraint resolution procedure for converting the input structured document or the intermediate structured document so as to satisfy the relationship constraint. Structured document processing program executed by a computer.
JP2002011830A 2002-01-21 2002-01-21 Structured document processing apparatus, method and program Abandoned JP2003216626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002011830A JP2003216626A (en) 2002-01-21 2002-01-21 Structured document processing apparatus, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002011830A JP2003216626A (en) 2002-01-21 2002-01-21 Structured document processing apparatus, method and program

Publications (1)

Publication Number Publication Date
JP2003216626A true JP2003216626A (en) 2003-07-31

Family

ID=27649214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002011830A Abandoned JP2003216626A (en) 2002-01-21 2002-01-21 Structured document processing apparatus, method and program

Country Status (1)

Country Link
JP (1) JP2003216626A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100365621C (en) * 2003-12-10 2008-01-30 鸿富锦精密工业(深圳)有限公司 Files conversion system and method
KR101542195B1 (en) * 2014-03-28 2015-08-05 주식회사 솔트룩스 System And Method For Building Knowledge Base Using Extracting Property Of Informal Data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100365621C (en) * 2003-12-10 2008-01-30 鸿富锦精密工业(深圳)有限公司 Files conversion system and method
KR101542195B1 (en) * 2014-03-28 2015-08-05 주식회사 솔트룩스 System And Method For Building Knowledge Base Using Extracting Property Of Informal Data

Similar Documents

Publication Publication Date Title
US7036073B2 (en) System and method for supporting non-native XML in native XML of a word-processor document
JP4189416B2 (en) Structured document management system and program
US8046683B2 (en) Structural editing with schema awareness
US7281018B1 (en) Form template data source change
JP4907936B2 (en) Web-based data form
Wimmer et al. Bridging grammarware and modelware
US7974991B2 (en) Word-processing document stored in a single XML file that may be manipulated by applications that understand XML
US7406660B1 (en) Mapping between structured data and a visual surface
US7617234B2 (en) XML schema for binding data
AU2003225697B2 (en) Dynamic generation of schema information for data description languages
US20030135825A1 (en) Dynamically generated mark-up based graphical user interfaced with an extensible application framework with links to enterprise resources
AU2006200047A1 (en) Data store for software application documents
JP2001167087A (en) Device and method for retrieving structured document, program recording medium for structured document retrieval and index preparing method for structured document retrieval
US20060036631A1 (en) High performance XML storage retrieval system and method
US20090112901A1 (en) Software, Systems and Methods for Modifying XML Data Structures
US7685208B2 (en) XML payload specification for modeling EDI schemas
US20080114740A1 (en) System and method for maintaining conformance of electronic document structure with multiple, variant document structure models
JP2003216626A (en) Structured document processing apparatus, method and program
JP3632643B2 (en) Structured document management device
US7562295B1 (en) Representing spelling and grammatical error state in an XML document
JP4410005B2 (en) Structured document structure conversion device and program
JP4786695B2 (en) Structure conversion device for structured documents
Lizorkin et al. Implementation of the XML linking language XLink by functional methods
Jamal et al. XML Schema Validation Using Java API for XML Processing
Talburt et al. CoDoSA: A Lightweight, XML-Based Framework for Integrating Unstructured Textual Information

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050113

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20071031

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20071031

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071031

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080108

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20080225