上一页 下一页

创作工厂

Enterprise Architect支持Creation Factory OSLC服务,客户可以通过HTTP POST动词创建这些新的资源和资源功能:

  • 资源
         - 包
         - 元素
         - 连接器
  • 资源功能
         - 包/ 元素讨论,讨论回复,资源分配,测试,标记值,维护项目和项目管理项目     - 元素属性,操作和操作参数
           

要创建新的资源或资源功能,客户端会将RDF XML格式的资源或资源功能的表示形式发布到Creation Factory URL。如果POST成功,响应XML和响应的HTTP位置标头将包含创建的资源或资源功能的URL。不成功的POST将生成错误响应。

有关用于创建每个资源和功能的信息,请参阅本主题中的表。另请参阅GUID前缀表RDF / XML表示主题示例

类型

输入

网址

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

POST RDF / XML

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                 xmlns:dcterms="http://purl.org/dc/terms/" 

                 xmlns:foaf="http://xmlns.com/foaf/0.1/"

                 xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <oslc_am:Resource>

          <!--Required Properties-->

          <dcterms:title>NAME</dcterms:title>

          <dcterms:type>Package</dcterms:type>

          <ss:resourcetype>Package</ss:resourcetype>

          <ss:parentresourceidentifier>GUID OF THE CONTAINING PACKAGE WITH GUID PREFIX</ss:parentresourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <dcterms:subject>KEYWORDS</dcterms:subject>

          <dcterms:creator>

               <foaf:Person>

                    <foaf:name>AUTHOR</foaf:name>

               </foaf:Person>

          </dcterms:creator>

          <dcterms:description>NOTES</dcterms:description>

          <ss:alias>ALIAS</ss:alias>

          <ss:status>STATUS</ss:status>

          <ss:complexity>COMPLEXITY</ss:complexity>

          <ss:stereotype>

               <ss:stereotypename>

                    <ss:name>STEREOTYPE</ss:name>

              </ss:stereotypename>

          </ss:stereotype>

          <ss:phase>PHASE</ss:phase>

          <ss:version>VERSION</ss:version>

          <ss:language>LANGUAGE</ss:language>

      </oslc_am:Resource>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfresource/

元件

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                  xmlns:dcterms="http://purl.org/dc/terms/" 

                  xmlns:foaf="http://xmlns.com/foaf/0.1/"

                  xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <oslc_am:Resource>

          <!--Required Properties-->

          <dcterms:title>NAME</dcterms:title>

          <dcterms:type>ELEMENT TYPE</dcterms:type>

          <ss:resourcetype>Element</ss:resourcetype>

          <ss:parentresourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID  PREFIX</ss:parentresourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <dcterms:subject>KEYWORDS</dcterms:subject>

          <dcterms:creator>

             <foaf:Person>

                <foaf:name>AUTHOR</foaf:name>

             </foaf:Person>

          </dcterms:creator>

          <dcterms:description>NOTES</dcterms:description>

          <ss:alias>ALIAS</ss:alias>

          <ss:status>STATUS</ss:status>

          <ss:complexity>COMPLEXITY</ss:complexity>

          <ss:stereotype>

               <ss:stereotypename>

                    <ss:name>STEREOTYPE</ss:name>

               </ss:stereotypename>

          </ss:stereotype>

          <ss:phase>PHASE</ss:phase>

          <ss:version>VERSION</ss:version>

          <ss:difficulty>DIFFICULTY</ss:difficulty>

          <ss:priority>PRIORITY</ss:priority>

          <ss:language>LANGUAGE</ss:language>

      </oslc_am:Resource>

</rdf:RDF>

资源形态

  • UML元素:
    <protocol>:// <server> / <model> / oslc / am / rs / cfresource /
  • 配置文件元素:
    <protocol>:// <server> / <model> / oslc / am / rs / cfprofileresource /

