GData.FreebaseSearchQuery¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Structs:
| class | 
 | 
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| d/r/w | Language in ISO-639-1 format.  | ||
| d/r/w | Whether the search terms should be stemmed  | 
Signals¶
- Inherited:
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | r | 
Class Details¶
- class GData.FreebaseSearchQuery(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - All the fields in the - GData.FreebaseSearchQuerystructure are private and should never be accessed directly.- New in version 0.15.1. - classmethod new(search_terms)¶
- Parameters:
- search_terms ( - str) – string to search for
- Returns:
- a new - GData.FreebaseSearchQuery; unref with- GObject.Object.unref()
- Return type:
 - Creates a new - GData.FreebaseSearchQueryprepared to search for Freebase elements that match the given search_terms. Further filters on the query can be set through- GData.FreebaseSearchQuery.add_filter() or- GData.FreebaseSearchQuery.add_location().- New in version 0.15.1. - Deprecated since version 0.17.7: Google Freebase has been permanently shut down. 
 - add_filter(property, value)¶
- 
Adds a property filter to the query. property filters are always nested in containers, opened and closed through GData.FreebaseSearchQuery.open_filter() andGData.FreebaseSearchQuery.close_filter().New in version 0.15.1. Deprecated since version 0.17.7: Google Freebase has been permanently shut down. 
 - add_location(radius, lat, lon)¶
- 
Adds a geolocation filter to the query. location filters are always nested in containers, opened and closed through GData.FreebaseSearchQuery.open_filter() andGData.FreebaseSearchQuery.close_filter().New in version 0.15.1. Deprecated since version 0.17.7: Google Freebase has been permanently shut down. 
 - close_filter()¶
- Closes a filter level. - 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 search query, or Noneif unset.New in version 0.15.1. Deprecated since version 0.17.7: Google Freebase has been permanently shut down. 
 - get_stemmed()¶
- Returns:
- Trueif the- GData.FreebaseSearchQueryperforms stemming
- Return type:
 - Returns whether the - GData.FreebaseSearchQuerywill perform stemming on the search terms.- New in version 0.15.1. - Deprecated since version 0.17.7: Google Freebase has been permanently shut down. 
 - open_filter(filter_type)¶
- Parameters:
- filter_type ( - GData.FreebaseSearchFilterType) – filter type
 - Opens a container of filter rules, those are applied according to the behavior specified by filter_type. Every call to this function must be paired by a call to - GData.FreebaseSearchQuery.close_filter().- New in version 0.15.1. - Deprecated since version 0.17.7: Google Freebase has been permanently shut down. 
 - set_language(lang)¶
- Parameters:
- lang ( - stror- None) – Language used on the search terms and results, in ISO-639-1 format, or- Noneto unset.
 - Sets the language used, both on the search terms and the results. 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. 
 - set_stemmed(stemmed)¶
- 
Sets whether stemming is performed on the provided search terms. If stemmed is True, words like eg. “natural”, “naturally” or “nature” would be all reduced to the root “natur” for search purposes.New in version 0.15.1. Deprecated since version 0.17.7: Google Freebase has been permanently shut down. 
 
Property Details¶
- GData.FreebaseSearchQuery.props.language¶
- Name:
- language
- Type:
- Default Value:
- Flags:
 - Language used for search results, in ISO-639-1 format. - New in version 0.15.1. - Deprecated since version 0.17.7: Google Freebase has been permanently shut down. 
- GData.FreebaseSearchQuery.props.stemmed¶
- Name:
- stemmed
- Type:
- Default Value:
- Flags:
 - Whether word stemming should happen on the search terms. If this property is enabled, words like eg. “natural”, “naturally” or “nature” would be all reduced to the root “natur” for search purposes. - New in version 0.15.1. - Deprecated since version 0.17.7: Google Freebase has been permanently shut down.