It's all about the answers!

Ask a question

How to fetch the type of the artifact or module in DNG

G C (4911) | asked Nov 05 '23, 11:42 p.m.

Accepted answer

permanent link
Ian Barnard (1.9k613) | answered Nov 06 '23, 5:44 a.m.

When you GET the artifact in a configuration (with headers OSLC-Core-Version: 2.0 and Accept: application/rdf+xml), its 'type' is in the RDF in the oslc:instanceShape tag, e.g.

<rdf:RDF xmlns:rdf="" xmlns:acp="" xmlns:public_rm_10="" xmlns:calm="" xmlns:jazz_rm="" xmlns:acc="" xmlns:process="" xmlns:rm_property="" xmlns:dcterms="" xmlns:dc="" xmlns:oslc="" xmlns:nav="" xmlns:oslc_config="" xmlns:oslc_rm="" xmlns:dng_task="" xmlns:rm="" xmlns:oslc_auto=""> 
    <dcterms:description rdf:parseType="Literal"/>
    <dcterms:creator rdf:resource=""/>
    <jazz_rm:primaryText rdf:parseType="Literal"><div xmlns="">
<p id="_1389358019520"> Interface identification and diagrams</p>
    <dcterms:contributor rdf:resource=""/>
    <rdf:type rdf:resource=""/>
    <rdf:type rdf:resource=""/>
    <dcterms:title rdf:parseType="Literal">Interface identification and diagrams</dcterms:title>
    <oslc:instanceShape rdf:resource=""/>

To get the name of the type (shape) you GET its URL and use its top-level dcterms:title, for example.

    <dcterms:title rdf:parseType="Literal">Heading</dcterms:title>

G C selected this answer as the correct answer

Your answer

Register or 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.