上一页 下一页

资源更新RDF / XML的示例

本主题提供了Resource Update XML的RDF / XML表示的两个示例。

更新元素的名称

将Actor'Monitor1'的名称(使用Enterprise Architect GUID {567854C2-6A89-46d7-AB7E-F192668010CA})更新为“Actor 1_New”。

 

<?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:identifier>el_{567854C2-6A89-46d7-AB7E-F192668010CA}</dcterms:identifier>

          <!--Updateable Properties-->

          <dcterms:title>Actor1_New</dcterms:identifier>

     </oslc_am:Resource>

</rdf:RDF>

更新资源分配的属性

在Actor'Monitor1'(使用Enterprise Architect GUID {567854C2-6A89-46d7-AB7E-F192668010CA})中,在名为'Sparx'和角色'业务分析师'的资源分配中,更新开始日期,结束日期和百分比完成。

 

<?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>ra_{567854C2-6A89-46d7-AB7E-F192668010CA}_Business%20Analyst_Sparx</dcterms:identifier>

          <!--Updateable Properties-->      

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

          <ss:enddate>2018-05-15</ss:enddate>

          <ss:percentagecomplete>0</ss:percentagecomplete>

     </ss:resourceallocation>

</rdf:RDF>