GData.FreebaseTopicQuery¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
[ |
r/w |
Property domain to be used as filter |
|
d/r/w |
Language in ISO-639-1 format. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.FreebaseTopicQuery(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
Creates a new
GData.FreebaseTopicQuery
for the given Freebase ID. Those can be obtained programmatically throughGData.FreebaseSearchResultItem.get_id
() or embedded in the result of aGData.FreebaseService.query
() call.New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_filter()¶
-
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()¶
-
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)¶
-
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 theGData.FreebaseTopicResult
in the latter case. Other special strings can be passed as filter strings, those are documented in the Topic API overviewIf 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
orNone
) – language used on the topic query, in ISO-639-1 format, orNone
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¶
-
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.