前页 | 后页 |
资源更新RDF / XML的示例
本主题提供资源更新XML的RDF / XML表示的两个示例。
更新元素名称
将Actor'Actor1'(使用Enterprise Architect GUID {567854C2-6A89-46d7-AB7E-F192668010CA})的名称更新为“ Actor 1_New”。
<?xml版本=“ 1.0”编码=“ 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:资源>
<!-必需属性->
<dcterms:identifier> el_ {567854C2-6A89-46d7-AB7E-F192668010CA} </ dcterms:identifier>
<!-可更新的属性->
<dcterms:title> Actor1_New </ dcterms:identifier>
</ oslc_am:资源>
</ rdf:RDF>
更新资源分配的属性
在Actor“ Actor1”(使用Enterprise Architect GUID {567854C2-6A89-46d7-AB7E-F192668010CA})中,在名称为“ Sparx”和角色“ Business Analyst”的资源分配上,更新开始日期,结束日期和完成百分比。
<?xml版本=“ 1.0”编码=“ 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:资源分配>
<!-必需属性->
<dcterms:identifier> ra_ {567854C2-6A89-46d7-AB7E-F192668010CA} _Business%20Analyst_Sparx </ dcterms:identifier>
<!-可更新的属性->
<ss:startdate> 2020-02-01 </ ss:startdate>
<ss:enddate> 2020-02-15 </ ss:enddate>
<ss:percentagecomplete> 0 </ ss:percentagecomplete>
</ ss:resourceallocation>
</ rdf:RDF>