schema.org 相关问题

Schema.org是来自多个搜索引擎的协作,基于实体关系模型定义结构化数据的逻辑数据模型和词汇表。它在模型中提出了实体集,它们的对象和数据属性。

作者@type是“组织”,标签作者是“人”有什么危害

我们总是在公司专栏中发布新闻文章,并给作者贴上以公司名称命名的组织的标签。 如果新闻网站邀请我们成为客座作者或转发我们的文章...

回答 1 投票 0

schema.org 将 ItemList 嵌套到 Restaurant

我需要在餐厅网站上标记项目列表(餐厅的属性,如“鸡尾酒吧”、“露台”、“免费停车场”)。 Schema.org 在以下链中定义了类型“Restaurant”...

回答 5 投票 0

如何将 'name' 和 'url' 属性添加到同一个标签?

我正在将 schema.org 微数据添加到我的网站。 我的 HTML 代码是这样的: 机构名称<... 我正在将 schema.org 微数据添加到我的网站。 我的HTML代码是这样的: <div itemscope itemtype="http://schema.org/Organization"> <span class="title">Name of the organization</span> <a href="http://www.ABCCompany.com/">ABC Company</a> </div> 因为itemprop组织的“url”和“name”都在锚标签中。如何在同一个标签上同时指示“url”和“name”itemprop?为此我必须添加额外的 span 标签吗? 我尝试搜索一些关于此的编码示例,但找不到任何示例来显示在同一标签上使用多个itemprop。 最后,我想要这样的微数据: url="http://www.ABCCompany.com", name="ABC Company" 您必须通过嵌套两个元素来做到这一点。例如,您可以将 <span> 嵌套在 <a> 内,然后将 itemprop="name" 放在其上: <div itemscope itemtype="http://schema.org/Organization"> <a itemprop="url" href="http://www.ABCCompany.com/"> <span itemprop="name">ABC Company</span> </a> </div> 我发现这个网站对于测试此类东西很方便。 谷歌可能有问题。 “丰富的摘要测试工具”表明,当您将锚标记标记为网址时,标记的正文将用作值而不是 href 属性。但没有人愿意在锚标记内显示 url。 这也有效,并且可能看起来更容易维护: <div itemscope itemtype="http://schema.org/Organization"> <span class="title" itemprop="name"> <a itemprop="url" href="http://www.ABCCompany.com/">ABC Company</a> </span> </div> 自从最初的问题发布以来,Google 对 schema.org 和 google 结构化数据测试器 的支持有了很大的改进。上面的代码在其中验证正确。 OP 的原始代码现在似乎可以正常工作。如图所示: https://search.google.com/structured-data/testing-tool#url=http%3A%2F%2Fmercedes-benzhanoi.com.vn%2Fmercedes-ha-noi.auto%2Fgla-250-4matic。 html <div itemscope="" itemtype="http://schema.org/Organization"> <span class="title" itemprop="name"> <a itemprop="url" href="http://mercedes-benzhanoi.com.vn/mercedes-ha-noi.auto/gla-250-4matic.html">GLA 250 4MATIC</a></span> </div>

回答 4 投票 0

为什么 schema 中的 url 属性无效?

