Send RDF Triples to serializer

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);
  /* now can use the serializing result (FILE, string, raptor_iostream) */

Navigation: Redland Home Page

Copyright 2000-2014 Dave Beckett