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

如何在JSON-LD中规范描述schema.org/Product各部件的材质?

产品各零部件材质的Schema.org规范标注方案

你目前使用additionalProperty的实现是可运行的,但Schema.org有原生的语义化属性可以更好地满足零部件材质标注的需求,以下是两种更符合规范的实现方式:

方案1:使用hasPart嵌套子Product(最推荐)

Product类型原生支持hasPart属性,可用于标记产品包含的独立零部件,每个零部件可以定义为单独的Product实例,单独标注自身材质,语义清晰度最高,也更利于搜索引擎和结构化数据工具识别。

{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": "A Bike",
  "material": "Carbon Fiber", // 整车车架主体材质
  "hasPart": [
    {
      "@type": "Product",
      "name": "自行车前叉",
      "material": "Aluminum"
    },
    {
      "@type": "Product",
      "name": "自行车车把",
      "material": "Wood"
    }
  ]
}

方案2:material属性传结构化数组(轻量实现)

如果不需要给零部件单独标注名称、型号等其他属性,也可以直接给material属性传递数组,每个元素注明对应零部件,实现更简单:

{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": "A Bike",
  "material": [
    "Carbon Fiber(车架主体)",
    "Aluminum(前叉)",
    "Wood(车把)"
  ]
}

如果你的业务场景需要自定义非通用的扩展字段,原来使用additionalProperty的方案也完全适用。

内容的提问来源于stack exchange,提问作者King Chung Huang

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.09.25 14:36:00