上一页 下一页

服务提供商和服务提供商资源

E nterprise Architect充当OSLC提供程序,其他符合OSLC标准的工具(OSLC Consumer / Clients)可以访问其资源。所有OSLC资源都存在于服务提供者中,这是OSLC的核心组织概念。在Enterprise Architect中,可以通过Pro Cloud Server访问的每个模型都被视为OSLC服务提供者。模型中的包,元素,图表和连接器是OSLC资源。

当OSLC使用者尝试使用来自OSLC Provider的数据时,它必须知道OSLC Provider提供的所有服务。这可以通过服务提供商资源来实现; 也就是说,可以使用服务提供者资源来检索服务提供者提供的服务。服务提供者资源指定:

  • 可以POST表示以创建新资源的URL
  • 您可以用来获取现有资源列表的URL
  • 从中可以获取元数据的URL:
         - 必须POST以创建新资源的
         XML - 表示检索到的现有资源的XML

要检索通过Pro Cloud Server连接的Enterprise Architect模型的服务提供者资源,请使用以下URL:

     <protocol>:// <server> / <model_name> / OSLC / AM / SP /

例如,可以使用以下URL访问通过Pro Cloud Server连接的名为“firebird_model”的模型的服务提供者资源:

     HTTP://localhost:480 / firebird_model / OSLC / AM / SP /

检索到的资源通常类似于此示例。

示例资源XML

