- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Per https://www.drupal.org/node/3307288 → , this is obsolete now.
In the Umami demo profile, the Article and Basic Page content types have have RDF mapping configuration (same as standard profile) but the Recipe content type doesn't.
We're missing a great opportunity here - the Schema.org vocabulary has a recipe type, with properties like our fields! Providing an RDF mapping for the recipe nodes would be an awesome way to show off this capability. RDF mappings with Schema.org can result in "rich snippets" in search engine listings, so It could be a good way to impress SEO evaluators. Also relevant for other linked-data applications.
Add a rdf.mapping.node.recipe.yml
to Umami profile install config.
prepTime
and cookTime
are expected to be output as ISO8601 durations (e.g. 15 minutes is PT15M). But our fields are just integer values. We would need some kind of format/converter method, similar to Drupal\rdf\CommonDataConverter\dateIso8601Value()
. This could be a custom utility method somewhere in Umami profile, or better still add it as a useful method in RDF module (duration is a common property type in schema.org, several other classes use it apart from recipe).The Schema.org Recipe class also has some properties which we don't yet have in Umami's recipe type. Maybe we could consider these:
recipeCuisine
property. Now, we already have an unused Recipe Cuisine taxonomy vocab, but there's a proposal to remove it in
#2990611: Remove empty taxonomies from Umami Demo →
. Demonstrating Schema.org integration might be a good reason to keep it after all.suitableForDiet
property, which takes a RestrictedDiet enumeration in Schema.org. This is something we could implement using an Options field, or a taxonomy term reference.NutritionInformation
is a complex sub type in Schema.org - probably too ambitious for Umami.cookingMethod
property (e.g. roasting) is available, separate from recipeInstructions
.recipeInstructions
property provides the possibility of being more structured, but a simple "Text" mapping is also allowed - so that will do for Umami.Figure out how (or whether) to address the challenges and opportunities above.
Patch.
Content update, possibly.
None.
None.
None.
Closed: outdated
11.0 🔥
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Per https://www.drupal.org/node/3307288 → , this is obsolete now.