Topics
Prev Next

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>

          <!--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-->

          <ss:key>

               <rdf:Description>

                    <ss:resourceidentifier>el_{567854C2-6A89-46d7-AB7E-F192668010CA}</ss:resourceidentifier>

                    <ss:resourcename>

                         <foaf:Person>

                              <foaf:name>Sparx</foaf:name>

                         </foaf:Person>

                   </ss:resourcename>

                   <ss:role>Business Analyst</ss:role>

               </rdf:Description>

          </ss:key>

          <!--Updateable Properties-->      

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

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

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

     </ss:resourceallocation>

</rdf:RDF>