GData.FreebaseQuery

g GData.FreebaseQuery GData.FreebaseQuery GData.Query GData.Query GData.Query->GData.FreebaseQuery GObject.Object GObject.Object GObject.Object->GData.Query

Subclasses:

None

Methods

Inherited:

GData.Query (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (mql)

class

new_from_variant (variant)

Virtual Methods

Inherited:

GData.Query (1), GObject.Object (7)

Properties

Inherited:

GData.Query (11)

Name

Type

Flags

Short Description

variant

GLib.Variant

d/r/w/co

Variant to construct the query from. deprecated

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GData.Query

r

Class Details

class GData.FreebaseQuery(**kwargs)
Bases:

GData.Query

Abstract:

No

Structure:

GData.FreebaseQueryClass

All the fields in the GData.FreebaseQuery structure are private and should never be accessed directly.

New in version 0.15.1.

classmethod new(mql)
Parameters:

mql (str) – a MQL query string

Returns:

a new GData.FreebaseQuery

Return type:

GData.FreebaseQuery

Creates a new GData.FreebaseQuery with the MQL query provided in mql. MQL is a JSON-based query language, analogous to SPARQL. To learn more about MQL, see the MQL overview and cookbook.

For detailed information on Freebase schemas, The “Schema” section on the main site allows for natural search and navigation through the multiple data properties and domains.

New in version 0.15.1.

Deprecated since version 0.17.7: Google Freebase has been permanently shut down.

classmethod new_from_variant(variant)
Parameters:

variant (GLib.Variant) – a variant containing the MQL query structure

Returns:

a new GData.FreebaseQuery

Return type:

GData.FreebaseQuery

Creates a new GData.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. One convenient way to build the variant is using Json.gvariant_serialize() from a Json.Node. For more information about MQL, see GData.FreebaseQuery.new().

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

New in version 0.15.1.

Deprecated since version 0.17.7: Google Freebase has been permanently shut down.

Property Details

GData.FreebaseQuery.props.variant
Name:

variant

Type:

GLib.Variant

Default Value:

None

Flags:

DEPRECATED, READABLE, WRITABLE, CONSTRUCT_ONLY

Variant containing the MQL query. The variant is a very generic container of type “a{smv}”, containing (possibly nested) Freebase schema types and values.

New in version 0.15.1.

Deprecated since version 0.17.7: Google Freebase has been permanently shut down.