Oslc XML Query only returning first named child attribute !
Hi
I submit a query including nested select attributes e.g
Query:
oslc.select=dcterms:identifier, dcterms:title,oslc_cm:status,dcterms:contributor{foaf:name} ,oslc_cmx:priority{dcterms:title} ...
But doNOT receive back a fully expanded list of attributes for each workitem (see below) if I specify an Accept header of 'application/xml' - instead only the first instance of the nested property is returned ! E.g TestJazzUser1 is returned as the contributor's name for the first work item but ONLY the resource url for same this user is returned for the second workitem! The third workitem has a contributor's name again as it's the first time this resource has appeared ( I assume )
Now, if I specify the Accept header of 'application/json' I DO get a fully populated hierarchy... but I don't want JSON ! Nor do I want to convert it to XML, I just want the fully populated nested xml format! Please.
The third option I've been running at high speed into a brick wall is using xlst to transform the rdf+xml output into a nested format - but no luck as yet.
So, if anyone can offer any insight into (in order of preference)
1/ Ensuring that accept=application/xml returns a fully populated tree inc nested property values.
2/ An xlst transform to transform the application/rdf+xml format to a fully populated tree with nested property values.
Many Many thanks in advance for any help
Encoded Query:
RESULT Accept = application/xml:
RESULTS accept=application/json
I submit a query including nested select attributes e.g
oslc.select=dcterms:identifier, dcterms:title,oslc_cm:status,
But do
Now, if I specify the Accept header of
The third option I've been running at high speed into a brick wall is using xlst to transform the rdf+xml output into a nested format - but no luck as yet.
So, if anyone can offer any insight into (in order of preference)
1/ Ensuring that accept=application/xml returns a fully populated tree inc nested property values.
2/ An xlst transform to transform the application/rdf+xml format to a fully populated tree with nested property values.
Many Many thanks in advance for any help
oslc.select=dcterms%3Aidentifier%2Cdcterms%3Atitle%2Coslc_cm%3Astatus%2Cdcterms%3Acontributor%7Bfoaf%3Aname%7D%2Coslc_cmx%3Apriority%7Bdcterms%3Atitle%7D%2Crtc_ext%3AraisedById&oslc.where=rtc_ext%3AraisedById%3D%2204446496%22"
<xml>
<rdf>
<rdf>
<rdfs>
<oslc_cm>
<oslc_cm>New</oslc_cm>
<dcterms>Test Summary One</dcterms>
<rtc_ext>04446496</rtc_ext>
<dcterms>
<foaf>
<foaf>TestJazzGuest1</foaf>
</foaf>
</dcterms>
<oslc_cmx>
<rtc_cm>
<dcterms>Medium</dcterms>
</rtc_cm>
</oslc_cmx>
<dcterms>237</dcterms>
</oslc_cm>
</rdfs>
<rdfs>
<oslc_cm>
<oslc_cm>New</oslc_cm>
<dcterms>Test</dcterms>
<rtc_ext>04446496</rtc_ext>
<dcterms>
<oslc_cmx>
<dcterms>236</dcterms>
</oslc_cm>
</rdfs>
<rdfs>
<oslc_cm>
<oslc_cm>New</oslc_cm>
<dcterms>Some problems ...</dcterms>
<rtc_ext>04446496</rtc_ext>
<dcterms>
<foaf>
<foaf>TestJazzGuest2</foaf>
</foaf>
</dcterms>
<oslc_cmx>
<dcterms>233</dcterms>
</oslc_cm>
</rdfs>
</rdf>
<oslc>
<dcterms>Work Items</dcterms>
<oslc>3</oslc>
</oslc>
</rdf>
{"oslc:responseInfo":{"oslc:totalCount":3,"rdf:type":[{"rdf:resource":"http:\/\/open-services.net\/ns\/core#ResponseInfo"}]},"rdf:about":"https:\/\/localhost:9443\/jazz\/oslc\/contexts\/_gDfUIJ5FEeGAntnpUd9e9w\/workitems","prefixes":{"foaf":"http:\/\/xmlns.com\/foaf\/0.1\/","oslc_cmx":"http:\/\/open-services.net\/ns\/cm-x#","oslc_cm":"http:\/\/open-services.net\/ns\/cm#","oslc":"http:\/\/open-services.net\/ns\/core#","rdf":"http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#","rtc_ext":"http:\/\/jazz.net\/xmlns\/prod\/jazz\/rtc\/ext\/1.0\/","dcterms":"http:\/\/purl.org\/dc\/terms\/"},"oslc:results":[{"oslc_cm:status":"New","rdf:type":[{"rdf:resource":"http:\/\/open-services.net\/ns\/cm#ChangeRequest"}],"rtc_ext:raisedById":"04446496","dcterms:title":"Some problems ...","dcterms:contributor":{"rdf:type":[{"rdf:resource":"http:\/\/xmlns.com\/foaf\/0.1\/Person"}],"foaf:name":"TestJazzGuest2","rdf:about":"https:\/\/localhost:9443\/jazz\/oslc\/users\/_zQADspleEd-joaYjvz6g2w"},"rdf:about":"https:\/\/localhost:9443\/jazz\/resource\/itemName\/com.ibm.team.workitem.WorkItem\/233","dcterms:identifier":233,"oslc_cmx:priority":{"rdf:type":[{"rdf:resource":"http:\/\/jazz.net\/xmlns\/prod\/jazz\/rtc\/cm\/1.0\/Literal"}],"dcterms:title":"Medium","rdf:about":"https:\/\/localhost:9443\/jazz\/oslc\/enumerations\/_gDfUIJ5FEeGAntnpUd9e9w\/priority\/priority.literal.l07"}},{"oslc_cm:status":"New","rdf:type":[{"rdf:resource":"http:\/\/open-services.net\/ns\/cm#ChangeRequest"}],"rtc_ext:raisedById":"04446496","dcterms:title":"Test","dcterms:contributor":{"rdf:type":[{"rdf:resource":"http:\/\/xmlns.com\/foaf\/0.1\/Person"}],"foaf:name":"TestJazzGuest1","rdf:about":"https:\/\/localhost:9443\/jazz\/oslc\/users\/_zQADsZleEd-joaYjvz6g2w"},"rdf:about":"https:\/\/localhost:9443\/jazz\/resource\/itemName\/com.ibm.team.workitem.WorkItem\/236","dcterms:identifier":236,"oslc_cmx:priority":{"rdf:type":[{"rdf:resource":"http:\/\/jazz.net\/xmlns\/prod\/jazz\/rtc\/cm\/1.0\/Literal"}],"dcterms:title":"Medium","rdf:about":"https:\/\/localhost:9443\/jazz\/oslc\/enumerations\/_gDfUIJ5FEeGAntnpUd9e9w\/priority\/priority.literal.l07"}},{"oslc_cm:status":"New","rdf:type":[{"rdf:resource":"http:\/\/open-services.net\/ns\/cm#ChangeRequest"}],"rtc_ext:raisedById":"04446496","dcterms:title":"Test Summary One","dcterms:contributor":{"rdf:type":[{"rdf:resource":"http:\/\/xmlns.com\/foaf\/0.1\/Person"}],"foaf:name":"TestJazzGuest1","rdf:about":"https:\/\/localhost:9443\/jazz\/oslc\/users\/_zQADsZleEd-joaYjvz6g2w"},"rdf:about":"https:\/\/localhost:9443\/jazz\/resource\/itemName\/com.ibm.team.workitem.WorkItem\/237","dcterms:identifier":237,"oslc_cmx:priority":{"rdf:type":[{"rdf:resource":"http:\/\/jazz.net\/xmlns\/prod\/jazz\/rtc\/cm\/1.0\/Literal"}],"dcterms:title":"Medium","rdf:about":"https:\/\/localhost:9443\/jazz\/oslc\/enumerations\/_gDfUIJ5FEeGAntnpUd9e9w\/priority\/priority.literal.l07"}}]}