It's all about the answers!

Ask a question

Different responses for DNG REST baseline query


Chidambaram L (23414287) | asked Jan 24 '23, 2:13 a.m.
edited Jan 24 '23, 5:20 a.m.
Responses for following REST Query for stream1 & stream2 are not identical.
GET: https://xyz.com/rm/cm/stream/streamX/baselines
Accept: application/xml

Node names for stream1 & stream2 are different, as illustrated below in Bold.
I am using ELM 70 iFix13.

returns
    <rdfs:member>
      <oslc_config:Configuration rdf:about="https://xyz.com/rm/cm/baseline/_8COGABO9Ee2wReB1R5agyg">
        <oslc_config:overrides rdf:resource="https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg" />
        <prov:wasDerivedFrom rdf:resource="https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg" />
        <oslc_config:component rdf:resource="https://xyz.com/rm/cm/component/_2VNLABMcEe2wReB1R5agyg" />
        <oslc:serviceProvider rdf:resource="https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml" />
        <dcterms:identifier>_8COGABO9Ee2wReB1R5agyg</dcterms:identifier>
        <oslc_config:baselineOfStream rdf:resource="https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg" />
        <dcterms:description></dcterms:description>
        <process:projectArea rdf:resource="https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA" />
        <dcterms:title rdf:parseType="Literal">PL48 General 1.0</dcterms:title>
        <oslc_config:streams rdf:resource="https://xyz.com/rm/cm/baseline/_8COGABO9Ee2wReB1R5agyg/streams" />
        <acc:accessContext rdf:resource="https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA" />
        <oslc_config:acceptedBy rdf:resource="http://open-services.net/ns/config#Configuration" />
        <oslc_config:selections rdf:resource="https://xyz.com/rm/configSelections/baseline/_8COGABO9Ee2wReB1R5agyg" />
        <dcterms:creator rdf:resource="https://xyz.com/jts/users/lakschi" />
        <rdf:type rdf:resource="http://open-services.net/ns/config#Baseline" />
      </oslc_config:Configuration>
    </rdfs:member>
    <rdfs:member>
      <oslc_config:Configuration rdf:about="https://xyz.com/rm/cm/baseline/_fUQ5kBzNEe2f29eLu6PFCQ">
        <prov:wasDerivedFrom rdf:resource="https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg" />
        <oslc_config:component rdf:resource="https://xyz.com/rm/cm/component/_2VNLABMcEe2wReB1R5agyg" />
        <oslc_config:selections rdf:resource="https://xyz.com/rm/configSelections/baseline/_fUQ5kBzNEe2f29eLu6PFCQ" />
        <dcterms:title rdf:parseType="Literal">PL48 General 2.0</dcterms:title>
        <oslc_config:overrides rdf:resource="https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg" />
        <oslc_config:acceptedBy rdf:resource="http://open-services.net/ns/config#Configuration" />
        <acc:accessContext rdf:resource="https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA" />
        <dcterms:identifier>_fUQ5kBzNEe2f29eLu6PFCQ</dcterms:identifier>
        <oslc:serviceProvider rdf:resource="https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml" />
        <oslc_config:streams rdf:resource="https://xyz.com/rm/cm/baseline/_fUQ5kBzNEe2f29eLu6PFCQ/streams" />
        <rdf:type rdf:resource="http://open-services.net/ns/config#Baseline" />
        <oslc_config:baselineOfStream rdf:resource="https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg" />
        <dcterms:creator rdf:resource="https://xyz.com/jts/users/lakschi" />
        <dcterms:description></dcterms:description>
        <process:projectArea rdf:resource="https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA" />
        <oslc_config:previousBaseline rdf:resource="https://xyz.com/rm/cm/baseline/_8COGABO9Ee2wReB1R5agyg" />
      </oslc_config:Configuration>
    </rdfs:member>
  </ldp:DirectContainer>
