how to get module URI for an artifact from a core URI?
Accepted answer
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
One other answer
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 .
}
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
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