It's all about the answers!

Ask a question

DNG OSLC Query Capability

Karthikeyan P (216) | asked Jan 18 '23, 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 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.8k17) | answered Jan 18 '23, 9:18 a.m.
edited Jan 18 '23, 9:25 a.m.

Are you using the Oslc-Core-Version=2.0 header?
I tried a GET on and the response contained:

    <oslc_rm:rmServiceProviders rdf:resource="" />

A GET on included details of service providers.
I did a GET on one of those service providers and the response included a query capability for requirements and requirement collections (shown below in Turtle):
    oslc:queryCapability  [ 
        a                  oslc:QueryCapability ;
        oslc:queryBase     <> ;
        oslc:resourceType  <> , <>;
        dcterms:title      "Query Capability"^^<>
        ] ;

Karthikeyan P selected this answer as the correct answer

Karthikeyan P commented Jan 19 '23, 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.

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.