Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

OSLC DOORS Query

Hello everybody,

I am new to OSLC queries and for all queries I try I get the 400 error, saying that no quesry could be parsed.
I am trying to get an XML representation of the requirements in a particular module out of DOORS database. Yes, I use DOORS 9.4 and DWA 1.5 where OSLC-RMv2.0 is implemented.

Here is the base URL for the query service of the module I want to look at :

http://localhost:8080/dwa/rm/oslc/query/urn:rational:ers-4fe839f150a62e6e:1-4fe839f150a62e6e-M-00000040

Can anybody help me to build the query ? Thanks a lot !

0 votes

Comments

By the way, my query is stored in a C# string variable. Because my custom REST client is written in C#. I am wondering if there could be encoding problems. JAVA people out there, if you faced something like this I am interested as well, as your solutions may be inspiring. Thanks again !



One answer

Permanent link
Hello everybody, I found a solution to my problem so I am posting here my solution so that it might help others.

Here are a few checkpoints :
- Be sure you have set your accept header to "application/rdf+xml"
- Be sure you have the right query base URL
- Be sure you have specified the right URL to your attributes called in your oslc query

here is a working example of a query to get all the requirements out of a particular module :

http://localhost:8080/dwa/rm/oslc/query/URN_OF_THE_MODULE?oslc.prefix=dcterms=<"http://purl.org/dc/terms/">&oslc.where=dcterms:created<= TODAYS DATE IN YYYY-MM-DD FORMAT

This query for this type of data (requirement) will only work for DOORS 9.4 + DWA 1.5

I hope it helped some of you !

ps : remove the quotes around the purl.org url, I put them here because the forum did not display the url correctly. This url is where the dcterms are defined (dublin core)

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 516
× 198

Question asked: Jun 28 '12, 8:32 a.m.

Question was seen: 6,872 times

Last updated: Jul 03 '12, 6:31 a.m.

Confirmation Cancel Confirm