Method

TrackerSparqlConnectionserialize_async

since: 3.3

Declaration [src]

void
tracker_sparql_connection_serialize_async (
  TrackerSparqlConnection* connection,
  TrackerSerializeFlags flags,
  TrackerRdfFormat format,
  const gchar* query,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

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.

Available since: 3.3

Parameters

flags

Type: TrackerSerializeFlags

Serialization flags.

format

Type: TrackerRdfFormat

Output RDF format.

query

Type: const gchar*

SPARQL query.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
cancellable

Type: GCancellable

Optional GCancellable

The argument can be NULL.
The data is owned by the caller of the function.
callback

Type: GAsyncReadyCallback

User-defined GAsyncReadyCallback to be called when the asynchronous operation is finished.

The argument can be NULL.
user_data

Type: gpointer

User-defined data to be passed to callback.

The argument can be NULL.
The data is owned by the caller of the function.