Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RM oslc query to get artifacts that match ID

I am trying to use oslc url with filter dcterms:identifier=123

My expectation is to get both base artifact and module artifact(s) whose identifier is 123
However, this filter is not working as expected. Is there any way to get the module artifacts if I have base artifact url?

0 votes



One answer

Permanent link

Correctly using your query oslc.where=dcterms:identifier=123 will return the base artifact and the module bindings with that identifier, because these all have the same dcterms:identifier. The base artifact will have an rmNav:parent property - the folder it is stored in - and the bindings won't, instead they will have an rm:module property with the module URL.


To get more help you'll have to provide more information about what you expect and what you actually get:
  • The complete query URL you're using
  • The headers you're providing
  • The response result

Edit this information into your question above

0 votes

Comments

I am using the following url

Headers:
Configuration-Context:<configcontext>

Can you please suggest the changes to get all artifact details (where artifact id is 123)?


Not sure about using parameter oslc.query, AFAIK oslc.where is the correct way to specify an OSLC Query, see the specification.

If you're going to use a prefix like dcterms then you need an oslc:prefix= parameter to specify the value of each prefix - note the formatting of this, see the specification.

You need to be careful to url encode the values for all parameters - e.g. the bit after the oslc.where= - this is an example of a complete query URL https://jazz.ibm.com:9443/rm/views?oslc.query=true&projectURL=https%3A//jazz.ibm.com%3A9443/rm/process/project-areas/_DSxBkLFXEe-j4_rM2KKkmw&oslc.prefix=dcterms%3D%3Chttp%3A//purl.org/dc/terms/%3E&oslc.where=dcterms%3Aidentifier%3D123&oslc.select=%2A - this is a requirement of the HTTP protocol, i.e. nothing to do with DOORS Next or ELM.

Add parameter oslc.select=* to get all the properties in the results, as in the example above. This is described in the specificaiton.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,086

Question asked: Apr 16 '25, 8:56 p.m.

Question was seen: 1,143 times

Last updated: Apr 17 '25, 11:11 a.m.

Confirmation Cancel Confirm