JSON-LD |每页多个模式 |构建网站的最佳方式是什么?

问题描述

请原谅,我是一个菜鸟,模式对我来说是新事物,我非常感谢你们的专家建议!提前致谢! :)

为简短起见,我将这 3 个相关问题合并为一个全局问题的一部分:

  1. 什么更好?为每个网页使用单独的架构还是多个嵌套的架构?
  2. 每页可以使用多少个模式?是否有建议的最小值和最大值?
  3. 最后,一个 5 页的网站的架构结构是什么样的?

我在下面的简短摘要中回答了所有这些问题,然后是我使用的架构。

我的货币解释:

一个。每个页面可以嵌套多个架构,但将它们分开可以更好地使用 @id?

B.您可以在每个页面上使用任意数量的架构而不会受到任何惩罚,假设您使用了 @graph,但是每个单独的网页都需要单独定义。这个实用吗?

c.您可以并且应该在单独的脚本中为每个页面使用多个架构,以免通过以下方式复制相同的信息:aboutprovider@type,尤其是在您使用多个架构时类型:OrganizationCorporation 和/或 LocalBusiness?

d。我们目前正在实施的结构/层次结构如下:

我。主页架构类型:WebsiteWebpageBreadcrumbFAQPage

二。关于页面架构类型:WebpageOrganizationLocal Business

三。服务页面架构类型:WebpageServiceOfferCatalogBreadcrumbFAQPage

四。单个服务页面架构类型:WebpageServiceOfferCatalogBreadcrumbFAQPage

v.联系页面架构类型:WebpageContactPage

当前实施主页(网站架构)

我可能做得过头了,据我所知,最好是包含更少的信息和更多的参考 @id

{
"@context": "https://schema.org/","@type": "Website","name": "ABC Company","image": "https://www.abccompany.com/wp-content/uploads/2016/12/company_slider.png","url": "https://www.abccompany.com","abstract": "The corporate website of ABC Company Ltd.","description": "Website of ABC Company Ltd,an information technology service management and support provider in Germany.","thumbnailUrl": "https://www.abccompany.com/wp-content/uploads/2016/12/company_slider.png","about": 
        {
        "@type": 
                [
                "Organization","LocalBusiness"
                ],"@id": "https://www.abccompany.com/about","legalname": "ABC Company Ltd","alternateName":
                [
                "ABC Corp","ABC Berlin","ABC"
                ],"address": 
                {
                "@type": "PostalAddress","addressCountry": "Germany","addressLocality": "Berlin","addressRegion": "Berlin Municipality","postalCode": "30242","streetAddress": "Zigrid Abc Street,Office 521"        
                },"pricerange": "€€ - €€€€","telephone": "99 540 010"
        },"sameAs": 
        [
        "https://www.facebook.com/abccompany","https://twitter.com/abccompany","https://www.instagram.com/abccompany/","https://www.linkedin.com/abccompany"
        ],"spatialCoverage": 
        [
        "United Kingdom","Germany","Greece","Switzerland","United arab Emirates","Italy"
        ]
}

以下是主页的网站架构的简化版本

{
        "@type": "Website","name": "ABC Company Website","thumbnailUrl": "https://www.abccompany.com/wpcontent/uploads/2016/12/company_slider.png","about": 
                {
                "@type": "Organization","@id": "https://www.abccompany.com/about"
                },"potentialAction": 
                {
                "@type": "SearchAction","target": "{search_term_string}","query-input": "required name=search_term_string"
                }
        }

当前实施主页(组织架构)

考虑将这个 Schema 移到关于页面。有什么建议吗?

{
"@context": "http://schema.org","@type": "Organization","alternateName": 
        [
        "ABC Berlin","ABC"
        ],"kNowsAbout":
                [
                "information Technology Consulting","information Technology Support","information Technology Development","Managed information Technology","API Integration"
                ],"logo": "https://www.abccompany.com/wp-content/uploads/2016/12/company_slider.png","https://www.instagram.com/abccompany","numberofEmployees": "~10","owns": 
        [
        {
        "@type": "Organization","name": "ABC Company 2","url": "https://abccompany2.com/","logo": "https://abccompany2.png","description": "Online ticketing platform.","sameAs": "https://www.facebook.com/abccompany2"
        },{
        "@type": "Organization","name": "ABC Company 3","url": "https://abccompany3.eu/en/","logo": "https://abccompany3.eu/en.png","description": "Laptop and phone repair service.","sameAs": "https://www.facebook.com/abccompany3"            
        }
        ],"contactPoint": 
        {
        "@type": "ContactPoint","telephone": "+357-99-550-010","contactType": "Contact","email": "contact@abccompany.com","areaServed": 
                [
                "United Kingdom","Italy"
                ],"availableLanguage": 
                [
                "English","German"
                ]
        }
}

当前实施主页(本地商家架构)

与组织架构一样,我正在考虑将其移至关于页面链接 @id。另外,组织架构和本地业务架构往往会发生冲突,这是因为信息重复吗?

