Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[lyo-dev] FW: OSLC vs Jena

Hi Ly-dev,

 

I am using the OSLC4J client to fetch the Service Provider Catalog (from RRC) and loop through all referenced Service Providers.

As described in the OSLC Core specification Uri: http://open-services.net/ns/core#ServiceProvider

 

Example of the content of the OSLC artifact

  <oslc_disc:ServiceProviderCatalog

             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

             xmlns:dcterms="http://purl.org/dc/terms/"

             xmlns:oslc_disc="http://open-services.net/xmlns/discovery/1.0/"

             xmlns:jp="http://jazz.net/xmlns/prod/jazz/process/1.0/"

             rdf:about="https://server:9443/rm/discovery/RMCatalog">

             <dcterms:title>RMCatalog</dcterms:title>

             <oslc_disc:entry>

                            <oslc_disc:ServiceProvider>

                                           <dcterms:title>Test project (Requirements)</dcterms:title>

                                           <oslc_disc:details rdf:resource="https://server:9443/jts/process/project-areas/_hFmb4BarEeKslKmU2g6gKg"/>

                                           <jp:consumerRegistry rdf:resource="https://server:9443/jts/process/project-areas/_hFmb4BarEeKslKmU2g6gKg/links"/>

                                           <oslc_disc:services rdf:resource="https://server:9443/rm/discovery/_hFmb4BarEeKslKmU2g6gKg/services.xml"/>

                            </oslc_disc:ServiceProvider>

             </oslc_disc:entry>

 

 

For each Service provider I want to get the services highlighted in red. But using the Lyo java class org.eclipse.lyo.oslc4j.core.model.ServiceProvider I do get any result when calling

Service[] services = serviceProvider.getServices();  The array is empty. To find the URI I am looking for I must use get About instead

URI about = serviceProvider.getAbout();

 

This match the Jena model.

 

  <rdf:Description rdf:about="https://server:9443/rm/discovery/_hFmb4BarEeKslKmU2g6gKg/services.xml">

    <oslc:details rdf:resource="https://server:9443/jts/process/project-areas/_hFmb4BarEeKslKmU2g6gKg"/>

    <jp:consumerRegistry rdf:resource="https://server:9443/jts/process/project-areas/_hFmb4BarEeKslKmU2g6gKg/links"/>

    <dcterms:title rdf:parseType="Literal">Test project (Requirements)</dcterms:title>

    <rdf:type rdf:resource="http://open-services.net/ns/core#ServiceProvider"/>

  </rdf:Description>

 

It feels like this Lyo Java object is more reflecting the content of the Jena model than the OSLC artifact or have I misunderstood something. If it is bug I can file a bug on this issue.

 

I am a using RRC 4.0.0.1

 

 

Med vänliga hälsningar/Best regards,

 

Cecilia Lindgren

Tieto Sweden AB

 


Back to the top