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

OSLC - query and results

 Hi Experts,

As I am building interface consuming OSLC services I generated some questions which maybe you will be able to answer.

I am trying to query db to find project WI with person name who is contributor.

Used query

https://zzti-rtc.zie.pg.gda.pl:8080/ccm/oslc/contexts/_Lwd02zlFEeGMfqLW3GHQIg/workitems?oslc.select=dcterms:title,dcterms:contributor{foaf:name}

and result:

<rdf:RDF xmlns:oslc="http://open-services.net/ns/core#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > <rdf:Description rdf:nodeID="A0"> <oslc:message>null</oslc:message> <oslc:statusCode>500</oslc:statusCode> <rdf:type rdf:resource="http://open-services.net/ns/core#Error"/> </rdf:Description> </rdf:RDF>

without {foaf:name} it works but I get url to user.

2 votes



2 answers

Permanent link
You will need to nest the call to foaf like so.

https://zzti-rtc.zie.pg.gda.pl:8080/ccm/oslc/contexts/_Lwd02zlFEeGMfqLW3GHQIg/workitems?oslc.select=dcterms:title,dcterms:contributor{foaf:name}

0 votes


Permanent link
Hi Bartosz,

your query worked (*) for me with and without {foaf:name}. Both in 4.0.0.1 and 4.0.3 RC1
Do you still reproduce ?
Which version did you use ?

Regards,
Stéphane

(*): fyi. I've used the "traditional" headers  : OSLC-Core-Version: 2.0, Content-Type: application/xml,  Accept: application/xml


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

Question asked: Mar 25 '13, 9:16 a.m.

Question was seen: 4,668 times

Last updated: May 31 '13, 1:30 p.m.

Confirmation Cancel Confirm