Hi Jyoti
The ETM (RQM) application, at least in 7.x (not sure about 6.x) provides OLSC Query capability for configurations. This isn't a project-specific query, and the project area is included in the results which you'll have to filter on.
To find this on the application level:
Use headers:
* Accept: application/rdf+xml
* OSLC-Core-Version: 2.0
1. GET /qm/rootservices
Find:
<oslc_config:cmServiceProviders
<rdf:Description rdf:nodeID="A18">
<dcterms:title rdf:parseType="Literal">Default query capability for Configuration</dcterms:title>
</rdf:Description>
The OSLC Query base url in oslc:queryBase attribute rdf:resource. Always use the value retrieved, i.e. don't hardcode it.
A simple query on that capability - i.e. no oslc.where or oslc.select) will return all configurations with many properties - you probably want to filter for the project area, that should be oslc.where=process:projectArea=<yourprojectareauri> although I haven't tried it. I was able to get only baselines by using oslc.where=oslc_config:mutable="false"^^xsd:boolean (properly encoded, of course).
The query result without any oslc.select is like this (from 7.0.1) for a baseline (oslc_config:mutable is false):
<dcterms:title rdf:parseType="Literal">SGC Agile 1.0 Release</dcterms:title>
<dcterms:identifier>_XtGEwNd7EeqhD9rw3oe_og</dcterms:identifier>
</rdf:Description>
Here's an example of a stream from the query results (don't think this is related to above baseline) which has the oslc_config:previousBaseline that
@david mentions.
<dcterms:title rdf:parseType="Literal">SGC MTM 1.1 Release</dcterms:title>
<dcterms:identifier>_kqCcUdd7EeqhD9rw3oe_og</dcterms:identifier>
</rdf:Description>
FYI the EWM app also provides component query capability.
HTH
Ian
Comments
I understand what you mean by the latest baseline of a stream. Why do you have in mind by "latest baseline based on Artifact ID"? An Artifact does not have a "latest baseline" (an artifact can appear in multiple streams, and each stream could have a different "latest" version of that artifact ... the latest based purely on date stamp is not an interesting version, unless that artifact happens to only exist in a single stream).