</rdf:RDF>

    <rdfs:member>
      <oslc_config:Baseline rdf:about="https://xyz.com/rm/cm/baseline/_1JLnEBO8Ee2wReB1R5agyg">
        <oslc:serviceProvider rdf:resource="https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml" />
        <process:projectArea rdf:resource="https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA" />
        <dcterms:identifier>_1JLnEBO8Ee2wReB1R5agyg</dcterms:identifier>
        <oslc_config:selections rdf:resource="https://xyz.com/rm/configSelections/baseline/_1JLnEBO8Ee2wReB1R5agyg" />
        <oslc_config:baselineOfStream rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <rdf:type rdf:resource="http://open-services.net/ns/config#Configuration" />
        <oslc_config:acceptedBy rdf:resource="http://open-services.net/ns/config#Configuration" />
        <oslc_config:component rdf:resource="https://xyz.com/rm/cm/component/_wYJWsBMcEe2wReB1R5agyg" />
        <dcterms:description></dcterms:description>
        <dcterms:title rdf:parseType="Literal">PL48 Diagnostics 11.0</dcterms:title>
        <acc:accessContext rdf:resource="https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA" />
        <oslc_config:streams rdf:resource="https://xyz.com/rm/cm/baseline/_1JLnEBO8Ee2wReB1R5agyg/streams" />
        <oslc_config:overrides rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <prov:wasDerivedFrom rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <dcterms:creator rdf:resource="https://xyz.com/jts/users/lakschi" />
      </oslc_config:Baseline>
    </rdfs:member>
    <rdfs:member>
      <oslc_config:Baseline rdf:about="https://xyz.com/rm/cm/baseline/_2DMF8B04Ee2f29eLu6PFCQ">
        <dcterms:description></dcterms:description>
        <oslc_config:previousBaseline rdf:resource="https://xyz.com/rm/cm/baseline/_1JLnEBO8Ee2wReB1R5agyg" />
        <oslc_config:acceptedBy rdf:resource="http://open-services.net/ns/config#Configuration" />
        <oslc_config:streams rdf:resource="https://xyz.com/rm/cm/baseline/_2DMF8B04Ee2f29eLu6PFCQ/streams" />
        <oslc_config:selections rdf:resource="https://xyz.com/rm/configSelections/baseline/_2DMF8B04Ee2f29eLu6PFCQ" />
        <oslc_config:overrides rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <oslc:serviceProvider rdf:resource="https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml" />
        <oslc_config:baselineOfStream rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <oslc_config:component rdf:resource="https://xyz.com/rm/cm/component/_wYJWsBMcEe2wReB1R5agyg" />
        <dcterms:creator rdf:resource="https://xyz.com/jts/users/lakschi" />
        <dcterms:title rdf:parseType="Literal">PL48 Diagnostics XAPR5 x5.0</dcterms:title>
        <acc:accessContext rdf:resource="https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA" />
        <prov:wasDerivedFrom rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <process:projectArea rdf:resource="https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA" />
        <dcterms:identifier>_2DMF8B04Ee2f29eLu6PFCQ</dcterms:identifier>
        <rdf:type rdf:resource="http://open-services.net/ns/config#Configuration" />
      </oslc_config:Baseline>
    </rdfs:member>
    <rdfs:member>
      <oslc_config:Baseline rdf:about="https://xyz.com/rm/cm/baseline/_p4xIoDS_Ee2fmp1dlZYEUg">
        <oslc_config:selections rdf:resource="https://xyz.com/rm/configSelections/baseline/_p4xIoDS_Ee2fmp1dlZYEUg" />
        <oslc_config:streams rdf:resource="https://xyz.com/rm/cm/baseline/_p4xIoDS_Ee2fmp1dlZYEUg/streams" />
        <dcterms:creator rdf:resource="https://xyz.com/jts/users/lakschi" />
        <oslc:serviceProvider rdf:resource="https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml" />
        <oslc_config:component rdf:resource="https://xyz.com/rm/cm/component/_wYJWsBMcEe2wReB1R5agyg" />
        <oslc_config:overrides rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <oslc_config:previousBaseline rdf:resource="https://xyz.com/rm/cm/baseline/_2DMF8B04Ee2f29eLu6PFCQ" />
        <oslc_config:baselineOfStream rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <dcterms:description></dcterms:description>
        <oslc_config:acceptedBy rdf:resource="http://open-services.net/ns/config#Configuration" />
        <prov:wasDerivedFrom rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <process:projectArea rdf:resource="https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA" />
        <acc:accessContext rdf:resource="https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA" />
        <dcterms:title rdf:parseType="Literal">PL48 Diagnostics 3.1</dcterms:title>
        <rdf:type rdf:resource="http://open-services.net/ns/config#Configuration" />
        <dcterms:identifier>_p4xIoDS_Ee2fmp1dlZYEUg</dcterms:identifier>
      </oslc_config:Baseline>
    </rdfs:member>
    <rdfs:member>
      <oslc_config:Baseline rdf:about="https://xyz.com/rm/cm/baseline/_4vUtMDS_Ee2fmp1dlZYEUg">
        <oslc_config:previousBaseline rdf:resource="https://xyz.com/rm/cm/baseline/_p4xIoDS_Ee2fmp1dlZYEUg" />
        <dcterms:description></dcterms:description>
        <dcterms:identifier>_4vUtMDS_Ee2fmp1dlZYEUg</dcterms:identifier>
        <oslc_config:acceptedBy rdf:resource="http://open-services.net/ns/config#Configuration" />
        <process:projectArea rdf:resource="https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA" />
        <prov:wasDerivedFrom rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <oslc_config:component rdf:resource="https://xyz.com/rm/cm/component/_wYJWsBMcEe2wReB1R5agyg" />
        <oslc_config:baselineOfStream rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <oslc_config:overrides rdf:resource="https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg" />
        <oslc_config:streams rdf:resource="https://xyz.com/rm/cm/baseline/_4vUtMDS_Ee2fmp1dlZYEUg/streams" />
        <rdf:type rdf:resource="http://open-services.net/ns/config#Configuration" />
        <dcterms:creator rdf:resource="https://xyz.com/jts/users/lakschi" />
        <oslc_config:selections rdf:resource="https://xyz.com/rm/configSelections/baseline/_4vUtMDS_Ee2fmp1dlZYEUg" />
        <oslc:serviceProvider rdf:resource="https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml" />
        <dcterms:title rdf:parseType="Literal">PL48 Diagnostics 4.0</dcterms:title>
        <acc:accessContext rdf:resource="https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA" />
      </oslc_config:Baseline>
    </rdfs:member>
  </ldp:DirectContainer>
