new_from_rdf


Description:

[ Version ( since = "3.11" ) ]
public static SparqlConnection new_from_rdf (SparqlConnectionFlags flags, File? store, DeserializeFlags deserialize_flags, RdfFormat rdf_format, InputStream rdf_stream, Cancellable? cancellable = null) throws Error

Constructor similar to [ctor@SparqlConnection.

new], that takes the RDF Schema definitions declaring the database schema as an input stream.

Unlike that constructor, databases created this way will not have the RDF Schema data snapshot into the database itself. It will need to be done by the caller as a separate step, e.g. via [method@SparqlConnection.deserialize_async].

Parameters:

flags

Connection flags to define the SPARQL connection behavior

store

The database location as a [iface@Gio.File], or null

deserialize_flags

Deserialization flags

rdf_format

RDF format of the rdf_stream argument

rdf_stream

RDF Schema definition of the database format

cancellable

Optional [type@Gio.Cancellable]

Returns:

a new `TrackerSparqlConnection`.