Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Combine oslc.where and parameters

The 'oslc.where' and '' Query parameters can be combined in the base URI of the Query Capability to retrieve the required properties of all those Resources that satisfy the specified condition. This is similar to using WHERE and SELECT clauses together in a SQL statement.

     <protocol>://<server>/<model_name>/oslc/am/qc/?<CSV of Resource Properties> & oslc.where=<conditions>


These example queries act on a model called 'firebird_model' connected through the Pro Cloud Server.




http://localhost:480/firebird_model/oslc/am/qc/?* & oslc.where=dcterms:title="Class1" & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7}

Selects all properties of Resources that have the name 'Class1'.


http://localhost:480/firebird_model/oslc/am/qc/? & oslc.where=dcterms:title="Class1" and dcterms:type="Class" & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7}

Selects the name of every Enterprise Architect Class Type Resource with the name 'Class1'.


http://localhost:480/firebird_model/oslc/am/qc/?,dcterms:type,dcterms:identifier & oslc.where=ss:resourcetype in ["Package","Diagram"] & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7}

Selects the name, type and GUID of every Enterprise Architect Package and diagram in the model.


http://localhost:480/firebird_model/oslc/am/qc/?,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}

Selects the name, GUID and Resource Type of every Resource in a Package with the GUID {2DFF8796-9D6F-4381-B2DC-4C7FFEB881E2}, that are either BPMN 2.0 Business Process or BPMN 2.0 BPEL Process elements.


http://localhost:480/firebird_model/oslc/am/qc/?,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}

Selects the name, author and version of every Resource in the model that links to 'Class1' (which has the Enterprise Architect GUID {B55E995C-D8EA-4fa9-9006-7932294961A9}).


http://localhost:480/firebird_model/oslc/am/qc/? & oslc.where=dcterms:created<"01-05-2020" & useridentifier={72825AF9-E116-48f1-9DF8-77815E66B1A7}

Returns an error response, as the value of the Resource property 'created' is not in a valid format.


  • This facility is available through the Pro Cloud Server, with a valid license
  • Dates must be specified in the format YYYY-MM-DD
  • GET request to retrieve the Resource/Resource Feature XML will not be processed by the Pro Cloud Server unless the User Authentication Token is passed in with the request (via the 'useridentifier' query string in the URL)

Learn more