Metadata
第18行: | 第18行: | ||
</pre> | </pre> | ||
− | == | + | |
+ | ==微博元数据格式说明== | ||
微博元数据由“type(类型)”、“attribute(属性)”、“value(值)”组成: | 微博元数据由“type(类型)”、“attribute(属性)”、“value(值)”组成: | ||
第37行: | 第38行: | ||
"attribute": "value"}}] | "attribute": "value"}}] | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | ==TYPE类型== | ||
+ | |||
+ | <table style="width:100%;"> | ||
+ | <tr style="font-weight:bold;background:#FBFBE7;"> | ||
+ | <td style="padding:5px;">TYPE类型</td> | ||
+ | <td style="padding:5px;">描述</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td style="padding:5px;">webpage</td> | ||
+ | <td style="padding:5px;">图文内容、新闻、博客等网页信息</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | |||
+ | |||
+ | ==属性attribute说明== | ||
+ | |||
+ | ===通用属性=== | ||
+ | |||
+ | 所有类型都可以使用 | ||
+ | |||
+ | <table style="width:100%;"> | ||
+ | <tr style="font-weight:bold;background:#FBFBE7;"> | ||
+ | <td style="padding:5px;">TYPE类型</td> | ||
+ | <td style="padding:5px;">描述</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td style="padding:5px;">webpage</td> | ||
+ | <td style="padding:5px;">图文内容、新闻、博客等网页信息</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | |||
==微博元数据的限制== | ==微博元数据的限制== | ||
第43行: | 第77行: | ||
仅支持用户以json 数组格式提交的元数据。 | 仅支持用户以json 数组格式提交的元数据。 | ||
− | |||
− |
2010年11月1日 (一) 10:21的版本
目录 |
带元数据的微博
元数据包括事件、人物、地点等,它可以被其他的软件、搜索引擎检测到,并提取出相应的信息,把这些信息以其他形式重复使用或组合,做出各种应用。
当你创建了一条微博时,你可以在这条微博上添加一个或多个元数据。这些数据是关于这条微博的结构化信息。元数据的内容由你来决定。但元数据的结构和语法需要遵循一定的标准。
示例:
… "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"}}]
TYPE类型
TYPE类型 | 描述 |
webpage | 图文内容、新闻、博客等网页信息 |
属性attribute说明
通用属性
所有类型都可以使用
TYPE类型 | 描述 |
webpage | 图文内容、新闻、博客等网页信息 |
微博元数据的限制
元数据的长度不超过512个字符。
仅支持用户以json 数组格式提交的元数据。