Schema.org for acronym / abbreviation (in a glossary)

牧云@^-^@ 提交于 2019-12-20 05:12:07

问题


I'd like to mark my list of acronyms/abbreviations in my glossary of my website with Schema.org (using Microdata).

Which type of Schema.org is the right one for that?

I can't find any related type in the full list on schema.org.


回答1:


The type DefinedTerm (which is currently in Pending, so it’s subject to change) is suitable for a

word, name, acronym, phrase, etc. with a formal definition

In a glossary, you would use the name property for the term, and the description property for what the term stands for.

<p itemscope itemtype="https://schema.org/DefinedTerm">
  <span itemprop="name">SO</span>: 
  <span itemprop="description">Stack Overflow</span>
</p>

Or with semantic markup:

<dl>

  <div itemscope itemtype="https://schema.org/DefinedTerm">
    <dt itemprop="name"><dfn><abbr>SO</abbr></dfn></dt>
    <dd itemprop="description">Stack Overflow</dd>
  </div>

</dl> 

(For the whole glossary, you could use the type DefinedTermSet, and add each entry with the property inDefinedTermSet.)



来源:https://stackoverflow.com/questions/52016174/schema-org-for-acronym-abbreviation-in-a-glossary

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