Add method to serialize an RDF model to a file