Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

DNG OSLC Query Capability

I am trying to use DNG OSLC Query capability to query the Requirement artifacts in a particular project area. I am following the article https://jazz.net/library/article/1197 by fetching the rootservices, catalog and then services.xml. But I am not able to see the query capability url in the services.xml response. I could see only the oslc_rm:SelectionDialog in the response. Please let me know how to get the query capability in DNG. 

0 votes


Accepted answer

Permanent link

Are you using the Oslc-Core-Version=2.0 header?
I tried a GET on https://jazz.net/rm/rootservices and the response contained:

    <oslc_rm:rmServiceProviders rdf:resource="https://jazz.net/rm/oslc_rm/catalog" />

A GET on https://jazz.net/rm/oslc_rm/catalog included details of service providers.
I did a GET on one of those service providers https://jazz.net/rm/oslc_rm/_CJqfENdREeKXUOJ6D0TyxQ/services.xml and the response included a query capability for requirements and requirement collections (shown below in Turtle):
    oslc:queryCapability  [ 
        a                  oslc:QueryCapability ;
        oslc:queryBase     <https://jazz.net/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fjazz.net%2Frm%2Fprocess%2Fproject-areas%2F_CJqfENdREeKXUOJ6D0TyxQ> ;
        oslc:resourceType  <http://open-services.net/ns/rm#Requirement> , <http://open-services.net/ns/rm#RequirementCollection>;
        dcterms:title      "Query Capability"^^<http://www.w3.org/2001/XMLSchema#string>
        ] ;

Karthikeyan P selected this answer as the correct answer

0 votes

Comments

Thank you Dave. I was missing the Oslc-Core-Version=2.0  header while sending the get request to the service provider url. Now, I could see the query capability urls in the response

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 24

Question asked: Jan 18 '23, 7:30 a.m.

Question was seen: 786 times

Last updated: Jan 19 '23, 1:45 a.m.

Confirmation Cancel Confirm