OSLC - query and results
Bartosz Chrabski (3.4k●2●29●49)
| asked Mar 25 '13, 9:16 a.m.
retagged May 28 '13, 5:42 p.m. by Martha (Ruby) Andrews (3.0k●4●43●51)
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 answers
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} |
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 |
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.