It's all about the answers!

Ask a question

Query to fetch Requirements Collections (Modules, Collections) from a given configuration (Stream) in DoorsNG


Razvan Lapadat (112) | asked Nov 09 '23, 4:46 a.m.
edited Nov 09 '23, 4:50 a.m.
What is the correct query to retrieve the Requirements Collections and then Requirements from them (DoorsNG)? This is the query I'm using:
Query Params:
  • oslc.query=true
  • projectURL=projectURI
  • oslc.prefix=oslc%3D%3Chttp%3A%2F%2Fopen-services.net%2Fns%2Fcore%23%3E,dcterms%3D%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E,nav%3D%3Chttp%3A%2F%2Fcom.ibm.rdm%2Fnavigation%23%3E
  • oslc.select=dcterms:title
  • oslc.where=nav:parent<parent_folderURI>
  • oslc.config=streamURI
I always seem to get a Query Result but the results are empty. Many thanks.

Regards,
Razvan Lapadat.

2 answers



permanent link
Ian Barnard (2.0k613) | answered Nov 09 '23, 5:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Nov 09 '23, 5:37 a.m.

1) oslc.config isn't correct - use oslc_config.context

2) the syntax of your oslc.where isn't correct. you need a comparison like nav:parent=<parent_folderURI>

Your oslc.where is asking for resources that are in a specific folder, i.e. it will return artifacts as well if there are any in that folder, not just collections.

To get only collections and modules in a specific folder use (with the value url encoded):
  • oslc.where=nav:parent=<parent_folderURI> and rdf:type=jazz_rm:Collection
and add ,jazz_rm=<http://jazz.net/ns/rm#> (url encoded) to oslc.prefix

You must always (in general) URL encode the values for oslc.select, oslc.where, oslc_config.context just as you have done for oslc.prefix


permanent link
Razvan Lapadat (112) | answered Nov 10 '23, 2:05 a.m.
edited Nov 10 '23, 7:10 a.m.
Thanks for the answer. For some reason, using oslc_config.context raises some 400 error, but using vvc.configuration works. Is there any difference between "oslc_config.context" and "vvc.configuration"? From what I see vvc.configuration is used only for LC, but oslc_config.context can be used for both LCs and GC.
GC app is unavailable so we should not be attempting to resolve LCs against GC Application URIs.
But I'm pretty sure I've passed a LC URI.

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.