What is the name property in schema.org?

前端 未结 1 1169
时光取名叫无心
时光取名叫无心 2021-01-25 11:03

I have a website with news articles, and I\'m trying to employ the schema.org\'s structured data. It says that the name property is required, but I don\'t really kn

1条回答
  •  不知归路
    2021-01-25 11:28

    First of all, Schema.org does not require the name (or any other) property.
    You are probably talking about what Google requires for one of their search result features (if you don’t follow their requirements, you don’t get that feature; nothing else happens), and/or what the AMP spec did require (see their issue about headline vs. name).

    The headline property will in many cases have the same value like the name property. Using both properties for the same content is perfectly fine (in Microdata: itemprop="headline name"; in RDFa: property="headline name"; in JSON-LD you would have to provide the value a second time). The talk about "duplicate content" is about two or more pages that have the same content, not about two or more properties that have the same content.

    There was a discussion some time ago (in #423 and in #205) about deprecating headline and suggesting that authors use name instead, but this didn’t happen (yet).

    0 讨论(0)
提交回复
热议问题