get all collections from serviceprovider
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 ) :
That will provide an output like :
where oslc_rm:uses contains the URI of an artifact that is part of that specific collection
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
Comments
could you please explain with the xml what i was getting . I used the following url
https://jazz.server.com:9443/rm/folders?oslc.where=public_rm:parent=https://jazz.server.com:9443/rm/folders/_jMaJ8AlnEeOYRLW4UQ3HEg" it was giving 403 error
|
The folder query is used to obtain/navigate the folder structure. Tyry using :
"https://jazz.server.com:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fjazz.server.com%3A9443%2Fjts%2Fprocess%2Fproject-areas%2F_jMaJ8AlnEeOYRLW4UQ3HEg