元素属性

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                 xmlns:dcterms="http://purl.org/dc/terms/"

                 xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:attribute>

          <!--Required Properties-->

          <ss:resourceidentifier>GUID OF THE CONTAINING EA ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <dcterms:title>ATTRIBUTE NAME</dcterms:title>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:classifiername>DATATYPE/CLASSIFIER NAME</ss:classifiername>

          <dcterms:description>NOTES</dcterms:description>

          <ss:alias>ALIAS</ss:alias>

          <ss:classifierresourceidentifier>GUID OF THE CLASSIFIER EA ELEMENT WITH GUID PREFIX</ss:classifierresourceidentifier>

          <ss:defaultvalue>DEFAULT VALUE</ss:defaultvalue>

          <ss:stereotype>

              <ss:stereotypename>

                   <ss:name>STEREOTYPE</ss:name>

              </ss:stereotypename>

          </ss:stereotype>

          <ss:scope>SCOPE</ss:scope>

          <ss:containment>CONTAINMENT</ss:containment>

          <ss:isstatic>IS STATIC</ss:isstatic>

          <ss:iscollection>IS COLLECTION</ss:iscollection>

          <ss:isordered>IS ORDERED</ss:isordered>

          <ss:isconst>IS CONST</ss:isconst>

          <ss:allowduplicates>ALLOW DUPLICATES</ss:allowduplicates>

          <ss:lowerbound>NUMERICAL VALUE</ss:lowerbound>

          <ss:upperbound>NUMERICAL VALUE</ss:upperbound>

          <ss:position>NUMERICAL VALUE</ss:position>

     </ss:attribute>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfattribute/

元素操作

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/"

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:operation>

          <!--Required Properties-->

          <ss:resourceidentifier>GUID OF THE CONTAINING EA ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <dcterms:title>OPERATION NAME</dcterms:title>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional  Properties-->

          <dcterms:description>NOTES</dcterms:description>

          <ss:alias>ALIAS</ss:alias>

          <ss:classifiername>DATATYPE/CLASSIFIER NAME</ss:classifiername>

          <ss:classifierresourceidentifier>GUID OF THE CLASSIFIER EA ELEMENT WITH GUID PREFIX</ss:classifierresourceidentifier>

          <ss:stereotype>

             <ss:stereotypename>

                  <ss:name>STEREOTYPE</ss:name>

             </ss:stereotypename>

          </ss:stereotype>

          <ss:scope>SCOPE</ss:scope>

          <ss:concurrency>CONCURRENCY</ss:concurrency>

          <ss:isstatic>IS STATIC</ss:isstatic>

          <ss:isabstract>IS ABSTRACT</ss:isabstract>

          <ss:isreturnarray>IS RETURNARRAY</ss:isreturnarray>

          <ss:isquery>IS QUERY</ss:isquery>

          <ss:issynchronized>IS SYNCHRONIZED</ss:issynchronized>

          <ss:isconst>IS CONST</ss:isconst>

          <ss:ispure>IS PURE</ss:ispure>

          <ss:position>NUMERICAL VALUE</ss:position>

          <ss:behaviour>BEHAVIOR</ss:behavior>

     </ss:operation>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfoperation/

元素操作参数

类型

输入

网址

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

POST RDF / XML

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/"

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:parameter>

          <!--Required Properties-->

          <ss:operationidentifier>GUID OF THE CONTAINING OPERATION WITH GUID PREFIX</ss:operationidentifier>

          <dcterms:title>OPERATION PARAMETER NAME</dcterms:title>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional  Properties-->

          <dcterms:description>NOTES</dcterms:description>

          <ss:classifiername>DATATYPE/CLASSIFIER NAME</ss:classifiername>

          <ss:classifierresourceidentifier>GUID OF THE CLASSIFIER EA ELEMENT WITH GUID PREFIX</ss:classifierresourceidentifier>

          <ss:defaultvalue>DEFAULT VALUE</ss:defaultvalue>

          <ss:paramdirection>DIRECTION</ss:paramdirection>

          <ss:position>NUMERICAL VALUE</ss:position>

          <ss:fixedvalue>FIXED VALUE</ss:fixedvalue>

          <ss:alias>ALIAS</ss:alias>

          <ss:stereotype>

               <ss:stereotypename>

                    <ss:name>STEREOTYPE</ss:name>

               </ss:stereotypename>

          </ss:stereotype>

          <ss:lowerbound>NUMERICAL VALUE</ss:lowerbound>

          <ss:upperbound>NUMERICAL VALUE</ss:upperbound>

          <ss:isordered>IS ORDERED</ss:isordered>

          <ss:allowduplicates>ALLOW DUPLICATES</ss:allowduplicates>

     </ss:parameter>

</rdf:RDF>

 

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfoperationparameter/

连接器

类型

输入

网址

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

POST RDF / XML

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

               xmlns:dcterms="http://purl.org/dc/terms/" 

               xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <oslc_am:Resource>

          <!--Required Properties-->

          <dcterms:identifier>GUID OF THE SOURCE PACKAGE/ELEMENT WITH GUID PREFIX</dcterms:identifier>

          <ss:{connector type} rdf:ID="ID" rdf:resource="<protocol>://<server>:<port>/<model>/oslc/am/resource/<GUID OF TARGET PACKAGE/ELEMENT WITH GUID PREFIX>/"/>

     </oslc_am:Resource>

     <rdf:Description rdf:about="#ID">

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER SECURITY GUID</ss:useridentifier>

          <!--Optional Properties-->

          <dcterms:title>CONNECTOR NAME</dcterms:title>

          <dcterms:type> CONNECTOR TYPE</dcterms:type>

          <dcterms:description>NOTES</dcterms:description>

          <ss:direction>DIRECTION</ss:direction>

          <ss:stereotype>

               <ss:stereotypename>

                    <ss:name>STEREOTYPE</ss:name>

               <ss:/stereotypename>

          </ss:stereotype>

      </rdf:Description>

