Schema.org 'Product' 中问题和答案的标记
Schema.org markup for questions & answers inside 'Product'
有人可以建议为用户可以购买某些产品的页面添加正确 Schema.org 标记的最佳方法吗?我在此处添加 Product
标签(用于丰富网页摘要)。
我想增加询问有关此产品的问题的可能性,但我没有找到可以用作嵌入项的属性。
示例:
<div itemscope="" itemtype="http://schema.org/Product">
<meta itemprop="brand" content="Brand">
<meta itemprop="url" content="URL">
......
<div id="question1" itemprop=??????? itemscope="" itemtype="http://schema.org/Question">
......
<div id="answer1" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
<div id="answer2" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
</div>
...
<div id="question10" itemprop=??????? itemscope="" itemtype="http://schema.org/Question">
......
<div id="answer1" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
<div id="answer2" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
</div>
</div>
没有属性加一个Question
一个Product
.
但是有一个 属性 来表达一个 Question
是关于一个 Product
: about
.
使用微数据对其进行标记的方式有多种。这是一个使用 itemref
:
的例子
<div id="product-42" itemprop="about" itemscope itemtype="http://schema.org/Product">
</div>
<div itemscope itemtype="http://schema.org/Question" itemref="product-42">
</div>
<div itemscope itemtype="http://schema.org/Question" itemref="product-42">
</div>
到link一个Answer
到一个Question
,你可以使用suggestedAnswer
/acceptedAnswer
.
有人可以建议为用户可以购买某些产品的页面添加正确 Schema.org 标记的最佳方法吗?我在此处添加 Product
标签(用于丰富网页摘要)。
我想增加询问有关此产品的问题的可能性,但我没有找到可以用作嵌入项的属性。
示例:
<div itemscope="" itemtype="http://schema.org/Product">
<meta itemprop="brand" content="Brand">
<meta itemprop="url" content="URL">
......
<div id="question1" itemprop=??????? itemscope="" itemtype="http://schema.org/Question">
......
<div id="answer1" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
<div id="answer2" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
</div>
...
<div id="question10" itemprop=??????? itemscope="" itemtype="http://schema.org/Question">
......
<div id="answer1" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
<div id="answer2" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
</div>
</div>
没有属性加一个Question
一个Product
.
但是有一个 属性 来表达一个 Question
是关于一个 Product
: about
.
使用微数据对其进行标记的方式有多种。这是一个使用 itemref
:
<div id="product-42" itemprop="about" itemscope itemtype="http://schema.org/Product">
</div>
<div itemscope itemtype="http://schema.org/Question" itemref="product-42">
</div>
<div itemscope itemtype="http://schema.org/Question" itemref="product-42">
</div>
到link一个Answer
到一个Question
,你可以使用suggestedAnswer
/acceptedAnswer
.