[ Version ( since = "3.3" ) ]
public SparqlStatement load_statement_from_gresource (string resource_path, Cancellable? cancellable = null) throws Error
Prepares a [class@SparqlStatement] for the SPARQL contained as a [struct@Gio.
Resource] file at resource_path.
SPARQL Query files typically have the .rq extension. This will use [method@SparqlConnection.query_statement] or [ method@SparqlConnection.update_statement] underneath to indistinctly return SPARQL query or update statements.
| this |
A `TrackerSparqlConnection` |
| resource_path |
The resource path of the file to parse. |
| cancellable |
Optional [type@Gio.Cancellable] |
|
A prepared statement |