预订演示
前页 后页

Examples of Resource Update RDF/XML

This topic provides two examples of the RDF/XML representation of Resource Update XML.

Update the name of an element

Update the name of the Actor 'Actor1' (with the Enterprise Architect GUID {567854C2-6A89-46d7-AB7E-F192668010CA}) to '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>
          <ss:useridentifier>{B6106F48-9659-4bff-B52A-C68F638BB1CE}</ss:useridentifier>
          <!--Updateable Properties-->
          <dcterms:title>Actor1_New</dcterms:identifier>
     </oslc_am:Resource>
</rdf:RDF>

Update the Properties of a Resource Allocation

In the Actor 'Actor1' (with the Enterprise Architect GUID {567854C2-6A89-46d7-AB7E-F192668010CA}), on a Resource Allocation with the name 'Sparx' and the Role 'Business Analyst', update the Start Date, End Date and Percent Complete.

<?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>
          <ss:useridentifier>{B6106F48-9659-4bff-B52A-C68F638BB1CE}</ss:useridentifier>
          <!--Updateable Properties-->
          <ss:startdate>2020-02-01</ss:startdate>
          <ss:enddate>2020-02-15</ss:enddate>
          <ss:percentagecomplete>0</ss:percentagecomplete>
     </ss:resourceallocation>
</rdf:RDF>