It's all about the answers!

Ask a question

What is the URL to fetch components from RQM local stream?

Andrew Ciaz (493) | asked Nov 20 '20, 9:12 a.m.

 Hi team,

I successfully fetched all the stream of QM project areas using below URL:

https://localhost:port/qm/service/ Tracking System (Quality Management)/stream

But further I want to fetch all the components of particular stream. Could you please suggest any solution on this?

6 answers

permanent link
David Honey (1363) | answered Nov 23 '20, 5:35 a.m.

Hi Andrew,

The RDF representation of a stream (or any configuration) should contain a oslc_config:component statement that gives the URI of the component of that configuration. You can find details of this in the draft OSLC Configuration Management specification at

Best regards,

permanent link
Andrew Ciaz (493) | answered Nov 23 '20, 7:12 a.m.

 @David Honey thanks for your reply, I go through the link but I am not clear about how to fetch RQM streams using REST or OSLC, could you please provide the sample URL?

permanent link
David Honey (1363) | answered Nov 23 '20, 7:34 a.m.

Perform a GET on the URI of an RQM stream using Accept=application/rdf+xml or Accept=text/turtle.
The response will be the RDF representation of that RQM stream.

Andrew Ciaz commented Nov 23 '20, 7:38 a.m.

Hi David so I need to follow below steps in my automation:

1. Login to the RQM
2. Fetch all the project areas and streams

So I don't know the URI of the stream prior. I just want to fetch all the streams from the project areas

Andrew Ciaz commented Nov 25 '20, 10:06 a.m.

@David Honey could you please help on the topic to fetch URI of configuration 

permanent link
David Honey (1363) | answered Nov 25 '20, 11:29 a.m.
You will need to query for them. You can discover the OSLC Service Provider Catalog for configuration management from ETM's rootservices document (e.g. https://localhost:9443/qm/rootservices). Then use standard OSLC service discovery (see the OSLC Core specification linked to from to discover the OSLC query capability for configurations. A GET on the query base of that query capability will allow you to query for ETM configurations. You can find more information about OSLC Query from the OSLC Query 3.0 specification linked to from

Best regards,

permanent link
David Honey (1363) | answered Nov 25 '20, 11:34 a.m.

The original question in the title of this post was "What is the URL to fetch components from RQM local stream?".
If you know the URI of that RQM local stream, you can just GET it. Each stream is a configuration of exactly one component. The RDF of that RQM local stream will have an oslc_config:component property that is the URI of its component. You can find more details about configurations and components in the draft OSLC Configuration Management specification.

Andrew Ciaz commented Nov 25 '20, 11:02 p.m.

@David I already tried the OSLC approach to find the local streams using:

1. rootservices --> catlog --> services for project area 

but there is no query capability for configuration. Is that feature is not provided by QM? there are all other services but no service found for config, stream, component related 

permanent link
David Honey (1363) | answered Nov 26 '20, 6:22 a.m.
I deployed an ELM A GET on https://localhost:9443/qm/rootservices gave a response that included:

  <!-- Configuration Management service catalog -->
          rdf:resource="https://localhost:9443/qm/oslc_config/catalog"  />

Note that ETM declares multiple OSLC service provider catalogs in its rootservices. The one you want for configuration management uses oslc_config:cmServiceProviders .

A GET on the SPC at https://localhost:9443/qm/oslc_config/catalog with header Oslc-core-version=2.0 gave a response that included:

  <rdf:Description rdf:nodeID="A19">
    <oslc:resourceType rdf:resource=""/>
    <oslc:queryBase rdf:resource="https://localhost:9443/qm/oslc_config/resources/"/>
    <oslc:resourceShape rdf:resource="https://localhost:9443/qm/oslc_config/resourceShapes/"/>
    <dcterms:title rdf:parseType="Literal">Default query capability for Configuration</dcterms:title>
    <rdf:type rdf:resource=""/>

A GET on the query base (without any oslc.where) gave the RDF shown below. In my case, I had only create a single ETM project area and enabled it for configuration management. I had previously found that ETM did not support specifying process:projectArea in either the component query capability or configuration query capability, so it appears you cannot limit the query to a specific project area. See
188063: Support process:projectArea in oslc.where on component query capability. You can query for the configurations of a specified component.
<?xml version="1.0" encoding="UTF-8"?>
    xmlns:process="" > 
  <rdf:Description rdf:about="https://localhost:9443/qm/oslc_config/resources/">
    <rdfs:member rdf:resource="https://localhost:9443/qm/oslc_config/resources/"/>
    <rdf:type rdf:resource=""/>
  <rdf:Description rdf:about="https://localhost:9443/qm/oslc_config/resources/">
    <dcterms:created rdf:datatype="">2020-11-26T11:07:00.514Z</dcterms:created>
    <dcterms:title rdf:parseType="Literal">Test1 Initial Stream</dcterms:title>
    <rdf:type rdf:resource=""/>
    <oslc_config:mutable rdf:datatype="">true</oslc_config:mutable>
    <oslc_config:component rdf:resource="https://localhost:9443/qm/oslc_config/resources/"/>
    <dcterms:modified rdf:datatype="">2020-11-26T11:07:00.514Z</dcterms:modified>
    <oslc:modifiedBy rdf:resource="https://localhost:9443/jts/users/david"/>
    <oslc:serviceProvider rdf:resource="https://localhost:9443/qm/oslc_config/serviceProviders/configuration"/>
    <rdf:type rdf:resource=""/>
    <dcterms:relation rdf:resource="https://localhost:9443/qm/service/"/>
    <oslc_config:acceptedBy rdf:resource=""/>
    <process:projectArea rdf:resource="https://localhost:9443/qm/process/project-areas/_Ha1iUC_PEeu-Q6TEfv0QIg"/>
    <oslc_config:selections rdf:resource="https://localhost:9443/qm/oslc_config/resources/"/>
    <oslc:instanceShape rdf:resource="https://localhost:9443/qm/oslc_config/resourceShapes/stream"/>
    <oslc_config:baselines rdf:resource="https://localhost:9443/qm/oslc_config/resources/"/>
    <acc:accessContext rdf:resource="https://localhost:9443/qm/acclist#_Ha1iUC_PEeu-Q6TEfv0QIg"/>

Best regards,

Your answer

Register or to post your answer.