</rdf:RDF>

资源形态

  • UML连接器:
    <protocol>:// <server> / <model> / oslc / am / rs / cflinktype /
  • 配置文件连接器:
    <protocol>:// <server> / <model> / oslc / am / rs / cfprofilelinktype /

包/元素讨论

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/"

                xmlns:foaf="http://xmlns.com/foaf/0.1/"

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:discussion>

          <!--Required Properties-->

          <dcterms:description>DISCUSSION TEXT</dcterms:description>

          <dcterms:creator>

               <foaf:Person>

                    <foaf:name>AUTHOR</foaf:name>

               </foaf:Person>

          </dcterms:creator>

          <ss:resourceidentifier>GUID OF THE PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:status>DISCUSSION STATUS</ss:status>

          <ss:priority>DISCUSSION PRIORITY</ss:priority>

          <ss:reviewresourceidentifier>GUID OF THE REVIEW ELEMENT WITH GUID PREFIX</ss:reviewresourceidentifier>

     </ss:discussion>

</rdf:RDF>

注意:

  • 如果讨论是Review的一部分,则在ss:reviewresourceidentifier XML元素中设置Review元素的GUID

资源形态

<protocol>:// <server> / <model> / oslc / am / rs / cfdiscussion /

包/元素讨论回复

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/" 

                xmlns:foaf="http://xmlns.com/foaf/0.1/"

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:reply>

          <!--Required Properties-->

          <dcterms:description>REPLY TEXT</dcterms:description>

          <dcterms:creator>

               <foaf:Person>

                    <foaf:name>AUTHOR</foaf:name>

               </foaf:Person>

          </dcterms:creator>

          <ss:discussionidentifier>GUID OF THE DISCUSSION WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

         <ss:reviewresourceidentifier>GUID OF THE REVIEW ELEMENT WITH GUID PREFIX</ss:reviewresourceidentifier>

     </ss:reply>

</rdf:RDF>

注意:

  • 如果讨论回复是评论的一部分,则在ss中设置评论元素的GUID:reviewresourceidentifier XML元素

资源形态

<protocol>:// <server> / <model> / oslc / am / rs / cfreply /

包/元素资源分配

类型

输入

UML

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/"

                xmlns:foaf="http://xmlns.com/foaf/0.1/"

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:resourceallocation>

          <!--Required Properties-->

          <ss:resourcename>

               <foaf:Person>

                    <foaf:name>RESOURCE NAME</foaf:name>

               </foaf:Person>

          </ss:resourcename>

          <ss:role>RESOURCE ROLE</ss:role>

          <ss:startdate>YYYY-MM-DD FORMAT</ss:startdate>

          <ss:enddate>YYYY-MM-DD FORMAT</ss:enddate>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:percentagecomplete>PERCENT COMPLETE</ss:percentagecomplete>

          <ss:expectedtime>EXPECTED TIME</ss:expectedtime>

          <ss:allocatedtime>ALLOCATED TIME</ss:allocatedtime>

          <ss:expendedtime>EXPENDED TIME</ss:expendedtime>

          <dcterms:description>NOTES</dcterms:description>

          <ss:history>HISTORY</ss:history>

     </ss:resourceallocation>

</rdf:RDF>

资源形态

<protocol>:// <server> / <model> / oslc / am / rs / cfresourceallocation /

包/元素测试

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/" 

                xmlns:foaf="http://xmlns.com/foaf/0.1/"

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:test>

          <!--Required Properties-->

          <dcterms:title>TEST NAME</dcterms:title>

          <dcterms:type>TYPE</dcterms:type>

          <ss:classtype>CLASS TYPE</ss:classtype>

          <ss:status>STATUS</ss:status>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:lastrun>YYYY-MM-DD FORMAT</ss:lastrun>

          <ss:runby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:runby>

          <ss:checkedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:checkedby>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <dcterms:description>NOTES</dcterms:description>

          <ss:input>HISTORY TEXT</ss:input>

          <ss:acceptancecriteria>ACCEPTANCE CRITERIA TEXT</ss:acceptancecriteria>

          <ss:results>RESULTS TEXT</ss:results>

     </ss:test>

