| Top |
GBoxed
├── GDataFreebaseTopicObject
╰── GDataFreebaseTopicValue
GObject
╰── GDataParsable
╰── GDataEntry
╰── GDataFreebaseResult
╰── GDataFreebaseTopicResult
GDataFreebaseTopicResult is a subclass of GDataFreebaseResult that contains all or a subset of the information contained in Freebase about the Freebase ID given to the GDataFreebaseTopicQuery.
For more details of Google Freebase API, see the online documentation.
GDataFreebaseTopicResult *
gdata_freebase_topic_result_new (void);
Creates a new GDataFreebaseTopicResult with the given ID and default properties.
Since UNRELEASED
GDataFreebaseTopicObject *
gdata_freebase_topic_result_dup_object
(GDataFreebaseTopicResult *self);
Returns a reference to the root GDataFreebaseTopicObject containing the topic query results.
A new reference on the result object, unref with
gdata_freebase_topic_object_unref().
[transfer full]
Since UNRELEASED
GDataFreebaseTopicObject *
gdata_freebase_topic_object_ref (GDataFreebaseTopicObject *object);
Creates and returns a new reference on object
.
Since UNRELEASED
void
gdata_freebase_topic_object_unref (GDataFreebaseTopicObject *object);
Removes a reference from object
. If the reference count drops to 0,
the object is freed.
Since UNRELEASED
GPtrArray *
gdata_freebase_topic_object_list_properties
(const GDataFreebaseTopicObject *object);
Returns the list of Freebase properties described by object
.
An array of property names, free with g_ptr_array_unref().
[transfer container][element-type gchar*]
Since UNRELEASED
const gchar *
gdata_freebase_topic_object_get_id (const GDataFreebaseTopicObject *object);
Gets the Freebase ID for this specific object.
Since UNRELEASED
guint64 gdata_freebase_topic_object_get_property_count (const GDataFreebaseTopicObject *object,const gchar *property);
Returns the number of values that object
holds for the given property
. If object
contains no information about property
, 0 is returned.
Since UNRELEASED
guint64 gdata_freebase_topic_object_get_property_hits (const GDataFreebaseTopicObject *object,const gchar *property);
Returns the total number of hits that the Freebase database stores
for this object, this number either equals or is greater than
gdata_freebase_topic_object_get_property_count(), the query limit
can be controlled through gdata_query_set_max_results() on the topic
query.
If object
contains no information about property
, 0 is returned.
Since UNRELEASED
GDataFreebaseTopicValue * gdata_freebase_topic_object_get_property_value (const GDataFreebaseTopicObject *object,const gchar *property,gint64 item);
Gets the value that object
stores for this property
/item
pair, as a generic
GDataFreebaseTopicValue. If object
contains no information about property
,
or item
is outside the [0..gdata_freebase_topic_object_get_property_count() - 1]
range, NULL is returned.
object |
||
property |
a property name contained in |
|
item |
item number to retrieve from |
Since UNRELEASED
GDataFreebaseTopicValue *
gdata_freebase_topic_value_ref (GDataFreebaseTopicValue *value);
Creates and returns a new reference on value
.
Since UNRELEASED
void
gdata_freebase_topic_value_unref (GDataFreebaseTopicValue *value);
Removes a reference from value
. If the reference count drops to 0,
the object is freed.
Since UNRELEASED
const gchar *
gdata_freebase_topic_value_get_property
(GDataFreebaseTopicValue *value);
Returns the property name that this value describes
Since UNRELEASED
const gchar *
gdata_freebase_topic_value_get_text (GDataFreebaseTopicValue *value);
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.
Since UNRELEASED
const gchar *
gdata_freebase_topic_value_get_language
(GDataFreebaseTopicValue *value);
Returns the language used in the content of value
Since UNRELEASED
const gchar *
gdata_freebase_topic_value_get_creator
(GDataFreebaseTopicValue *value);
Returns the Freebase ID of the user that created this value.
Since UNRELEASED
gint64
gdata_freebase_topic_value_get_timestamp
(GDataFreebaseTopicValue *value);
Returns the time at which this value was created in the Freebase database.
It's a UNIX timestamp in seconds since the epoch. If value
has no timestamp,
-1 will be returned.
Since UNRELEASED
GType
gdata_freebase_topic_value_get_value_type
(GDataFreebaseTopicValue *value);
Returns the GType of the real value held in value
.
Since UNRELEASED
void gdata_freebase_topic_value_copy_value (GDataFreebaseTopicValue *value,GValue *gvalue);
Copies in gvalue
the value held in value
. the GValue must be later freed through g_value_unset()
Since UNRELEASED
gint64
gdata_freebase_topic_value_get_int (GDataFreebaseTopicValue *value);
Returns a gint64 value held in value
. It is only valid to call this if the GType is a G_TYPE_INT64
Since UNRELEASED
gdouble
gdata_freebase_topic_value_get_double (GDataFreebaseTopicValue *value);
Returns a gdouble value held in value
. It is only valid to call this if the GType is a G_TYPE_DOUBLE
Since UNRELEASED
const gchar *
gdata_freebase_topic_value_get_string (GDataFreebaseTopicValue *value);
Returns a string value held in value
. It is only valid to call this if the GType is a G_TYPE_STRING
Since UNRELEASED
const GDataFreebaseTopicObject *
gdata_freebase_topic_value_get_object (GDataFreebaseTopicValue *value);
Returns a compound/complex object held in value
. It is only valid to call this if the GType is a
GDATA_TYPE_FREEBASE_TOPIC_OBJECT.
Since UNRELEASED
gboolean
gdata_freebase_topic_value_is_image (GDataFreebaseTopicValue *value);
Returns true if value
holds a freebase image object, on such values it
will be valid to call gdata_freebase_service_get_image() to get a stream
to the image itself.
Since UNRELEASED
typedef struct _GDataFreebaseTopicResult GDataFreebaseTopicResult;
All the fields in the GDataFreebaseTopicResult structure are private and should never be accessed directly.
Since UNRELEASED
typedef struct {
} GDataFreebaseTopicResultClass;
All the fields in the GDataFreebaseTopicResultClass structure are private and should never be accessed directly.
Since UNRELEASED
typedef struct _GDataFreebaseTopicObject GDataFreebaseTopicObject;
Opaque struct containing a Freebase topic object. This object may contain one or more GDataFreebaseTopicValue structs, which may in turn contain nested GDataFreebaseTopicObject structs to express complex data.
Since UNRELEASED
typedef struct _GDataFreebaseTopicValue GDataFreebaseTopicValue;
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 GDataFreebaseTopicObject.
Since UNRELEASED