@dudo
turned out it did not work at all.
Site was down with:
Fatal error: Uncaught Error: Call to undefined function yasr_get_itemType() in /www/htdocs/xxx/xxx/wp-content/plugins/yet-another-stars-rating/lib/yasr-functions.php:417 Stack trace: #0 /www/htdocs/xxx/xxx/wp-includes/class-wp-hook.php(287): yasr_add_schema(‘<div style=”tex…’) #1 /www/htdocs/xxx/xxx/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘<div style=”tex…’, Array) #2 /www/htdocs/xxx/xxx/wp-includes/formatting.php(3806): apply_filters(‘the_content’, ‘\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r…’) #3 /www/htdocs/xxx/xxx/wp-includes/class-wp-hook.php(287): wp_trim_excerpt(‘\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r…’, Object(WP_Post)) #4 /www/htdocs/xxx/xxx/wp-includes/plugin.php(206): WP_Hook->apply_filters(”, Array) #5 /www/htdocs/xxx/xxx/wp-includes/post-template.php(427): apply_filters(‘get_the_excerpt’, ”, Object(WP_Post)) #6 /www/htdocs/xxx/xxx/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(150): get_the_excerpt() #7 /www/ in /www/htdocs/xxx/xxx/wp-content/plugins/yet-another-stars-rating/lib/yasr-functions.php on line 417