writing RDF fragments one at a time to the file instead of generating a large variable