menu-formats

From Microformats Wiki
Revision as of 21:08, 4 December 2020 by Btrem (talk | contribs) (Adds schema.org Menu type.)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This article is a stub. You can help the microformats.org wiki by expanding it.

Per process, for documenting existing restaurant menu publishing formats.

See recipe-formats for an example of how to grow this page.

schema.org

schema.org has a menu type with a high degree of complexity. There are over 100 properties associated with it, many of which have little or nothing to do with restaurant menus:

learningResourceType
a menu is not a learning resource, except I suppose as a way to learn what food they offer, which is sort of tautological
publisherImprint
This is described as "The publishing division which published the comic." Why this property is part of the Menu type is beyond my comprehension.
timeRequired
this is intended to mark up the time it takes to read the work; the time it takes to read a menu is hardly relevant for a web author or user

The Menu type has other properties that are better handled with existing HTML constructs:

inLanguage
instead use lang attribute on root element or other container
educationalAlignment
restaurants aren't generally aligned with a school, and they were, that would be better handled with a nested Restaurant type; for microformats, a nested h-card would be easy and intuitive
translationOfWork
better handled with rel attributes, perhaps on a link element in a document head

The complexity is part of the schema.org philosophy of adding properties for every possible variation and contingency of web publishing, at the expense of making it difficult and intimidating for web authors to adopt. It appears that schema.org no longer publishes adoption rates, so it's hard to gauge whether their Menu schema is actually being used in the wild.



See Also