Serialise the graph into RDF
The $format parameter can be an EasyRdf_Format object, a format name, a mime type or a file extension.
Example: $turtle = $graph->serialise('turtle');
mixed $format The format to serialise to:
mixed The serialised graph
public function serialise($format) {
if (!$format instanceof EasyRdf_Format) {
$format = EasyRdf_Format::getFormat($format);
}
$serialiser = $format
->newSerialiser();
return $serialiser
->serialise($this, $format
->getName());
}