What is the URL to fetch components from RQM local stream?
Hi team,
6 answers
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 https://oslc-op.github.io/oslc-specs/specs/config/oslc-config-mgt.html.
Best regards,
David
@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?
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.
Comments
Hi David so I need to follow below steps in my automation:
@David Honey could you please help on the topic to fetch URI of configuration
David
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.
Comments
@David I already tried the OSLC approach to find the local streams using:
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
<!-- Configuration Management service catalog -->
<oslc_config:cmServiceProviders
xmlns:oslc_config="http://open-services.net/ns/config#"
rdf:resource="https://localhost:9443/qm/oslc_config/catalog" />
oslc_config:cmServiceProviders
.
<rdf:Description rdf:nodeID="A19">
<oslc:resourceType rdf:resource="http://open-services.net/ns/config#Configuration"/>
<oslc:queryBase rdf:resource="https://localhost:9443/qm/oslc_config/resources/com.ibm.team.vvc.Configuration"/>
<oslc:resourceShape rdf:resource="https://localhost:9443/qm/oslc_config/resourceShapes/com.ibm.team.vvc.Configuration"/>
<dcterms:title rdf:parseType="Literal">Default query capability for Configuration</dcterms:title>
<rdf:type rdf:resource="http://open-services.net/ns/core#QueryCapability"/>
</rdf:Description>
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
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:prov="http://www.w3.org/ns/prov#"
xmlns:oslc_config="http://open-services.net/ns/config#"
xmlns:ldp="http://www.w3.org/ns/ldp#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:oslc_auto="http://open-services.net/ns/auto#"
xmlns:acc="http://open-services.net/ns/core/acc#"
xmlns:process="http://jazz.net/ns/process#" >
<rdf:Description rdf:about="https://localhost:9443/qm/oslc_config/resources/com.ibm.team.vvc.Configuration">
<rdfs:member rdf:resource="https://localhost:9443/qm/oslc_config/resources/com.ibm.team.vvc.Configuration/_H-N8MC_PEeu-Q6TEfv0QIg"/>
<oslc:totalCount>1</oslc:totalCount>
<rdf:type rdf:resource="http://open-services.net/ns/core#ResponseInfo"/>
</rdf:Description>
<rdf:Description rdf:about="https://localhost:9443/qm/oslc_config/resources/com.ibm.team.vvc.Configuration/_H-N8MC_PEeu-Q6TEfv0QIg">
<dcterms:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2020-11-26T11:07:00.514Z</dcterms:created>
<dcterms:title rdf:parseType="Literal">Test1 Initial Stream</dcterms:title>
<rdf:type rdf:resource="http://open-services.net/ns/config#Configuration"/>
<oslc_config:mutable rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</oslc_config:mutable>
<oslc_config:component rdf:resource="https://localhost:9443/qm/oslc_config/resources/com.ibm.team.vvc.Component/_H-XtMC_PEeu-Q6TEfv0QIg"/>
<dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">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="http://open-services.net/ns/config#Stream"/>
<dcterms:relation rdf:resource="https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_Ha1iUC_PEeu-Q6TEfv0QIg/stream/_H-N8MC_PEeu-Q6TEfv0QIg"/>
<oslc_config:acceptedBy rdf:resource="http://open-services.net/ns/config#Configuration"/>
<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/com.ibm.team.vvc.Configuration/_H-N8MC_PEeu-Q6TEfv0QIg/selections"/>
<oslc:instanceShape rdf:resource="https://localhost:9443/qm/oslc_config/resourceShapes/stream"/>
<oslc_config:baselines rdf:resource="https://localhost:9443/qm/oslc_config/resources/com.ibm.team.vvc.Configuration/_H-N8MC_PEeu-Q6TEfv0QIg/baselines"/>
<dcterms:identifier>_H-N8MC_PEeu-Q6TEfv0QIg</dcterms:identifier>
<acc:accessContext rdf:resource="https://localhost:9443/qm/acclist#_Ha1iUC_PEeu-Q6TEfv0QIg"/>
</rdf:Description>
</rdf:RDF>
Best regards,
David