[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Examples of data query
Please check the following examples of data query in accordance with our XML specification. クエリの仕様を検討するにあたって、いくつかの サンプルを書いてみました。 Items that produce item A01 品目A01を生成する作業を列挙せよ。 <operation name="#query"> <produce item="A01"/> </operation> Lots that belong to item A01 or A02 品目A1またはA02のロットを列挙せよ。 <lot name="#query" item="A01"/> <lot name="#query" item="A02"/> Operations that assign both resource R1 and R2 資源R1とR2を両方使用する作業を列挙せよ。 <operation name="#query"> <assign resource="R01"/> <assign resource="R32"/> </operation> Items that have a stock in a range less than or equal to 100 在庫量が100以下の品目を列挙せよ。 <item name="#query"> <stock><qty><max value="100"/></qty></stock> </item> Items that the stock will be less than or equal to 100 at 9:00 in the tomorrow morning. 在庫量が明日の朝9:00に100以下となる 品目を列挙せよ。 <item name="#query"> <stock><time value="2004-06-20T00:09:00"/> <qty><max value="100"/></qty></stock> </item> Items that have a spec named "brand new" 仕様として新製品を持っている品目を列挙せよ。 <item name="#query"> <spec name="brand new"/> </item> Items that weight is lighter than or equal to 20kg 仕様として重さが20g以下の品目を列挙せよ。 <item name="#query"> <spec name="weight"> <qty><max value="20"/></qty></spec> </item> Items that belong to group01 and the color is yellow or red. グループ01に属している品目で、黄色または赤の品目 を列挙せよ。 <item name="#query" parent="group01"> <spec name="color"> <char><enumerate value="yellow"/> <enumerate value="red"/></char> </spec> </item> Orders of the customer K01 having duedate in June 20th 顧客K01のオーダで明日(6/20)納期のものを列挙せよ。 <order name="#query" customer="K01"> <duetime><earliest value="2004-06-20T00:00:00"/> <latest value="2004-06-21T00:00:00"/></duetime> </order> -- Yasu Nissy (Yasuyuki NISHIOKA), Dr.Eng. MIT, 41-211 77 Massachusetts Ave Cambridge MA 02139 Phone 617-452-2982, Fax 617-253-2249 nishioka@mit.edu <nishioka@k.hosei.ac.jp>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]