[OSLC-RM] Querying requirement module not possible
I'm trying to query all requirement modules from the Doors NG server with the following query:
OslcQueryParameters params = new OslcQueryParameters();
params.setPrefix("nav=<" + RmConstants.JAZZ_RM_NAV_NAMESPACE + ">,rdf=<" + OSLCConstants.RDF + ">");
params.setWhere("nav:parent=<" + folder.getUniqueID() + "> and rdf:type=<http://jazz.net/ns/rm#Module>");
OslcQuery query = new OslcQuery(client, url, params);
OslcQueryResult result = query.submit();
result.getMembersUrls();
Executing the query returns no member urls, despite having at least one resource defined!
Seems like an issue with query engine?
Kind regards.
Accepted answer
& oslc.prefix=rmTypes=< http://www.ibm.com/xmlns/rdm/types/ >& oslc.where=rmTypes:ArtifactFormat=< https://clm:9443/rm/types/_4zgcEcSTEeWUhvpDd3TRcA%23Module >
Comments
Hey,
I'm currently using the Doors NG 6.0.1. It attracted my attention that the 'Artifact Format' is missing for the requirement and requirement collection resources delivered by Doors NG's OSLC services.
Querying the rdf:type for Modules seemed to me as an alternative way getting these.
This seems to be an issue, that the Artifact Format misses for OSLC resources.
I verified this with RGND 6.0.1 before posting. Try adding oslc.select=* in the query to see if it exposes all the attributes.
2 other answers
Does it work if you remove the nav:parent param of the oslc.where param?
Comments
I removed the nav:parent in the where-clause.
This makes no difference. I still get 0 matches in my result.
Besides that, I saw the 'Artifact Format' property is no more included in the Instance Shape resource when querying it for a requirement/ requirement collection resource.
I removed the nav:parent in the where-clause.
This makes no difference. I still get 0 matches in my result.
Besides that, I saw the 'Artifact Format' property is no more included in the Instance Shape resource when querying it for a requirement/ requirement collection resource.