Hi,
Yes you are right I missed the header OSLC-Core-Version = 2.0 in the Rest Client, but used it in the code.
The overall question remains but with a different explanation:
I am trying out if it is possible to replace an existing “home-made” OSLC solution by using Lyo.
So I got some questions in the code example below. Not sure if I misunderstand the Lyo API or if it is some limitations in the current implementation, perhaps in the future getResources (e.g. method that returns array of resources) will exist in the OSLCClient.
// sample based on the RRCFormSample
String catalogUrl = helper.getCatalogUrl();
ServiceProviderCatalog catalog = client.getResource(catalogUrl,OslcMediaType.APPLICATION_RDF_XML).getEntity(ServiceProviderCatalog.class);
ServiceProvider[] serviceProviders = catalog.getServiceProviders();
for (ServiceProvider serviceProvider : serviceProviders) {
URI about = serviceProvider.getAbout();
// this returns the first service, but what about retrieving the next? OSLC Core Spec 2.0 ServiceProvider oslc:service states one-or-many
Service service = client.getResource(about.toString(),OslcMediaType.APPLICATION_RDF_XML).getEntity(Service.class);
// this returns a “random” prefixDefinition, but what about retrieving the next? OSLC Core Spec 2.0 ServiceProvider oslc:prefixDefinition states zero-or-many
PrefixDefinition prefixDefinition = client.getResource(about.toString(),OslcMediaType.APPLICATION_RDF_XML).getEntity(PrefixDefinition.class);
}
BR Cecilia Lindgren
From: lyo-dev-bounces@xxxxxxxxxxx [mailto:lyo-dev-bounces@xxxxxxxxxxx] On Behalf Of Michael Fiedler
Sent: den 9 november 2012 22:58
To: Lyo project developer discussions
Subject: Re: [lyo-dev] FW: OSLC vs Jena
It normally does. Cecilia, were you using the OslcClient for your request? or just a Wink client. If you can provide a snippet of your code (here or in a Bugzilla), that would help.