【问题标题】:How to add rich snippet in a website?如何在网站中添加丰富网页摘要?
【发布时间】:2016-08-14 06:37:36
【问题描述】:

我正在通过评论网站获取 XML 数据,但我需要添加丰富的 sn-p 以便谷歌可以显示评级,但我无法找到确切的示例

这是 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 中添加丰富的 sn-p 以便谷歌能够在我的网站上显示评级。

【问题讨论】:

  • 您知道/读到 Google 搜索支持 XML 中的结构化数据吗?这会让我感到惊讶;它们通常只支持网页中的结构化数据,即 (X)HTML。

标签: asp.net xml seo google-search rich-snippets


【解决方案1】:

您需要展示一些进展,然后我们才能提供建议。 这是我建议您执行的操作。

  1. 访问 schema.org (http://schema.org/docs/full.html) 并确定哪些类型与您的 XML 数据相关。
  2. 确定类型后,查找与 XML 源中使用的术语含义相同的属性。
  3. 使用 schema.org 上的相关示例,并将它们应用到修改后的数据(步骤 1 和 2)。
  4. 显示步骤 1-3 的结果,并要求进一步说明如何改进结果或处理 Google 结构化数据测试工具 (https://developers.google.com/structured-data/testing-tool/) 显示的错误消息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-02-01
    • 1970-01-01
    • 2015-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-30
    相关资源
    最近更新 更多