Visualizing RDF using D3 : User-Adding Triples

triples.push( { subject = , predicate = , object = } );
graph = triplesToGraph(triples);
update();