Method

TrackerSparqlConnectionserialize_async

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 TrackerSerializeFlags
 

Serialization flags.

format TrackerRdfFormat
 

Output RDF format.

query const gchar*
 

SPARQL query.

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

Optional GCancellable

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

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

user_data gpointer
 

User-defined data to be passed to callback.