It's all about the answers!

Ask a question

DNG OSLC API documentation


Kazuki Nobutani (411621) | asked Jul 26 '18, 6:03 a.m.

Hello all,

I was following the document below, but it seems to be outdated.
https://jazz.net/library/article/1197

I could not get the first catalog, but could not spot the discovery.
oslc_rm:rmServiceProviders rdf:resource="https://grarrc.ibm.com:9443/rm/discovery

Does anyone know the latest version of the doc?

Accepted answer


permanent link
Rosa Naranjo (2.9k11623) | answered Jul 26 '18, 3:36 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
The doc is not out of date as far as we know. But at the time it was provided, it was done to help out with some examples.

The OSLC start off set of discovery calls is always the same and has not changed over time.
The OSLC workshop at https://jazz.net/library/article/635 provides a primer with JAVA samples.

1) rm/rootservices
2) then the rm/oslc_rm/catalog which is where you will find the service providers for each project area
3) rm/<project area ID>/services.xml

From there you can a number of services that you can call and are further elaborated in the 1197 article.

Make sure you are using the right headers.  OSLC-Core-Version: 2.0 and Accept: application/rdf+xml
Kazuki Nobutani selected this answer as the correct answer

Comments
Kazuki Nobutani commented Jul 31 '18, 4:20 a.m.

Thank you. I followed the steps and I could create and modify artifacts!
However I am stuck at querying. I got the Query Capability (rm/views?oslc.query=true& ...) but GETting identifier=1 or any other id returns 403. Simply GETting the Query Capability also returns 403.
Do you have any idea why this is happening?

I have the following headers:
Accept:application/rdf+xml
Content-Type:application/rdf+xml

oslc:queryBase rdf:resource=
https://XXXX:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fclm.jkebanking.net%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_f9-xsBf9Eeaq75ldznhS0A&vvc.configuration=https%3A%2F%2Fclm.jkebanking.net%3A9443%2Frm%2Fcm%2Fstream%2F_gLXtcBf9Eeaq75ldznhS0A

To get artifact ID 1
&oslc.prefix=dcterms=<http://purl.org/dc/terms/>&oslc.select=*&oslc.where=dcterms:identifier=1


1
Rosa Naranjo commented Jul 31 '18, 9:39 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hello
I think this is because you are not using the right headers. I mentioned this in my previous post:
Make sure you are using the right headers. 
OSLC-Core-Version: 2.0
Accept: application/rdf+xml

Kazuki Nobutani commented Aug 01 '18, 3:00 a.m. | edited Aug 01 '18, 3:04 a.m.

You are awesome. @ianbarnard you too.
Thank you for your help!

One other answer



permanent link
Ian Barnard (1.9k613) | answered Jul 26 '18, 8:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jul 26 '18, 12:24 p.m.

I don't think the doc is out of date at that point, but the result may look different from the example shown. You are looking for tag oslc_rm:rmServiceProviders and the rdf:resource will then give you the RM Catalog e.g. (for my test environment, 6.0.5, checked just now)  https://ibmjazz:9443/rm/oslc_rm/catalog - which then gives the list of projects in XML/RDF.

Your answer


Register or to post 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.