json-ld 相关问题

JSON-LD是一种基于JSON的格式,用于序列化关联数据。该语法旨在轻松集成到已使用JSON的已部署系统中,并提供从JSON到JSON-LD的平滑升级路径。它主要用于在基于Web的编程环境中使用关联数据,构建可互操作的Web服务以及在基于JSON的存储引擎中存储关联数据。

Safari 解析“电话”上的 JSON-LD 错误 ('Object.prototype.hasOwnProperty.call(e,"telephone")')

自从我们为应用程序前端启用 Sentry(我们使用 TALL 堆栈构建)以来,我们从 Safari 浏览器中收到了很多错误。我无法复制。 首先我们得到了这样的错误 Safari

回答 1 投票 0

组织架构应该出现在每个页面上吗?

我正在尝试将架构添加到产品页面。 该产品是用于起重索具设备的卸扣。 然而,在页面的页脚中有该组织的地址,并且也在...

回答 1 投票 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

使用 ActivityPub,导出带有发件箱的人员的有效且首选的方法是什么?

我想创建一个 JSON-LD 文件来表示人员及其状态列表的导出。目前没有可导入的目标系统,但我希望它与当前的一致

回答 1 投票 0

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

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

回答 1 投票 0

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

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

回答 1 投票 0

是否可以直接对带有JSON-LD数据的网页运行SPARQL查询?

比如这个页面 https://www.bobdc.com/blog/json-ld/ ,查看页面源码时有: { &</desc> <question vote="0"> <p>比如这个页面<a href="https://www.bobdc.com/blog/json-ld/" rel="nofollow noreferrer">https://www.bobdc.com/blog/json-ld/</a>,查看页面源码时有:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type=&#34;application/ld+json&#34;&gt; { &#34;@context&#34; : &#34;http://schema.org&#34;, &#34;@type&#34; : &#34;BlogPosting&#34;, &#34;mainEntityOfPage&#34;: { &#34;@type&#34;: &#34;WebPage&#34;, &#34;@id&#34;: &#34;https:\/\/www.bobdc.com\/&#34; }, &#34;articleSection&#34; : &#34;blog&#34;, &#34;name&#34; : &#34;Exploring JSON-LD&#34;, &#34;headline&#34; : &#34;Exploring JSON-LD&#34;, &#34;description&#34; : &#34;And of course, querying it with SPARQL.&#34;, &#34;inLanguage&#34; : &#34;en&#34;, &#34;author&#34; : &#34;Bob DuCharme&#34;, &#34;creator&#34; : &#34;&#34;, &#34;publisher&#34;: &#34;&#34;, &#34;accountablePerson&#34; : &#34;&#34;, &#34;copyrightHolder&#34; : &#34;&#34;, &#34;copyrightYear&#34; : &#34;2019&#34;, &#34;datePublished&#34;: &#34;2019-04-21 11:20:00 \u002b0000 UTC&#34;, &#34;dateModified&#34; : &#34;2019-04-21 11:20:00 \u002b0000 UTC&#34;, &#34;url&#34; : &#34;https:\/\/www.bobdc.com\/blog\/json-ld\/&#34;, &#34;wordCount&#34; : &#34;1283&#34;, &#34;keywords&#34; : [ &#34;RDF&#34;,&#34;JSON&#34;,&#34;SPARQL&#34;,&#34;Blog&#34; ] } &lt;/script&gt; ...... </code></pre> <p>我们可以直接对页面使用<strong>SPARQL</strong>查询吗?如果没有,有一些优雅的解决方法吗?</p> <p>我用谷歌搜索没有得到满意的结果。预先感谢您!</p> </question> <answer tick="false" vote="0"> <p>这对于普通的 SPARQL 来说是不可能的。需要预处理页面并将 JSON-LD 加载到某种内存三元组存储中,如评论中 @UninformedUser 所建议的那样。但是,不需要手动执行此操作,而是可以使用一些现成的工具:</p> <h1><a href="https://github.com/SPARQL-Anything/sparql.anything" rel="nofollow noreferrer">SPARQL 任何东西</a></h1> <p>它重载了 SPARQL SERVICE 运算符来解析来自 Web 或本地存储的多种文件。根据您的情况,创建以下查询文件 <pre><code>json-ld-in-html.rq</code></pre>:</p> <pre><code># vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv # vvv prefixes for your query vvv # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv # e.g. PREFIX schema: &lt;http://schema.org/&gt; # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # ^^^ prefixes for your query ^^^ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SELECT * WHERE { SERVICE &lt;x-sparql-anything:location=https://www.bobdc.com/blog/json-ld/,triplifier=io.github.sparqlanything.html.HTMLTriplifier,html.metadata=true&gt; { # vvvvvvvvvvvvvvvvvv # vvv your query vvv # vvvvvvvvvvvvvvvvvv # e.g. [] schema:name ?title . [] schema:author ?author . # ^^^^^^^^^^^^^^^^^^ # ^^^ your query ^^^ # ^^^^^^^^^^^^^^^^^^ } } </code></pre> <p>然后执行查询:</p> <pre><code>java -jar sparql-anything-0.9.0.jar -q json-ld-in-html.rq -f TEXT </code></pre> <p>结果:</p> <pre><code>---------------------------------------- | title | author | ======================================== | &#34;Exploring JSON-LD&#34; | &#34;Bob DuCharme&#34; | ---------------------------------------- </code></pre> <p>通过一些更改,还可以提供 URL 作为参数或以其他格式返回输出。</p> </answer> </body></html>

