It's all about the answers!

Ask a question

URI for querying rdf:resource using "oslc_cm.query="

Felipe Pontes (131) | asked Aug 01, 4:17 p.m.
I'm sorry if this is a duplicate question, but I couldn't find what I am looking for in the related questions.

I'm trying to query workitems using 2 attributes: identifier and plannedFor. The Identifier is straightforward on how to use it, but I'm having issues with the plannedFor because it has the "rdf:resource" property inside it, which I think is preventing from searching the items.
I would really appreciate it if someone could help me with this or show me what I'm doing wrong.

Here is the URI I'm using:


Where the unformatted QUERY_STRING is as shown below:

dc:identifier="ITEM_ID" and rtc_cm:plannedFor rdf:resource="PLANNED_FOR_ID"

Felipe Pontes commented Aug 01, 4:36 p.m.

 I also tried using 

but I think it doesn't search withi rdf:resource property.

Accepted answer

permanent link
David Honey (9606) | answered Aug 02, 4:11 a.m.
edited Aug 02, 4:11 a.m.
rtc_cm:plannedFor references a URI.
For example:
<> rtc_cm:plannedFor <> ;

Which means that in an olsc.where query expression, you should use a term (unencoded) of rtc_cm:plannedFor=<uri> . See for details.

For example, to find work items planned for the unencoded query expression would be:

The OSLC query request would therefore include: .

Felipe Pontes selected this answer as the correct answer

Your answer

Register or to post your answer.