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

how to get module URI for an artifact from a core URI?

 This is related to another question I asked. The Relation URI in a link, returns a core URI for an artifact. How do I find the modules an artifact is in by the core uri?

1

2 votes


Accepted answer

Permanent link

 David,


It is impossible right now to get from Base Context artifact to the module that is owning it.

It is possible to get from in module context artifact a link to a base context but there is no way do it opposite way now using IBM DOORS Next Reportable API.

Hope it will help

David Clark selected this answer as the correct answer

2 votes


One other answer

Permanent link
In the Gui you can obviously check the 'used in modules' section when you open the core artifact.
You can also run the following SPARQL query from the rm/admin >debug >SPARQL Query page, that returns a list of core artifact URL's with their related Module based artifact URL's and the related Module URLs:
Make sure to select a project and configuration first, else it will try to get all artifacts from the repository!
=================
PREFIX rm: <http://www.ibm.com/xmlns/rdm/rdf/>
PREFIX jfs: <http://jazz.net/xmlns/foundation/1.0/>

SELECT ?Resource ?Module ?boundArtifact
WHERE {
    ?Resource rm:module ?Module .
    ?Resource rm:boundArtifact ?boundArtifact .
}
===================
fyi: boundArtifact is the Core artifact

1 vote

Comments

  Thank you, I guess I should have stated, I want to do this from RPE.


I need to mimic the behavior of the GUI for a traceability report. It needs to include the name of the module with the artifact. I have the title and core uri easily accessed, but not the module from which it is linked to.

1 vote

David, 


Yes, information that you want to do it in the RPE is the critical one because you will have to use DNG Reportable API for that.

As Henryk wrote, it is not supported.

1 vote

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
× 12,019

Question asked: May 08 '20, 9:29 a.m.

Question was seen: 2,410 times

Last updated: May 10 '20, 1:33 p.m.

Related questions
Confirmation Cancel Confirm