serialize_async


Description:

[ Version ( since = "3.3" ) ]
public async InputStream serialize_async (SerializeFlags flags, RdfFormat format, string query, Cancellable? cancellable = null) throws Error

Serializes a `DESCRIBE` or `CONSTRUCT` query into the specified RDF format.

This is an asynchronous operation, callback will be invoked when the data is available for reading.

The SPARQL endpoint may not support the specified format, in that case an error will be raised.

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

Parameters:

this

A `TrackerSparqlConnection`

flags

Serialization flags

format

Output RDF format

query

SPARQL query

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