rasqal_query_prepare

Name

rasqal_query_prepare --  typically parse it

Synopsis

int rasqal_query_prepare (rasqal_query * query, const unsigned char * query_string, raptor_uri * base_uri);

Arguments

query

the rasqal_query object

query_string

the query string (or NULL)

base_uri

base URI of query string (optional)

Description

Some query languages may require a base URI to resolve any relative URIs in the query string. If this is not given, the current directory int the filesystem is used as the base URI.

The query string may be NULL in which case it is not parsed and the query parts may be created by API calls such as rasqal_query_add_source etc.

Return value

non-0 on failure.