It's all about the answers!

Ask a question

oslc.where use wildcards in DOORS Next Generation 5.0.2


Nikhil Pachpande (2519) | asked Nov 21 '15, 8:23 a.m.
 Hi,
I want to use wildcards in oslc.where clause.

I can query for a specific identifier:
queryParams.setPrefix("dcterms=<http://purl.org/dc/terms/>");
queryParams.setWhere("dcterms:identifier=\"58\"");

and I can query for a specific title:

queryParams.setPrefix("dcterms=<http://purl.org/dc/terms/>");
queryParams.setWhere("dcterms:title=\"Weather\""); //Returns one result

but I want to be able to find all the items that have "Weather" in their
description.  I was hoping for something like:

queryParams.setWhere("dcterms:title=\"*Weather*\"");

but it doesn't return any results.

Is there any work-around or provision on how to use wildcards in oslc.where queries?

Accepted answer


permanent link
Gabriel Ruelas (1.1k13) | answered Nov 30 '15, 11:52 a.m.
Hi,
    Wildcards are not supported in title or description ( those should match the entire string ). One possibility to use wildcard is on the requirements text using the oslc.searchTerms option , like :
&oslc.searchTerms="Req*"

Hope it helps.
Nikhil Pachpande selected this answer as the correct answer

Your answer


Register or to post your answer.