query_async


Description:

public async SparqlCursor query_async (string sparql, Cancellable? cancellable = null) throws Error

Executes asynchronously a SPARQL query on this

If the query is partially built from user input or other untrusted sources, special care is required about possible SPARQL injection. In order to avoid it entirely, it is recommended to use [class@SparqlStatement]. The function [func@sparql_escape_string] exists as a last resort, but its use is not recommended.

Parameters:

this

A `TrackerSparqlConnection`

sparql

String containing the SPARQL query

cancellable

Optional [type@Gio.Cancellable]

callback

User-defined [type@Gio.AsyncReadyCallback] to be called when the asynchronous operation is finished.

user_data

User-defined data to be passed to callback