It's all about the answers!

Ask a question

DNG OSLC.where query is not working


G C (41) | asked Jan 12, 1:12 a.m.

 I am trying to filter the modules from a  DNG project area by created date but I am not getting the filtered response.

I have tried encoding and not encoding the OSLC where query parameter  as well but all attempts were unsuccessful.

original query
https://<server:port>/rm/views?oslc.query=true&projectURL=https://<server:port>/rm/process/project-areas/<encodedValue>&oslc.where=dcterms:created<"2020-10-27T09:50:00-04:00"&oslc.prefix=dcterms=<http://purl.org/dc/terms/>

Encoded query
https://<server:port>/rm/views?oslc.query=true&projectURL=https://<server:port>/rm/process/project-areas/<encodedValue>&oslc.where=dcterms%3Acreated%3C%222020-10-27T09%3A50%3A00-04%3A00%22&oslc.prefix=dcterms%3D%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E

One answer



permanent link
Ian Barnard (562611) | answered Jan 12, 5:05 a.m.
JAZZ DEVELOPER
edited Jan 12, 5:14 a.m.

Hi


You must always encode all parameters, that's just a HTTP thing.

With 7.0.1 I had to include the type of the literal like: oslc.where=dcterms:created<"2020-10-27T09:50:00-04:00"^^xsd:datetime

What version(+ifix) are you using?

HTH
Ian


Comments
G C commented Jan 18, 2:32 a.m.

I tried this but didnt work

 


Ian Barnard commented Jan 18, 3:21 a.m. | edited Jan 18, 3:23 a.m.
JAZZ DEVELOPER

Which version/ifix are you using?  And please show the full encoded oslc query URL, with parameters, that you're using now.


G C commented 2 hours ago

I am working on 6.0.6.1 version. and the encoded query I am using is below

https://<server:port>/rm/views?oslc.query=true&projectURL=https://<server:port>/rm/process/project-areas/<encodedValue>&oslc.where=dcterms%3Acreated%3C%222020-10-27T09%3A50%3A00-04%3A00%22&oslc.prefix=dcterms%3D%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E 

Your answer


Register or to post your answer.