How to implement an OSLC Query Capability in java?
I am running an oslc server, providing resources, using org.eclipse.lyo.oslc4j libraries.
I have a Resource class containing the method:
How should I do that?
Is there any library that I can use (org.eclipse.lyo.core.query?)
I have a Resource class containing the method:
@OslcQueryCapability(I would like my server to be able to handle oslc queries (decribed here: http://open-services.net/bin/view/Main/OslcSimpleQuerySyntaxV1)
title="Resource Query Capability",
label="Resource Catalog Query",
resourceShape=OslcConstants.PATH_RESOURCE_SHAPES + "/" + Constants.PATH_RESOURCE,
resourceTypes={Constants.TYPE_RESOURCE},
usages={OslcConstants.OSLC_USAGE_DEFAULT})
@GET
@Produces({OslcMediaType.APPLICATION_RDF_XML,
OslcMediaType.APPLICATION_XML,
OslcMediaType.APPLICATION_JSON})
public Resource[] getResources(@QueryParam "oslc.where") final String where)
{
return Persistence.getResources();
}
How should I do that?
Is there any library that I can use (org.eclipse.lyo.core.query?)