标签: google-rich-snippets

微数据还是JSON-LD?我糊涂了

即使在谷歌搜索几个小时后,我还没有找到一个明确和更新的答案,所以这里:

  1. 我知道Microdata和JSON-LD的优点和缺点.我也知道Microdata是从W3C(以及因此来自浏览器的API)中删除的.我不确定的是它将如何影响Microdata专门用于SEO目的的任何网站.

  2. Google是否支持SERP的JSON-LD?它建议使用什么格式?我正在寻找更新的答案 - 不是从2011年或2012年(如果它们仍然适用,请随时发布).

  3. 什么更适合具有大量内容的动态网站(想想:50000个视频,图像等):JSON-LD,Microdata还是RDFa?为什么?

seo microdata schema.org json-ld google-rich-snippets

50
推荐指数
2
解决办法
2万
查看次数

带有产品列表项的ItemList需要"position"属性?

我有一个问题:Google的结构化数据测试工具给了我一个错误:

标签position不存在.这是必需的.

标记位置不存在

我将它添加到标记中.比我得到这个错误:

Position property对于类型的对象无效 Product

Position属性对于Product类型的对象无效

这是我的标记:

<table id="sale_table" itemscope="" itemtype="http://schema.org/ItemList">
    <tbody>
            <tr itemprop="itemListElement" itemscope="" itemtype="http://schema.org/Product">
                <td class="sale_art_td" itemprop="productID">10496278</td>
                <td class="sale_brand_td" itemprop="brand"><span itemprop="name ">--</span></td>
                <td class="sale_name_td" itemprop="name">10496278 / ?????? ????????? Daewoo Nexia,Espero DD</td>
                <td class="sale_am_td">1.00</td>
                <td class="sale_price_td" itemprop="offers" itemscope="" itemtype="http://schema.org/Offer"><meta itemprop="priceCurrency" content="RUR"><span itemprop="price">341.50</span></td>
                <td class="sale_buy_td"><a href="javascript:void(0);" class="sale_buy_link" data-id="63455914" data-query="10496278">??????</a><!--<img src="/upload/badge/sale_cart.png" />--></td>
                <td class="hidden">
                    <meta itemprop="url" content="/partsearch/?q=10496278">
                                        <span itemprop="description">??????????: 10496278 / ?????? ????????? Daewoo Nexia,Espero DD ?? ???? 341.50</span>
                </td>
            </tr>
                    <tr itemprop="itemListElement" itemscope="" itemtype="http://schema.org/Product">
                <td class="sale_art_td" itemprop="productID">76202sx0a12</td>
                <td …
Run Code Online (Sandbox Code Playgroud)

microdata schema.org google-rich-snippets

17
推荐指数
2
解决办法
1万
查看次数

如何在这个特定网站上实现"mainEntityOfPage"?

请看这里:https://developers.google.com/structured-data/testing-tool?url = https%253A%252F%252Fglamourina.net%252Fen%252F

如何正确添加mainEntityOfPage到此站点?

在Google文档示例中,我看到如下内容:

<div itemscope itemtype="http://schema.org/NewsArticle">

  <meta itemscope itemprop="mainEntityOfPage"  itemType="https://schema.org/WebPage" itemid="https://google.com/article"/>
Run Code Online (Sandbox Code Playgroud)

但这是一篇单独的作者博客.它的特色是blogPosts.

<article itemscope itemtype="https://schema.org/BlogPosting" class="singlearticles">
Run Code Online (Sandbox Code Playgroud)

如果我这样改变它会是好的:

<article itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<meta itemscope itemprop="mainEntityOfPage"  itemType="https://schema.org/WebPage" itemid="https://linktoarticle"/>
Run Code Online (Sandbox Code Playgroud)

不确定我是否理解其mainEntityOfPage用法.如果有人可以建议我如何处理这个特定的案例/网站,我将不胜感激.不一般,因为每个站点可以有不同的mainEntityOfPage,但我需要知道并理解该站点的正确实现.

microdata schema.org google-rich-snippets

17
推荐指数
1
解决办法
2万
查看次数

Google SDTT错误:"为http://www.example.com/提供的所有值必须具有相同的域名."

当我从Google文档(下面的代码片段)中复制/粘贴JSON-LD示例时,我在结构化数据测试工具中收到错误:

http://www.your-company-site.com(提供的所有值 http://www.example.com/必须具有相同的域.)

为什么Google自己的文档示例会出错?

Google文档中的代码段:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Organization",
  "url": "http://www.your-company-site.com",
  "contactPoint": [{
    "@type": "ContactPoint",
    "telephone": "+1-401-555-1212",
    "contactType": "customer service"
  }]
}
</script>
Run Code Online (Sandbox Code Playgroud)

url schema.org json-ld google-rich-snippets

14
推荐指数
4
解决办法
9822
查看次数

网站管理员工具不会检测我网站上的结构化数据

我上传了所有网页已经有一段时间了.谷歌实际上已将它们编入索引,我的网站已开始出现在谷歌搜索结果中.但网站管理员工具仍显示我网站上的数据是非结构化的.我怎么能纠正这个?我使用Google提供的丰富网页摘要测试了我的所有网页,测试成功,因为Google正确地向我显示了提取的数据.

structured-data google-webmaster-tools rich-snippets google-rich-snippets

12
推荐指数
1
解决办法
3589
查看次数

