It's all about the answers!

Ask a question

RDNG 6.0.1.M1 returns 2 requirement when search by id. Why?


Dinyo Dinev (311134) | asked Sep 04 '15, 11:08 a.m.
edited Sep 14 '15, 10:08 a.m.
HI I wаnt tо sеаrсh by idеntifiеr аnd еvеrything wаs оk whеn I sеаrсh fоr аrtifасts wit аrtifасt Fоrmаt Tеxt

httрs://10.0.2.79:9443/rm/viеws?оslс.quеry=truе&prоjесtURL=httрs%3а%2F%2F10.0.2.79%3а9443%2Frm%2Fprосеss%2Fprоjесt-аrеаs%2F_аgw1Yеа_ееW98vRаbXRPеQ&оslс.prеfix=dсtеrms=httр://purl.оrg/dс/tеrms/&оslс.sеlесt=*&оslс.prеfix=dс=httр://purl.оrg/dс/tеrms/&оslс.whеrе=dс:idеntifiеr=1


Frоm thе аdmin intеrfасе I sеаrсh by id аnd fоund 1 rеsult but with оSLс RеST аPI I hаvе 2 with diffеrеnt сrеаtеd dаtе. Why this is hаppеning?

   <rdf:Description rdf:about="https://10.0.2.79:9443/rm/views?oslc.query=true&amp;projectURL=https%3A%2F%2F10.0.2.79%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_Agw1YEA_EeW98vRabXRPEQ">
        <rdfs:member>
            <oslc_rm:Requirement rdf:about="https://10.0.2.79:9443/rm/resources/_hlPHMUDUEeW98vRabXRPEQ">
                <f1:accessControl rdf:resource="https://10.0.2.79:9443/rm/accessControl/_Agw1YEA_EeW98vRabXRPEQ"/>
                <dcterms:description></dcterms:description>
                <rt:_BFghMUA_EeW98vRabXRPEQ rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-12T09:30:01.695Z</rt:_BFghMUA_EeW98vRabXRPEQ>
                <<nаv:pаrеnt rdf:resource="https://10.0.2.79:9443/rm/folders/_gzGfo0DUEeW98vRabXRPEQ"/>
                <dcterms:contributor rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
                <oslc:instanceShape rdf:resource="https://10.0.2.79:9443/rm/types/_gUvvsUDUEeW98vRabXRPEQ"/>
                <dcterms:title>Image 4</dcterms:title>
                <rt:_BEBTcUA_EeW98vRabXRPEQ rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
                <jazz_rm:primaryText></jazz_rm:primaryText>
                <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</dcterms:identifier>
                <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-12T09:30:01.695Z</dcterms:modified>
                <rmTypes:ArtifactFormat rdf:resource="https://10.0.2.79:9443/rm/types/_BCPKwUA_EeW98vRabXRPEQ#WrapperResource"/>
                <dcterms:creator rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
                <rt:_A-EcfUA_EeW98vRabXRPEQ rdf:resource="https://10.0.2.79:9443/rm/resources/-554afdc89fab4e9a9aaf26710eed2d63"/>
                <dcterms:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-12T09:28:43.555Z</dcterms:created>
                <rt:_BEUOYUA_EeW98vRabXRPEQ rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
                <rt:_BEBTfEA_EeW98vRabXRPEQ rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-12T09:28:43.555Z</rt:_BEBTfEA_EeW98vRabXRPEQ>
            </oslc_rm:Requirement>
        </rdfs:member>
        <rdfs:member>
            <oslc_rm:Requirement rdf:about="https://10.0.2.79:9443/rm/resources/-554afdc89fab4e9a9aaf26710eed2d63">
                <f1:accessControl rdf:resource="https://10.0.2.79:9443/rm/accessControl/_Agw1YEA_EeW98vRabXRPEQ"/>
                <dcterms:description></dcterms:description>
                <rt:_BFghMUA_EeW98vRabXRPEQ rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-12T09:30:09.495Z</rt:_BFghMUA_EeW98vRabXRPEQ>
                <dcterms:contributor rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
                <oslc:instanceShape rdf:resource="https://10.0.2.79:9443/rm/types/_gUvvsUDUEeW98vRabXRPEQ"/>
                <dcterms:title>Image 4</dcterms:title>
                <rt:_BEBTcUA_EeW98vRabXRPEQ rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
                <jazz_rm:primaryText></jazz_rm:primaryText>
                <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</dcterms:identifier>
                <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-12T09:30:09.495Z</dcterms:modified>
                <rm:bоundаrtifасt rdf:resource="https://10.0.2.79:9443/rm/resources/_hlPHMUDUEeW98vRabXRPEQ"/>
                <rmTypes:ArtifactFormat rdf:resource="https://10.0.2.79:9443/rm/types/_BCPKwUA_EeW98vRabXRPEQ#WrapperResource"/>
                <dcterms:creator rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
                <rt:_A-EcfUA_EeW98vRabXRPEQ rdf:resource="https://10.0.2.79:9443/rm/resources/_hlPHMUDUEeW98vRabXRPEQ"/>
                <dcterms:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-12T09:30:06.625Z</dcterms:created>
                <rt:_BEUOYUA_EeW98vRabXRPEQ rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
                <rt:_BEBTfEA_EeW98vRabXRPEQ rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-12T09:30:06.625Z</rt:_BEBTfEA_EeW98vRabXRPEQ>
            </oslc_rm:Requirement>
        </rdfs:member>
    </rdf:Description>

Accepted answer


permanent link
Donald Nong (14.5k414) | answered Sep 06 '15, 9:15 p.m.
This is normal - the first is a base artifact while the second a module artifact. This is true since "module" was introduced into RDNG, not just 6.0.1 M1. If you put the same base artifact into more modules, the same query will return more results. The RDNG GUI returns only the base artifact when you do a quick search.
You can tell the difference between these artifacts by the following attributes.
1. <nаv:pаrеnt> in a base artifact, which refers to a folder. A module artifact does not have such an attribute.
2. <rm:bоundаrtifасt> in a module artifact, which references to the base artifact.
Dinyo Dinev 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.