| Top |
Variable bindings and boolean query results can be formatted into different syntaxes such as SPARQL Query Results Format or JSON. The rasqal_query_results_formatter class allows choosing a formatter for a particular syntax and writing the syntax to a raptor_iostream which allows turning the syntax into a string, writing to a file handle or other custom destination.
int rasqal_query_results_formats_check (rasqal_world *world,const char *name,raptor_uri *uri,const char *mime_type,int flags);
rasqal_query_results_formats_check is deprecated and should not be used in newly-written code.
int rasqal_query_results_formats_check2 (rasqal_world *world,const char *name,raptor_uri *uri,const char *mime_type,int flags);
rasqal_query_results_formatter * rasqal_new_query_results_formatter (rasqal_world *world,const char *name,const char *mime_type,raptor_uri *format_uri);
rasqal_query_results_formatter * rasqal_new_query_results_formatter_for_content (rasqal_world *world,raptor_uri *uri,const char *mime_type,const char *buffer,size_t len,const unsigned char *identifier);
void
rasqal_free_query_results_formatter (rasqal_query_results_formatter *formatter);
int rasqal_query_results_formatter_read (rasqal_world *world,raptor_iostream *iostr,rasqal_query_results_formatter *formatter,rasqal_query_results *results,raptor_uri *base_uri);
int rasqal_query_results_formatter_write (raptor_iostream *iostr,rasqal_query_results_formatter *formatter,rasqal_query_results *results,raptor_uri *base_uri);
rasqal_graph_query_results_formatter* query_results_formatter;
Rasqal query results formatter class.
Bitflags for rasqal_query_results_formats_check() to find formats with features.