</rdf:RDF>

Is there anyway to get consistent schema when baseline query is run on all rm streams of same host. However OSLC queries can return different schema for the same resource type. But mine is only a Reportable REST Query & not OSLC Query.

This is causing an issue in RPE with the custom schema that I created for DNG Stream baseline Query.

Comments
David Honey commented Jan 24 '23, 4:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Your post does not contain any question - only statements.
Also, if you want to ask question(s) about REST APIs, please include the full details of the HTTP requests including URIs, parameters, and headers, and the full details of the corresponding HTTP responses, including header and response body.


Chidambaram L commented Jan 24 '23, 4:51 a.m.

@davidhoney, Revised the question now.


David Honey commented Jan 24 '23, 5:09 a.m. | edited Jan 24 '23, 5:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

You still have not shown the complete details of the HttpResponse including headers and the full response body. What does "stream1 returns" mean?

For each HTTP request, please provide details of the request URI, parameters, headers, and the details of the corresponding HTTP response, including the full response body and the headers.


Chidambaram L commented Jan 24 '23, 5:16 a.m.

 @davidhoney, Revised the question now.

One answer



permanent link
David Honey (1.8k17) | answered Jan 24 '23, 5:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I think you are interpreting the returned RDF/XML too literally.

In the first example, expressed in Turtle I see:
@prefix acc:   <http://open-services.net/ns/core/acc#> .
@prefix rmTypes: <http://www.ibm.com/xmlns/rdm/types/> .
@prefix process: <http://jazz.net/ns/process#> .
@prefix h:     <http://www.w3.org/TR/REC-html40> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix oslc_config: <http://open-services.net/ns/config#> .
@prefix oslc:  <http://open-services.net/ns/core#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix jfs:   <http://jazz.net/xmlns/foundation/1.0/> .
@prefix rmWorkflow: <http://www.ibm.com/xmlns/rdm/workflow/> .
@prefix ldp:   <http://www.w3.org/ns/ldp#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xs:    <http://schema.w3.org/xs/> .
@prefix rm:    <http://www.ibm.com/xmlns/rdm/rdf/> .
@prefix prov:  <http://www.w3.org/ns/prov#> .
@prefix dc:    <http://purl.org/dc/elements/1.1/> .

