Method

TrackerSparqlConnectiondeserialize_async

Declaration [src]

void
tracker_sparql_connection_deserialize_async (
  TrackerSparqlConnection* connection,
  TrackerDeserializeFlags flags,
  TrackerRdfFormat format,
  const gchar* default_graph,
  GInputStream* stream,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

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

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

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.

Available since:3.4

Parameters

flags TrackerDeserializeFlags
 

Deserialization flags.

format TrackerRdfFormat
 

RDF format of data in stream.

default_graph const gchar*
 

Default graph that will receive the RDF data.

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

Input stream with RDF data.

 The data is owned by the caller of the function.
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.