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