It's all about the answers!

Ask a question

DNG OSLC APIs to fetch Artifact attributes and links

Jayesh Gaikar (59115) | asked Sep 10 '20, 2:46 p.m.


I'm having trouble accessing links associated with artifact (e.g. validatedBy) by using OSLC APIs.
The response payload received from simple query with where clause "dcterms:identifier" and wildcard character "" in select clause doesn't have any details related to links.
Does link relationship owner pay roles in it? May i know way to fetch all artifact withing given Module/collection along with associated links and attributes?
Note: I have tried REST APIs and its too time taking (5 mins/page of size 1000 ). I would less prefer that option.

Here is Query I tried to execute :
Query executed on  oslcResourceType: OSLCConstants.RM_REQUIREMENT_TYPE
queryParams.setWhere(    "nav:parent=<http://[server:port]/rm/folders/_h_55dXWyEei7eqqp227SoQ> and f1:Variant=<http://[server:port]/rm/types/_dFSccXmKEeiA-axCpwGpIw#5c36d80a-ab4f-48dd-8828-b46dd1b293e7> and f1:Status=<http://[server:port]/rm/types/_wlyx6GW5Eei7eqqp227SoQ#_wlyx62W5Eei7eqqp227SoQ>");

Is it really possible to fetch artifact Links by using OSLC APIs?
Any suggestions/references/ examples are much appreciated ...

Thanks & Regards,

2 answers

permanent link
Cristobal Sandoval (862) | answered Sep 11 '20, 4:42 p.m.

I'm not sure if you have already seen it, but there are some examples in this site

Hope it helps

Jayesh Gaikar commented Sep 11 '20, 7:40 p.m.
Thanks Cristobal! I already had through those examples. I couldn't find much help there.

permanent link
Jayesh Gaikar (59115) | answered Sep 11 '20, 7:42 p.m.
I got subsequent query here :
May i know how to handle pagination with OSLC queries? 

Cristobal Sandoval commented Sep 14 '20, 12:33 p.m.

You could add the page size parameter and check the headers, there should be a link to the next page. 

See also this article 

Jayesh Gaikar commented Sep 14 '20, 2:26 p.m.

Thanks Cristobal! I was not setting header due to which next page query was failing all the time...

Your answer

Register or to post your answer.