Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

DNG : Given a Global Baseline, how to fetch all the DNG modules programmatically ?

Hi Team,


I have a usecase wherein given a DNG global baseline or a Stream, i need to fetch all the DNG modules below it programmatically. Is it possible ? 
It is fine if it is an API as well, I can parse the response and get the required details. Please suggest. Thanks.

0 votes



4 answers

Permanent link

You can find the public APIs here: https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding this includes the DNG APIs. 
We did some work in the past here the article series and source code that works on configurations: https://jazz.net/library/article/92596 also this blog here https://rsjazz.wordpress.com/2019/03/07/type-system-manager-part-2/

1 vote


Permanent link

OSLC Query is one way - query for modules using oslc.where=rdf:type=oslc_rm:RequirementCollection (where the bold part has to be url-encoded because it's a parameter value) - see https://docs.oasis-open-projects.org/oslc-op/query/v3.0/oslc-query.html - this article gives a brief overview of the OSLC APIs https://jazz.net/library/article/1197


Once you've got the query results you can use then module URLs to get more details with a further OSLC Query, for example to get all the used artifacts, or use the OSLC RM API to GET the details of the module, or the Module Structure API to retrieve the hierarchy in the module, see https://jazz.net/wiki/bin/view/Main/DNGModuleAPI

Or the Reportable REST API may be able to return all modules in a GC - see https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI

1 vote

Comments

this page has the required API to get the Modules from the GC Baseline : https://jazz.net/rm/doc/scenario?id=GetFlatListOfContributionsForGcHiearchy


However can we also get the Modules from the GC Stream ?
 

Thanks for this response Ralph and Ian.

That API gives you only the contribution (configuration) URLs for the GC configuration - nothing to do with modules.

The contribution URLS might be useful if you wanted to later use the specific local configurations in a query, but you can directly use the GC configuration URL with OSLC Query to get modules in that GC configuration.

Be aware that if you wanted for example to query for a specific type of module, the URL for that type of URL is configuration-specific so inevitably you will only get results from the component where that type of module is defined in the typesystem. But a more general query like oslc.where=rdf:type=oslc_rm:RequirementCollection will return modules anywhere in RM contributions to the GC.

1 vote


Permanent link

thanks Ian,


This API gets a flat list of GC hierarchy, how can i get this for a hierarchical structures of the GC Streams ?

0 votes

Comments

The GC APIs are shown here https://jazz.net/gc/doc/scenarios

1 vote


Permanent link

This API list doesnt have the details of getting the Modules from the Stream. Is it possible to get the modules from the Stream ?

0 votes

Comments

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,049

Question asked: Feb 11, 6:15 a.m.

Question was seen: 1,814 times

Last updated: Feb 17, 6:50 a.m.

Confirmation Cancel Confirm