I'm also thinking of storing the schema facts during the frontmatter but as this knowledge is fairly intricate and can differ from article form to publish form (Short article, HowTo etc.) I'm not sure if This is certainly still a good idea? If you use a CMS (for example, WordPress) https://addons.prestashop.com/ru/seo-natural-search-engine-optimization/31857--rich-snippets-json-ld-opengraph-seo.html