How to find if an artifact has links or not in DNG?
![]() we are fetching links of an artifact but we are not aware whether an artifact has links or not.
Is there any way to find it in DNG?
|
One answer
![]()
David Honey (1.7k●1●7)
| answered Jul 09 '21, 5:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Do you mean outgoing links (those stored in DN), incoming links (stored in other applications linking to a requirement), or both?
Comments Thanks for the info... But when a GET on requirement is fetched do we get to know it has outgoing link in below format??
<rdf:predicate rdf:resource="http://www.ibm.com/xmlns/rdm/types/Link" />
You inspect the RDF of that fetched requirement to see what statements, if any, are made using the requirement's concept URI. This is as described by the OSLC Requirement Management specification. If you want to know which properties represent relationships, you discover the OSLC resource shape for that artifact (typically referenced by an oslc:instanceShape statement), and then GET that resource shape to examine its declared OSLC properties. See OSLC Core Version 3.0. Part 6: Resource Shape. If you know the predicates of the relationships you are interested in, you can simply look for RDF statements made using those predicates against the requirement concept URI subject.
|