假设我有以下句子我想添加丰富的片段:
我在纽约生活和工作
由于纽约既是我的居住地,也是我工作的城市,理论上我想使用schema.org标准来标记这样的行:
<div itemscope itemtype = 'http://schema.org/Person'>I live and work in
<span itemprop = 'homeLocation' itemprop = 'workLocation'>New York</span></div>
Run Code Online (Sandbox Code Playgroud)
在一个span标记中有2个itemprops是否有效?如果没有,下面会工作吗?
<div itemscope itemtype = 'http://schema.org/Person'>I live and work in
<span itemprop = 'homeLocation'><span itemprop = 'workLocation'>New York
</span></span></div>
Run Code Online (Sandbox Code Playgroud) 我正在为产品页面的Magento商店实现架构丰富的代码段,并且想知道在产品列表页面上是否也是一个好主意.
搜索和大多数问题/文章只关注产品页面,所以我想知道它是否可能适用于SEO目的.
谢谢!
我上传了所有网页已经有一段时间了.谷歌实际上已将它们编入索引,我的网站已开始出现在谷歌搜索结果中.但网站管理员工具仍显示我网站上的数据是非结构化的.我怎么能纠正这个?我使用Google提供的丰富网页摘要测试了我的所有网页,测试成功,因为Google正确地向我显示了提取的数据.
structured-data google-webmaster-tools rich-snippets google-rich-snippets
我在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
我正在使用结构化数据进行面包屑跟踪.我正在参考这个文档:
https://developers.google.com/structured-data/breadcrumbs
我已经建立了一个面包屑列表.我还显示引用当前页面的最后一项,但这不是链接,只是纯文本.这就是我的HTML标记的样子:
<ol class="breadcrumb">
<li><a href="http://www.example.com/">Home</a></li>
<li><a href="http://www.example.com/brands">Brands</a></li>
<li class="active">My Brand</li>
</ol>
Run Code Online (Sandbox Code Playgroud)
我选择用来JSON-LD标记我的面包屑痕迹.我不确定如何标记我的痕迹清单中的最后一项,看它不是链接?我应该把它留下吗?这就是我目前拥有的:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "http://www.example.com/",
"name": "Home"
}
}, {
"@type": "ListItem",
"position": 2,
"item": {
"@id": "http://www.example.com/brands",
"name": "Brands"
}
}]
}
</script>
Run Code Online (Sandbox Code Playgroud)
我需要像其他2项一样添加最后一项,还是需要保留?它只适用于有链接的项目吗?
我需要一些帮助来获取我的网站上的一些丰富网页摘要
我按照schema.org上的说明插入了评论微数据http://schema.org/docs/gs.html#advanced_missing使用星形图像进行评级和审核计数文本,但是使用测试工具对其进行测试它什么都没显示. 我们使用微数据进行评论的示例页面.
这就是我用过的东西
<div itemprop="reviews" itemscope itemtype="http://schema.org/AggregateRating">
<A HREF="javascript:an();"><img src="/images/stars/4.5.gif" border=0></a>
<meta itemprop="ratingValue" content="4.5" />
<meta itemprop="bestRating" content="5" />
<BR>
<span class="bottomnavfooter">
<A HREF="javascript:an();">Read (<span itemprop="ratingCount">70</span>) Reviews</A
</span>
</div>
Run Code Online (Sandbox Code Playgroud)
然后,我创建了一个静态测试页面,并使用Google在此处提供的说明进行了一些更改http://www.google.com/support/webmasters/bin/answer.py?answer=172705(这与我在架构中找到的不同.组织!!)但测试仍然只返回产品名称而不是价格或评论.
这是我的测试页 - 你能不能看看我哪里出错了
非常感谢!!
我正在尝试向我的网站添加一些丰富的代码片段,并且我在使用AggregateRating部分时苦苦挣扎,因为我的ratingValue的值仅显示为图像.
我的标记看起来像这样:
<tr itemprop="reviews" itemscope itemtype="http://schema.org/Review">
<th>Rating:</th>
<td itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<img itemprop="ratingValue" class="rating" src="/content/images/ratings/4.5.png" alt="4.5" title="Rating: 4.5 / 5" />
</td>
</tr>
Run Code Online (Sandbox Code Playgroud)
据我所知,这是有效的HTML,因为文本值可用作ALT文本,因此符合可访问性指南.但是,我不确定如何将此ALT标记为ratingValue的值.
有谁知道我应该在这做什么?
谢谢.
好吧,经过几个小时的Google Rich Snippets Tester测试后,我想出的是:
<tr itemprop="reviews" itemscope itemtype="http://schema.org/Review">
<th>Rating:</th>
<td itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="ratingValue" content="4.5">
<img class="rating" src="/content/images/ratings/4.5.png" alt="4.5" title="Rating: 4.5 / 5" />
</td>
</tr>
Run Code Online (Sandbox Code Playgroud)
这似乎是正确的.
您是否应该标记面包屑的主页和当前页面?我使用数据词汇只是因为 schema.org 不允许标记标题或 url - 只有一行文本,没有分隔符,除非手动添加。
这是我现在拥有的一个例子。请注意,我标记了主页和当前页面 - 这是正确的还是应该不标记其中一个或两个页面?
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a class="home" itemprop="url" href="/"><span itemprop="title"><img alt="Home" height="30" src="/images/trans.gif" width="16"></span></a></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/services/"><span itemprop="title">Services</a></span></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/"><span itemprop="title">Widget</a></span></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/features.htm"><span itemprop="title">Features</span></a></li>
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 JSON-LD 中创建一个包含多个评论的产品片段。当我只包含一个评论时,下面的代码有效。(请将控制台中的代码片段复制粘贴到以下网址上以进行测试:https : //search.google.com/structured-data/testing-tool)。但是,我不清楚如何添加多个评论。在挣扎了一段时间后,我自己无法让它工作,而且我很难找到一个例子。
假设我有一条来自“John”的评论,他给出了“3.0”的产品评级,而另一条“Sarah”的评论给出了“5.0”的产品评级。我如何在下面的代码中包含对莎拉的评论?
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Samsung Galaxy S",
"description": "A great product",
"brand": {
"@type": "Thing",
"name": "Samsung"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.0",
"reviewCount": "103"
},
"offers": {
"@type": "Offer",
"priceCurrency": "EUR",
"price": "18",
"itemCondition": "http://schema.org/NewCondition",
"availability": "http://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "Samsung"
}
}
,"review": {
"@type": "Review",
"author": "John",
"datePublished": " 7 December 2016",
"description": "I love this product so much",
"name": "Amazing",
"reviewRating": {
"@type": …Run Code Online (Sandbox Code Playgroud) rich-snippets ×10
schema.org ×5
html ×4
microdata ×4
javascript ×2
json ×2
seo ×2
breadcrumbs ×1
html5 ×1
json-ld ×1
magento ×1
markup ×1