title: how to write RDF in original format
body: <p>RDF4J Newbie question - </p>
  
  <p>When I load this RDF from file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;rdf:RDF
      xmlns:foaf="http://xmlns.com/foaf/0.1/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"&gt;
  
  &lt;foaf:Person&gt;
   &lt;foaf:name&gt;My Name&lt;/foaf:name&gt;
  &lt;/foaf:Person&gt;
  
  &lt;/rdf:RDF&gt;
  </code></pre>
  
  <p>using this code</p>
  
  <pre><code>String fileName = "foaf.rdf";
  try {
      InputStream is = new FileInputStream(fileName);
      Model model = Rio.parse(is, "", RDFFormat.RDFXML);
      System.out.println();
      Rio.write(model, System.out, RDFFormat.RDFXML);
      System.out.println();
      is.close();
  }
  catch (Exception ex) {
      System.out.println(ex.toString());
  }
  </code></pre>
  
  <p>the output looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;rdf:RDF
      xmlns:foaf="http://xmlns.com/foaf/0.1/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"&gt;
  
  &lt;rdf:Description rdf:nodeID="node1basf0r6vx1"&gt;
      &lt;rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/&gt;
      &lt;foaf:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string"&gt;My Name&lt;/foaf:name&gt;
  &lt;/rdf:Description&gt;
  
  &lt;/rdf:RDF&gt;
  </code></pre>
  
  <p>How would I go about getting RDF printed out in the original format?</p>