librdf_query_results_to_counted_string

Name

librdf_query_results_to_counted_string --  Turn a query results into a string

Synopsis

unsigned char* librdf_query_results_to_counted_string (librdf_query_results * query_results, librdf_uri * format_uri, librdf_uri * base_uri, size_t * length_p);

Arguments

query_results

librdf_query_results object

format_uri

URI of syntax to format to

base_uri

Base URI of output formatted syntax or NULL

length_p

Pointer to where to store length of string or NULL

Description

Values of format_uri currently supported (via Rasqal) are:

http

//www.w3.org/TR/2004/WD-rdf-sparql-XMLres-20041221/

The base URI may be used for the generated syntax, depending on the format.

The returned string must be freed by the caller

Return value

new string value or NULL on failure