AggregateRating和ratingValue尚未评级

如何AggregateRating在对象尚未评级时设置(ratingValue= 0)?

我目前的设置是:

<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
    <meta itemprop="ratingValue" content="0" />
    <meta itemprop="bestRating" content="5" />
    <meta itemprop="worstRating" content="1" />
    <div itemprop="ratingCount">0</div>
</div>
Run Code Online (Sandbox Code Playgroud)

当我使用Google测试工具检查微数据时,我收到错误"无法标准化评级值".我只需要设置worstRating为0吗?或者还有另一种方法可以说明没有评级吗?

microdata schema.org google-rich-snippets

12
推荐指数
1
解决办法
4983
查看次数

schema.org微数据 - 文章所需的图像

我在https://schema.org/Article找到的每个示例都在Google结构化数据测试工具中至少出现一个错误

据说headline现在需要; 那很好,只需itemprop="name"改为itemprop="name headline"

但它也给出了错误:

A value for the image field is required.
Required by:
Articles Rich Snippets
Run Code Online (Sandbox Code Playgroud)
  • 为什么文章需要图像?
  • 为什么不在任何地方记录?
  • 我应该作为一个图像给出什么?

我听到有人形象地说应该是一个形象文章(字面解释文档:"该项目的图像") -之类的文章的实际截图.这没用吗?这是否正确?我必须提供图像吗?每篇文章都可以使用相同的空白图像或徽标吗?或者由于不相关,复制图像会受到惩罚吗?

html5 semantic-markup microdata rich-snippets google-rich-snippets

12
推荐指数
1
解决办法
9319
查看次数

附加链接搜索框JSON-LD在Google结构化数据测试工具上出错

我在我的网站上实施了Google的附加链接搜索框.它工作得很好.但是今天我再次对Google结构化数据测试工具进行了抨击,出了点问题.现在我收到以下错误:

Google结构化数据测试工具:WebSite的2个错误

我的实施是:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "WebSite",
  "url": "https://www.saatler.com/",
  "potentialAction": {
    "@type": "SearchAction",
    "target": "https://www.saatler.com/arama?ara={search_term_string}",
    "query-input":"required name=search_term_string"
  }
}
</script>
Run Code Online (Sandbox Code Playgroud)

当我在JSON-LD操场上检查JSON时,一切都很好看.我没有更改我网站上的任何内容.谷歌在这个问题上是错的吗?或者Schema.org结构发生了变化?我该怎么做才能解决这两个问题?

schema.org json-ld google-rich-snippets

10
推荐指数
2
解决办法
2490
查看次数

如果使用JavaScript动态构建标记,Schema.org标记是否有效?

我有一个页面,通过使用JavaScript读取一些JSON动态加载一些事件.我div使用EventSchema.org标记为每个事件构建一个.

Google的测试工具不会读取此标记.是因为标记中的错误,还是因为动态加载?

一个HTML代码Event是:

<div class="evento well" itemscope itemtype="http://schema.org/Event">
   <meta itemprop="startDate" content="2015-03-20T20:00:00.000Z">
   <meta itemprop="endDate" content="2015-01-21T20:00:00.000Z">
   <div class="dataEvento">
      <div class="dayWeekEvento">venerdì</div>
      <div class="dayNumEvento">20</div>
      <div class="monthEvento">Marzo</div>
   </div>
   <div class="datiEvento">
      <div class="oraEvento">ore 21:00</div>
      <div class="titoloEvento"><span itemprop="name">Titolo evento</span></div>
      <div class="luogoEvento" itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress"><a href="https://www.google.it/maps/place/Milano" target="_blank"><span class=" glyphicon glyphicon-map-marker" aria-hidden="true"></span> <span itemprop="addressLocality">Milano</span></a></div>
   </div>
</div>
Run Code Online (Sandbox Code Playgroud)

html javascript microdata schema.org google-rich-snippets

9
推荐指数
1
解决办法
7995
查看次数

Google SDTT中的错误:"为网址提供的所有值都必须指向同一页面."

我正在尝试为ecom网站上的产品列表创建一些JSON-LD结构化数据,但是在使用Google的结构化数据测试工具时出现错误.

到目前为止,我有这个:

 {
 "@context": "http://schema.org",
 "@type": "OfferCatalog",
 "name": "Fresh Fruit",
 "itemListElement": [
  {
   "@type": "ListItem",
   "position": 1,
   "item":
   {
        "@type": "Offer",
        "price": "1.20",
        "priceCurrency": "GBP",
        "availability": "http://schema.org/InStock",
        "url": "http://example.com/green-apples/",
        "itemOffered": {
            "@type": "Product",
            "name": "Green Apples",
            "url": "http://example.com/green-apples/"
            }
        }        
   }  
 ]
}
Run Code Online (Sandbox Code Playgroud)

大多数情况下它会验证,但Google工具会抛出以下错误:

为url提供的所有值必须指向同一页面.

错误突出显示第11行("@type": "Offer",).

URL字段似乎与@context声明冲突,因为如果我将上下文更改为非url字符串或者http://example.com,它会验证(尽管这显然会导致其自身的问题).(这已被证明是一个红鲱鱼,在下面的评论中)

我在这里错过了什么?感觉就像是一件非常明显的事情.

url schema.org json-ld google-rich-snippets

9
推荐指数
2
解决办法
5680
查看次数