GData.FreebaseTopicValue¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GData.FreebaseTopicValue¶
Opaque struct containing a value of a Freebase topic object. This struct may contain a simple value (integers, doubles, strings…) or complex values, expressed through a
GData.FreebaseTopicObject
.New in version 0.15.1.
- copy_value()¶
- Returns:
an empty
GObject.Value
- Return type:
gvalue:
GObject.Value
Copies in gvalue the value held in self. the
GObject.Value
must be later freed throughGObject.Value.unset
()New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_creator()¶
- Returns:
the creator of this value, as a Freebase ID
- Return type:
Returns the Freebase ID of the user that created this value.
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_double()¶
-
Returns a
float
value held in self. It is only valid to call this if theGObject.GType
is aGObject.TYPE_DOUBLE
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_int()¶
- Returns:
the #gint64 value
- Return type:
Returns a #gint64 value held in self. It is only valid to call this if the
GObject.GType
is aGObject.TYPE_INT64
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_language()¶
- Returns:
the language self is written in
- Return type:
Returns the language used in the content of self
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_object()¶
- Returns:
the compound value as a
GData.FreebaseTopicObject
- Return type:
Returns a compound/complex object held in self. It is only valid to call this if the
GObject.GType
is a %GDATA_TYPE_FREEBASE_TOPIC_OBJECT.New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_property()¶
- Returns:
the property name of self
- Return type:
Returns the property name that this value describes
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_string()¶
- Returns:
the string value
- Return type:
Returns a string value held in self. It is only valid to call this if the
GObject.GType
is aGObject.TYPE_STRING
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_text()¶
- Returns:
a textual representation of self
- Return type:
Returns a textual representation of this value, this is either the value contained transformed to a string, or a concatenation of subvalues for compound types.
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_timestamp()¶
- Returns:
The creation time of self, or -1
- Return type:
Returns the time at which this value was created in the Freebase database. It’s a UNIX timestamp in seconds since the epoch. If self has no timestamp, -1 will be returned.
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- get_value_type()¶
- Returns:
the
GObject.GType
of the contained value- Return type:
Returns the
GObject.GType
of the real value held in self.New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- is_image()¶
- Returns:
Whether self holds a Freebase image object
- Return type:
Returns true if self holds a freebase image object, on such values it will be valid to call
GData.FreebaseService.get_image
() to get a stream to the image itself.New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- ref()¶
- Returns:
self, with an extra reference.
- Return type:
Creates and returns a new reference on self.
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.
- unref()¶
Removes a reference from self. If the reference count drops to 0, the object is freed.
New in version 0.15.1.
Deprecated since version 0.17.7: Google Freebase has been permanently shut down.