fragment_downloaded_cb({"url":"examples.html#querying-a-remote-endpoint","fragment":"Querying a remote endpoint\nAll SPARQL queries happen on a TrackerSparqlConnection, often these\nconnections represent a remote endpoints maintained by another process or\nserver.\nThis example demonstrates the use of these connections on a remote\nendpoint. Concretely creating a D-Bus TrackerSparqlConnection,\ncreating a prepared statement from a SPARQL query string, executing\nthe query, and obtaining the query results from the cursor.\nThe tracker_sparql_connection_query_statement function can be used\nto obtain a TrackerSparqlStatement object holding a prepared SPARQL\nquery that can then be executed with tracker_sparql_statement_execute.\nThe query string can contain ~name placeholders which can be replaced with\narbitrary values before query execution with\ntracker_sparql_statement_bind_string and similar functions.\nThis allows parsing the query string only once and to execute it multiple\ntimes with different parameters with potentially significant performance gains.\nMultiple functions offer asynchronous variants, so the application\nmain loop is not blocked while these operations are executed.\nOnce you end up with the query, remember to call tracker_sparql_cursor_close.\nThe same applies to tracker_sparql_connection_close when no longer needed.\n"});