Topics
Prev Next

Service Provider and Service Provider Resource

Enterprise Architect acts as an OSLC Provider that other OSLC-compliant tools (OSLC Consumer/Clients) access to link to its Resources. All OSLC Resources live in a Service Provider, which is a central organising concept of OSLC. In Enterprise Architect, each model that can be accessed via the Pro Cloud Server is treated as an OSLC Service Provider. The Packages, elements, diagrams and connectors in the model are the OSLC Resources.

When an OSLC Consumer tries to consume data from OSLC Provider, it has to know all the services that the OSLC Provider offers. This can be achieved via a Service Provider Resource; that is, the services offered by the Service Provider can be retrieved using the Service Provider Resource. A Service Provider Resource specifies the:

  • URL to which you can POST representations to create new Resources
  • URL you can use to GET a list of existing Resources
  • URL from which you can get the metadata of:
         -  XML that has to be POSTed to create new Resources
         -  XML that represents the retrieved existing Resources

To retrieve the Service Provider Resource for an Enterprise Architect model connected via the Pro Cloud Server, use the URL:

     <protocol>://<server>/<model_name>/oslc/am/sp/

For example, the Service Provider Resource for a model called 'firebird_model', connected via the Pro Cloud Server, can be accessed using the URL:

     http://localhost:480/firebird_model/oslc/am/sp/

The retrieved resource will typically resemble this example:

Elements of the Service Provider Resource

Element

Description

oslc:Publisher

Specifies the OSLC Provider.

oslc:Service

Specifies the services offered by the OSLC Provider. Enterprise Architect supports these OSLC Architecture Management services:

  • Creation Factory for Packages and Elements - Create new Packages or elements in the model by passing their resource representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/resource/
  • Creation Factory for Package and Element Connectors - Create new Package or element connectors in the model by passing the resource representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/resourcelink/
  • Creation Factory for Element Attributes - Create new element attributes in the model by passing their resource representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/attribute/
  • Creation Factory for Element Operations - Create new element operations in the model by passing their resource representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/operation/
  • Creation Factory for Element Operation Parameters - Create new element operation parameters in the model by passing their resource representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/operationparameter/
  • Creation Factory for Package and Element Discussions - Create new Package/element Discussions in the model by passing the Discussion representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/discussion/
  • Creation Factory for Package and Element Discussion Replies - Create new Package and element Discussion replies in the model by passing the Reply representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/reply/
  • Creation Factory for Package and Element Resource Allocations - Create new Package and element Resource Allocations in the model by passing the Resource Allocation representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/resourceallocation/
  • Creation Factory for Package and Element Tests - Create new Package and element Tests in the model by passing the Test representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/test/
  • Creation Factory for Package and Element Tagged Values - Create new Package and element Tagged Values in the model by passing their resource representation in RDF/XML format using HTTP POST to the URL:
         <protocol>://<server>/<model_name>/oslc/am/cf/taggedvalue/
  • Creation Factory for Package and Element Maintenance Items - Create new Package and element Maintenance Items (Changes, Defects, Issues, Tasks, Event, Decision) in the model by passing their resource representation in RDF/XML format using HTTP POST to the URL:
         -  Change - <protocol>://<server>/<model_name>/oslc/am/cf/change/
         -  Defect - <protocol>://<server>/<model_name>/oslc/am/cf/defect/
         -  Issue - <protocol>://<server>/<model_name>/oslc/am/cf/issue/
         -  Task - <protocol>://<server>/<model_name>/oslc/am/cf/task/
         -  Event - <protocol>://<server>/<model_name>/oslc/am/cf/event/
         -  Decision - <protocol>://<server>/<model_name>/oslc/am/cf/decision/
  • Creation Factory for Package and Element Project Management Items - Create new Package and element Project Management Items (Efforts, Risks and Metrics) in the model by passing their resource representation in RDF format using HTTP POST to the URL:
           -  Effort - <protocol>://<server>/<model_name>/oslc/am/cf/effort/
         -  Risk - <protocol>://<server>/<model_name>/oslc/am/cf/risk/
         -  Metric - <protocol>://<server>/<model_name>/oslc/am/cf/metric/
  • Query Capability - Query the Enterprise Architect Model for its resources by passing the query using HTTP GET to the URL:
          <protocol>://<server>/<model_name>/oslc/am/qc/
  • Link Type Query Capability - Query the Enterprise Architect Model to retrieve all the supported Connector Types, using the URL:
         <protocol>://<server>/<model_name>/oslc/am/lt/

oslc:resourceShape

Specifies the resource metadata; that is, its properties and constraints.

oslc:prefixDefinition

Specifies the namespace prefixes and their namespace definitions.

Notes

  • This facility is available through the Enterprise Architect Pro Cloud Server
  • Creation Factory Service will not be available when the Pro Cloud Server connection to the Enterprise Architect model is configured as a read-only connection

Learn more