[OTDev] Needed some help with restlet

surajit ray mr.surajit.ray at gmail.com
Tue Jan 26 08:56:07 CET 2010


I have tried to implement your idea in the attached example ...

Whats the mediatype to be used. As you can see I have used
*MODEL_ALL<../../../org/restlet/data/MediaType.html#MODEL_ALL>
*

Some other options I thought could also fit would be
*APPLICATION_RDF_XML<../../../org/restlet/data/MediaType.html#APPLICATION_RDF_XML>
*
*APPLICATION_JAVA_OBJECT<../../../org/restlet/data/MediaType.html#APPLICATION_JAVA_OBJECT>
*
*TEXT_RDF_N3 <../../../org/restlet/data/MediaType.html#TEXT_RDF_N3>** *
*TEXT_XML <../../../org/restlet/data/MediaType.html#TEXT_XML>*

I must add that there is very little documentation available for the restlet
API. It is very difficult to make out the options and their implications !

Thanks in advance
surajit
On Tue, Jan 26, 2010 at 1:01 PM, surajit ray <mr.surajit.ray at gmail.com>wrote:

> Hi Nina,
> Thanks for the information
>
> Could you please clarify if the outputstreamrepresentation is a class from
> restlet 2.0
>
> I could not find it in the current stable. There is however a
> Outputrepresentation which is a subclass of Streamrepresentation. Is this
> the one you were referring to ?
>
> As a test I was using this : (see attached java file)
>
> Would it be incorrect to use it as such ?
>
>
>
>
> On Mon, Jan 25, 2010 at 6:30 PM, Nina Jeliazkova <nina at acad.bg> wrote:
>
>> surajit ray wrote:
>> > Hi,
>> > I was wondering what type of Representation to use for a Jena model
>> (within
>> > the Restlet framework ) ?
>> >
>> >
>> OutputStreamRepresentation and write  the model  into the output stream.
>>
>> Hope this helps,
>> Nina
>> _______________________________________________
>> Development mailing list
>> Development at opentox.org
>> http://www.opentox.org/mailman/listinfo/development
>>
>
>
>
> --
> Surajit Ray
> Partner
> www.rareindianart.com
>



-- 
Surajit Ray
Partner
www.rareindianart.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Welcome.java
Type: text/x-java
Size: 4466 bytes
Desc: not available
URL: <http://lists.opentox.org/pipermail/development/attachments/20100126/b1e620d3/attachment.java>


More information about the Development mailing list