converting statements obj to RDF