<rdf:RDF>

     <oslc:ServiceProvider rdf:about="http://mybuildvm:2480/firebird_model/oslc/am/sp/">

          <dcterms:title>firebird:anonymous@firebird_model</dcterms:title>

          <dcterms:publisher>

               <oslc:Publisher>

                    <dcterms:title>Sparx Systems</dcterms:title>

                    <dcterms:identifier>http://www.sparxsystems.com.au/</dcterms:identifier>

                    <!--Enterprise Architect's OSLC Architecture Management 2.0 Implementation Version-->

                    <ss:version>1.01.1390</ss:version>

                    <!--Specifies whether Pro Cloud Server Connection to Enterprise Architect Model is Read-Only-->

                    <ss:readonlyconnection>false</ss:readonlyconnection>

                    <!--Specifies whether User Security is enable in the Enterprise Architect Model-->

                    <ss:securityenabledmodel>true</ss:securityenabledmodel>

                    <!--Specifies the Pro Cloud Server Edition-->

                    <ss:prolicense>Enterprise</ss:prolicense>

                    <!--Specifies the Pro Cloud Server Expiry Date -->

                    <ss:prolicenseexpiry>2018-05-01</ss:prolicenseexpiry>

               </oslc:Publisher>

          </dcterms:publisher>

          <!--Specifies the OSLC Architecture Management 2.0 Services supported by Enterprise Architect-->

          <oslc:service>

               <oslc:Service>

                    <oslc:domain rdf:resource="http://open-services.net/ns/am#"/>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Package/Element

                              </dcterms:title>

                              <!--Create new Resource (Package/Element) in the Enterprise Architect Model by POSTing Resource XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/resource/"/>

                              <!--URL describing metadata of the Resource XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfresource/"/>

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfprofileresource/"/>

                              <oslc:usage rdf:resource="http://open-services/ns/core#default"/>

                              <oslc:resourceType rdf:resource="http://open-services.net/ns/am#Resource"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Link

                              </dcterms:title>

                              <!--Create new Connector in the Enterprise Architect Model by POSTing Connector XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/resourcelink/"/>

                              <!--URL describing metadata of the Connector XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cflinktype/"/>

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfprofilelinktype/"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Element Attribute

                              </dcterms:title>

                              <!--Create new Element Attribute in the Enterprise Architect Model by POSTing Attribute XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/attribute/"/>

                              <!--URL describing metadata of the Attribute XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfattribute/"/>

                              <oslc:resourceType rdf:resource="http://www.sparxsystems.com.au/oslc_am#attribute"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Element Operation

                              </dcterms:title>

                              <!--Create new Element Operation in the Enterprise Architect Model by POSTing Operation XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/operation/"/>

                              <!--URL describing metadata of the Operation XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfoperation/"/>

                              <oslc:resourceType rdf:resource="http://www.sparxsystems.com.au/oslc_am#operation"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Operation Parameter

                              </dcterms:title>

                              <!--Create new Element Operation Parameter in the Enterprise Architect Model by POSTing Operation Parameter XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/operationparameter/"/>

                              <!--URL describing metadata of the Operation Parameter XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfoperationparameter/"/>

                              <oslc:resourceType rdf:resource="http://www.sparxsystems.com.au/oslc_am#operationparameter"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Discussion

                              </dcterms:title>

                              <!--Create new Package/Element Discussion in the Enterprise Architect Model by POSTing Discussion XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/discussion/"/>

                              <!--URL describing metadata of the Discussion XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfdiscussion/"/>

                              <oslc:resourceType rdf:resource="http://www.sparxsystems.com.au/oslc_am#discussion"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Discussion Reply

                              </dcterms:title>

                              <!--Create new Package/Element Discussion Reply in the Enterprise Architect Model by POSTing Discussion Reply XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/reply/"/>

                              <!--URL describing metadata of the Discussion Reply XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfreply/"/>

                              <oslc:resourceType rdf:resource="http://www.sparxsystems.com.au/oslc_am#reply"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Resource Allocation

                              </dcterms:title>

                              <!--Create new Package/Element Resource Allocation in the Enterprise Architect Model by POSTing Resource Allocation XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/resourceallocation/"/>

                              <!--URL describing metadata of the Resource Allocation XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfresourceallocation/"/>

                              <oslc:resourceType rdf:resource="http://www.sparxsystems.com.au/oslc_am#resourceallocation"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Test

                              </dcterms:title>

                              <!--Create new Package/Element Test in the Enterprise Architect Model by POSTing Test XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/test/"/>

                              <!--URL describing metadata of the Test XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cftest/"/>

                              <oslc:resourceType rdf:resource="http://www.sparxsystems.com.au/oslc_am#test"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Tagged Value

                              </dcterms:title>

                              <!--Create new Package/Element Tagged Value in the Enterprise Architect Model by POSTing Tagged Value XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/taggedvalue/"/>

                              <!--URL describing metadata of the Tagged Value XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cftaggedvalue/"/>

                              <oslc:resourceType rdf:resource="http://www.sparxsystems.com.au/oslc_am#taggedvalue"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Maintenance Item ( Change/Defect/Issue/Task/Event/Decision )

                              </dcterms:title>

                              <!--Create new Package/Element Maintenance Item in the Enterprise Architect Model by POSTing Maintenance Item XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/maintenanceitem/"/>

                              <!--URL describing metadata of the Change XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfchange/"/>

                              <!--URL describing metadata of the Defect XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfdefect/"/>

                              <!--URL describing metadata of the Issue XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfissue/"/>

                              <!--URL describing metadata of the Task XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cftask/"/>

                              <!--URL describing metadata of the Event XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfevent/"/>

                              <!--URL describing metadata of the Decision XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfdecision/"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:creationFactory>

                         <oslc:CreationFactory>

                              <dcterms:title>

                                   Creation Factory for Enterprise Architect Project Management Item ( Effort/Risk/Metric )

                              </dcterms:title>

                              <!--Create new Package/Element Project Management Item in the Enterprise Architect Model by POSTing Project Management Item XML to this URL-->

                              <oslc:creation rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/cf/projectmanagementitem/"/>

                              <!--URL describing metadata of the Effort XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfeffort/"/>

                              <!--URL describing metadata of the Risk XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfrisk/"/>

                              <!--URL describing metadata of the Metric XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/cfmetric/"/>

                         </oslc:CreationFactory>

                    </oslc:creationFactory>

                    <oslc:queryCapability>

                         <oslc:QueryCapability>

                              <dcterms:title>

                                   Resource Query

                              </dcterms:title>

                              <!--Retrieve Resources (Packages/Elements/Diagrams) from the Enterprise Architect Model by sending GET request with query parameters to this URL-->

                              <oslc:queryBase rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/qc/"/>

                              <!--URL describing metadata of the retrieved Resource XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/resource/"/>

                              <oslc:resourceType rdf:resource="http://open-services.net/ns/am#Resource"/>

                         </oslc:QueryCapability>

                    </oslc:queryCapability>

                    <oslc:queryCapability>

                         <oslc:QueryCapability>

                              <dcterms:title>

                                   Link Type Query

                              </dcterms:title>

                              <!--Retrieve all valid Enterprise Architect Connector Types using this URL-->

                              <oslc:queryBase rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/lt/"/>

                              <!--URL describing metadata of the retrieved Link Type Query XML-->

                              <oslc:resourceShape rdf:resource="http://mybuildvm:2480/firebird_model/oslc/am/rs/linktype/"/>

                              <oslc:resourceType rdf:resource="http://open-services.net/ns/am#LinkType"/>

                         </oslc:QueryCapability>

                    </oslc:queryCapability>

               </oslc:Service>

          </oslc:service>

          <!--Namespaces and their Prefixes-->

          <oslc:prefixDefinition>

               <oslc:PrefixDefinition>

                    <oslc:prefix>rdf</oslc:prefix>

                    <oslc:prefixBase rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>

               </oslc:PrefixDefinition>

          </oslc:prefixDefinition>

          <oslc:prefixDefinition>

               <oslc:PrefixDefinition>

                    <oslc:prefix>rdfs</oslc:prefix>

                    <oslc:prefixBase rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>

               </oslc:PrefixDefinition>

          </oslc:prefixDefinition>

          <oslc:prefixDefinition>

               <oslc:PrefixDefinition>

                    <oslc:prefix>oslc</oslc:prefix>

                    <oslc:prefixBase rdf:resource="http://open-services.net/ns/core#"/>

               </oslc:PrefixDefinition>

          </oslc:prefixDefinition>

          <oslc:prefixDefinition>

               <oslc:PrefixDefinition>

                    <oslc:prefix>oslc_am</oslc:prefix>

                    <oslc:prefixBase rdf:resource="http://open-services.net/ns/am#"/>

               </oslc:PrefixDefinition>

          </oslc:prefixDefinition>

          <oslc:prefixDefinition>

               <oslc:PrefixDefinition>

                    <oslc:prefix>dcterms</oslc:prefix>

                    <oslc:prefixBase rdf:resource="http://purl.org/dc/terms/"/>

               </oslc:PrefixDefinition>

          </oslc:prefixDefinition>

          <oslc:prefixDefinition>

               <oslc:PrefixDefinition>

                    <oslc:prefix>foaf</oslc:prefix>

                    <oslc:prefixBase rdf:resource="http://xmlns.com/foaf/0.1/"/>

               </oslc:PrefixDefinition>

          </oslc:prefixDefinition>

          <oslc:prefixDefinition>

               <oslc:PrefixDefinition>

                    <oslc:prefix>ss</oslc:prefix>

                    <oslc:prefixBase rdf:resource="http://www.sparxsystems.com.au/oslc_am#"/>

               </oslc:PrefixDefinition>

          </oslc:prefixDefinition>

     </oslc:ServiceProvider>

