anchor.diff:  
   [source,java,linenum]
   ----
  -java.net.URL documentUrl = new URL(“http://example.org/example.ttl”);
  +java.net.URL documentUrl = new URL("http://example.org/example.ttl");
   InputStream inputStream = documentUrl.openStream();
   ----
   
  
positive.code: ----
  Model model; // a collection of several RDF statements
  FileOutputStream out = new FileOutputStream("/path/to/file.rdf")
  Rio.write(myGraph, out, RDFFormat.RDFXML);
  ----
  
  Since we have now seen how to read RDF using a parser and how to write using a writer, we can now convert RDF files from one syntax to another, simply by using a parser for the input syntax, collecting the statements, and then writing them again using a writer for the intended output syntax. However, you may notice that this approach may be problematic for very large files: we are collecting all statements into main memory (in a Model object).
  
negative.code: catch (Exception e) {
    // oh no!
  }
  finally {
    inputStream.close();
  }
  int numberOfStatements = myCounter.getCountedStatements();
  ----
  
  