update_resource_async


Description:

[ Version ( since = "3.1" ) ]
public async bool update_resource_async (string? graph, Resource resource, Cancellable? cancellable = null) throws Error

Inserts asynchronously a resource as described by resource on the given graph.

It is recommented to consider the usage of [class@Batch] to cluster database updates. Frequent isolated SPARQL updates through this method will have a degraded performance in comparison.

Parameters:

this

A `TrackerSparqlConnection`

graph

RDF graph where the resource should be inserted/updated, or null for the default graph

resource

A [class@Resource]

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