我正在通过评论网站获取XML数据,但我需要为此添加一个丰富的摘要,以便谷歌可以显示评级,但我无法找到确切的示例
这是 XML 的一部分
<reviewDetails>
<reviewDetail>
<score>5</score>
<scoremax>5</scoremax>
<text>
<![CDATA[Something something something.]]>
</text>
<user>
<![CDATA[Person]]>
</user>
<id>1494839</id>
<createdate>20160420</createdate>
<beveeltAan>
<![CDATA[ja]]>
</beveeltAan>
<reviewID>1494839</reviewID>
<reviewDatum>20160420</reviewDatum>
<questions>
<question>
<label>
<![CDATA[Verkooptraject]]>
</label>
<score>-1</score>
<order>1</order>
<type>
<![CDATA[score]]>
</type>
</question>
<question>
<label>
<![CDATA[Informatie op SiteToGo.nl]]>
</label>
<score>-1</score>
<order>2</order>
<type>
<![CDATA[score]]>
</type>
</question>
<question>
<label>
<![CDATA[Communicatie website bouwer]]>
</label>
<score>-1</score>
<order>3</order>
<type>
<![CDATA[score]]>
</type>
</question>
<question>
<label>
<![CDATA[Bereikbaarheid]]>
</label>
<score>-1</score>
<order>4</order>
<type>
<![CDATA[score]]>
</type>
</question>
<question>
<label>
<![CDATA[Snelheid oplevering]]>
</label>
<score>-1</score>
<order>5</order>
<type>
<![CDATA[score]]>
</type>
</question>
<question>
<label>
<![CDATA[Prijs-/kwaliteit verhouding]]>
</label>
<score>-1</score>
<order>6</order>
<type>
<![CDATA[score]]>
</type>
</question>
</questions>
<kooptvakeronline></kooptvakeronline>
<geslacht>
<![CDATA[vrouw]]>
</geslacht>
<leeftijd>0</leeftijd>
<gekochtproduct></gekochtproduct>
<companyResponse></companyResponse>
<filterCode></filterCode>
</reviewDetail>
<reviewDetail>
那么我如何在此 XML 中添加丰富网页摘要,以便 Google 能够在我的网站上显示评级。
您需要先展示一些进展,然后我们才能提供建议。这是我建议你做的。
- 转到 schema.org (http://schema.org/docs/full.html) 并确定与您的 XML 数据相关的类型。
- 确定类型后,请查找与 XML 源中使用的术语含义相同的属性。
- 使用 schema.org 上的相关示例,并将其应用于修改后的数据(步骤 1 和 2)。
- 显示第 1-3 步的结果,并要求进一步说明如何改进结果或处理 Google 结构化数据测试工具 (https://developers.google.com/structured-data/testing-tool/) 显示的错误消息。