GData.FreebaseQuery¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
d/r/w/co |
Variant to construct the query from. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.FreebaseQuery(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
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:
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 usingJson.gvariant_serialize
() from aJson.Node
. For more information about MQL, seeGData.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:
- Default Value:
- Flags:
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.