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

Is there any way to get the name of the Shape (Artifact Type) in RRC from Shape URI ?

We have obtained the shape URI through and it returns a URI as Resource Shape URI->> https://ch5dlfi077.in.ibm.com:9445/rm/types/_p1fzIvcNEeGlgZR4QWph9g, is there any way by which we can get the name of the shape?

The code snippet I am using to get the shape is as follows..

NodeList paNode = (NodeList)(xpath.evaluate(requirementfactoryShapes, doc, XPathConstants.NODESET));
        for (int i = 0; i < paNode.getLength(); i++) {
            //These all correspond to an artifact type URI in RRC
            System.out.println("Resource Shape URI->> " + paNode.item(i).getTextContent());
      
        }
       

0 votes



3 answers

Permanent link
Hi,
The name of the shape is exposed in the response as :

<dc:title rdf:parseType="Literal">Feature</dc:title>

It is not part of a property within the response, it is an attribute of it.

0 votes


Permanent link
Is it possible to use the resource shape (ie requirement type) in the querycapabilityURI -so that I could select all requirements that were 'Business Requirement' artifact type?

0 votes


Permanent link
Yes. but it must be specified as rm:ofType.

Here is an example :
"....   &oslc.where=rm:ofType=<https://grarrc.ibm.com:9443/rm/types/_SAwm2t5jEeGb6IIbvOh9Dw>   ...."

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
× 10,938
× 45

Question asked: Sep 11 '12, 8:22 a.m.

Question was seen: 5,129 times

Last updated: Oct 22 '12, 10:05 a.m.

Confirmation Cancel Confirm