librdf_model_to_string

Name

librdf_model_to_string --  Write serialized model to a string

Synopsis

unsigned char* librdf_model_to_string (librdf_model* model, librdf_uri * uri, const char * name, const char * mime_type, librdf_uri * type_uri);

Arguments

model

librdf_model object

uri

base URI to use in serializing (or NULL if not used)

name

the name of the serializer (or NULL for default)

mime_type

the MIME type of the syntax (NULL if not used)

type_uri

URI identifying the syntax (NULL if not used)

Description

If the name field is NULL, the default serializer will be used.

Note

the returned string must be freed by the caller.

Return value

new string or NULL on failure