Google 会利用在网络上找到的结构化数据来了解网页内容并收集有关网络和世界的一般信息,例如标记中关于人物、图书或公司的信息。例如,以下 JSON-LD 结构化数据片段可能会显示在食谱网页上,描述了食谱的标题、作者和其他详情:
<html><head><title>Party Coffee Cake</title><scripttype="application/ld+json">{"@context":"https://schema.org/","@type":"Recipe","name":"Party Coffee Cake","author":{"@type":"Person","name":"Mary Stone"},"datePublished":"2018-03-10","description":"This coffee cake is awesome and perfect for parties.","prepTime":"PT20M"}</script></head><body><h2>Party coffee cake recipe</h2><p><i>by Mary Stone, 2018-03-10</i></p><p>
This coffee cake is awesome and perfect for parties.
</p><p>
Preparation time: 20 minutes
</p></body></html>
Google 搜索也会利用结构化数据启用特殊的搜索结果功能和增强功能。例如,一个包含有效结构化数据的食谱网页可以显示在图片搜索结果中,如下所示: