serialize_async


Description:

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

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

The query this was created from must be either a `DESCRIBE` or `CONSTRUCT` query, an error will be raised otherwise.

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 NONE must be passed.

Parameters:

this

a `TrackerSparqlStatement`

flags

serialization flags

format

RDF format of the serialized 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