Prev Next

Query Capability

Clients can query a model and retrieve the Resources that match a specific criteria. In Enterprise Architect, the base URI for accessing the Query Capability is:


A query string expressing the specific criteria should be added to the base URI and addressed to the model using an HTTP GET request. The response for this request will be in RDF/XML format. Currently, Enterprise Architect supports querying on Package, element and diagram properties only (and not on its features such as attributes, operations and scenarios).

Enterprise Architect supports these Query Capability parameters for specifying the criteria:

  • oslc.where - specifies the conditions that the Resources must satisfy and is similar to the WHERE clause of a SQL statement
  • - specifies the Resource properties to be retrieved and is similar to the SELECT clause of a SQL statement

These parameters can be used separately or in combination to specify the criteria for retrieving the Resources.

Elements of the Response XML




Represents an OSLC Architecture Management 2.0 Resource and its properties (as defined in the Resource Shape). The attribute 'rdf:about' on this element specifies the URL for accessing the Resource. The format for this URL is:

<protocol>://<server>/<model_name>/oslc/am/resource/<Resource GUID With Prefix>/

Elements with namespace prefix 'dcterms'

The standard properties from the Dublin Core Metadata Element Set.

Elements with namespace prefix 'foaf'

The standard properties from the Friend of a Friend (FOAF) Vocabulary.

Elements with namespace prefix 'ss'

The custom Enterprise Architect properties.


Retrieve all Resources of type Actor in the model:

  • URL : http://localhost:480/firebird_model/oslc/am/qc/?oslc.where=dcterms:type="Actor"

The response is as shown.


     <rdf:Description rdf:about="http://mybuildvm:2480/firebird_model/oslc/am/qc/">


               <oslc_am:Resource rdf:about="http://localhost:480/firebird_model/oslc/am/resource/el_{9EAD1087-BC1A-4b04-804F-748713D10E42}/">

                    <rdf:type rdf:resource=""/>

                    <!--Name of the Resource-->


                    <!--Enterprise Architect Type for the Resource-->


                   <!--GUID of the Resource-->


                    <!--Author of the Resource-->






                    <!--Created Date of the Resource-->

                    <dcterms:created>2018-06-21 09:40:58</dcterms:created>

                    <!--Modified Date of the Resource-->

                    <dcterms:modified>2018-07-12 15:43:28</dcterms:modified>

                    <!--Status of the Resource-->


                    <!--Complexity of the Resource-->


                    <!--Phase of the Resource-->


                    <!--Version of the Resource-->


                    <!--Type of the Resource-->


                    <!--GUID of the Package that contains this Actor-->


                    <!--Use this link to retrieve the Features of this Actor-->

                    <ss:features rdf:resource="http://localhost:480/firebird_model/oslc/am/features/el_{9EAD1087-BC1A-4b04-804F-748713D10E42}/"/>

                    <!--Use this link to retrieve the Connectors of this Actor-->

                    <ss:nestedresources rdf:resource="http://localhost:480/firebird_model/oslc/am/nestedresources/el_{9EAD1087-BC1A-4b04-804F-748713D10E42}/"/>






  • This facility is available through these Enterprise Architect Pro Cloud Server Editions, under Enterprise Architect Release 13.5 or higher: Small Business Edition, Team Server Edition and Enterprise Server Edition
  • In a Security Enabled model, you need to provide the User Authentication Token (via the 'useridentifier' query string in the URL) in the GET request to retrieve the Resource/Resource Feature XML

Learn more