FreebaseQuery.from_variant


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( deprecated = true , deprecated_since = "0.17.7" , since = "0.15.1" ) ]
public FreebaseQuery.from_variant (Variant variant)

Warning: FreebaseQuery.from_variant is deprecated since 0.17.7.

Creates a new FreebaseQuery with the MQL query provided in a serialized form as variant of type "a{smv}" containing the JSON data tree of a MQL query.

Note:

Google Freebase has been permanently shut down.

One convenient way to build the variant is using gvariant_serialize from a Node. For more information about MQL, see FreebaseQuery.

FreebaseQuery takes ownership on variant, if it has a floating reference, it will be sunk. Otherwise an extra reference will be added.

Parameters:

variant

a variant containing the MQL query structure

Returns:

a new FreebaseQuery