deserialize_async


Description:

[ Version ( since = "3.4" ) ]
public async bool deserialize_async (DeserializeFlags flags, RdfFormat format, string default_graph, InputStream stream, Cancellable? cancellable = null) throws Error

Loads the RDF data contained in stream into the given this.

This is an asynchronous operation, callback will be invoked when the data has been fully inserted to this.

The RDF data will be inserted in the given default_graph if one is provided, or the anonymous graph if default_graph is null. Any RDF data that has a graph specified (e.g. using the `GRAPH` clause in the Trig format) will be inserted in the specified graph instead of default_graph.

The flags argument is reserved for future expansions, currently tracker_deserialize_flags_none must be passed.

Parameters:

this

A `TrackerSparqlConnection`

flags

Deserialization flags

format

RDF format of data in stream

default_graph

Default graph that will receive the RDF data

stream

Input stream with RDF data

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