Are the contents of an ItemList
and ListItem
dependant on the property they are used in?
#3411
-
This question came up in relation to https://schema.org/recipeInstructions. It is also described to be "an ordered list with HowToStep and/or HowToSection items." This fact is not defined in the structured data. So can an |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
By current schema.org semantics, the typing of the objects in the ItemList can be anything like an old school Java List. But in practice, they are going to be the things in the range of the property they are used in like you say. As a person who works on schema.org validation most of the time, this is super annoying. I personally think schema.org could benefit from a move to a generic type more like you suggest, but it would require some more horizontal changes to collection structures and perhaps some thought to how they relate to RDF containers. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. For future reference, I also found https://developers.google.com/search/docs/appearance/structured-data/recipe#recipe-properties which defines
|
Beta Was this translation helpful? Give feedback.
By current schema.org semantics, the typing of the objects in the ItemList can be anything like an old school Java List. But in practice, they are going to be the things in the range of the property they are used in like you say. As a person who works on schema.org validation most of the time, this is super annoying.
I personally think schema.org could benefit from a move to a generic type more like you suggest, but it would require some more horizontal changes to collection structures and perhaps some thought to how they relate to RDF containers.