Metadata
第1行: | 第1行: | ||
==带元数据的微博== | ==带元数据的微博== | ||
− | 元数据包括事件、人物、地点等,它可以被其他的软件、搜索引擎检测到,并提取出相应的信息,把这些信息以其他形式重复使用或组合,做出各种应用。 | + | <p style="text-indent:24px;">元数据包括事件、人物、地点等,它可以被其他的软件、搜索引擎检测到,并提取出相应的信息,把这些信息以其他形式重复使用或组合,做出各种应用。</p> |
+ | |||
+ | |||
+ | <p style="text-indent:24px;">当你创建了一条微博时,你可以在这条微博上添加一个或多个元数据。这些数据是关于这条微博的结构化信息。元数据的内容由你来决定。但元数据的结构和语法需要遵循一定的标准。</p> | ||
− | |||
示例: | 示例: | ||
第9行: | 第11行: | ||
… | … | ||
"annotations": [ | "annotations": [ | ||
− | {"movie": { | + | {"movie": { |
"title": "Wall Street", | "title": "Wall Street", | ||
"url": "http://video.sina.com.cn/m/gsd_61145667.html", | "url": "http://video.sina.com.cn/m/gsd_61145667.html", | ||
"text": "Wall Street: Money Never Sleeps"}}], | "text": "Wall Street: Money Never Sleeps"}}], | ||
… | … | ||
+ | </pre> | ||
+ | |||
+ | ==微博元数据详解== | ||
+ | |||
+ | 微博元数据由“type(类型)”、“attribute(属性)”、“value(值)”组成: | ||
+ | <pre> | ||
+ | "annotations": [{"type": {"attribute": "value"}}] | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | 一个属性对应一个值,一个类型可以有多个属性,一条微博的元数据可以有多个类型。 | ||
+ | |||
+ | <pre> | ||
+ | "annotations": [ | ||
+ | {"type": { | ||
+ | "another_attribute": "value", | ||
+ | "attribute": "value"}}, | ||
+ | {"type": { | ||
+ | "another_attribute": "value", | ||
+ | "attribute": "value"}}] | ||
</pre> | </pre> | ||
==微博元数据的限制== | ==微博元数据的限制== | ||
− | + | 元数据的长度不超过512个字符。 | |
仅支持用户以json 数组格式提交的元数据。 | 仅支持用户以json 数组格式提交的元数据。 | ||
+ | |||
+ | ==TYPE类型== |
2010年11月1日 (一) 10:01的版本
目录 |
带元数据的微博
元数据包括事件、人物、地点等,它可以被其他的软件、搜索引擎检测到,并提取出相应的信息,把这些信息以其他形式重复使用或组合,做出各种应用。
当你创建了一条微博时,你可以在这条微博上添加一个或多个元数据。这些数据是关于这条微博的结构化信息。元数据的内容由你来决定。但元数据的结构和语法需要遵循一定的标准。
示例:
… "annotations": [ {"movie": { "title": "Wall Street", "url": "http://video.sina.com.cn/m/gsd_61145667.html", "text": "Wall Street: Money Never Sleeps"}}], …
微博元数据详解
微博元数据由“type(类型)”、“attribute(属性)”、“value(值)”组成:
"annotations": [{"type": {"attribute": "value"}}]
一个属性对应一个值,一个类型可以有多个属性,一条微博的元数据可以有多个类型。
"annotations": [ {"type": { "another_attribute": "value", "attribute": "value"}}, {"type": { "another_attribute": "value", "attribute": "value"}}]
微博元数据的限制
元数据的长度不超过512个字符。
仅支持用户以json 数组格式提交的元数据。