|  |  |  | Raptor RDF Syntax Library Manual |  | 
|---|
Once the serializer has been started, RDF triples can be sent to it
via the
raptor_serializer_serialize_statement()
function with a
raptor_statement
value.
Once all triples are sent, the serializing must be finished
with a call to
raptor_serializer_serialize_end().
In particular, only at this point does the 
raptor_iostream
get flushed or any string constructed for 
raptor_serializer_start_to_string().
  /* start the serializing somehow */
  while( /* got RDF triples */ ) {
    raptor_serializer_serialize_statement(rdf_serializer, triple);
  }
  raptor_serializer_serialize_end(rdf_serializer);
  /* now can use the serializing result (FILE, string, raptor_iostream) */