</rdf:RDF>

服务提供者资源的元素

元件

描述

OSLC:出版商

指定OSLC提供程序。

OSLC:服务

指定OSLC提供程序提供的服务。Enterprise Architect支持这些OSLC体系结构管理服务:

  • 包和元素的创建工厂 - 通过使用HTTP POST将其资源表示形式以RDF / XML格式传递到URL来创建模型中的新包或元素:

    <protocol>:// <server> / <model_name> / oslc / am / CF /resource/

  • 用于包和元素连接器的创建工厂 - 通过使用HTTP POST将RDF / XML格式的资源表示传递到URL来在模型中创建新的包或元素连接器:

    <protocol>:// <server> / <model_name> / oslc / AM / CF / resourcelink /

  • 元素属性的创建工厂 - 通过使用HTTP POST将其资源表示以RDF / XML格式传递到URL来在模型中创建新的元素属性:

    <protocol>:// <server> / <model_name> / oslc / am / cf /attribute/

  • 元素操作的创建工厂 - 通过使用HTTP POST将其资源表示以RDF / XML格式传递到URL来在模型中创建新的元素操作:

    <protocol>:// <server> / <model_name> / oslc / am / cf /operation/

  • 元素操作参数的创建工厂 - 通过使用HTTP POST将其资源表示以RDF / XML格式传递到URL,在模型中创建新的元素操作参数:

    <protocol>:// <server> / <model_name> / oslc / am / CF / operationparameter /

  • 用于包和元素讨论的创建工厂- 通过使用HTTP POST将RDF / XML格式的Discussion表示传递给URL来创建模型中的新包/元素讨论:

    <protocol>:// <server> / <model_name> / oslc / AM / CF /discussion/

  • 用于包和元素讨论的创建工厂回复 - 通过使用HTTP POST将RDF / XML格式的Reply表示传递到URL:

    <protocol>:// <server> / <model_name> / oslcOSLC / AM / CF /reply/

  • 用于包和元素资源分配的创建工厂 - 通过使用HTTP POST将RDF / XML格式的资源分配表示传递到URL:

    <protocol>:// <server> / <model_name> /OSLC / AM / CF / resourceallocation /

  • 用于包和元素测试的创建工厂 - 通过使用HTTP POST将测试表示以RDF / XML格式传递到URL来在模型中创建新的包和元素测试:

    <protocol>:// <server> / <model_name> / oslc / AM / CF /test/

  • 包和元素标记值的创建工厂- 通过使用HTTP POST将其RDF / XML格式的资源表示传递到URL,在模型中创建新的包和元素标记值:

    <protocol>:// <server> / <model_name> / OSLC / AM / CF / taggedvalue /

  • 包和元素维护项的创建工厂 - 通过使用HTTP POST将其RDF / XML格式的资源表示传递到URL,在模型中创建新的包和元素维护项(更改,缺陷,问题,任务,事件,决策):

         -更改
            <protocol>:// <server> / <model_name> / oslc / am / cf / change /

         - 缺陷
            <protocol>:// <server> / <model_name> / oslc / am / cf / defect /

         - Issue
            < protocol>:// <server> / <model_name> / oslc / am / cf / issue /

         - 任务
            <protocol>:// <server> / <model_name> / oslc / am / cf / task /

         - Event
            <protocol> :// <server> / <model_name>/ oslc / am / cf / event /

         - 决定
            <协议>:// <server> / <model_name> / OSLC / AM / CF /decision/

  • 包和元素项目管理项目的创建工厂 - 通过使用HTTP POST将其RDF格式的资源表示传递到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/

  • 查询功能 - 通过使用HTTP GET将查询传递到URL来查询Enterprise Architect模型的资源:

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

  • 链接类型查询功能 - 使用URL查询Enterprise Architect模型以检索所有支持的连接器类型:

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

OSLC:resourceShape

指定资源元数据; 也就是说,它的属性和约束。

OSLC:prefixDefinition

指定名称空间前缀及其名称空间定义。

笔记

  • 此工具可通过Enterprise Architect版本13.5或更高版本下的Enterprise Architect Pro云服务器版本获得:Small Business Edition,Team Server Edition和Enterprise Server Edition
  • Pro Cloud Server与Enterprise Architect模型的连接配置为只读连接时,Create Factory Service将不可用

学到更多