Convert RQM REST identifier to OSLC identifier
![](http://jazz.net/_images/myphoto/e9eb246b33e22e656ee1304ec693d05e.jpg)
How can I convert a REST identifier( com.ibm.rqm.xml.bind.Testcase; Rational Quality Manager Reportable REST API) to an OSLC TestCase identifier (org.eclipse.lyo.client.oslc.resources.TestCase)?
Example:
Example:
- com.ibm.rqm.xml.bind.Testcase from Rational Quality Manager Reportable REST API:
- https://jazz.net/sandbox02-qm/oslc_qm/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.planning.VersionedTestCase/_0eUxsXT-EeKiILFa-2lqaQ
- OSLC TestCase identifier (org.eclipse.lyo.client.oslc.resources.TestCase)
- https://jazz.net/sandbox02-qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_pv6fkFllEeKaV_p6uZjjYw/testcase/urn:com.ibm.rqm:testcase:1187
Accepted answer
![](http://jazz.net/_images/myphoto/e9eb246b33e22e656ee1304ec693d05e.jpg)
Hi John,
some info
this is Reportable Rest type of url
and this is the OSLC one
to get the OSLC url according to the Reportable Rest API
you can try to do a "Get" request
and the identifier attribute will contain the value of the OSLC url.
2 other answers
![](http://jazz.net/_images/myphoto/e9eb246b33e22e656ee1304ec693d05e.jpg)
John,
for the details you can refer to https://jazz.net/wiki/bin/view/Main/RqmApi#oslclinks
oslclinks
Experimental.
Value | Meaning |
true
1
|
Resources will contain Open Services for Lifecycle Collaboration (OSLC)-style links. Default if
etlmode=true
2
|
false
1
|
Resources will contain Reportable REST API-style links. Default if unspecified or empty or invalid.
|
![](http://jazz.net/_images/myphoto/e9eb246b33e22e656ee1304ec693d05e.jpg)
Hi John,
You could just send one HTTP GET request (need firstly pass the authentication and then set the http request header with OSLC-Core-Version:2.0 and Accept:application/rdf+xml) to https://jazz.net/sandbox02-qm/oslc_qm/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.planning.VersionedTestCase/_0eUxsXT-EeKiILFa-2lqaQ. In the response body, the entry dcterms:relation shows the other kind of identifier.
Best Regards,
Bing Dong