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

How to find all artifacts that have given attribute(!=null) in RDNG 6.0.1M1?

Hi, I find search based on id and I have 3 rsults for "id=1" one is the base artifact and the others 2 are the modules in which it is used. But I want to make a query that filters the modules and displays only the base one. The differences between the two artefacts is that tha base have:
<nav:parent rdf:resource="https://10.0.2.79:9443/rm/folders/_gzGfo0DUEeW98vRabXRPEQ"/>
but the module has:
<rm:boundArtifact rdf:resource="https://10.0.2.79:9443/rm/resources/_hlPHMUDUEeW98vRabXRPEQ"/>
How to make my query that I can return olny one result with the base artifact only. Can I say something like:
give me all artifacts with id=1 which has nav:parent !=null ? Is that possible?

https://10.0.2.79:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2F10.0.2.79%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_Agw1YEA_EeW98vRabXRPEQ&oslc.prefix=dcterms=http://purl.org/dc/terms/&oslc.select=*&oslc.prefix=dc=http://purl.org/dc/terms/&oslc.where=dc:identifier=1

0 votes



One answer

Permanent link
In general (not just RM), OSLC does not provide functions such as exists, not exists, is null or is not null. I believe the best you can do is to filter the results _after_ the OSLC call. You still need to deal with the situation where no results are returned, right?

0 votes

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,101

Question asked: Sep 07 '15, 4:16 a.m.

Question was seen: 4,173 times

Last updated: Sep 07 '15, 9:00 p.m.

Confirmation Cancel Confirm