update_resource


Description:

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

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

This method is synchronous and will block until the update is finished. See [method@SparqlConnection.update_resource_async] for an asynchronous variant.

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]

Returns:

TRUE if there were no errors.