学校的模式数据

Schema Data for a School

为有细分的学校实践的最佳模式

我对为 School that has subdivisions: Preschool, ElementarySchool, MiddleSchool, and HighSchool 创建架构标记的最佳 SEO 实践感兴趣。我最初的计划是为每个部门页面和主页创建 JSON-LD。

我的问题是:

  1. 这是执行此操作的好方法并且符合最佳架构实践吗?
  2. 使用架构时,将学校的细分与学校相关联的最佳方法是什么?
  3. 使用架构 contactPoint 标记联系人页面上的每个姓名和 phone 号码是否合适?
  4. 有什么我应该利用的机会或我应该避免的陷阱吗?

我已经包含了 JSON-LD 代码,我认为其中一些页面的代码可能看起来像。

主页:

<script type='application/ld+json'>
{
  "@context": "http://schema.org/",
  "@type": "School",
  "address": {
    "@type": "PostalAddress",
    "addressCountry": "Country",
    "addressLocality": "City",
    "addressRegion": "State",
    "postalCode": "12345",
    "streetAddress": "123 School St",
    "telephone": "+15432190100",
    "description": "This is a very good school"
  },
  "areaServed": "City",
  "name": "School",
  "url": "https://www.school.edu",
  "sameAs": [
    "https://www.facebook.com/school",
    "https://www.youtube.com/user/school",
    "http://twitter.com/school",
    "https://www.instagram.com/school/"
  ]
}
</script>

学龄前页面

注:phone号码和姓名不同,地址相同。 Google 认为这是重复的还是垃圾邮件?

<!--Preschool-->
<script type='application/ld+json'>
{
  "@context": "http://schema.org/",
  "@type": "Preschool",
  "address": {
    "@type": "PostalAddress",
    "addressCountry": "Country",
    "addressLocality": "City",
    "addressRegion": "State",
    "postalCode": "12345",
    "streetAddress": "123 School St",
    "telephone": "+15432190101",
    "description": "School has a very good preschool"
  },
  "areaServed": "City",
  "name": "School - Preschool",
  "url": "https://www.school.edu/preschool",
  "parentOrganization": {
    "@type": "School",
    "name": "School"
  }
}
</script>

我试图为您提供所有可能性的最佳解决方案。

先解开你的疑惑

Ans1:你的方向是正确的,但结构需要修改,如下面的代码所示。

Ans2: 要实现细分,最好的方法是使用提供子组织的Educational Organization Schema

Ans3: 您可以在下面给定的代码中检查您的案例中 contactPoint 的使用情况。

Ans4:如果你这样做得当,就没有任何陷阱。

下面 JSON-LD 包含您可能需要的所有结构,如 学校、学前班、中学

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "EducationalOrganization",
  "name" : "School",
  "address": {
    "@type": "PostalAddress",
    "addressCountry": "IN",
    "addressLocality": "City",
    "addressRegion": "State",
    "postalCode": "000000",
    "streetAddress": "#310 Example",
    "telephone": "+15432190100",
    "description": "This is a very good school"
  },
  "areaServed": "City",
  "@id" : "http://www.example.com/homepage-url",
  "url": "http://www.example.com/",
  "logo": "http://www.example.com/images/logo.png",
  "email" : "example@example.com",
  "sameAs": [
    "https://www.facebook.com/example",
    "http://twitter.com/example",
    "https://www.instagram.com/example"
  ],
  "subOrganization" : [
    {
        "@type": "Preschool",
        "name" : "Preschool 1",     
        "telephone" : "+1-877-672-7777",
        "@id" : "http://www.example.com/preschool-1",
        "url": "http://www.example.com/preschool-1",    
        "address":{
          "@type":"PostalAddress",
          "streetAddress":"#310 Example",
          "addressLocality":"City",
          "addressRegion":"State",
          "postalCode":"000000",
          "addressCountry":"IN"
        },
        "contactPoint" : [
            { "@type" : "ContactPoint",
              "telephone" : "+1-877-746-0909",
              "contactType" : "Customer Service",
              "contactOption" : "TollFree",
              "areaServed" : "IN"
            } , 
            { "@type" : "ContactPoint",
              "telephone" : "+1-877-746-0606",
              "contactType" : "Bill Payment",
              "contactOption" : "TollFree",
              "areaServed" : "IN"
            } 
        ]   
    },
    {
        "@type": "Preschool",
        "name" : "Preschool 2",
        "telephone" : "+1-877-672-8888",
        "@id" : "http://www.example.com/preschool-2",
        "url": "http://www.example.com/preschool-2",
        "address":{
          "@type":"PostalAddress",
          "streetAddress":"#310 Example",
          "addressLocality":"City",
          "addressRegion":"State",
          "postalCode":"000000",
          "addressCountry":"IN"
        },
        "contactPoint" : [
            { "@type" : "ContactPoint",
              "telephone" : "+1-877-746-3030",
              "contactType" : "Customer Service",
              "contactOption" : "TollFree",
              "areaServed" : "IN"
            } , 
            { "@type" : "ContactPoint",
              "telephone" : "+1-877-746-2020",
              "contactType" : "Bill Payment",
              "contactOption" : "TollFree",
              "areaServed" : "IN"
            } 
        ]
    },
    {
        "@type": "MiddleSchool",
        "name" : "MiddleSchool 1",  
        "telephone" : "+1-877-672-9999",    
        "@id" : "http://www.example.com/middleschool-1",
        "url": "http://www.example.com/middleschool-1",
        "address":{
          "@type":"PostalAddress",
          "streetAddress":"#310 Example",
          "addressLocality":"City",
          "addressRegion":"State",
          "postalCode":"000000",
          "addressCountry":"IN"
        }  
    },
        {
        "@type": "MiddleSchool",
        "name" : "MiddleSchool 2",  
        "telephone" : "+1-877-672-0000",
        "@id" : "http://www.example.com/middleschool-2",
        "url": "http://www.example.com/middleschool-2",
        "address":{
          "@type":"PostalAddress",
          "streetAddress":"#310 Example",
          "addressLocality":"City",
          "addressRegion":"State",
          "postalCode":"000000",
          "addressCountry":"IN"
        }  
    }
  ]
}
</script>

以上代码也通过Google结构化数据测试工具进行了验证。 附上 screenshot 供您参考。

不用担心 "Uncategorized Error",这可能是 Google 模式工具中的错误。 有关该错误的更多信息

希望有用:)