</rdf:RDF>

资源形态

<protocol>:// <server> / <model> / oslc / am / rs / cftest /

包/元素标记值

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/"

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:taggedvalue>

          <!--Required Properties-->

          <dcterms:title>TAG NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:value>TAG VALUE</ss:value>    

          <dcterms:description>TAG NOTES</dcterms:description>

          <ss:allowduplicates>BOOLEAN VALUE</ss:allowduplicates>

          <ss:type>PREDEFINED TAG TYPE</ss:type>

     </ss:taggedvalue>

</rdf:RDF>

笔记:

  • ss:type可以包含以下预定义结构化类型之一:
         - Type = Boolean;
         - Type = Color;
         - Type = Const;Default= Val;
         - Type = Date;
         - Type = Directory;
         - Type = Enum; Values = Val1,Val2,....;
         - Type = File;
         - Type = Float;
         - Type = Decimal;
         - Type = DiagramRef;
         - Type = Double;
         - Type = Integer;
         - Type = Memo;
         - Type = RefGUID;
         - Type = RefGUIDList;
         - Type = String;
         - Type = Time;
         - Type = Timestamp;
         - Type = URL; 
  • 日期预定义结构化类型的值应为YYYY-MM-DD格式
  • 时间预定义结构化类型的值应为HH:MM格式
  • 时间戳预定义结构化类型的值应为YYYY-MM-DD HH:MM格式

资源形态

<protocol>:// <server> / <model> / oslc / am / rs / cf taggedvalue /

包/元素变化

类型

输入

网址

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

发布RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/" 

                xmlns:foaf="http://xmlns.com/foaf/0.1/"

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:change>

          <!--Required Properties-->

          <dcterms:title>CHANGE NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:requestedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:requestedby>

          <ss:requestedon>YYYY-MM-DD format</ss:requestedon>

          <ss:status>STATUS</ss:status>

          <ss:priority>PRIORITY</ss:priority>

          <ss:completedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:completedby>

          <ss:completedon>YYYY-MM-DD format</ss:completedon>

          <ss:version>VERSION</ss:version>

          <dcterms:description>NOTES</dcterms:description>

          <ss:history>HISTORY</ss:history>

     </ss:change>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfchange/

包/元件缺陷

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

               xmlns:dcterms="http://purl.org/dc/terms/"

               xmlns:foaf="http://xmlns.com/foaf/0.1/"

               xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:defect>

          <!--Required Properties-->

          <dcterms:title>DEFECT NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:reportedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:reportedby>

          <ss:reportedon>YYYY-MM-DD format</ss:reportedon>

          <ss:status>STATUS</ss:status>

          <ss:priority>PRIORITY</ss:priority>

          <ss:resolvedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:resolvedby>

          <ss:resolvedon>YYYY-MM-DD format</ss:resolvedon>

          <ss:version>VERSION</ss:version>

          <dcterms:description>NOTES</dcterms:description>

          <ss:history>HISTORY</ss:history>

     </ss:defect>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfdefect/

包/元素问题

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

               xmlns:dcterms="http://purl.org/dc/terms/"

               xmlns:foaf="http://xmlns.com/foaf/0.1/"

               xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:issue>

          <!--Required Properties-->

          <dcterms:title>ISSUE NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:raisedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:raisedby>

          <ss:raisedon>YYYY-MM-DD format</ss:raisedon>

          <ss:status>STATUS</ss:status>

          <ss:priority>PRIORITY</ss:priority>

          <ss:completedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:completedby>

          <ss:completedon>YYYY-MM-DD format</ss:completedon>

          <ss:version>VERSION</ss:version>

          <dcterms:description>NOTES</dcterms:description>

          <ss:history>HISTORY</ss:history>

     </ss:issue>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfissue/

包/元素任务

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/" 

                xmlns:foaf="http://xmlns.com/foaf/0.1/"

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:task>

          <!--Required Properties-->

          <dcterms:title>TASK NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:requestedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:requestedby>

          <ss:requestedon>YYYY-MM-DD format</ss:requestedon>

          <ss:status>STATUS</ss:status>

          <ss:priority>PRIORITY</ss:priority>

          <ss:completedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

              </foaf:Person>

          </ss:completedby>

          <ss:completedon>YYYY-MM-DD format</ss:completedon>

          <ss:version>VERSION</ss:version>

          <dcterms:description>NOTES</dcterms:description>

          <ss:history>HISTORY</ss:history>

     </ss:task>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cftask/

