Is there any API to fetch only the artifacts or modules which has links in DNG
2 answers
For opt-in (configuration managed):
This could only be possible by OSLC Query into DOORS Next where links are outgoing from artifacts, i.e. they must be RM to RM links because all links from other apps are incoming into DN; but OSLC Query can't filter for a non-empty link property, so the way to do this using OSLC Query is for oslc.select to include the link property and then post-process the results of the query.
For links incoming to DN you'll have to query in the app where the link is stored.
For opt-out:
Backlinks are stored in DN so you may be able to get these using OSLC Query; not sure, you'll have to try it
Comments
Yes I need the API for DNG internal links. It would be helpful if you have any sample query
I used the below query with oslc.select with link type.
but getting error. Can you please help
What error are you getting? If you specify oslc.select=* does it work? If you don't specify oslc.select does it work? Are you providing a configuration header, what other headers?
Here's an example with oslc.select specifies the Satisfies relationship, identifier, rm_nav:parent
Significant headers:
OSLC-Core-Version: 2.0
Accept: application/rdf+xml
Configuration-Context: https://jazz.ibm.com:9443/rm/cm/stream/_9iD4wFEhEe2d5dG-54qhbg
I think the syntax for oslc.select requires properties to be prefixed, like rp0:whatever where the prefix is defined in the oslc.prefix=rp0=<https://jazz.ibm.com:9443/rm/types/>
OSLC Query specification: OSLC Query Version 3.0 (oasis-open-projects.org)
For the oslc.select syntax this references the oslc.properties syntax here OSLC Core Version 3.0. Part 1: Overview (oslc-op.github.io)
Hello Barnard,
Thanks for the help.
I tried with the query you had suggested, I was using satisfaction link UUID for oslc.select, please refer the query i had used below.
But I am getting artifacts which does not have any links in the API response.
https://server:port/rm/views?oslc.pageSize=200&oslc.paging=true&oslc.prefix=rp0%3D%3Chttps://server:port/rm/types/%3E%2Cdcterms%3D%3Chttp%3A//purl.org/dc/terms/%3E%2Crm_nav%3D%3Chttp%3A//jazz.net/ns/rm/navigation%23%3E&oslc.query=true&oslc.select=rp0%3ALT_RiWh3ccHEeitdLwEqvb98g%2Cdcterms%3Aidentifier%2Crm_nav%3Aparent&projectURL=https://server:port/rm%2Fprocess%2Fproject-areas%2F_lHiK8KCkEeqZEuOY_z6S2A
> I am getting artifacts which does not have any links in the API response
Yes that's expected - as I said in my answer OSLC Query doesn't have a way to filter out resources that don't have a value for a property so you'll have to post-process the results
showing 5 of 7
show 2 more comments