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 !
One answer
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)
Comments
Louis MADEUF
Jun 28 '12, 8:58 a.m.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 !