execute


Description:

public SparqlCursor execute (Cancellable? cancellable = null) throws Error

Executes the `SELECT` or `ASK` SPARQL query with the currently bound values.

This function also works for `DESCRIBE` and `CONSTRUCT` queries that retrieve data from the triple store. These query forms that return RDF data are however more useful together with [method@SparqlStatement.serialize_async].

This function should only be called on `TrackerSparqlStatement` objects obtained through [method@SparqlConnection.query_statement] or SELECT/CONSTRUCT/DESCRIBE statements loaded through [method@SparqlConnection.load_statement_from_gresource]. An error will be raised if this method is called on a `INSERT` or `DELETE` SPARQL query.

Parameters:

this

a `TrackerSparqlStatement`

cancellable

Optional [type@Gio.Cancellable]

Returns:

A `TrackerSparqlCursor` with the query results.