How to get queryCapability's ResourceShape in Doors Next Generation ?
Hi,
in my company we are using Doors Next generation version 6.0.1 M2.
We want to get ResourseShape for our QueryCapability, but it is not returned.
I make call to:
Headers:
Accept: application/rdf+xml
GET: https://<ip>:<port>/rm/oslc_rm/_Agw1YEA_EeW9sdfabXRPPL/services.xml
And the result:
As you can see oslc:queryBase URI is returned but there is not resourceShape for the QueryCapability? My question is why and how to get one?
|
One answer
I don't recall ever seeing "resourceShape" in the "queryCapability" returned by RDNG, and I believe it is not implemented that way. In other words, you cannot get it at all. According to OSLC-RM V2 specification, oslc:ResourceShape SHOULD (not MUST) be returned on oslc:QueryCapability. And it also says
This is exactly what RDNG does. I believe the reason behind it is that the query can return two types of resources - oslc_rm:Requirement and oslc_rm:RequirementCollection, and apparently they have different "shapes". Comments
Dinyo Dinev
commented Aug 20 '15, 4:12 a.m.
OK. We use the sample DB for Water Meter Project from the workshop:
In Doors 9.5. in the QueryCapability there was resourceShape but in DoorsNG 6.0 with the same data the response was very different.
So now when I request the queryBase URL, the result contains as expected:
<oslc_rm:Requirement rdf:about="https://<ip>:<port>/rm/resources/-037a32e9aba74d6casd329a27f111b3"> <oslc_rm:RequirementCollection rdf:about="https://<ip>:<port>/rm/resources/_iLeAwUDUasd98vRabXRPEQ">And accessing the requirement I can see instanceShape of the requirement. Is it the right way to get the shape? |
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.