<https://xyz.com/rm/cm/baseline/_8COGABO9Ee2wReB1R5agyg>
        a                             oslc_config:Baseline , oslc_config:Configuration ;
        process:projectArea           <https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA> ;
        oslc_config:acceptedBy        oslc_config:Configuration ;
        oslc_config:baselineOfStream  <https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg> ;
        oslc_config:component         <https://xyz.com/rm/cm/component/_2VNLABMcEe2wReB1R5agyg> ;
        oslc_config:overrides         <https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg> ;
        oslc_config:selections        <https://xyz.com/rm/configSelections/baseline/_8COGABO9Ee2wReB1R5agyg> ;
        oslc_config:streams           <https://xyz.com/rm/cm/baseline/_8COGABO9Ee2wReB1R5agyg/streams> ;
        oslc:serviceProvider          <https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml> ;
        acc:accessContext             <https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA> ;
        dcterms:created               "2022-08-04T06:23:21.698Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
        dcterms:creator               <https://xyz.com/jts/users/lakschi> ;
        dcterms:description           "" ;
        dcterms:identifier            "_8COGABO9Ee2wReB1R5agyg" ;
        dcterms:title                 "PL48 General 1.0"^^rdf:XMLLiteral ;
        prov:wasDerivedFrom           <https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg> .

<https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg/baselines>
        a            ldp:DirectContainer ;
        rdfs:member  <https://xyz.com/rm/cm/baseline/_fUQ5kBzNEe2f29eLu6PFCQ> , <https://xyz.com/rm/cm/baseline/_8COGABO9Ee2wReB1R5agyg> .

<https://xyz.com/rm/cm/baseline/_fUQ5kBzNEe2f29eLu6PFCQ>
        a                             oslc_config:Configuration , oslc_config:Baseline ;
        process:projectArea           <https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA> ;
        oslc_config:acceptedBy        oslc_config:Configuration ;
        oslc_config:baselineOfStream  <https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg> ;
        oslc_config:component         <https://xyz.com/rm/cm/component/_2VNLABMcEe2wReB1R5agyg> ;
        oslc_config:overrides         <https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg> ;
        oslc_config:previousBaseline  <https://xyz.com/rm/cm/baseline/_8COGABO9Ee2wReB1R5agyg> ;
        oslc_config:selections        <https://xyz.com/rm/configSelections/baseline/_fUQ5kBzNEe2f29eLu6PFCQ> ;
        oslc_config:streams           <https://xyz.com/rm/cm/baseline/_fUQ5kBzNEe2f29eLu6PFCQ/streams> ;
        oslc:serviceProvider          <https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml> ;
        acc:accessContext             <https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA> ;
        dcterms:created               "2022-08-15T19:07:21.392Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
        dcterms:creator               <https://xyz.com/jts/users/lakschi> ;
        dcterms:description           "" ;
        dcterms:identifier            "_fUQ5kBzNEe2f29eLu6PFCQ" ;
        dcterms:title                 "PL48 General 2.0"^^rdf:XMLLiteral ;
        prov:wasDerivedFrom           <https://xyz.com/rm/cm/stream/_2VPnRhMcEe2wReB1R5agyg> .
    
For the 2nd example, the Turtle is:

@prefix acc:   <http://open-services.net/ns/core/acc#> .
@prefix rmTypes: <http://www.ibm.com/xmlns/rdm/types/> .
@prefix process: <http://jazz.net/ns/process#> .
@prefix h:     <http://www.w3.org/TR/REC-html40> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix oslc_config: <http://open-services.net/ns/config#> .
@prefix oslc:  <http://open-services.net/ns/core#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix jfs:   <http://jazz.net/xmlns/foundation/1.0/> .
@prefix rmWorkflow: <http://www.ibm.com/xmlns/rdm/workflow/> .
@prefix ldp:   <http://www.w3.org/ns/ldp#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xs:    <http://schema.w3.org/xs/> .
@prefix rm:    <http://www.ibm.com/xmlns/rdm/rdf/> .
@prefix prov:  <http://www.w3.org/ns/prov#> .
@prefix dc:    <http://purl.org/dc/elements/1.1/> .

