It's all about the answers!

Ask a question

How fetch the value of "Artifact Type" Property for Requirement Artifact in OSLC

Amit Kumar (38219) | asked Feb 17 '16, 11:28 a.m.
I have a resource artifact .Lets say :  
https://server:port/rm/resources/_ca7b63a4172f42fdb6d5f646c8b63f5e .

Now for this artifact i need to know value of property "Artifact Type".
Is there way to perform GET on this artifact and fetch all property value.

Accepted answer

permanent link
Donald Nong (14.5k414) | answered Feb 21 '16, 8:05 p.m.
In the response of the artifact hyperlink, you should see an attribute <oslc:instanceShape>. Follow the link within this attribute, and check the <dc:title> at the top level (there are many other <dc:title> at lower levels). This is the "Artifact Type" you are looking for.
Amit Kumar selected this answer as the correct answer

Amit Kumar commented Feb 26 '16, 4:01 a.m.

 Hi Nong,,

Thanks  for your help.

I scanned oslc:instanceshape response  but I found reference to "Artifact Format" .
I need to know about "Artifact Type " which commonly displayed in DRNG UI.

Let me know what i can do more.

Donald Nong commented Feb 26 '16, 4:34 a.m.

Please re-read my post. You should see many <dc:title> in the response, and one of them (the top level one) is the "Artifact Type".

Your answer

Register or to post your answer.