get all collections from serviceprovider
Prashant Kumar (1●3●4)
| asked Aug 21 '13, 6:13 a.m.
retagged Sep 03 '13, 2:10 p.m. by Ralph Earle (257●3●9)
I was using the link for working with requirements.
For getting the services for a specific project area I have used
https://jazz.server.com:9443/rm/discovery/_jMaJ8AlnEeOYRLW4UQ3HEg/services.xml
<rdf:RDF>
</rdf:RDF>
how to get the list of collections and their respective requirements from the service xml.
i tried with this url https://jazz.server.com:9443/rm/publish/collections/* its only giving list of collections not the requirements
|
Accepted answer
Hi,
You can use the query Capability ( found in the service doc ) with following parameters ( some chars are URL encoded ) : &oslc.prefix=dcterms%3D%3Chttp://purl.org/dc/terms/%3E,rdf%3D%3Chttp://www.w3.org/1999/02/22-rdf-syntax-ns%23%3E,oslc_rm%3D%3Chttp://open-services.net/ns/rm%23%3E &oslc.select=dcterms:title,oslc_rm:uses &oslc.where=rdf:type=%3Chttp://open-services.net/ns/rm%23RequirementCollection%3E That will provide an output like : <rdfs:member> <oslc_rm:RequirementCollection rdf:about="https://gradev.ibm.com:9444/rdm/resources/_hnLEFQpwEeOjY9bpifAJpg"> <dcterms:title>Coll02</dcterms:title> <oslc_rm:uses rdf:resource="https://gradev.ibm.com:9444/rdm/resources/_kwGj4QpwEeOjY9bpifAJpg"/> </oslc_rm:RequirementCollection> </rdfs:member> <rdfs:member> <oslc_rm:RequirementCollection rdf:about="https://gradev.ibm.com:9444/rdm/resources/_jPfFtApwEeOjY9bpifAJpg"> <dcterms:title>Coll03</dcterms:title> <oslc_rm:uses rdf:resource="https://gradev.ibm.com:9444/rdm/resources/_liPLdQpwEeOjY9bpifAJpg"/> <oslc_rm:uses rdf:resource="https://gradev.ibm.com:9444/rdm/resources/_mfTQpQpwEeOjY9bpifAJpg"/> </oslc_rm:RequirementCollection> </rdfs:member> where oslc_rm:uses contains the URI of an artifact that is part of that specific collection Rosa Naranjo selected this answer as the correct answer
Comments
Prashant Kumar
commented Aug 24 '13, 1:03 a.m.
could you please explain with the xml what i was getting . I used the following url
Gabriel Ruelas
commented Aug 26 '13, 9:56 a.m.
The folder query is used to obtain/navigate the folder structure. Tyry using :
|
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.