我正在尝试为下面给出的公司创建一个组织架构 但是,我收到错误 我已经在 Google Rich Results 测试工具上测试了以下代码 <p>我正在尝试为下面给出的公司创建一个组织架构 但是,我收到错误</p> <p>我已经在 Google Rich Results 测试工具上测试了以下代码</p> <pre><code>&lt;script type=&#34;application/ld+json&#34;&gt; { &#34;@context&#34;: &#34;https://schema.org&#34;, &#34;@type&#34;: &#34;Organization&#34;, &#34;name&#34;: &#34;Svibo Industries&#34;, &#34;url&#34;: &#34;https: //sviboindustries.in&#34;, &#34;logo&#34;: &#34;https://sviboindustries.in/wp-content/uploads/2023/04/svibo-1.png&#34;, &#34;image&#34;: &#34;https://sviboindustries.in/wp-content/uploads/2023/04/svibo-1.png&#34;, &#34;description&#34;: &#34;Svibo Industries is broadly involved in manufacturing and supplying all types of Wire Ropes. Svibo provides all types of wire rope constructions of all grades.&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;355&#34; }, &#34;areaServed&#34;: { &#34;@type&#34;: &#34;State&#34;, &#34;name&#34;: &#34;MH&#34; }, &#34;address&#34;: { &#34;@type&#34;: &#34;PostalAddress&#34;, &#34;streetAddress&#34;: &#34;111,112,113 Mahatma Phule Peth, Block No 101, Sevadham Building, 1st Floor, Pune, Maharashtra 411042&#34;, &#34;addressLocality&#34;: &#34;Pune&#34;, &#34;addressRegion&#34;: &#34;Maharashtra&#34;, &#34;postalCode&#34;: &#34;411042&#34;, &#34;addressCountry&#34;: &#34;India&#34; }, &#34;hasOfferCatalog&#34;: { &#34;@type&#34;: &#34;OfferCatalog&#34;, &#34;name&#34;: &#34;Products&#34;, &#34;itemListElement&#34;: [ { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Stainless Steel SS wire rope&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;38&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;PVC Coated wire rope&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;21&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Galvanized wire rope&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;10&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Ungalvanized wire rope&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;38&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Polythene Slings&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;40&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Chain Sling and Alloy Chain&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;40&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Chain Pulley Block&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;23&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Lifting and Chain Hooks&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;32&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Electric Chain Hoist&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;22&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Eye Bolt&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;15&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Mini Electric Hoist&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;32&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Pulley, Pulleys Block and Chain Wheel&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;56&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Pulling and Lifting Machine&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;21&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Hand Puller&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;10&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Ratchet Lever Lifting Hoist&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;32&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Plate Lifting Clamps&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;12&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Trolley&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;12&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Winches&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;32&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Shackles&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;40&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Wire Rope Clamps&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;31&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Wire Rope Thimble&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;42&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Turnbuckle&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;28&#34; } }, { &#34;@type&#34;: &#34;Product&#34;, &#34;name&#34;: &#34;Safety Items&#34;, &#34;aggregateRating&#34;: { &#34;@type&#34;: &#34;AggregateRating&#34;, &#34;ratingValue&#34;: &#34;4.9&#34;, &#34;reviewCount&#34;: &#34;15&#34; } } ] }, &#34;contactPoints&#34;: [ { &#34;@type&#34;: &#34;ContactPoint&#34;, &#34;telephone&#34;: &#34;+91 8208803755&#34;, &#34;contactType&#34;: &#34;Customer support&#34;, &#34;email&#34;: &#34;<a href="/cdn-cgi/l/email-protection" data-cfemail="4f262129200f3c39262d2026212b3a3c3b3d262a3c612c2022">[email protected]</a>&#34; }, { &#34;@type&#34;: &#34;ContactPoint&#34;, &#34;telephone&#34;: &#34;+91 7447449114&#34;, &#34;contactType&#34;: &#34;Customer support&#34; }, { &#34;@type&#34;: &#34;ContactPoint&#34;, &#34;telephone&#34;: &#34;+91 9637545481&#34;, &#34;contactType&#34;: &#34;Customer support&#34; } ] } &lt;/script&gt; </code></pre> <p>为什么会显示? 字段“url”的值类型无效</p> <p>支持的类型:[http://schema.org/URL]</p> <p>我应该使用什么值的url?</p> <p>网址的格式应该是什么?</p> </question> <answer tick="false" vote="0"> <p>该警告是由于空间原因。这是你的宣言:</p> <pre><code>&#34;url&#34;: &#34;https: //sviboindustries.in&#34;, </code></pre> <p>这是正确的声明:</p> <pre><code>&#34;url&#34;: &#34;https://sviboindustries.in&#34;, </code></pre> </answer> </body></html>

回答 0 投票 0

同一类型的模式只能使用@graph关键字吗?

我有一个网页,其中包含三件事: 1.身体状况 2.医生 3.复习部分 4.三个视频 我想为页面编写架构 我已经写了下面的架构,但留下了信息...

回答 1 投票 0

如何表示 JSON-LD 中 SurgicalProcedure 架构类型的 howPerformed 属性中的多个步骤?

我正在编写 SurgicalProcedure 类型的模式,其中包含有关如何进行手术的步骤 JSON-LD 格式应该如何表示? 我想使用的属性是 howPerformed 这里...

回答 1 投票 0

为什么架构出现在某些网站的搜索结果中而不是其他网站的搜索结果中?

我注意到搜索引擎使用 schema.org 来索引有关您网站的信息,并使用户更容易找到要查找的内容,但它仅适用于选择性网站。 我什么...

回答 2 投票 0

如何在手术程序类型模式中使用程序类型?

