我维护一个网页,其中包含有关我的组织的信息。我嵌入了JSON-LD,如下所示。
{
"@context" : "http://schema.org",
"@id" : "http://example.com"
"@type" : "Organization",
"location": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Shivalik City, Kharar-Landran Road,",
"addressRegion": "Distt. Mohali, Punjab",
"addressCountry":"IN",
"postalCode":"140307",
"streetAddress" : "SCF No. 5"
}
}
}{
"@context" : "http://schema.org",
"@type" : "WebSite",
"name" : "Hoven",
"alternateName" : "Hoven Online Market",
"url" : "http://www.hoven.in",
"author":
[{ "@context" : "http://schema.org",
"@type" : "Organization",
"@id" : "http://example.com" <---------------
}]
}JSON-LD非常吸引人,但到目前为止,我还不能澄清这一点。
(请忽略我的JSON-LD中的任何语法问题。)
发布于 2015-08-29 06:05:29
对于知识图谱而言,如果他们同时扫描您的组织页面和您的网站,那么只需将您的网站链接到组织URL就足以让他们检索所有内容;毕竟,这就是链接数据的全部要点。也就是说,人们经常重复引用信息的某一部分,以便在图形中进行访问,例如组织名称。您没有使用组织名称,所以这不是很有用。
You‘s WebPage可能如下所示:
{
"@context" : "http://schema.org",
"@type" : "WebSite",
"name" : "Hoven",
"alternateName" : "Hoven Online Market",
"@id" : "http://www.hoven.in",
"url" : "http://www.hoven.in",
"author": {
"@id" : "http://example.com",
"name": "My Organization"
}
}那么组织可能看起来像这样:
{
"@context" : "http://schema.org",
"@id" : "http://example.com",
"@type" : "Organization",
"name": "My Organization",
"location": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Shivalik City, Kharar-Landran Road,",
"addressRegion": "Distt. Mohali, Punjab",
"addressCountry":"IN",
"postalCode":"140307",
"streetAddress" : "SCF No. 5"
}
}
}
}或者,您可以直接将作者链接到组织URL:
{
"@context" : "http://schema.org",
"@type" : "WebSite",
"name" : "Hoven",
"alternateName" : "Hoven Online Market",
"@id" : "http://www.hoven.in",
"url" : "http://www.hoven.in",
"author": {"@id" : "http://example.com"}
}注意,author不是用@type: @id定义的,所以您需要明确说明它是一个链接。
https://stackoverflow.com/questions/32122087
复制相似问题