Schema.org: How to extend a Class or Type

人盡茶涼 提交于 2019-11-26 22:08:18

问题


I have to model a product, which has properties that aren't listed in the Schema.org Product type. After seeking in many places, I didn't find anything that fits to my need. How can I extend the Schema.org Product type?


回答1:


You could always use other vocabularies (that offer the properties you need) in addition to Schema.org. But if you want to use only the vocabulary Schema.org, you have two options in general:

  • Propose new properties (or classes).

    You can do this on Schema.org W3C Community Group’s mailing list, or on Schema.org’s GitHub issue tracker.

    See: How can I get involved? How can I propose new schemas or other improvements?

    If accepted, it might become part of the core (if it’s something "the most common web applications need"), or it might become an extension.

  • (deprecated!) Extend existing properties.

    Extending existing properties is documented at http://schema.org/docs/old_extension.html, but note that this mechanism is considered outdated.

For specific types (including Product), you can use Schema.org’s additionalProperty property:

A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.



来源:https://stackoverflow.com/questions/27581209/schema-org-how-to-extend-a-class-or-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!