To create a new Resource or Resource Feature, the Client POSTs a representation of the Resource or Resource Feature in RDF XML format to the Creation Factory URL. If the POST is successful, the HTTP location header of the response will contain the URL of the created Resource or Resource Feature. An unsuccessful POST will generate an error response.

Refer to the tables in this topic for the information used to create each Resource and Feature. Also see the GUID Prefix Tables and Examples of RDF/XML Representation topics.

Package

Type

Input

URL

<protocol>://<server>/<model_name>/oslc/am/cf/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 Properties-->

<dcterms:title>NAME</dcterms:title>

<dcterms:type>Package</dcterms:type>

<ss:parentresourceidentifier>GUID OF THE CONTAINING PACKAGE WITH GUID PREFIX</ss:parentresourceidentifier>

<!--Required in a Security Enabled Model-->

<ss:useridentifier>USER SECURITY GUID</ss:useridentifier>

<!--Optional Properties-->

<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:stereotype>

<ss:stereotypename>

<ss:name>STEREOTYPE</ss:name>

</ss:stereotypename>

</ss:stereotype>

<ss:phase>PHASE</ss:phase>

<ss:version>VERSION</ss:version>

</oslc_am:Resource>

</rdf:RDF>

Resource Shape

<protocol>://<server>/<model>/oslc/am/rs/cfresource/

Element

Type

Input

URL

<protocol>://<server>/<model_name>/oslc/am/cf/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 Properties-->

<dcterms:title>NAME</dcterms:title>

<dcterms:type>ELEMENT TYPE</dcterms:type>

<ss:parentresourceidentifier>GUID OF THE CONTAINING PACKAGE/ELEMENT WITH GUID PREFIX</ss:parentresourceidentifier>