<https://xyz.com/rm/cm/baseline/_1JLnEBO8Ee2wReB1R5agyg>
        a                             oslc_config:Configuration , oslc_config:Baseline ;
        process:projectArea           <https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA> ;
        oslc_config:acceptedBy        oslc_config:Configuration ;
        oslc_config:baselineOfStream  <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> ;
        oslc_config:component         <https://xyz.com/rm/cm/component/_wYJWsBMcEe2wReB1R5agyg> ;
        oslc_config:overrides         <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> ;
        oslc_config:selections        <https://xyz.com/rm/configSelections/baseline/_1JLnEBO8Ee2wReB1R5agyg> ;
        oslc_config:streams           <https://xyz.com/rm/cm/baseline/_1JLnEBO8Ee2wReB1R5agyg/streams> ;
        oslc:serviceProvider          <https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml> ;
        acc:accessContext             <https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA> ;
        dcterms:created               "2022-08-04T06:15:25.954Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
        dcterms:creator               <https://xyz.com/jts/users/lakschi> ;
        dcterms:description           "" ;
        dcterms:identifier            "_1JLnEBO8Ee2wReB1R5agyg" ;
        dcterms:title                 "PL48 Diagnostics 11.0"^^rdf:XMLLiteral ;
        prov:wasDerivedFrom           <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> .

<https://xyz.com/rm/cm/baseline/_4vUtMDS_Ee2fmp1dlZYEUg>
        a                             oslc_config:Configuration , oslc_config:Baseline ;
        process:projectArea           <https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA> ;
        oslc_config:acceptedBy        oslc_config:Configuration ;
        oslc_config:baselineOfStream  <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> ;
        oslc_config:component         <https://xyz.com/rm/cm/component/_wYJWsBMcEe2wReB1R5agyg> ;
        oslc_config:overrides         <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> ;
        oslc_config:previousBaseline  <https://xyz.com/rm/cm/baseline/_p4xIoDS_Ee2fmp1dlZYEUg> ;
        oslc_config:selections        <https://xyz.com/rm/configSelections/baseline/_4vUtMDS_Ee2fmp1dlZYEUg> ;
        oslc_config:streams           <https://xyz.com/rm/cm/baseline/_4vUtMDS_Ee2fmp1dlZYEUg/streams> ;
        oslc:serviceProvider          <https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml> ;
        acc:accessContext             <https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA> ;
        dcterms:created               "2022-09-15T06:30:26.949Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
        dcterms:creator               <https://xyz.com/jts/users/lakschi> ;
        dcterms:description           "" ;
        dcterms:identifier            "_4vUtMDS_Ee2fmp1dlZYEUg" ;
        dcterms:title                 "PL48 Diagnostics 4.0"^^rdf:XMLLiteral ;
        prov:wasDerivedFrom           <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> .

<https://xyz.com/rm/cm/baseline/_2DMF8B04Ee2f29eLu6PFCQ>
        a                             oslc_config:Baseline , oslc_config:Configuration ;
        process:projectArea           <https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA> ;
        oslc_config:acceptedBy        oslc_config:Configuration ;
        oslc_config:baselineOfStream  <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> ;
        oslc_config:component         <https://xyz.com/rm/cm/component/_wYJWsBMcEe2wReB1R5agyg> ;
        oslc_config:overrides         <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> ;
        oslc_config:previousBaseline  <https://xyz.com/rm/cm/baseline/_1JLnEBO8Ee2wReB1R5agyg> ;
        oslc_config:selections        <https://xyz.com/rm/configSelections/baseline/_2DMF8B04Ee2f29eLu6PFCQ> ;
        oslc_config:streams           <https://xyz.com/rm/cm/baseline/_2DMF8B04Ee2f29eLu6PFCQ/streams> ;
        oslc:serviceProvider          <https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml> ;
        acc:accessContext             <https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA> ;
        dcterms:created               "2022-08-16T07:55:50.109Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
        dcterms:creator               <https://xyz.com/jts/users/lakschi> ;
        dcterms:description           "" ;
        dcterms:identifier            "_2DMF8B04Ee2f29eLu6PFCQ" ;
        dcterms:title                 "PL48 Diagnostics XAPR5 x5.0"^^rdf:XMLLiteral ;
        prov:wasDerivedFrom           <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> .

