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 (111) | asked Nov 09, 4:46 a.m.
edited Nov 09, 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.where=nav:parent<parent_folderURI>
  • oslc.config=streamURI
I always seem to get a Query Result but the results are empty. Many thanks.

Razvan Lapadat.

2 answers

permanent link
Ian Barnard (1.8k613) | answered Nov 09, 5:36 a.m.
edited Nov 09, 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=<> (url encoded) to oslc.prefix

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

permanent link
Razvan Lapadat (111) | answered Nov 10, 2:05 a.m.
edited Nov 10, 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.