{
"@context": "https://schema.org/","@type": "LocalBusiness","hasMap": "https://www.google.com/maps/place/ABCCOMPANY+-+IT+Services+%26+Solutions+in+Cyprus/@44.6799323,65.0355366,15z/data=!4m2!3m1!1s0x0:0x4507a4904ebbe662?sa=X&ved=2ahUKEwjOnOKdy_bxAhWQsRQKHY9WD5kQ_BIwD3oECEMQBQ","address": 
        {
        "@type": "PostalAddress","postalCode": "3022","streetAddress": "Mitgard Street 302"       
        },"description": "ABC Company Ltd is a managed information technology services provider in Germany.","disambiguatingDescription": "ABC Company is an information technology support and development company.","sameAs":
        [
        "https://www.facebook.com/abccompany","https://www.linkedin.com/company/abccompany"
        ],"pricerange": "€€€ - €€€€€","email": "mailto:contact@abccompany.com","telephone": "99 520 010","geo":
        {
        "@type": "GeoCoordinates","latitude": "66.6799323","longitude": "55.0355366"
        },"areaServed": 
        [
        {
        "@type": "Country","name": "United Kingdom","sameAs": "https://en.wikipedia.org/wiki/United_Kingdom_(disambiguation)"   
        },{
        "@type": "Country","name": "Germany","sameAs": "https://en.wikipedia.org/wiki/Germany_(disambiguation)"
        },{"@type": "Country","name": "Greece","sameAs": "https://en.wikipedia.org/wiki/Greece_(disambiguation)"
        },"name": "Switzerland","sameAs": "https://en.wikipedia.org/wiki/Switzerland_(disambiguation)"
        },"name": "United arab Emirates","sameAs": "https://en.wikipedia.org/wiki/UAE_(disambiguation)"
        },"name": "Italy","sameAs": "https://en.wikipedia.org/wiki/Italy_(disambiguation)"
        }
        ],"openingHouRSSpecification": 
        [
        {
        "@type": "openingHouRSSpecification","dayOfWeek": 
                [
                "Monday","Tuesday","Wednesday","Thursday","Friday"
                ],"opens": "09:00","closes": "19:00"
        },{
        "@type": "openingHouRSSpecification","dayOfWeek": "Saturday","opens": "11:00","closes": "14:00"
        }
        ],"aggregaterating":
        {
        "@type": "Aggregaterating","ratingValue": "5","reviewCount": "5"
        },"review":
        [
        {
        "@type": "Review","author": 
                {
                "@type": "Organization","name": "BBB Company Ltd"
                },"datePublished": "2020","description": "Developed a great website.","reviewrating":
                {
                "@type": "rating","bestrating": "5","worstrating": "5"
                }
        },{
        "@type": "Review","author": 
                {
                "@type": "Person","name": "Anderson Silva"
                },"datePublished": "2018","name": "NFS Ltd"
                },"datePublished": "2017","name": "Premiere Showroom"
                },"name": "Benzon Bez"
                },"worstrating": "5"
                }
        }
        ]           
}

当前实施主页(网页架构)

这是我将分享的最后一个架构,以保持这个问题易于管理。

{
"@context": "https://schema.org/","@type": "WebPage","@id": "https://www.abccompany.com","url": "https://www.abccompan.com","name": "IT Services and Solutions | ABC Company","description": "Home web page of ABC Company Ltd,"disambiguatingDescription": "ABC Company Home Page","image": "https://www.abccompan.com/wp-content/uploads/2016/12/company_slider.png","thumbnailUrl": "https://www.abccompan.com/wp-content/uploads/2016/12/company_slider.png","keywords": "IT Company,information Technology Company,IT Provider","typicalAgeRange": "28-60","about":  
        {
        "@type": "Organization","@id": "https://www.abccompan.com/about","name": "ABC Company"
        },"audience": 
        [
        {
        "@type": "BusinessAudience","name": "Business owner","alternateName": "Organizational Founder","disambiguatingDescription": "Refers to founders,owners and or majority shareholders of a commercial enterprise.","sameAs": 
                ["https://en.wikipedia.org/wikI/Organizational_founder","https://en.wikipedia.org/wiki/Director_(business)","https://en.wikipedia.org/wiki/Business_magnate","https://en.wikipedia.org/wiki/Tycoon_(disambiguation)","https://en.wikipedia.org/wiki/Industrialist_(disambiguation)","https://en.wikipedia.org/wiki/Shareholder"
                ]
        },{
        "@type": "BusinessAudience","name": "Entrepreneur","alternateName": "Business Person","disambiguatingDescription": "A business man or woman - refers to a founder,owner,investor or majority shareholder of a commercial enterprise.","sameAs": 
                [
                "https://en.wikipedia.org/wiki/Entrepreneur_(disambiguation)","https://en.wikipedia.org/wiki/Businessperson","https://en.wikipedia.org/wiki/Investor","https://en.wikipedia.org/wiki/Intermediary"
                ]
        },"name": "Manager","alternateName": "Supervisor","sameAs": 
                ["https://en.wikipedia.org/wiki/Supervisor","https://en.wikipedia.org/wiki/Manager_(disambiguation)","https://en.wikipedia.org/wiki/General_manager" 
                ]
        }
        ],"datePublished": "2016-12-01T08:00:08+00:00","dateModified":"2020-01-09T18:00:00+00:00","inLanguage":"en-UK","potentialAction":
        {
        "@type": "ReadAction","target": "https://www.abccompany.com"
        }
}

回顾

  1. 以上模式是否正确?
  2. 我们是否在每个页面中编写多个架构但使用不同的脚本?
  3. 最好的做法是链接 @id 还是重复引用?
  4. 每页可以填充多少个架构?
  5. 是否有特定页面的特定架构?如果是,是哪些?

在此先感谢大家付出的时间和努力。 希望我们能达成某种共识,因为没有关于此的可行说明,至少我找到了。

和平。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...