<https://xyz.com/rm/cm/baseline/_p4xIoDS_Ee2fmp1dlZYEUg>
        a                             oslc_config:Configuration , oslc_config:Baseline ;
        process:projectArea           <https://xyz.com/rm/process/project-areas/_UCzOUOfFEeyt2rcBAVlGUA> ;
        oslc_config:acceptedBy        oslc_config:Configuration ;
        oslc_config:baselineOfStream  <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> ;
        oslc_config:component         <https://xyz.com/rm/cm/component/_wYJWsBMcEe2wReB1R5agyg> ;
        oslc_config:overrides         <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> ;
        oslc_config:previousBaseline  <https://xyz.com/rm/cm/baseline/_2DMF8B04Ee2f29eLu6PFCQ> ;
        oslc_config:selections        <https://xyz.com/rm/configSelections/baseline/_p4xIoDS_Ee2fmp1dlZYEUg> ;
        oslc_config:streams           <https://xyz.com/rm/cm/baseline/_p4xIoDS_Ee2fmp1dlZYEUg/streams> ;
        oslc:serviceProvider          <https://xyz.com/rm/oslc_rm/_UCzOUOfFEeyt2rcBAVlGUA/services.xml> ;
        acc:accessContext             <https://xyz.com/rm/acclist#_UCzOUOfFEeyt2rcBAVlGUA> ;
        dcterms:created               "2022-09-15T06:28:47.277Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
        dcterms:creator               <https://xyz.com/jts/users/lakschi> ;
        dcterms:description           "" ;
        dcterms:identifier            "_p4xIoDS_Ee2fmp1dlZYEUg" ;
        dcterms:title                 "PL48 Diagnostics 3.1"^^rdf:XMLLiteral ;
        prov:wasDerivedFrom           <https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg> .

<https://xyz.com/rm/cm/stream/_wYLy9hMcEe2wReB1R5agyg/baselines>
        a            ldp:DirectContainer ;
        rdfs:member  <https://xyz.com/rm/cm/baseline/_4vUtMDS_Ee2fmp1dlZYEUg> , <https://xyz.com/rm/cm/baseline/_p4xIoDS_Ee2fmp1dlZYEUg> , <https://xyz.com/rm/cm/baseline/_2DMF8B04Ee2f29eLu6PFCQ> , <https://xyz.com/rm/cm/baseline/_1JLnEBO8Ee2wReB1R5agyg> .
    

Notice that each configuration can have multiple RDF types. Also note that in RDF, the order of triples in an RDF model is undefined. When serializing the RDF as RDF/XML, the node that represents a resource will be one of the RDF types. When there are multiple RDF types, it will be one of those types, chosen at random. This is just the way that RDF/XML gets serialized. You can read the W3C specification for RDF/XML.

If you have code that is reliant on the RDF type chosen for the resource node, then that code is wrong. You should process the HTTP response body as RDF rather than be reliant on your own XML parsing of RDF/XML. Many applications use Apache Jena to deal with RDF serialization and deserialzation as it supports multiple RDF media types, and then you can use the Model class to extract data that you want in a serialization independent manner.




Comments
Chidambaram L commented Jan 24 '23, 9:32 a.m.

My end usage of this REST Query is RPE. How to deal with RDF in RPE.


David Honey commented Jan 24 '23, 10:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

You mentioned you defined the schema for RPE. That schema needs to allow for any node type, not just oslc_config:Baseline or oslc_config:Configuration . I'm not an expert on RPE so cannot provide further guidance on the RPE specifics. But just to repeat, that this is not a DNG defect.


Chidambaram L commented Jan 30 '23, 2:39 a.m. | edited Jan 30 '23, 2:39 a.m.

@davidhoney, Have handled this in RPE to read both nodes. Is there a way to identify all the rdf/xml schemas returned for this query. Is is a general question to for all ELM queries returning rdf/xml.


David Honey commented Jan 30 '23, 4:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

To rephrase your question: What are the possible RDF types of confiugurations?


A more robust solution would be to define the schema so that it can accept any RDF type. The OSLC Configuration Management 1.0 specification defines the following RDF types:
However, remember that in linked lifecycle data, resources can have multiple RDF types. Consider what might happen if, in a future release, the application (DN in this case) added some other RDF types. If the schema was defined to accept any RDF type, then it would continue to work. If the schema was defined harding the above set of RDF types, it might cease to work in some cases.

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.