| << 目次を表示 >> ページ位置: プロジェクトの作成と管理 > Proクラウドサーバ > 有料ライセンスで利用できる機能 > OSLCの利用 > OSLC Architecture Management 2.0 > クエリ > oslc.whereとoslc.selectの連携 | 
Query CapabilityのベースURIにoslc.whereとoslc.selectのクエリパラメータを組み合わせると、指定条件を満たすすべてのリソースの必要プロパティを取得できます。これは、SQL文の中でWHERE句とSELECT句を一緒に使うのと似ています。
<protocol>://<server>/<model_name>/oslc/am/qc/?oslc.select=<CSV of Resource Properties> & oslc.where=<conditions>
例
以下の例は、Proクラウドサーバのモデル'firebird_model' に対して実行する場合の例です。
| # | クエリ | 
| 1 | http://localhost:480/firebird_model/oslc/am/qc/?oslc.select=* & oslc.where=dcterms:title="Class1" & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7} 
 名前が'Class1'の要素のすべてのプロパティを取得します。 | 
| 2 | http://localhost:480/firebird_model/oslc/am/qc/?oslc.select=dcterms:title & oslc.where=dcterms:title="Class1" and dcterms:type="Class" & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7} 
 名前が'Class1'で種類がClassの要素の名前を取得します。 | 
| 3 | http://localhost:480/firebird_model/oslc/am/qc/?oslc.select=dcterms:title,dcterms:type,dcterms:identifier & oslc.where=ss:resourcetype in ["Package","Diagram"] & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7} 
 
 パッケージやダイアグラムの名前・種類・GUIDを取得します。 | 
| 4 | http://localhost:480/firebird_model/oslc/am/qc/?oslc.select=dcterms:title,dcterms:identifier,ss:resourcetype & oslc.where=ss:stereotype{ss:fqname in ["BPMN2.0::BusinessProcess", "BPMN2.0::BPELProcess"] and ss:parentresourceidentifier="pk_{2DFF8796-9D6F-4381-B2DC-4C7FFEB881E2}" & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7} 
 GUIDが{2DFF8796-9D6F-4381-B2DC-4C7FFEB881E2}のパッケージに含まれる要素で、BPMN 2.0のビジネスプロセスかBPELプロセスの種類の要素の名前・GUIDを取得します。 | 
| 5 | http://localhost:480/firebird_model/oslc/am/qc/?oslc.select=dcterms:title,dcterms:creator{foaf:name},ss:version & oslc.where=ss:linkedresources{*=<http://localhost:480/firebird_model/oslc/am/resource/el_{B55E995C-D8EA-4fa9-9006-7932294961A9}>} & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7} 
 'Class1' (Enterprise ArchitectのGUIDが{B55E995C-D8EA-4fa9-9006-7932294961A9}に接続する要素の名前・作者・バージョンを取得します。 | 
| 6 | http://localhost:480/firebird_model/oslc/am/qc/?oslc.select=dcterms:title & oslc.where=dcterms:created<"01-05-2020" & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7} 
 この例は、内容に誤りがあるためエラーになります。createdはありません。 | 
| 注意: | 
| 
 
 | 
参照: