Added functionality for graph generation into RdfToFile