It's all about the answers!

Ask a question

DNG OSLC API documentation

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

Hello all,

I was following the document below, but it seems to be outdated.

I could not get the first catalog, but could not spot the discovery.
oslc_rm:rmServiceProviders rdf:resource="

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.
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 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

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:

oslc:queryBase rdf:resource=

To get artifact ID 1

Rosa Naranjo commented Jul 31 '18, 9:39 a.m.
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.
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.