title: Convert Java Object to RDF XML
body: <p>I want to convert Java object to RDF XML. I am using Jena API. I don't want to call any REST call. </p>
  
  <p>On REST method, we can write: </p>
  
  <pre class="lang-java prettyprint-override"><code>@Produces(OslcMediaType.APPLICATION_RDF_XML)
  </code></pre>
  
  <p>So it sends the response in RDF XML format. </p>
  
  <p>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. </p>
  
  <p>Does anyone has another solution to convert Java object to RDF XML?                                                                                </p>