回答 0 投票 0

为什么谷歌丰富的摘要显示:“项目不支持评论”? “@graph”关键字的实现是否正确?

以下架构正确吗? 我应该做一些改变吗? 如果我确实需要做出任何改变,我应该如何进行? { “@context”:...</desc> <question vote="0"> <p>以下架构正确吗? 我应该做一些改变吗? 如果我确实需要进行任何更改,我应该如何进行?</p> <pre><code>&lt;script type=&#34;application/ld+json&#34;&gt; { &#34;@context&#34;: &#34;https://schema.org&#34;, &#34;@graph&#34;: [ { &#34;@type&#34;: &#34;MedicalCondition&#34;, &#34;associatedAnatomy&#34;: { &#34;@type&#34;: &#34;AnatomicalStructure&#34;, &#34;name&#34;: &#34;Eye&#34; }, &#34;name&#34;: &#34;Diabetic retinopathy&#34;, &#34;signOrSymptom&#34;: [ { &#34;@type&#34;: &#34;MedicalSymptom&#34;, &#34;name&#34;: &#34;Floaters&#34; }, { &#34;@type&#34;: &#34;MedicalSymptom&#34;, &#34;name&#34;: &#34;Dark Spot&#34; }, { &#34;@type&#34;: &#34;MedicalSymptom&#34;, &#34;name&#34;: &#34;Blurred vision&#34; }, { &#34;@type&#34;: &#34;MedicalSymptom&#34;, &#34;name&#34;: &#34;Reduced Night Vision&#34; } ], &#34;typicalTest&#34;: [ { &#34;@type&#34;: &#34;MedicalTest&#34;, &#34;name&#34;: &#34;OCT scan&#34;, &#34;description&#34;: &#34;An OCT scan is a non-invasive latest advancement in imaging technology. Similar to ultrasound, this diagnostic technique employs light rather than sound waves to achieve higher resolution (5 micron resolution) pictures of the structural layers of the ratina very prcisely.&#34;, &#34;usesDevice&#34;: &#34;Optical Coherence Tomography (OCT)&#34;, &#34;image&#34;: &#34;https://www.asianeyehospital.com/images/OCT.jpg&#34; }, { &#34;@type&#34;: &#34;MedicalTest&#34;, &#34;name&#34;: &#34;FFA&#34;, &#34;description&#34;: &#34;It is a common procedure that is performed to give more information about the blood vessels of the retina. A fluorescein dye is injected in the blood vessel of the arm. Then by specialised magnifying camera quick photographs are taken of your retina.&#34;, &#34;usesDevice&#34;: &#34;Fundus Fluorescein Angiography (FFA)&#34;, &#34;image&#34;: &#34;https://www.asianeyehospital.com/images/fundus.jpg&#34; } ] }, { &#34;@type&#34;: &#34;Person&#34;, &#34;name&#34;: &#34;DR. SHRUTIKA KANKARIYA&#34;, &#34;affiliation&#34;: &#34;Asian Eye Hospital&#34;, &#34;alumniOf&#34;: [ { &#34;@type&#34;: &#34;EducationalOrganization&#34;, &#34;name&#34;: &#34;Seth GS medical college&#34; }, { &#34;@type&#34;: &#34;EducationalOrganization&#34;, &#34;name&#34;: &#34;KEM hospital, Mumbai&#34; }, { &#34;@type&#34;: &#34;EducationalOrganization&#34;, &#34;name&#34;: &#34;Sankara Netralaya ,Chennai&#34; } ], &#34;hasCredential&#34;: [ { &#34;@type&#34;: &#34;EducationalOccupationalCredential&#34;, &#34;name&#34;: &#34;MBBS&#34; }, { &#34;@type&#34;: &#34;EducationalOccupationalCredential&#34;, &#34;name&#34;: &#34;DNB&#34; }, { &#34;@type&#34;: &#34;EducationalOccupationalCredential&#34;, &#34;name&#34;: &#34;FICO&#34; } ], &#34;description&#34;: &#34;Dr. Shrutika Junagade Kankariya, (MBBS, DNB, FICO, Fellow Retina and Diabetes Eye Disease) is an advanced medical retina, diabetic eye disease and cataract expert. She completed her medical college training from prestigious and one of the best medical college in India, Seth GS medical college and KEM hospital, Mumbai. She completed her ophthalmic education at one of the finest eye institute in Asia; Sankara Netralaya ,Chennai, under the aegis of diplomat of the national board (DNB). She has obtained FICO UK (Fellow international council of ophthalmology, united kingdom. Thereafter she underwent advanced fellowship in retinal disorders at sankara netralaya Chennai (Busiest center catering to referrals for retinal disorders from all over Asia).&#34; }, { &#34;@type&#34;: &#34;Review&#34;, &#34;author&#34;: &#34;Mrs India and actor, model Poonam Shende&#34;, &#34;reviewBody&#34;: &#34;Its a dream come true for me to have perfect vision without glasses! Thank you Dr Kankariya for your magic :)&#34;, &#34;itemReviewed&#34;: { &#34;@type&#34;: &#34;Thing&#34;, &#34;name&#34;: &#34;Asian Eye Hospital&#34; }, &#34;reviewRating&#34;: { &#34;@type&#34;: &#34;Rating&#34;, &#34;ratingValue&#34;: 5, &#34;worstRating&#34;: 1, &#34;bestRating&#34;: 5 } }, { &#34;@type&#34;: &#34;Review&#34;, &#34;author&#34;: &#34;Bollywood Actress Sonalee Kulkarni&#34;, &#34;reviewBody&#34;: &#34;My entire family has got freedom from glasses at Asian Eye Hospital. Dr Kankariya has magical hands&#34;, &#34;itemReviewed&#34;: { &#34;@type&#34;: &#34;Thing&#34;, &#34;name&#34;: &#34;Asian Eye Hospital&#34; }, &#34;reviewRating&#34;: { &#34;@type&#34;: &#34;Rating&#34;, &#34;ratingValue&#34;: 5, &#34;worstRating&#34;: 1, &#34;bestRating&#34;: 5 } }, { &#34;@type&#34;: &#34;Review&#34;, &#34;author&#34;: &#34;Professor Dr Ioannis Pallikaris&#34;, &#34;reviewBody&#34;: &#34;Dr Vardhaman Kankariya is a globally renowned expert and I am proud to be his mentor. If I need eye surgery I will come to Dr Kankariya myself.&#34;, &#34;itemReviewed&#34;: { &#34;@type&#34;: &#34;Thing&#34;, &#34;name&#34;: &#34;Asian Eye Hospital&#34; }, &#34;reviewRating&#34;: { &#34;@type&#34;: &#34;Rating&#34;, &#34;ratingValue&#34;: 5, &#34;worstRating&#34;: 1, &#34;bestRating&#34;: 5 } }, { &#34;@type&#34;: &#34;Review&#34;, &#34;author&#34;: &#34;Hon. Ahmed Adeeb Former Vice President of Maldives&#34;, &#34;reviewBody&#34;: &#34;Dr Kankariya is truly an expert. I was referred to Asian Eye from Maldives for my eye treatment and I am very happy&#34;, &#34;itemReviewed&#34;: { &#34;@type&#34;: &#34;Thing&#34;, &#34;name&#34;: &#34;Asian Eye Hospital&#34; }, &#34;reviewRating&#34;: { &#34;@type&#34;: &#34;Rating&#34;, &#34;ratingValue&#34;: 5, &#34;worstRating&#34;: 1, &#34;bestRating&#34;: 5 } }, { &#34;@type&#34;: &#34;Review&#34;, &#34;author&#34;: &#34;Honourable Former President of India, Smt Pratibhatai Patil&#34;, &#34;reviewBody&#34;: &#34;I congratulate Dr Kankariya to have returned back to India and provide expertise to our Indian patients. Asian Eye Hospital is a boon for Pune&#34;, &#34;itemReviewed&#34;: { &#34;@type&#34;: &#34;Thing&#34;, &#34;name&#34;: &#34;Asian Eye Hospital&#34; }, &#34;reviewRating&#34;: { &#34;@type&#34;: &#34;Rating&#34;, &#34;ratingValue&#34;: 5, &#34;worstRating&#34;: 1, &#34;bestRating&#34;: 5 } }, { &#34;@type&#34;: &#34;VideoObject&#34;, &#34;position&#34;: 1, &#34;name&#34;: &#34;Couple from Netherlands Undergo Successful Spectacle Removal Laser | Dr Kankariya | Pune&#34;, &#34;url&#34;: &#34;https://www.youtube.com/watch?v=g6Ktd62WV6g&#34;, &#34;thumbnailUrl&#34;: [ &#34;https://i.ytimg.com/vi/g6Ktd62WV6g/maxresdefault.jpg&#34; ], &#34;uploadDate&#34;: &#34;2018-10-02&#34;, &#34;duration&#34;: &#34;PT0M42S&#34;, &#34;contentUrl&#34;: &#34;&#34;, &#34;embedUrl&#34;: &#34;https://www.youtube.com/embed/g6Ktd62WV6g&#34;, &#34;interactionStatistic&#34;: { &#34;@type&#34;: &#34;InteractionCounter&#34;, &#34;interactionType&#34;: { &#34;@type&#34;: &#34;http://schema.org/WatchAction&#34; }, &#34;userInteractionCount&#34;: 567 } }, { &#34;@type&#34;: &#34;VideoObject&#34;, &#34;position&#34;: 2, &#34;name&#34;: &#34;Dr Shrutika Kankariya Zee TV Interview | Marathi | Cataract &amp; Diabetes Eye Diseases | Asian Eye Pune&#34;, &#34;url&#34;: &#34;https://www.youtube.com/watch?v=kuRO8JRPGO8&#34;, &#34;thumbnailUrl&#34;: [ &#34;https://i.ytimg.com/vi/kuRO8JRPGO8/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG\u0026rs=AOn4CLC28IhXMx4-veeVcXO7C4au3X9pBA&#34; ], &#34;uploadDate&#34;: &#34;2017-02-02&#34;, &#34;duration&#34;: &#34;PT22M421S&#34;, &#34;contentUrl&#34;: &#34;&#34;, &#34;embedUrl&#34;: &#34;https://www.youtube.com/embed/kuRO8JRPGO8&#34;, &#34;interactionStatistic&#34;: { &#34;@type&#34;: &#34;InteractionCounter&#34;, &#34;interactionType&#34;: { &#34;@type&#34;: &#34;http://schema.org/WatchAction&#34; }, &#34;userInteractionCount&#34;: 8907 } }, { &#34;@type&#34;: &#34;VideoObject&#34;, &#34;position&#34;: 3, &#34;name&#34;: &#34;Padmavibhushan Dr K H Sancheti speaking about Dr Vardhaman Kankariya and Asian Eye Hospital, Pune&#34;, &#34;url&#34;: &#34;https://www.youtube.com/watch?v=9l3M5-S5g4w&#34;, &#34;thumbnailUrl&#34;: [ &#34;https://i.ytimg.com/vi/9l3M5-S5g4w/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG\u0026rs=AOn4CLDap5Qy_wNlTZV7rwRgpfx92ii4cQ%22,&#34; ], &#34;uploadDate&#34;: &#34;2018-11-14&#34;, &#34;duration&#34;: &#34;PT6M12S&#34;, &#34;contentUrl&#34;: &#34;&#34;, &#34;embedUrl&#34;: &#34;https://www.youtube.com/embed/9l3M5-S5g4w&#34;, &#34;interactionStatistic&#34;: { &#34;@type&#34;: &#34;InteractionCounter&#34;, &#34;interactionType&#34;: { &#34;@type&#34;: &#34;http://schema.org/WatchAction&#34; }, &#34;userInteractionCount&#34;: 1432 } } ] } &lt;/script&gt; </code></pre> <p>对于上面的模式: 为什么谷歌丰富网页摘要工具显示: “商品不支持评论”</p> <p>以下部分以红色突出显示。</p> <p>另外,我对@graph关键字的实现是否正确?</p> <pre><code>@type&#34;: &#34;Review&#34;, &#34;author&#34;: &#34;Professor Dr Ioannis Pallikaris&#34;, &#34;reviewBody&#34;: &#34;Dr Vardhaman Kankariya is a globally renowned expert and I am proud to be his mentor. If I need eye surgery I will come to Dr Kankariya myself.&#34;, &#34;itemReviewed&#34;: { &#34;@type&#34;: &#34;Thing&#34;, &#34;name&#34;: &#34;Asian Eye Hospital&#34; }, &#34;reviewRating&#34;: { &#34;@type&#34;: &#34;Rating&#34;, &#34;ratingValue&#34;: 5, &#34;worstRating&#34;: 1, &#34;bestRating&#34;: 5 } </code></pre> <p>如何解决这个问题?</p> </question> <answer tick="false" vote="0"> <p>丰富片段测试工具专注于可以产生丰富片段的结构化数据。您的评论是关于“事物”的。以下是 Google 可能显示评论的类型列表:</p> <p><a href="https://developers.google.com/search/docs/appearance/structured-data/review-snippet" rel="nofollow noreferrer">https://developers.google.com/search/docs/appearance/structed-data/review-snippet</a></p> </answer> </body></html>

回答 0 投票 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

Google Rich Results 测试 - 项目不支持评论测试搜索引擎优化

我在谷歌的丰富结果测试中尝试了很多东西,并遇到了这个问题。 测试搜索引擎优化 <p>我在 Google 的 Rich Results Test 上尝试了很多东西,然后遇到了这个问题。</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Test SEO&lt;/title&gt; &lt;script type=&#34;application/ld+json&#34;&gt; { &#34;@context&#34;:&#34;https://schema.org&#34;, &#34;@type&#34;:&#34;Service&#34;, &#34;name&#34;:&#34;ABC&#34;, &#34;aggregateRating&#34;:{ &#34;@type&#34;:&#34;AggregateRating&#34;, &#34;ratingValue&#34;:5, &#34;reviewCount&#34;:2 }, &#34;review&#34;:[ { &#34;@type&#34;:&#34;Review&#34;, &#34;name&#34;: &#34;ABC&#34;, &#34;author&#34;: { &#34;@type&#34;: &#34;Person&#34;, &#34;name&#34;: &#34;David A&#34; }, &#34;reviewBody&#34;:&#34;Awesome&#34;, &#34;reviewRating&#34;:{ &#34;@type&#34;:&#34;Rating&#34;, &#34;ratingValue&#34;:5 } }, { &#34;@type&#34;:&#34;Review&#34;, &#34;name&#34;: &#34;ABC&#34;, &#34;author&#34;: { &#34;@type&#34;: &#34;Person&#34;, &#34;name&#34;: &#34;David B&#34; }, &#34;reviewBody&#34;:&#34;Great&#34;, &#34;reviewRating&#34;:{ &#34;@type&#34;:&#34;Rating&#34;, &#34;ratingValue&#34;:5 } } ] } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>当我运行测试时,它返回了 3 个错误,其中 2 个表示</p> <blockquote> <p>商品不支持评论</p> </blockquote> <p>其中 1 个人说</p> <blockquote> <p>字段“itemReviewed”的对象类型无效</p> </blockquote> <p>对于第一个错误,我不确定为什么会收到错误,因为我提供了 <pre><code>review</code></pre> 的所有必填字段(<a href="https://developers.google.com/search/docs/advanced/structured-data/review-snippet#review-properties" rel="nofollow noreferrer">https://developers.google.com/search/docs/advanced/structed-数据/评论片段#评论属性</a>)。</p> <p>至于第二个错误,我再次认为我根据 <a href="https://developers.google.com/search/docs/advanced/structured-data/review-snippet#aggregated-rating-type-definition" rel="nofollow noreferrer">https://developers.google.com/search/docs/advanced/structed-data/review-snippet#aggreated- rating-type-definition 提供了所有需要的字段</a>,但仍然返回该错误。</p> <p>我没有为这两个对象提供 <pre><code>itemReviewed</code></pre>,因为文档表明它是否是嵌套的,所以可以省略。</p> </question> <answer tick="true" vote="0"> <p>所以我找到的最佳答案是:<a href="https://support.google.com/webmasters/thread/38450143/doubts-about-service-schema?hl=en" rel="nofollow noreferrer">https://support.google.com/webmasters/thread/38450143/doubts-about-service-schema?hl=en</a></p> <p>看起来,尽管 <a href="https://schema.org/Service" rel="nofollow noreferrer">Schema.org</a> 支持 <pre><code>Service</code></pre>,但从外观来看,它并不是 Google 支持的模式类型的一部分(<a href="https://developers.google.com/search/blog/2019/09/making-review-rich-results-more-helpful" rel="nofollow noreferrer">https://developers.google.com/search/blog/2019 /09/使审查丰富的结果更有帮助</a>)。</p> <p>作为参考,<a href="https://developers.google.com/search/docs/advanced/structured-data/review-snippet#embedded-review-example" rel="nofollow noreferrer">这是他们文档中的示例</a>,如果您将 <pre><code>@type</code></pre> 从 <pre><code>Product</code></pre> 更改为 <pre><code>Service</code></pre>,您将看到弹出类似的错误。</p> <p>我猜这里的解决方案是从<pre><code>Service</code></pre>更新为<pre><code>Product</code></pre>,但考虑到GSC(Google Search Console)直到现在才发出警告,这有点奇怪......</p> </answer> </body></html>

回答 0 投票 0

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

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

回答 1 投票 0

在 JSON-LD 标记模式中实现“@graph”关键字

下面代码中“@graph”关键字的应用是否正确? 我在这里试图做的是建立产品“钢丝绳”和钢丝绳类型之间的关系...

回答 1 投票 0

使用附加数据扩展 ApiPlatforms GetCollection 操作 JsonLd 响应

Symfony 6、Api 平台 3、Php 8 我有 Symfony-Doctrine 实体,已使用 Api-Platform 的 ApiResource 注释对其进行了注释,并且我正在使用 GetCollection 操作,该操作的作用是...

回答 1 投票 0

产品和产品类型的架构标记 json-ld

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

回答 1 投票 0

ASP.NET Core 在渲染 Json+Ld 脚本时不应在 TagBuilder 中对属性值进行编码

我写了一个HtmlHelper扩展来渲染Json+Ld脚本标签。 我向你求助的原因是,type属性值“application/ld+json”被编码,看起来像“applica...

回答 2 投票 0

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

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

回答 1 投票 0

文章图像架构 JSON-LD 问题

Stack Overflow 社区 我有一个网站,我使用 JSON-LD 脚本来包含结构化数据。在其中一个脚本中,我使用以下格式指定图像 URL: <p>Stack Overflow 社区</p> <p>我有一个网站,我使用 JSON-LD 脚本来包含结构化数据。在其中一个脚本中,我使用以下格式指定图像 URL:</p> <pre><code>&lt;script type=&#34;application/ld+json&#34;&gt; { &#34;@context&#34;: &#34;https://schema.org&#34;, &#34;@type&#34;: &#34;Article&#34;, &#34;mainEntityOfPage&#34;: { &#34;@type&#34;: &#34;WebPage&#34;, &#34;@id&#34;: &#34;http://localhost/digitalclimbers/understand-laravel-with-features/&#34; }, &#34;headline&#34;: &#34;What Is Laravel&#34;, &#34;image&#34;: [ &#34;http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-4-min-300x300.jpg&#34;, &#34;http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-4-min-480x360.jpg&#34;, &#34;http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-4-min-1200x840.jpg&#34; ], &#34;description&#34;: &#34;Understand what is Laravel Framework, and its key features&#34;, &#34;datePublished&#34;: &#34;2023-03-29T21:29:59+05:30&#34;, &#34;dateModified&#34;: &#34;2024-01-26T09:43:41+05:30&#34;, &#34;wordCount&#34;: 256, &#34;about&#34;: [&#34;Definition&#34;, &#34;Laravel&#34;], &#34;articleSection&#34;: &#34;Laravel&#34;, &#34;inLanguage&#34;: &#34;en-IN&#34;, &#34;author&#34;: { &#34;@type&#34;: &#34;Person&#34;, &#34;name&#34;: &#34;Md Taufique Khan&#34;, &#34;image&#34;: { &#34;@type&#34;: &#34;ImageObject&#34;, &#34;url&#34;: &#34;http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-5.jpg&#34;, &#34;width&#34;: 150, &#34;height&#34;: 150, &#34;caption&#34;: &#34;author alttag&#34; }, &#34;url&#34;: &#34;https://example.com/author/john-doe&#34;, &#34;sameAs&#34;: [ &#34;https://lookmyweb.com&#34;, &#34;https://google.com&#34;, &#34;https://facebook.com&#34; ] }, &#34;publisher&#34;: { &#34;@type&#34;: &#34;Organization&#34;, &#34;name&#34;: &#34;Digital Climber&#34;, &#34;logo&#34;: { &#34;@type&#34;: &#34;ImageObject&#34;, &#34;url&#34;: &#34;C:\\xampp\\htdocs\\digitalclimbers/wp-content/themes/tk/assets/Images/Logo/publisher-logo.webp&#34;, &#34;width&#34;: 492, &#34;height&#34;: 150, &#34;caption&#34;: &#34;Logo of Digital Climber - A Reliable Source for Learning Digital Marketing &amp; Web Development&#34; }, &#34;url&#34;: &#34;http://localhost/digitalclimbers&#34;, &#34;sameAs&#34;: [ &#34;link1&#34;, &#34;link2&#34;, &#34;link3&#34; ] } } &lt;/script&gt; </code></pre> <p>但根据 Google 的说法,该图片 URL 无效</p> <pre><code>&#34;image&#34;: [ &#34;http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-4-min-300x300.jpg&#34;, &#34;http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-4-min-480x360.jpg&#34;, &#34;http://localhost/digitalclimbers/wp-content/uploads/2023/03/Untitled-design-4-min-1200x840.jpg&#34; ], </code></pre> <p>这是 <a href="https://search.google.com/test/rich-results/result?id=2fHGaw_g8pl6EdhuXMNwzg" rel="nofollow noreferrer">Google 报告</a></p> <p>帮我解决这个问题。</p> </question> <answer tick="false" vote="0"> <p>您需要将图像指定为ImageObject,还可以添加标题和创建日期等元信息:</p> <pre><code>&#34;image&#34;: [ { &#34;@type&#34;: &#34;ImageObject&#34;, &#34;url&#34;: &#34;https://example.com/image1.jpg&#34;, &#34;contentUrl&#34;: &#34;https://example.com/image1.jpg&#34;, &#34;caption&#34;: &#34;Caption of image 1&#34;, &#34;dateCreated&#34;: &#34;2018-12-06&#34; }, { &#34;@type&#34;: &#34;ImageObject&#34;, &#34;url&#34;: &#34;https://example.com/image2.jpg&#34;, &#34;contentUrl&#34;: &#34;https://example.com/image2.jpg&#34;, &#34;caption&#34;: &#34;Caption of image 2&#34;, &#34;dateCreated&#34;: &#34;2018-12-07&#34; }, ] </code></pre> </answer> </body></html>

回答 0 投票 0

如何将 JSON-LD 面包屑模式添加到我的网站导航中以实现 SEO 目的

编辑:当我写问题时,我对这个问题的理解有所提高,但我仍然没有清除所有内容,这就是为什么我仍然问: 今天我被介绍给面包屑,我......

回答 2 投票 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

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