JSON-LD是一种基于JSON的格式,用于序列化关联数据。该语法旨在轻松集成到已使用JSON的已部署系统中,并提供从JSON到JSON-LD的平滑升级路径。它主要用于在基于Web的编程环境中使用关联数据,构建可互操作的Web服务以及在基于JSON的存储引擎中存储关联数据。
我将 URL 粘贴到 Rich Results 测试中,它已成功抓取,但返回“No Items Detected”。 如果我复制 html 内容并将其粘贴到其中,则会正确显示 JobPosting。 例如我们...
在 FIWARE NGSI-LD 中设计和注册命令以从 URL 下载数据
我正在与 FIWARE 合作,特别是与 NGSI-LD 合作。我的目标是创建一个执行器,我可以向其发送命令以从 URL 下载信息。 为了实现这一目标,我想设计...
在 IoT 代理中创建执行器设备时出错 (FIWARE | NGSI-LD)
正如标题中提到的,我正在与 FIWARE 合作,特别是与 NGSI-LD 合作。为此,我使用 Docker Compose 部署了一系列容器:ld-context(这是要提供的容器
有人能发现这个 json-ld 脚本有什么问题吗? Wix 实现
我正在尝试将此 json-ld 块应用到 Wix 网站,但它一直拒绝它。 我知道它并不漂亮,但它已经通过了丰富的结果测试和模式测试。 无法弄清楚什么...
如何删除子组件layout.tsx中父组件的script标签?
我正在使用 next.js 的应用程序路由器。 我想为两个页面“/blog”和“/blog/[searchKeyword]”添加 jsonLd 数据。 但我在这个过程中遇到了一些问题。 博客 > 布局...
我无法确定何时在 json-ld 中添加 https://schema.org/。 问题 对于结构化数据属性,例如 @type 或 itemCondition,这是正确的格式: “@类型”:&
在 JSON-LD 值中,我有德语字符 öäüß - 公司名称、地址等。 它们应该以某种方式编码吗?与 RFC1738 一样,öäüß -> %C3%B6%C3%A4%C3%BC%C3%9F 还是不需要?
在没有yoast的情况下将手动模式(丰富片段)代码添加到wordpress网站(模板)
我们正在为内容相关(文章、视频)网站之一进行 SEO,并使用 WordPress 模板来构建网站。现在,如果我使用 yoast 生成的架构,标准网页架构是......
上下文 我正在尝试收集一组需求并以 JSON-LD 格式记录它们。 JSON-LD 文档将作为配置文件在短期内驱动自动化数据分析。我...
将巨大的链接数据转储(RDF/XML、JSON-LD、TTL)转换为 TSV/CSV
链接数据集合通常以 RDF/XML、JSON-LD 或 TTL 格式给出。相对较大的数据转储似乎相当难以处理。将 RDF/XML 文件转换为
在查看 JSON-LD 文档的示例时,我看到一些以 @ 开头的键。是否有任何规则规定哪些键应以 @ 开头? 在这个例子中,为什么人们会选择使用...
我有一家本地企业,我有一个博客,我有服务。我是一名数字营销人员,您可以在这里查看我的架构:https://www.sitecentre.com.au(查看源代码)。大部分都在主页上,...
当尝试将 json-ld 脚本标签添加到传送到 HEAD 的部分时,Vue 3 编译器失败并出现以下错误: VueCompilerError:具有副作用的标签( 和 <styl...</desc> <question vote="4"> <p>当尝试将 json-ld 脚本标签添加到传送到 HEAD 的部分时,Vue 3 编译器失败并显示以下错误:</p> <p><pre><code>VueCompilerError: Tags with side effect (<script> and <style>) are ignored in client component templates.</code></pre></p> <p>模板:</p> <pre><code><template> <teleport to="head"> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "WebSite", "url": "https://www.example.com/", "potentialAction": { "@type": "SearchAction", "target": "https://query.example.com/search?q={search_term_string}", "query-input": "required name=search_term_string" } } </script> </teleport> <div> Hello world! </div> </template> </code></pre> <p>如何在不安装额外依赖项的情况下添加此 json-ld 标签?</p> </question> <answer tick="true" vote="18"> <p>解决方法是使用 Vue 的 <a href="https://vuejs.org/api/built-in-special-elements.html#component" rel="nofollow noreferrer">内置 <pre><code>component</code></pre></a>(即 <pre><code><component :is="'script'"></code></pre>)而不是 <pre><code><script></code></pre>:</p> <pre><code><template> <teleport to="head"> <component :is="'script'" type="application/ld+json"> { "@context": "https://schema.org", "@type": "WebSite", "url": "https://www.example.com/", "potentialAction": { "@type": "SearchAction", "target": "https://query.example.com/search?q={search_term_string}", "query-input": "required name=search_term_string" } } </component> </teleport> <div> Hello world! </div> </template> </code></pre> <p><a href="https://codesandbox.io/s/using-script-tags-in-vue-template-drl9c?file=/src/App.vue" rel="nofollow noreferrer">演示</a></p> <p><a href="https://i.sstatic.net/Jh6Gd.png" rel="nofollow noreferrer"><img src="https://cdn.txt58.com/i/AWkuc3N0YXRpYy5uZXQvSmg2R2QucG5n" alt="enter image description here"/></a></p> </answer> <answer tick="false" vote="0"> <p>这是Vue 3编译器的限制。它可以通过渲染函数来克服,例如在功能组件中:</p> <pre><code>const JsonLd = (props, { slots }) => h('script', { type: 'application/ld+json' }, slots.default?.()); </code></pre> </answer> </body></html>
对于一个网站,我建立了模式组织,全部手工编写,如下所示: { “@context”:“https://schema.org”...</desc> <question vote="0"> <p>对于一个网站,我建立了架构组织,全部手工编写,如下所示:</p> <pre><code><script type="application/ld+json"> { "@context": "https://schema.org", "@graph": [ { "@type": "MedicalOrganization", "@id": "https://example.com/#medicalorganization", "isAcceptingNewPatients": "True", ........ </script> </code></pre> <p>问题是:</p> <p>可以在json中插入变量吗?那么并不是所有的东西都是硬编码的?例如对于网址:</p> <pre><code><script type="application/ld+json"> { "@context": "https://schema.org", "@graph": [ { "@type": "MedicalOrganization", "@id": "{{variables.url}}/#medicalorganization", "isAcceptingNewPatients": "True", </code></pre> <p>有没有一种简单的方法,也涉及网络性能?</p> <p>我尝试导入 varibales.js 文件,但无法以 .json 格式访问它们</p> </question> <answer tick="false" vote="0"> <p>我想说你可以将 json 准备为纯文本。因此,您可以轻松地像这样放置变量:</p> <pre><code> $schema = '<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BlogPosting", "headline": "' . $heading . '", "description": "' . $description . '", "image": "' . $imageUrl . '", "author": { "@type": "Organization", "name": "Some name", "url": "https://my-organization.com/contact" }, "publisher": { "@type": "Organization", "name": "publisher name", "logo": { "@type": "ImageObject", "url": "https://my-organization.com/assets/img/logo/logo.jpg" } }, "datePublished": "' . $datePublished . '", "dateModified": "' . $dateModified . '" } </script>'; </code></pre> <p>之后您可以在任何您想要的地方使用<pre><code>$schema</code></pre>。</p> </answer> </body></html>
Python - rdflib - json-ld - 为什么它不解析嵌套的三元组
我有以下代码,解析下面的JSON-ld文件。但是,它只输出顶级三元组,而不输出其他三元组,例如网页的名称 从 rdflib 导入数据集 来自 rdflib。
据我所知,Google 不支持组织架构。本地业务模式有效,但对于模式上的一些示例,组织模式仅被识别为本地业务模式...
Safari 解析“电话”上的 JSON-LD 错误 ('Object.prototype.hasOwnProperty.call(e,"telephone")')
自从我们为应用程序前端启用 Sentry(我们使用 TALL 堆栈构建)以来,我们从 Safari 浏览器中收到了很多错误。我无法复制。 首先我们得到了这样的错误 Safari
我正在尝试将架构添加到产品页面。 该产品是用于起重索具设备的卸扣。 然而,在页面的页脚中有该组织的地址,并且也在...
我正在尝试为下面给出的公司创建一个组织架构 但是,我收到错误 我已经在 Google Rich Results 测试工具上测试了以下代码 <p>我正在尝试为下面给出的公司创建一个组织架构 但是,我收到错误</p> <p>我已经在 Google Rich Results 测试工具上测试了以下代码</p> <pre><code><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Organization", "name": "Svibo Industries", "url": "https: //sviboindustries.in", "logo": "https://sviboindustries.in/wp-content/uploads/2023/04/svibo-1.png", "image": "https://sviboindustries.in/wp-content/uploads/2023/04/svibo-1.png", "description": "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.", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "355" }, "areaServed": { "@type": "State", "name": "MH" }, "address": { "@type": "PostalAddress", "streetAddress": "111,112,113 Mahatma Phule Peth, Block No 101, Sevadham Building, 1st Floor, Pune, Maharashtra 411042", "addressLocality": "Pune", "addressRegion": "Maharashtra", "postalCode": "411042", "addressCountry": "India" }, "hasOfferCatalog": { "@type": "OfferCatalog", "name": "Products", "itemListElement": [ { "@type": "Product", "name": "Stainless Steel SS wire rope", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "38" } }, { "@type": "Product", "name": "PVC Coated wire rope", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "21" } }, { "@type": "Product", "name": "Galvanized wire rope", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "10" } }, { "@type": "Product", "name": "Ungalvanized wire rope", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "38" } }, { "@type": "Product", "name": "Polythene Slings", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "40" } }, { "@type": "Product", "name": "Chain Sling and Alloy Chain", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "40" } }, { "@type": "Product", "name": "Chain Pulley Block", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "23" } }, { "@type": "Product", "name": "Lifting and Chain Hooks", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "32" } }, { "@type": "Product", "name": "Electric Chain Hoist", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "22" } }, { "@type": "Product", "name": "Eye Bolt", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "15" } }, { "@type": "Product", "name": "Mini Electric Hoist", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "32" } }, { "@type": "Product", "name": "Pulley, Pulleys Block and Chain Wheel", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "56" } }, { "@type": "Product", "name": "Pulling and Lifting Machine", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "21" } }, { "@type": "Product", "name": "Hand Puller", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "10" } }, { "@type": "Product", "name": "Ratchet Lever Lifting Hoist", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "32" } }, { "@type": "Product", "name": "Plate Lifting Clamps", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "12" } }, { "@type": "Product", "name": "Trolley", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "12" } }, { "@type": "Product", "name": "Winches", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "32" } }, { "@type": "Product", "name": "Shackles", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "40" } }, { "@type": "Product", "name": "Wire Rope Clamps", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "31" } }, { "@type": "Product", "name": "Wire Rope Thimble", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "42" } }, { "@type": "Product", "name": "Turnbuckle", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "28" } }, { "@type": "Product", "name": "Safety Items", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.9", "reviewCount": "15" } } ] }, "contactPoints": [ { "@type": "ContactPoint", "telephone": "+91 8208803755", "contactType": "Customer support", "email": "<a href="/cdn-cgi/l/email-protection" data-cfemail="4f262129200f3c39262d2026212b3a3c3b3d262a3c612c2022">[email protected]</a>" }, { "@type": "ContactPoint", "telephone": "+91 7447449114", "contactType": "Customer support" }, { "@type": "ContactPoint", "telephone": "+91 9637545481", "contactType": "Customer support" } ] } </script> </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>"url": "https: //sviboindustries.in", </code></pre> <p>这是正确的声明:</p> <pre><code>"url": "https://sviboindustries.in", </code></pre> </answer> </body></html>