上一页 | 下一页 |
更新资源和资源功能
Enterprise Architect支持资源和资源功能更新服务,客户端可以通过HTTP POST更新这些类型的现有资源和资源功能的属性:
- 资源
- 包
- 元素
- 连接器 - 资源功能
- 包/ 元素讨论,讨论回复,资源分配,测试,标记值,维护项目和项目管理项目 - 元素属性,操作和操作参数
根据OSLC规范,客户端必须执行这些操作来更新OSLC资源:
- 通过HTTP GET获取资源的RDF / XML表示
- 更新表示
- 使用HTTP PUT将新表示发送到资源的URL
但是,在Enterprise Architect中,要更新资源或资源功能,客户端必须将RDF XML格式的资源或资源功能的表示形式发布到更新URL。如果POST成功,则响应将包含更新的资源的URL。不成功的POST将生成错误响应。
以下是在Enterprise Architect中更新资源或资源功能所涉及的步骤:
- 客户端通过HTTP GET获取资源或资源特征的RDF / XML表示以进行更新
- 客户端更新RDF / XML表示中的资源或资源要素属性
- 客户端将更新的RDF / XML表示发布到资源或资源功能的更新URL
有关用于更新每个资源和功能的信息,请参阅本主题中的表。另请参阅GUID前缀表和资源更新RDF / XML主题示例。
包
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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#" GUID 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 Property--> <dcterms:identifier>GUID OF PACKAGE (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>NAME</dcterms:title> <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: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/resource/ |
元件
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF ELEMENT (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>NAME</dcterms:title> <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: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/resource/ |
元素属性
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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--> <dcterms:identifier>GUID OF ATTRIBUTE (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>ATTRIBUTE NAME</dcterms:title> <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 PREFIX</ss:classifierresourceidentifier> <ss:defaultvalue>DEFAULT VALUE</ss:defaultvalue> <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/attribute/ |
元素操作
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF OPERATION ( TO UPDATE ) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>OPERATION NAME</dcterms:title> <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</ss:classifierresourceidentifier> <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 RETURN ARRAY</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/operation/ |
元素操作参数
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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--> <dcterms:identifier>GUID OF OPERATION PARAMETER (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>OPERATION PARAMETER NAME</dcterms:title> <dcterms:description>NOTES</dcterms:description> <ss:classifiername>DATATYPE/CLASSIFIER NAME</ss:classifiername> <ss:classifierresourceidentifier>GUID OF THE CLASSIFIER EA ELEMENT</ss:classifierresourceidentifier> <ss:defaultvalue>DEFAULT VALUE</ss:defaultvalue> <ss:paramdirection>DIRECTION</ss:paramdirection> <ss:position>NUMERICAL VALUE</ss:position> </ss:parameter> </rdf:RDF> |
资源形态 |
<protocol>://<server>/<model>/oslc/am/rs/operationparameter/ |
连接器
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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"> <dcterms:identifier>GUID OF CONNECTOR (TO UPDATE) WITH GUID PREFIX></dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>CONNECTOR NAME</dcterms:title> <dcterms:description>NOTES</dcterms:description> <ss:direction>DIRECTION</ss:direction> </rdf:Description> </rdf:RDF> |
资源形态 |
<protocol>://<server>/<model>/oslc/am/rs/linktype/ |
包/元素讨论
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF DISCUSSION (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <ss:status>DISCUSSION STATUS</ss:status> <ss:priority>DISCUSSION PRIORITY</ss:priority> </ss:discussion> </rdf:RDF> |
资源形态 |
<protocol>://<server>/<model>/oslc/am/rs/discussion/ |
包/元素资源分配
类型 |
输入 |
---|---|
UML |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF RESOURCE ALLOCATION ( TO UPDATE ) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <ss:resourcename> <foaf:Person> <foaf:name>AUTHOR</foaf:name> </foaf:Person> </ss:resourcename> <ss:role>ROLE</ss:role> <ss:startdate>YYYY-MM-DD format</ss:startdate> <ss:enddate>YYYY-MM-DD format</ss:enddate> <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 / resourceallocation / |
包/元素测试
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF TEST (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>TEST NAME</dcterms:title> <ss:classtype>CLASS TYPE</ss:classtype> <dcterms:type>TYPE</dcterms:type> <ss:status>STATUS</ss:status> <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> <dcterms:description>DESCRIPTION</dcterms:description> <ss:input>INPUT</ss:input> <ss:acceptancecriteria>ACCEPTANCE CRITERIA</ss:acceptancecriteria> <ss:results>RESULTS</ss:results> </ss:test> </rdf:RDF> |
资源形态 |
<protocol>:// <server> / <model> / oslc / am / rs / test / |
包/元素标记值
类型 |
输入 |
---|---|
网址 |
<protocol>:// <server> / <model_name> / OSLC / AM / PU / 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:identifier>GUID OF TAGGED VALUE (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <ss:value>TAG VALUE</ss:value> <dcterms:description>TAG NOTES</dcterms:description> </ss:taggedvalue> </rdf:RDF>
|
资源形态 |
<protocol>:// <server> / <model> / oslc / am / rs / taggedvalue / |
包/元素变化
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF CHANGE (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER SECURITY GUID</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>CHANGE NAME</dcterms:title> <ss:requestedby> <foaf:Person> <foaf:name>PERSON NAME</foaf:name> </foaf:Person> </ss:requestedby> <ss:requestedon>YYYY-MM-DD format</ss:requestedon> <ss:status>New/Verified/Complete</ss:status> <ss:priority>High/Medium/Low</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/change/ |
包/元件缺陷
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF DEFECT (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>DEFECT NAME</dcterms:title> <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/defect/ |
包/元素问题
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF ISSUE (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>ISSUE NAME</dcterms:title> <dcterms:title>ISSUE NAME</dcterms:title> <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/issue/ |
包/元素任务
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF TASK (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>TASK NAME</dcterms:title> <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/task/ |
包/元素事件
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF EVENT (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>EVENT NAME</dcterms:title> <ss:reportedby> <foaf:Person> <foaf:name>PERSON NAME</foaf:name> </foaf:Person> </ss:reportedby> <ss:requestedon>YYYY-MM-DD format</ss:requestedon> <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/event/ |
包/元素决策
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF DECISION (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>DECISION NAME</dcterms:title> <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/decision/ |
包/元素努力
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF EFFORT (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>EFFORT NAME</dcterms:title> <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/effort/ |
包/元素风险
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF RISK (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>RISK NAME</dcterms:title> <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/risk/ |
包/元素度量
类型 |
输入 |
---|---|
网址 |
<protocol>://<server>/<model_name>/oslc/am/pu/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 Property--> <dcterms:identifier>GUID OF METRIC (TO UPDATE) WITH GUID PREFIX</dcterms:identifier> <!--Required in a Security Enabled Model--> <ss:useridentifier>USER AUTHENTICATION TOKEN</ss:useridentifier> <!--Updateable Properties--> <dcterms:title>METRIC NAME</dcterms:title> <dcterms:type>METRIC TYPE</dcterms:type> <ss:weight>NUMERICAL VALUE</ss:weight> <dcterms:description>NOTES</dcterms:description> </ss:metric> </rdf:RDF> |
资源形态 |
<protocol>://<server>/<model>/oslc/am/rs/metric/ |
笔记
- 此工具可通过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元素)来创建资源或资源功能
- 在启用了审核的模型中通过OSLC更新资源/资源功能时,将不会记录对模型所做的更改
- Enterprise Architect不支持使用标记值更新服务修改包/元素上的标记值类型(URL:<protocol>:// <server> / <model_name> / oslc / am / pu / taggedvalue /)
- OSLC规范使用HTTP PUT更新资源属性,而Enterprise Architect使用HTTP POST更新资源属性
学到更多