MedicalProcedureType 类型是微创无创的。 代码应该怎么添加呢? { "@context": "http://schema.org", ...</desc> <question vote="1"> <p>MedicalProcedureType 类型是微创无创的。 代码应该如何添加?</p> <pre><code>&lt;script type=&#34;application/ld+json&#34;&gt; { &#34;@context&#34;: &#34;http://schema.org&#34;, &#34;@type&#34;: &#34;SurgicalProcedure&#34;, &#34;name&#34;: &#34;Intragastric Balloon&#34;, &#34;url&#34;: &#34;https://obesityasia.com/intragastric-balloon/&#34;, &#34;image&#34;: &#34;https://obesityasia.com/images/1.-Intra-Gastric-Ballon-1.jpg&#34;, &#34;bodyLocation&#34;:&#34;Stomach&#34;, &#34;procedureType&#34;:{ &#34;@type&#34;:&#34;MedicalProcedureType&#34;, } } &lt;/script&gt; </code></pre> </question> <answer tick="false" vote="0"> <p><a href="https://schema.org/procedureType" rel="nofollow noreferrer"><pre><code>procedureType</code></pre></a>属性的预期值是类<a href="https://schema.org/MedicalProcedureType" rel="nofollow noreferrer"><pre><code>MedicalProcedureType</code></pre></a>的实例。 Schema.org 目前定义了两个这样的实例 (<a href="https://schema.org/NoninvasiveProcedure" rel="nofollow noreferrer"><pre><code>NoninvasiveProcedure</code></pre></a>, <a href="https://schema.org/PercutaneousProcedure" rel="nofollow noreferrer"><pre><code>PercutaneousProcedure</code></pre></a>)。</p> <p>JSON-LD 示例:</p> <pre><code>&#34;procedureType&#34;: { &#34;@id&#34;: &#34;http://schema.org/NoninvasiveProcedure&#34; } </code></pre> <p>通过在这里使用 <pre><code>@id</code></pre>,可以传达该值是一个 IRI。这对于您使用 <pre><code>url</code></pre> 和 <pre><code>image</code></pre> 来说不是必需的,因为 <a href="https://schema.org/docs/jsonldcontext.json" rel="nofollow noreferrer">Schema.org 的 JSON-LD 上下文</a> 已经为这些属性定义了该内容,但没有为 <pre><code>procedureType</code></pre> 定义。</p> </answer> </body></html>

回答 0 投票 0

同一页面多个 JSON-LD 节点

我正在尝试为我的页面进行正确的 JSON-LD 标记。我正在研究 NextJS(通过危险的SetInnerHTML 注入 JSON-LD),因此我将原始字符串化 JSON 注入渲染中。 假设我的页面想要...

回答 1 投票 0

Schema.org 标记 json-ld 产品和产品类型

下面的代码是由两个还是一个结构化数据组成?我可以使用模式类型“产品组”和“hasVariant”编写代码吗,因为“SS钢丝绳”,“PVC C...

回答 1 投票 0

如何将多个结构化数据组合到一个脚本标签中(ASP.NET、JS)

我有多个由网页上的不同组件生成的 JSON-LD 标记。这些组件在不同时间加载。我想将这些 JSON-LD 标记合并到一个标签中...

回答 1 投票 0

Google 识别的 JSON LD 格式的 Schema.org,但 Facebook Pixel Helper 无法检测到它

我使用添加了JSON LD格式的schema.org标签,当我使用Google结构化数据测试工具测试我的页面时,我可以看到我的所有标签。 但是,当我安装 Facebook Pixel Helper 时 </desc> <question vote="15"> <p>我使用<pre><code>JSON LD</code></pre>以<pre><code>&lt;script&gt;</code></pre>格式添加了schema.org标签,当我使用<a href="https://search.google.com/structured-data/testing-tool/u/0/" rel="noreferrer">Google结构化数据测试工具</a>测试我的页面时,我可以看到我的所有标签。</p> <p>但是,当我安装 <a href="https://chrome.google.com/webstore/detail/facebook-pixel-helper/fdgfkebogiimcoedlicjlajpkdmockpc?hl=en" rel="noreferrer">Facebook Pixel helper chrome 扩展</a> 来测试我的页面时,schema.org 标签显示为空白。不知道为什么 Facebook Pixel Helper 无法检测到它。</p> <p>非常感谢任何帮助。</p> </question> <answer tick="false" vote="9"> <p>我发现Facebook Pixel对结构化数据的解析更加严格。字段中的空白换行将导致它发出警告。当我在地址中进行换行时,我就发生了这种情况。谷歌正确解释了该地址,但 Facebook Pixel 在控制台中发出了警告。</p> <p>添加以下代码解决了我的情况:</p> <pre><code>$address = preg_replace( &#34;/\r|\n/&#34;, &#34; &#34;, $address ); </code></pre> <p>当然,正如这里指出的那样<a href="https://stackoverflow.com/questions/2392766/multiline-strings-in-json">JSON不支持真正的换行符</a>。</p> </answer> <answer tick="false" vote="3"> <p>聚会迟到了,但对于来这里的人来说仍然如此。 FB Pixel 现在支持 JSON-LD:<a href="https://www.facebook.com/business/help/1175004275966513" rel="nofollow noreferrer">https://www.facebook.com/business/help/1175004275966513</a></p> </answer> <answer tick="false" vote="3"> <p>对我来说,多个空格都有错误(据我所知)。 <br/>因此,我使用这段代码:</p> <pre><code>$description = preg_replace(&#34;#\r|\n|(\s+)#iu&#34;, &#34; &#34;, $description); </code></pre> </answer> <answer tick="false" vote="0"> <p>JSON 扩展还为所有其他网页添加了 JSON-LD 格式的架构标记,这是 Google 喜欢的。 “Facebook Pixel”不读取架构元标签或 JSON-LD(Pinterest 读取架构元标签,但不读取 JSON-LD)。</p> <p>听起来您可能有点困惑 – Facebook 不读取架构标记 – Facebook 读取开放图元标签。您可以在这里找到该标准的详细信息:<a href="http://ogp.me/" rel="nofollow noreferrer">http://ogp.me/</a>。</p> <p>仅供参考 <a href="https://www.withintheflow.com/facebook-pixel-helper/" rel="nofollow noreferrer">https://www.withintheflow.com/facebook-pixel-helper/</a></p> </answer> <answer tick="false" vote="0"> <p>您可能碰巧在 init 调用中有 <pre><code>fbq(&#39;set&#39;, &#39;autoConfig&#39;, &#39;false&#39;)</code></pre>。 </p> <p>Facebook Pixel 会将元数据发送到您的 Pixel 设置,但在初始化代码中,如果您将 <pre><code>autoConfig</code></pre> 设置为 <pre><code>false</code></pre>,Facebook Pixel 将不会发送此附加信息。</p> </answer> <answer tick="false" vote="0"> <p>我还使用 Json-LD 脚本标签。就我而言,实际上是在标签开始发送此数据之前移动 Facebook 像素脚本!</p> </answer> </body></html>

回答 0 投票 0

Google FAQ 架构未显示(同一页面中有多个架构)

这是我的网址 https://www.rosterelf.com/pricing。 如果您转到页面源,我添加了 2 个 Schemas Product 和 FAQPage。 然后我去了 https://search.google.com/test/rich-results 并粘贴...

回答 1 投票 0

如何使用 Schema.org for Google 标记重复事件?

我正在使用 schema.org 标记本地企业的页面,并且我有一个每周(周一至周四)重复发生的事件,我想发送元数据。 我查遍了互联网,似乎无法...

回答 5 投票 0

我可以多次使用alternateName吗?

对于结构化数据,alternateName 可以在单个事物上多次使用吗?

回答 2 投票 0

为什么以及如何使用@graph数组?

我对结构化数据以及 schema.org 和 json-ld 很陌生,过去几天一直在查看示例和文档。 我遇到了 @graph 数组,它让我很困惑。 雅高...

回答 1 投票 0

@graph 数组 - 为什么以及如何使用它?

我对结构化数据以及 schema.org 和 json-ld 很陌生,我已经检查示例和文档几天了。 但我最近遇到了 @graph 数组,它让我感到困惑......

回答 1 投票 0

Docusaurus 网站的“id”字段(在“itemListElement.item”中)中的 URL 无效

我们有一个用 Docusaurus“2.0.0-beta.18”制作的网站。我正在通过在 Google Search Console 中检查其页面来改进其 SEO。对于其大部分页面,我意识到有 2 个非关键

回答 1 投票 0

使用 JSON-LD 正确格式化事件列表的结构化数据

我正在尝试为事件列表创建结构化数据。我目前有以下内容: "@context": "http://schema.org", "@type": "项目列表", “……

回答 3 投票 0

如何在html脚本中调用thymeleaf自定义方言

所以基本上我尝试使用 thymeleaf 使用 ld+json 构建动态模式。为了检索相应页面的 url,我们设置了一个自定义处理器: 公共类 QuackUrlAttributeTagProc...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.