我正在尝试帮助Google为我的网站生成适当的面包屑详细信息.我目前正在使用它作为面包屑:
<div id="breadcrumb">
<span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://www.radonsystems.net" class="crumb" rel="up" itemprop="url">
<span itemprop="title">Home</span>
</a>
<span class="arrow">
<span>»</span>
</span>
</span>
<span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://www.radonsystems.net/business/profile.2" class="crumb" rel="up" itemprop="url">
<span itemprop="title">Business Profile</span>
</a>
</span>
</div>
Run Code Online (Sandbox Code Playgroud)
然而,这根本没有帮助Google,即使测试工具也没有生成breadrumb链接,尽管它确实看到微数据并正确地将其识别为面包屑微数据.
有任何想法吗?
我是法国人,我正在开发一个租赁空缺网站.我想在租赁空置优惠(房子,别墅,公寓......)上添加微数据,但我不知道要使用哪种商品类型.优惠,产品或其他?
谢谢你的帮助.
我正在一个基督教教堂的网站上工作.它有一个包含日程表和家庭教会列表的页面,我想用Schema.org微数据进行标记.事情是我找不到合适的类型来描述这些项目.对于时间表我决定去http://Schema.org/Event类型,但我需要添加联系人姓名和电话,但我可以使用哪个属性的事件?我使用了"表演者"的属性,但事实并非如此......
<div itemscope="" itemtype="http://schema.org/Event">
<span class="time"><time itemprop="startDate" datetime="2012-07-02T19:00:00">19:00</time></span>
<h2 class="colored" itemprop="name">Worship Group</h2>
<strong>Address:</strong> <a href="http://www.example.com" target="_blank" class="dashed" title="See on the map"><span itemprop="location">St. Patric 42</span></a>
<br><strong>Contacts:</strong>
<span itemprop="performer" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="telephone">8-422-212-5532</span> (<span itemprop="name">John Parker</span>)</span>
<span itemprop="description">We want to worhip God together</span>
</div>
Run Code Online (Sandbox Code Playgroud)
至于一个家庭教会 - 它是一个组织和事件之间的东西 - 它是一群信徒在某个时间聚集在一个地方.我决定去http://schema.org/Organization,将ContactPoint添加为教会领导联系人信息.但是我如何标记开始时间?
有没有办法组合实体类型,以便我可以描述我拥有的所有重要属性?
TL; DR - >我想在一个项目范围内嵌套一个itemprop实际应用于不同的itemcope. 我怎么做?
这里是我所拥有的代码的一个要点(我已经删除了页面上的类和其他无关的元素,专注于重要的事情):
<!-- CODE I HAD -->
<div itemscope itemtype="http://schema.org/Product">
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue">79</span>
<h1 itemprop="name">Someproductsoandso</h1>
<span itemprop="reviewCount">830</span>
</div>
</div>
<!-- CODE I NOW HAVE -->
<div itemscope itemtype="http://schema.org/Product" itemref="productMicrodata">
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue">79</span>
<h1 itemprop="name" id="productMicrodata">Someproductsoandso</h1>
<span itemprop="reviewCount">830</span>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
基本上,我有一个带有儿童aggregateRating的产品itemcope.在aggregateRating范围内,我有类似"ratingValue"和"reviewCount"的东西,我想附加到那个,但是还有一个"name"值,我希望附加到Product(不是aggregateRating,也可以有一个"name" "价值".
使用我使用的第一块代码,谷歌说我的产品缺少一个名称,因为名称正在应用于aggregateRating; 对于第二个,名称现在应用于aggregateRating和Product.这不是最糟糕的事情,但我希望它只是附加到aggregateRating; 你知道如何解决这个问题而不破坏当前的标记组织吗?
例如,请参见http://microdatagenerator.org/.
标准化的方法是什么,例如,声明我的页面是关于LocalBusiness哪个也是AutomotiveBusiness?标准文件在哪里明确指明了这一点?
我收到了一个'错误:使用schema.org的不完整微数据'.使用Google的测试工具测试标记时的消息(http://www.google.com/webmasters/tools/richsnippets?q=uploaded:8004e2bf685980a2f0ffadd5c52b2d5f).
我尽可能地简化了我的代码,我是否缺少某种"必需"类型来摆脱这个错误?这是我目前在产品页面上提供的唯一数据.
提前致谢!
<div itemscope itemtype="http://schema.org/Product" id="productdetail">
<img itemprop="image" src="testimage.jpg" width="300" height="300" name="multi" alt="Test" />
<h1 itemprop="name">Product Name</h1>
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="convertprice">
<span itemprop="price">£2.00</span>
</span>
<p itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="stock"><link itemprop="availability" href="http://schema.org/InStock" content="In Stock" />In Stock</p>
<div class="tab_info" id="tab1">
<p itemprop="description" class="invtdesc2">This is where the product description will be!</p>
</div>
Run Code Online (Sandbox Code Playgroud)
在网络上的所有示例中,我都看到了Microdata属性itemscope并itemtype应用于div元素,如下所示:
<div itemscope itemtype ="http://schema.org/Movie">
<h1 itemprop="name">Avatar</h1>
<span>Director: <span itemprop="director">James Cameron</span> (born August 16, 1954)</span>
<span itemprop="genre">Science fiction</span>
<a href="../movies/avatar-theatrical-trailer.html" itemprop="trailer">Trailer</a>
</div>
Run Code Online (Sandbox Code Playgroud)
但是Microdata可以应用于任何其他元素,在我的情况下,我想将它应用于列表项:
<ul>
<li itemscope itemtype ="http://schema.org/Movie">
<h1 itemprop="name">Avatar</h1>
<span>Director: <span itemprop="director">James Cameron</span> (born August 16, 1954)</span>
<span itemprop="genre">Science fiction</span>
<a href="../movies/avatar-theatrical-trailer.html" itemprop="trailer">Trailer</a>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
这有什么已知的问题吗?
我想为相关产品设置Schema.org标记.
我试过这段代码,但我心里怀疑:
itemprop="isRelatedTo" itemscope itemtype="http://schema.org/Product"
Run Code Online (Sandbox Code Playgroud)
我的产品页面是https://www.amigotrekking.com/everest-base-camp-trek.html
如何用微数据格式标记页面上未显示的信息?
通常,我们不希望在页面上显示发布者/作者信息,但是Google要求“文章”使用此信息,而且它们的结构很复杂。
我不想将此数据放在隐藏的span / div或其他任何内容中,所以我认为我会使用meta标记。但是,如何使用metas指定发布者实体的徽标和名称?我需要以某种方式使用itemref吗?
<section itemscope itemtype="http://schema.org/Article">
<meta itemprop="keywords" content="kw1, kw2" />
<meta itemprop="publisher" content="© My Company" /><!-- ??-->
Run Code Online (Sandbox Code Playgroud)
我已经看过文章中未显示的使用其他图像作为微数据?,但是不使用JSON-LD就能实现我想要的功能吗?如果没有,我可以同时使用JSON-LD和元/标签描述吗?
所以我在看Schema.org.我需要将<html>标签更改为此标记吗?
<html itemscope itemtype="http://schema.org/Article">
Run Code Online (Sandbox Code Playgroud)
或者我可以只使用我的<head></head>块中的元标记?
<meta itemprop="name" content="The Name or Title Here">
<meta itemprop="description" content="This is the page description">
<meta itemprop="image" content="http://www.example.com/image.jpg">
Run Code Online (Sandbox Code Playgroud)