How do I create requirement in RRC using RestClient with links
Kiran Kumar R (77●8●10)
| asked Jun 07 '12, 6:46 a.m.
edited Jun 07 '12, 10:34 a.m. by Seth Packham (1.4k●4●22●13)
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 |
2 answers
Hi, I understand that only specific link types such as ImplementedBy is supported by OSLC. I want to add Child/Parent/LinkTo/LinkFrom link types, is there any other alternative to achieve this as these are not OSLC link types? Regards, Kiran |
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 |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
I edited the title of your question and added a few tags.