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

RDF types request of GC stream returns 400 Bad Request

Hello,

Using the following request using RESTer plugin for Firefox (Authorization Inherited from active browser session) to obtain an RDF of all object types of a global stream in RM returns a 400 Bad Request:

curl 'https://my.jazz_server.com/rm/types?oslc.query=true&projectURL=https%3A%2F%2Fmy.jazz_server.com%2Frm%2Fprocess%2Fproject-areas%2F_TJ5IgDy8Eei4zcnLB9wCBw&oslc.prefix=rdf%3D%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E&oslc.where=rdf%3Atype%3D%3Chttp%3A%2F%2Fjazz.net%2Fns%2Frm%23Module%3E&oslc.select=*&oslc.paging=true&oslc.pageSize=200&private=true' \
    -H 'OSLC-Core-Version: 2.0' \
    -H 'Accept: application/rdf+xml ' \
    -H 'net.jazz.jfs.owning-context: https%3A%2F%2Fmy.jazz_server.com%2Frm%2Frm-projects%2F_TJ5IgDy8Eei4zcnLB9wCBw%2Fcomponents%2F_TSPMMDy8Eei4zcnLB9wCBw' \
    -H 'oslc_config.context: https://my.jazz_server.com/gc/configuration/22'


<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:err="http://jazz.net/xmlns/prod/jazz/foundation/1.0/">
    <rdf:Description>
        <err:detailedMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >invalid UUID</err:detailedMessage>
        <err:errorMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Falsche Anforderung</err:errorMessage>
        <err:errorStatus rdf:datatype="http://www.w3.org/2001/XMLSchema#long"
    >400</err:errorStatus>
    </rdf:Description>
</rdf:RDF>

What could I be missing here? For reference, requesting this information from a local stream like so works fine (200):

    curl 'https://my.jazz_server.com/rm/types?oslc.query=true&projectURL=https%3A%2F%2Fmy.jazz_server.com%2Frm%2Fprocess%2Fproject-areas%2F_TJ5IgDy8Eei4zcnLB9wCBw&oslc.prefix=rdf%3D%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E&oslc.where=rdf%3Atype%3D%3Chttp%3A%2F%2Fjazz.net%2Fns%2Frm%23Module%3E&oslc.select=*&oslc.paging=true&oslc.pageSize=200&private=true&ResourceContext=_TSecwDy8Eei4zcnLB9wCBw' \
    -H 'OSLC-Core-Version: 2.0' \
    -H 'Accept: application/rdf+xml ' \

0 votes

Comments

AFAIK that's not a public API

Hello Ian.

We rely on these resource descriptions for our integration with Doors Next.  Is there a public API that allows me to obtain the ObjectTypes for a component or global stream in RM? If not, we would be grateful to gain some insight on how to obtain these resources either way.

Thx in advance,

Jasper



One answer

Permanent link

You can get resource shape URLs for a local configuration using the OSLC API, they're in the services.xml, they're each in tag oslc:resourceShape. 

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
× 11,088
× 489
× 241
× 144
× 7

Question asked: Apr 22 '25, 12:58 p.m.

Question was seen: 2,394 times

Last updated: May 08 '25, 1:06 a.m.

Confirmation Cancel Confirm