You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于为学院项目构建Schema.org标记的技术咨询

关于为学院项目构建Schema.org标记的技术咨询

嘿,我完全懂你的困惑——一开始在Schema.org里找对应“项目”的类型确实容易摸不着头脑,但其实有个专门为这类教育/职业项目设计的类型刚好适配你的需求:EducationalOccupationalProgram,这可比用通用的ItemList语义明确多了,搜索引擎也能更好地识别这是一个正规的学院文凭项目。

下面给你拆解下怎么构建你要的结构:

核心思路

  • 用EducationalOccupationalProgram标记你的顶级项目(比如“Computer Science Diploma”),可以补充项目描述、授予的证书类型(比如credentialAwarded: "Diploma")、学制等信息。
  • 对于“Session 1”“Session 2”这类学期/阶段,可以用CourseInstance或者直接作为项目的子部分,通过hasPart属性关联到项目上。
  • 每个学期下的课程,直接关联你已经创建好的Course类型条目就行,同样用hasPart来嵌套。

示例JSON-LD代码

{
  "@context": "https://schema.org",
  "@type": "EducationalOccupationalProgram",
  "name": "Computer Science Diploma",
  "description": "A 2-year diploma program focused on foundational computer science skills, including programming, databases, and software development.",
  "credentialAwarded": "Diploma",
  "hasPart": [
    {
      "@type": "CourseInstance",
      "name": "Session 1",
      "hasPart": [
        { "@type": "Course", "name": "PE 1" },
        { "@type": "Course", "name": "Programming Languages 101" },
        { "@type": "Course", "name": "College Level English 101" }
      ]
    },
    {
      "@type": "CourseInstance",
      "name": "Session 2",
      "hasPart": [
        { "@type": "Course", "name": "Programming Languages 201" },
        { "@type": "Course", "name": "Databases 101" }
      ]
    }
  ]
}

关于你提到的ItemList

不是说不能用ItemList,但它是一个通用的列表类型,没有明确的语义指向“教育项目”。用EducationalOccupationalProgram的好处是,搜索引擎能直接识别这是一个学院开设的文凭项目,还能读取到项目的证书类型、课程结构等关键信息,对SEO和结构化数据展示更友好。

如果你的课程已经有独立的Schema标记(比如每个课程有自己的URL和详细信息),还可以把课程的@id或者URL填到hasPart里,实现更完整的关联。

备注:内容来源于stack exchange,提问作者Fredy31

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 10:44:28