Top | ![]() |
![]() |
![]() |
![]() |
General library facilitiesGeneral library facilities — Startup and shutdown, memory handling, version checks and misc functions. |
void | rasqal_free_world () |
rasqal_world * | rasqal_new_world () |
int | rasqal_world_open () |
void | rasqal_world_set_log_handler () |
int | rasqal_world_set_warning_level () |
raptor_world * | rasqal_world_get_raptor () |
void | rasqal_world_set_raptor () |
const raptor_syntax_description * | rasqal_world_get_query_language_description () |
const raptor_syntax_description * | rasqal_world_get_query_results_format_description () |
char * | (*rasqal_generate_bnodeid_handler) () |
int | rasqal_world_set_generate_bnodeid_handler () |
int | rasqal_world_set_default_generate_bnodeid_parameters () |
const char * | rasqal_world_guess_query_results_format_name () |
int | rasqal_language_name_check () |
int | rasqal_languages_enumerate () |
void * | rasqal_alloc_memory () |
void * | rasqal_calloc_memory () |
void | rasqal_free_memory () |
rasqal_feature | rasqal_feature_from_uri () |
int | rasqal_feature_value_type () |
int | rasqal_features_enumerate () |
unsigned int | rasqal_get_feature_count () |
typedef | rasqal_world |
extern const unsigned int | rasqal_version_decimal |
extern const unsigned int | rasqal_version_major |
extern const unsigned int | rasqal_version_minor |
extern const unsigned int | rasqal_version_release |
extern const char * const | rasqal_version_string |
extern const char * const | rasqal_copyright_string |
extern const char * const | rasqal_short_copyright_string |
extern const char * const | rasqal_home_url_string |
extern const char * const | rasqal_license_string |
enum | rasqal_feature |
#define | RASQAL_DEPRECATED |
#define | RASQAL_VERSION |
#define | RASQAL_VERSION_MAJOR |
#define | RASQAL_VERSION_MINOR |
#define | RASQAL_VERSION_RELEASE |
#define | RASQAL_VERSION_STRING |
#define | RASQAL_RAPTOR_VERSION |
The functions in this section cover general library features such as startup and shutdown, checking the current library version and dealing with memory allocation and freeing. It also provides functions to enumerate and check the supported query languages, their names, labels and URI.
void rasqal_world_set_log_handler (rasqal_world *world
,void *user_data
,raptor_log_handler handler
);
int rasqal_world_set_warning_level (rasqal_world *world
,unsigned int warning_level
);
void rasqal_world_set_raptor (rasqal_world *world
,raptor_world *raptor_world_ptr
);
const raptor_syntax_description * rasqal_world_get_query_language_description (rasqal_world *world
,unsigned int counter
);
const raptor_syntax_description * rasqal_world_get_query_results_format_description (rasqal_world *world
,unsigned int counter
);
char * (*rasqal_generate_bnodeid_handler) (rasqal_world *world
,void *user_data
,unsigned char *user_bnodeid
);
User handler used with rasqal_world_set_generate_bnodeid_handler()
to set method for generating a blank node ID.
int rasqal_world_set_generate_bnodeid_handler (rasqal_world *world
,void *user_data
,rasqal_generate_bnodeid_handler handler
);
int rasqal_world_set_default_generate_bnodeid_parameters (rasqal_world *world
,char *prefix
,int base
);
const char * rasqal_world_guess_query_results_format_name (rasqal_world *world
,raptor_uri *uri
,const char *mime_type
,const char *buffer
,size_t len
,const unsigned char *identifier
);
int rasqal_language_name_check (rasqal_world *world
,const char *name
);
int rasqal_languages_enumerate (rasqal_world *world
,unsigned int counter
,const char **name
,const char **label
,const unsigned char **uri_string
);
rasqal_languages_enumerate
is deprecated and should not be used in newly-written code.
rasqal_feature rasqal_feature_from_uri (rasqal_world *world
,raptor_uri *uri
);
int rasqal_features_enumerate (rasqal_world *world
,const rasqal_feature feature
,const char **name
,raptor_uri **uri
,const char **label
);
extern const unsigned int rasqal_version_decimal;
Rasqal version as a decimal number.
Format: major * 10000 + minor * 100 + release
extern const unsigned int rasqal_version_release;
Rasqal release version number.
extern const char * const rasqal_copyright_string;
Copyright string (multiple lines).
extern const char * const rasqal_short_copyright_string;
Short copyright string (one line).
#define RASQAL_DEPRECATED __attribute__((deprecated))
When defined before a function, indicates that the function has been deprecated and may be replaced in a future release. With some versions of gcc this may give a compilation warning.
#define RASQAL_VERSION 933
Rasqal library version number
Format: major * 10000 + minor * 100 + release