Write triples to RDF