GData.FreebaseTopicQuery

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new (id)

get_filter ()

get_language ()

set_filter (filter)

set_language (lang)

Virtual Methods

Inherited:

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

Properties

Inherited:

GData.Query (11)

Name

Type

Flags

Short Description

filter

[str]

r/w

Property domain to be used as filter deprecated

language

str

d/r/w

Language in ISO-639-1 format. deprecated

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GData.Query

r

Class Details

class GData.FreebaseTopicQuery(**kwargs)
Bases:

GData.Query

Abstract:

No

Structure:

GData.FreebaseTopicQueryClass

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

New in version 0.15.1.

classmethod new(id)
Parameters:

id (str) – a Freebase ID or MID

Returns:

a new GData.FreebaseTopicQuery

Return type:

GData.FreebaseTopicQuery

Creates a new GData.FreebaseTopicQuery for the given Freebase ID. Those can be obtained programmatically through GData.FreebaseSearchResultItem.get_id() or embedded in the result of a GData.FreebaseService.query() call.

New in version 0.15.1.

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

get_filter()
Returns:

The filter used on the query.

Return type:

[str] or None

Gets the filter set on the topic query, or None if unset.

New in version 0.15.1.

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

get_language()
Returns:

The language used on the query.

Return type:

str or None

Gets the language set on the topic query, or None if unset.

New in version 0.15.1.

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

set_filter(filter)
Parameters:

filter ([str] or None) – None-terminated array of filter strings, or None to unset

Sets a filter on the properties to be returned by the GData.FreebaseTopicQuery, a filter string usually contains either a specific property (eg. “/common/topic/description”, or “/computer/software/first_released”), or a property domain (eg. “/common/topic”, or “/computer”), all properties pertaining to the domain will be returned through the GData.FreebaseTopicResult in the latter case. Other special strings can be passed as filter strings, those are documented in the Topic API overview

If multiple filter strings are set, the result will contain all information necessary to satisfy each of those individually. If no filter is set, the “commons” special value will be implicitly assumed, which returns a reasonably complete data set.

New in version 0.15.1.

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

set_language(lang)
Parameters:

lang (str or None) – language used on the topic query, in ISO-639-1 format, or None to unset the language

Sets the language used in the topic query. If unset, the locale preferences will be respected.

New in version 0.15.1.

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

Property Details

GData.FreebaseTopicQuery.props.filter
Name:

filter

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE

Array of properties (eg. “/common/topic/description”, or “/computer/software/first_released”), or property domains (eg. “/common/topic”, or “/computer”) to be used as filter.

New in version 0.15.1.

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

GData.FreebaseTopicQuery.props.language
Name:

language

Type:

str

Default Value:

None

Flags:

DEPRECATED, READABLE, WRITABLE

Language used for topic values in the result, in ISO-639-1 format.

New in version 0.15.1.

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