GData.FreebaseTopicValue

Fields

None

Methods

copy_value ()

get_creator ()

get_double ()

get_int ()

get_language ()

get_object ()

get_property ()

get_string ()

get_text ()

get_timestamp ()

get_value_type ()

is_image ()

ref ()

unref ()

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 through GObject.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:

str

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:

the float value

Return type:

float

Returns a float value held in self. It is only valid to call this if the GObject.GType is a GObject.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:

int

Returns a #gint64 value held in self. It is only valid to call this if the GObject.GType is a GObject.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:

str

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:

GData.FreebaseTopicObject

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:

str

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:

str

Returns a string value held in self. It is only valid to call this if the GObject.GType is a GObject.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:

str

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:

int

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:

GObject.GType

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:

bool

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:

GData.FreebaseTopicValue

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.