包/元素事件

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                  xmlns:dcterms="http://purl.org/dc/terms/" 

                  xmlns:foaf="http://xmlns.com/foaf/0.1/"

                  xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:event>

          <!--Required Properties-->

          <dcterms:title>EVENT NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:reportedby>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:reportedby>

          <ss:reportedon>YYYY-MM-DD format</ss:reportedon>

          <dcterms:type>TYPE</dcterms:type>

          <ss:priority>PRIORITY</ss:priority>

          <ss:resolvedby>

              <foaf:Person>

                   <foaf:name>PERSON NAME</foaf:name>

              </foaf:Person>

          </ss:resolvedby>

          <ss:resolvedon>YYYY-MM-DD format</ss:resolvedon>

          <ss:version>VERSION</ss:version>

          <dcterms:description>NOTES</dcterms:description>

          <ss:history>HISTORY</ss:history>

     </ss:event>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfevent/

包/元素决策

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                 xmlns:dcterms="http://purl.org/dc/terms/" 

                 xmlns:foaf="http://xmlns.com/foaf/0.1/"

                 xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:decision>

          <!--Required Properties-->

          <dcterms:title>DECISION NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <ss:owner>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:owner>

          <ss:date>YYYY-MM-DD format</ss:date>

          <ss:status>STATUS</ss:status>

          <ss:impact>IMPACT</ss:impact>

          <ss:author>

               <foaf:Person>

                    <foaf:name>PERSON NAME</foaf:name>

               </foaf:Person>

          </ss:author>

          <ss:effective>YYYY-MM-DD format</ss:effective>

          <ss:version>VERSION</ss:version>

          <dcterms:description>NOTES</dcterms:description>

          <ss:history>HISTORY</ss:history>

      </ss:decision>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfdecision/

包/元素工作

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

               xmlns:dcterms="http://purl.org/dc/terms/" 

               xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:effort>

          <!--Required Properties-->

          <dcterms:title>EFFORT NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

         <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <dcterms:type>TYPE</dcterms:type>

          <ss:time>NUMERICAL VALUE</ss:time>

          <dcterms:description>NOTES</dcterms:description>

     </ss:effort>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfeffort/

包/元素风险

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/" 

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:risk>

          <!--Required Properties-->

          <dcterms:title>RISK NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

          <!--Required in a Security Enabled Model-->

          <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-->

          <dcterms:type>RISK TYPE</dcterms:type>

          <ss:weight>NUMERICAL VALUE</ss:weight>

          <dcterms:description>NOTES</dcterms:description>

     </ss:risk>

</rdf:RDF

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfrisk/

包/元素度量

类型

输入

网址

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

POST RDF / XML

 

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns:oslc_am="http://open-services.net/ns/am#"

                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

                xmlns:dcterms="http://purl.org/dc/terms/" 

                xmlns:ss="http://www.sparxsystems.com.au/oslc_am#">

     <ss:metric>

          <!--Required Properties-->

          <dcterms:title>METRIC NAME</dcterms:title>

          <ss:resourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:resourceidentifier>

         <!--Required in a Security Enabled Model-->

         <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier>

          <!--Optional Properties-→

          <dcterms:type>TYPE</dcterms:type>

          <ss:weight>NUMERICAL VALUE</ss:weight>

          <dcterms:description>NOTES</dcterms:description>

     </ss:metric>

</rdf:RDF>

资源形态

<protocol>://<server>/<model>/oslc/am/rs/cfmetric/

笔记

  • 此工具可通过Enterprise Architect版本13.5或更高版本下的Enterprise Architect Pro云服务器版本获得:Small Business Edition,Team Server Edition和Enterprise Server Edition
  • 如果Pro Cloud Server与Enterprise Architect模型的连接配置为只读连接,则此工具将不可用
  • 在Security Enabled模型中,您需要在POST XML中提供用户身份验证令牌(通过'ss:useridentifier'XML元素)来创建资源/资源功能
  • Enterprise Architect目前支持从这些配置文件创建元素和连接器:
         - Archimate 3
         - BPMN 2.0
         - GML 3.3
         - SysML 1.4
  • Enterprise Architect仅支持RDF / XML中的单个Stereotype,用于元素,连接器,属性,操作和操作参数
  • 从上述配置文件创建元素和连接器时,Enterprise Architect将忽略RDF / XML中提供的任何Stereotype
  • 企业架构师不支持创建配置文件的具体标记值上使用的软件包/元素标签值创办工厂服务(URL : <protocol>://<server>/<model_name>/oslc/am/cf/taggedvalue/
  • 在启用了审核的模型中通过OSLC创建资源/资源功能时,将不会记录对模型所做的更改

学到更多

原文