It's all about the answers!

Ask a question

DNG OSLC Query Capability


Karthikeyan P (151) | asked Jan 18, 7:30 a.m.

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. 

Accepted answer


permanent link
David Honey (1.1k17) | answered Jan 18, 9:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jan 18, 9:25 a.m.

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

Comments
Karthikeyan P commented Jan 19, 1:45 a.m.

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 to post your answer.