How do I create requirement in RRC using RestClient with links
As part of creating requirements in RRC, we are able to create requirement in RRC using RestClient (Firefox add-on) by POST method and passing the following as URL and Body:
https://Jazzserver:port/rm/requirementFactory?projectURL=https%3A%2F%2Finblr-3dvetfs.eu.uis.unisys.com%3A9443%2Fjts%2Fprocess%2Fproject-areas%2F_wDCq0IObEeG9_P9JMaZ68g
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:oslc_rm="http://open-services.net/ns/rm#"
xmlns:public_rm_10="http://www.ibm.com/xmlns/rm/public/1.0/"
xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/"
xmlns:rm_property="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/types/">
<oslc_rm:Requirement rdf:about="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/resources/_KKgOcKpVEeGbmvlxhFnwcw">
<oslc:serviceProvider rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/discovery/_wDCq0IObEeG9_P9JMaZ68g/services.xml"/>
<dc:description rdf:parseType="Literal">This is a test document</dc:description>
<oslc:instanceShape rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/types/_yauT4IObEeG9_P9JMaZ68g"/>
<dc:creator rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/jts/users/RagiruK"/>
<dc:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">40</dc:identifier>
<dc:contributor rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/jts/users/RagiruK"/>
<rm_property:_wo4i24ObEeG9_P9JMaZ68g rdf:parseType="Literal">
<div xmlns="http://www.w3.org/1999/xhtml" id="_Nf2cQJKNEd25PMUBGiN3Dw"><h1 id="_DwpWsMueEd28xKN9fhQheA">Test Document</h1></div>
</rm_property:_wo4i24ObEeG9_P9JMaZ68g>
<rdf:type rdf:resource="http://open-services.net/ns/rm#Requirement"/>
<dc:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2012-05-30T12:44:12.918Z</dc:modified>
<rm_property:_we6HcYObEeG9_P9JMaZ68g rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/types/_wsBWaYObEeG9_P9JMaZ68g#Text"/>
<dc:title rdf:parseType="Literal">MyDocumentTest</dc:title>
<dc:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2012-05-30T12:44:12.918Z</dc:created>
<oslc_rm:implementedBy rdf:resource="http://www.somesite.com"/>
</oslc_rm:Requirement>
</rdf:RDF>
The above POST operation creates a requirement of type stakeholder request in the RRC with link Implemented by. I want to create a requirement with Link to/Link From/Child Of/Parent Of types of links. Using oslc_rm:linkTo instead of oslc_rm:implementedBy creates a requirement in RRC but the link Link To is not getting created.
Please let me know how to create a requirement which will link to other requirement using RESTClient with the following links:
'Link to/Link from/Parent of/Child of'
Regards,
Kiran
https://Jazzserver:port/rm/requirementFactory?projectURL=https%3A%2F%2Finblr-3dvetfs.eu.uis.unisys.com%3A9443%2Fjts%2Fprocess%2Fproject-areas%2F_wDCq0IObEeG9_P9JMaZ68g
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:oslc_rm="http://open-services.net/ns/rm#"
xmlns:public_rm_10="http://www.ibm.com/xmlns/rm/public/1.0/"
xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/"
xmlns:rm_property="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/types/">
<oslc_rm:Requirement rdf:about="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/resources/_KKgOcKpVEeGbmvlxhFnwcw">
<oslc:serviceProvider rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/discovery/_wDCq0IObEeG9_P9JMaZ68g/services.xml"/>
<dc:description rdf:parseType="Literal">This is a test document</dc:description>
<oslc:instanceShape rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/types/_yauT4IObEeG9_P9JMaZ68g"/>
<dc:creator rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/jts/users/RagiruK"/>
<dc:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">40</dc:identifier>
<dc:contributor rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/jts/users/RagiruK"/>
<rm_property:_wo4i24ObEeG9_P9JMaZ68g rdf:parseType="Literal">
<div xmlns="http://www.w3.org/1999/xhtml" id="_Nf2cQJKNEd25PMUBGiN3Dw"><h1 id="_DwpWsMueEd28xKN9fhQheA">Test Document</h1></div>
</rm_property:_wo4i24ObEeG9_P9JMaZ68g>
<rdf:type rdf:resource="http://open-services.net/ns/rm#Requirement"/>
<dc:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2012-05-30T12:44:12.918Z</dc:modified>
<rm_property:_we6HcYObEeG9_P9JMaZ68g rdf:resource="https://inblr-3dvetfs.eu.uis.unisys.com:9443/rm/types/_wsBWaYObEeG9_P9JMaZ68g#Text"/>
<dc:title rdf:parseType="Literal">MyDocumentTest</dc:title>
<dc:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2012-05-30T12:44:12.918Z</dc:created>
<oslc_rm:implementedBy rdf:resource="http://www.somesite.com"/>
</oslc_rm:Requirement>
</rdf:RDF>
The above POST operation creates a requirement of type stakeholder request in the RRC with link Implemented by. I want to create a requirement with Link to/Link From/Child Of/Parent Of types of links. Using oslc_rm:linkTo instead of oslc_rm:implementedBy creates a requirement in RRC but the link Link To is not getting created.
Please let me know how to create a requirement which will link to other requirement using RESTClient with the following links:
'Link to/Link from/Parent of/Child of'
Regards,
Kiran
2 answers
Hello
Note this comment from example 04 in the OSLC workshop on Jazz.net:
//Note: You can only add links for OSLC link types,
//Check the OSLC RM V2 specification for a list of available types
// http://open-services.net/bin/view/Main/RmSpecificationV2?sortcol=table;table=up#Resource_Requirement
Note this comment from example 04 in the OSLC workshop on Jazz.net:
//Note: You can only add links for OSLC link types,
//Check the OSLC RM V2 specification for a list of available types
// http://open-services.net/bin/view/Main/RmSpecificationV2?sortcol=table;table=up#Resource_Requirement
Comments
Seth Packham
FORUM ADMINISTRATOR / JAZZ DEVELOPER Jun 07 '12, 10:35 a.m.I edited the title of your question and added a few tags.