Method
TrackerSparqlConnectionload_statement_from_gresource
Declaration [src]
TrackerSparqlStatement*
tracker_sparql_connection_load_statement_from_gresource (
TrackerSparqlConnection* connection,
const gchar* resource_path,
GCancellable* cancellable,
GError** error
)
Description [src]
Prepares a TrackerSparqlStatement for the SPARQL contained as a GResource
file at resource_path.
SPARQL Query files typically have the .rq extension. This will use
tracker_sparql_connection_query_statement() or tracker_sparql_connection_update_statement()
underneath to indistinctly return SPARQL query or update statements.
| Available since: | 3.3 |
Parameters
resource_path |
const gchar* |
The resource path of the file to parse. |
|
| The data is owned by the caller of the function. | |
| The string is a NUL terminated UTF-8 string. | |
cancellable |
GCancellable* |
Optional |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
error |
GError ** |
The return location for a GError*, or NULL. |
Return value
| Returns: | TrackerSparqlStatement |
A prepared statement. |
|
| The caller of the method takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL. |