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

[closed] Query all requirement types of requirements included in a specific module

Hi,

I currently try to find a way to get all requirement type definitions (in OSLC known as "instance shapes") of these requirements which are existing in a specific module.
Therefore I would like to have an API, which can be either private or public.

So far, I try to use the OSLC query capabilities to define a query expression and execute this on DOORS NG 6.0.5.
Therefore I found this article showing some examples.
Based on the example "To query for artifact’s specific information of all artifacts that belongs to a collection, use a query similar to.", I defined the following query:

&oslc.prefix=oslc_core=<http://open-services.net/ns/core#>,oslc_rm=<http://open-services.net/ns/rm#>,dcterms=<http://purl.org/dc/terms/>&oslc.select=oslc_rm:uses{oslc_core:instanceShape}&oslc.where=dcterms:identifier=1
(Please assume, that the query parameter values will be url-encoded before request is performed)
The query result only lists the DOORS NG module, which has the identifier "1".
What I expected was to get the instance shape of all requirements, included in the module, listed.

Is that the correct way?
Or do you maybe know an alternative solution?

Thank you in advance.

1 vote

Comments

The query you reference will give you uris of artifacts, which when you GET from that URI do reference their instance shape but you'd have to GET them all to get all the instance shapes.
You can get all the Artifact Types (instance shapes) in a configuration by scanning the config--specific services.xml and looking in each of the queryCapability and creationFactory definitions and getting the resourcetype they work for; this gives you the URL of each shape, then you can GET the shape.


The question has been closed for the following reason: "Problem is not reproducible or outdated" by rschoon Sep 17 '21, 2:55 a.m.


One answer

Permanent link

 This question seems to attract some kind of dubious users. 


Unfortunately I can not answer the question and it is 2 years old. So I will close it.

I have looked into OSLC query capabilities for EWM but not DNG. Here are some related examples and questions on this forum: https://www.google.com/search?q=oslc+query+examples+doors+next+site%3Ajazz.net

0 votes

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
× 10,935
× 515
× 201
× 139
× 116
× 60
× 24

Question asked: Feb 02 '18, 9:30 a.m.

Question was seen: 4,594 times

Last updated: Sep 20 '21, 11:25 a.m.

Confirmation Cancel Confirm