DNG OSLC Query on Module
Hi ,
Is it possible to fetch all artifacts under give module?
We have core Artifacts those are reused in several modules. and I wanna query module specific artifact using module Id. Is this even support in APIs?
I tried access artifacts by using Forlder query like
But this always return back Core artifact and not module specific artifact those are having several links associated with it.
Any suggestion reference appreciated...
Thanks & Regards,
-Jay
One answer
Hi
You're only getting core artifacts because only core artifacts have a value for nav:parent (because they are in a folder, that's what nav:parent points at).
I've not found a way to query for a null or empty nav:parent - one way of finding module artifacts would be to remove the oslc.where condition and filter the results in your application to remove the results that do have a nav:parent, leaving you with the module artifacts. This will create larger result sets from the query, increasing server load, which you should be careful about.
Another way might be to use the Reportable REST API which has methods to filter for artifacts by module, or from a view of a module - so that may be preferable for the problem you're trying to solve. See https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI
HTH
Ian