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

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:
@OslcQueryCapability(
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();
}
I would like my server to be able to handle oslc queries (decribed here: http://open-services.net/bin/view/Main/OslcSimpleQuerySyntaxV1)

How should I do that?
Is there any library that I can use (org.eclipse.lyo.core.query?)

0 votes



2 answers

Permanent link
You are asking a general OSLC question which is not specific to the Jazz platform. I think you'd better redirect the question to the OSLC forum http://open-services.net/forums/

0 votes


Permanent link
Thanks for the advice. I asked my question on the OSLC forum.
If someone else is interested by this question, here is the link to my question on the OSLC forum: http://open-services.net/forums/viewthread/138/

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
× 10,941

Question asked: May 15 '14, 11:23 a.m.

Question was seen: 6,146 times

Last updated: May 16 '14, 4:23 a.m.

Confirmation Cancel Confirm