I want to convert Java object to RDF XML. I am using Jena API. I don't want to call any REST call.
On REST method, we can write:
@Produces(OslcMediaType.APPLICATION_RDF_XML)
So it sends the response in RDF XML format.
I can't use this, because I am already in one REST method. I can call another REST call to convert an object to RDF. But I don't want to call another REST call.
Does anyone has another solution to convert Java object to RDF XML?